

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
123456# Goal: Enforce cross-platform bash script guidelines7# Reasoning:8# 1. We want all .sh scripts to work with Bash 3.2 on macOS, Git Bash on Windows, WSL2, Ubuntu 22–24. cygpath is never available.9# 2. We need to ensure each .sh script has a corresponding test_ script. test_scripts should create a unique directory to contain all their filesystem work, remove it on pass/fail, and restore the current directory and env vars to what they were before it ran.10# 3. For Windows, we assume a fresh install with only Git available; use powershell.exe if needed (no pwsh).11# 4. Powershell automatically handles slash conversions, but /c/ must become C:/. Create tests for powershell files12# 5. Use set -e and set -o pipefail for bash. Avoid silent failure.13# 6. For both powerhshell files and bash files, use functions and DRY things as much as possible.14# 7. Add verification checks for all inputs, whether files, dirs, or variables, and make contractual boundaries and division of responsibility clear.15# 8. Remember to run git update-index --chmod=+x filename.sh1617<rule>18name: cross_platform_bash_scripts19description: Ensures that all bash scripts are cross-platform compatible and have matching test scripts20filters:21 # Match any .sh file outside of test_ prefixed scripts22 - type: file_extension23 pattern: "\\.sh$"24 - type: filename25 pattern: "^(?!test_).+\\.sh$"2627actions:28 - type: reject29 conditions:30 # Reject any .sh file without a matching test_ script of the same name31 - pattern: "^(?!test_)(.+)\\.sh$"32 message: |33 Found a bash script without a corresponding test script.34 Please add a test_ script to ensure thorough testing across platforms.3536 - type: suggest37 message: |38 Ensure compatibility with:39 • Bash 3.2 on macOS40 • Git Bash on Windows (use powershell.exe where appropriate)41 • WSL242 • Ubuntu 22–2443 • x64 and arm64 architectures44 Please provide a test_ script that verifies the script on each platform.45 Use set -e and set -o pipefail for bash46 For both powerhshell files and bash files, use functions and DRY things as much as possible.47 Add verification checks for all inputs, whether files, dirs, or variables, and make contractual boundaries and division of responsibility clear.48examples:49 - input: |50 # Good scenario:51 build.sh and test_build.sh52 deploy.sh and test_deploy.sh5354 # Bad scenario:55 build.sh (no test script)56 output: "All .sh files have matching test_ scripts for cross-platform testing"57metadata:58 priority: high59 version: 1.060</rule>
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| imazen/imageflow.cursor/rules/ci.mdc · 4.4k | Cursor rules | setupbuildtestarch+3 | 79/100 | 14 days ago | |
| imazen/imageflow.cursor/rules/creating-rules.mdc · 4.4k | Cursor rules | do-notagent-behaviour | 11/100 | 14 days ago | |
| imazen/imageflow.cursor/rules/git-commits.mdc · 4.4k | Cursor rules | git | 30/100 | 14 days ago | |
| imazen/imageflow.cursor/rules/json-api.mdc · 4.4k | Cursor rules | no sections | 16/100 | 14 days ago | |
| imazen/imageflow.cursor/rules/rust.mdc · 4.4k | Cursor rules | no sections | 30/100 | 14 days ago | |
| imazen/imageflow.cursor/rules/ffi.mdc · 4.4k | Cursor rules | no sections | 16/100 | 14 days ago | |
| imazen/imageflowCLAUDE.md · 4.4k | CLAUDE.md | buildteststylegit+2 | 85/100 | 14 days ago | |
| imazen/imageflow.cursor/rules/riapi.mdc · 4.4k | Cursor rules | no sections | 30/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| ThanhTrunggDEV/DontBeLazy.cursor/rules/rust-testing.mdc · 6 | Cursor rules | teststyletesting-strategy | 90/100 | 14 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/dart-testing.mdc · 6 | Cursor rules | teststyletypestesting-strategy | 85/100 | 14 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/dart-coding-style.mdc · 6 | Cursor rules | lint-formatstyletypesdo-not | 84/100 | 14 days ago | |
| quinnjr/skia-rs.cursor/rules/commands.mdc · 29 | Cursor rules | buildtestlint-formatgit+4 | 82/100 | 14 days ago | |
| hashintel/hash.cursor/rules/rust-testing-strategy.mdc · 1.6k | Cursor rules | testlint-formatstyletesting-strategy | 81/100 | 14 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/rust-security.mdc · 6 | Cursor rules | stylesecuritydatabasedo-not | 80/100 | 14 days ago | |
| imazen/imageflow.cursor/rules/ci.mdc · 4.4k | Cursor rules | setupbuildtestarch+3 | 79/100 | 14 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/dart-hooks.mdc · 6 | Cursor rules | lint-formatarchtesting-strategygit+1 | 78/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/imazen-imageflow-cursor-rules-bash)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.