Regression Ledger
ASecurity| `code-quality-plugin:code-lint` — a skill whose entire job is "run the right linter" — shipped four `{{ if PROJECT_TYPE == "python" }}` / `{{ endif }}` blocks. **Claude Code renders nothing in a skill body**, so all four language branches arrived at the agent verbatim, `PROJECT_TYPE` was never bound anywhere in the skill, and both the language selection and the `${1:-.}` / `${2:+--fix}` shell-parameter substitution were left as an exercise. Silent by construction: the skill loads, every str...
- 60 stars
- 0 votes
- 0 copies
- 3 views
- Added November 9, 2026
Works with
Security analysis
100/100Pro scans all 21 files and shows the line behind each finding
npx -y skills add laurigates/claude-plugins --skill regression-ledger --agent claude-codeAre you the author of Regression Ledger?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/laurigates-regression-ledger-claude-plugins)| `code-quality-plugin:code-lint` — a skill whose entire job is "run the right linter" — shipped four `{{ if PROJECT_TYPE == "python" }}` / `{{ endif }}` blocks. **Claude Code renders nothing in a skill body**, so all four language branches arrived at the agent verbatim, `PROJECT_TYPE` was never bound anywhere in the skill, and both the language selection and the `${1:-.}` / `${2:+--fix}` shell-parameter substitution were left as an exercise. Silent by construction: the skill loads, every structural lint passes, and the agent quietly picks a branch (or pastes `{{ endif }}` into a shell). A repo-wide sweep found the same defect in **four** more skills — `tools-plugin:deps-install` (7 `PACKAGE_MANAGER` branches), `project-plugin:project-init` (`{{ if $3 == "--github" }}`), `typescript-plugin:bun-add` (inline `{{ if DEV }}` inside the one fenced command), and `testing-plugin:test-analyze` (Handlebars `{{#if ARG2}}` / `{{/if}}`). `.claude/rules/agentic-optimization.md` § Environment Detection was **teaching** the pattern (`{{ if CI }}--frozen-lockfile{{ endif }}`), which is where it propagated from. | All five rewritten to the same shape: an explicit **detection step** the agent performs (marker files / lock files / bound `$ARGUMENTS`) followed by a **lookup table** it reads, with every command written against a named placeholder the Parameters section says the *caller* supplies. The rule's example was replaced with a lookup table plus a real shell conditional (scaffold-fix-backport: fixing the instances without the generator leaves the next author to repeat it). | `scripts/check-unrendered-templates.sh` (+ `scripts/tests/test-check-unrendered-templates.sh`, 58 assertions) — SEMANTIC and **mutation-verified**: eleven neutered rules, all killed. It EXECUTES the guard against the **verbatim** pre-fix bodies (all five reproduced as fixtures, 34 markers reported by name), and weights the false-positive half equally, since a guard that flags legitimate Go/Helm chart templates gets disabled: trim markers / `{{ end }}` / `$.Values` must **not** be flagged, and a `.claude/worktrees/` + `dist/` copy must be pruned rather than double-counted. Two defects were found by the mutation pass and would otherwise have shipped: (1) the Go `$`-rooted skip was written as a bare `$`, which silently swallowed project-init's **shell positional** `{{ if $3 == … }}` — the discriminator is `$.`, not `$`; (2) the Go dot rule was written as `.*`, which also matched the `...` ellipsis and made the ellipsis rule dead code — narrowed to `.[A-Za-z]*`, so TEST G now kills its own mutation; (3) discovery reverted to an absolute scan base makes the guard scan **nothing** from inside a worktree — the exact #2219/#2290 defect, now pinned. The keyword set gained `for`/`endfor` and Handlebars `#each`/`/each` from the concurrent PR #2284, whose narrower guard covered loop forms this one initially missed; Go's `range` is deliberately EXCLUDED (the one loop keyword with four legitimate rendered uses in the corpus), and that exclusion is falsifiable — TEST N carries a **bare** `{{ range $k, $v := … }}` with no trim marker, since the trim-marker forms are skipped structurally whatever the keyword set is and would let `range` back in unnoticed. Guard integrity throughout: the fixed-shape fixture must report `FILES_SCANNED=1` / `FILES_EXEMPT=0` (otherwise every "clean" assertion is vacuous), and TEST F asserts the render-directive exemption is what exempts by feeding the **identical** markers without the declaration and requiring exit 1. | issue #2265 |
Files in this skill
- 0-13-plugin-agents-ran-on-sonnet-haiku.md
- 0-68-shell-form-plugin-hook-commands-command.md
- 0-bash-test-bash-jq-etc-causes-20.md
- 0-check-agent-model-sh-rejected-every-model.md
- 0-comfyui-node-scaffold-emitted-setup-bun-steps.md
- 0-configure-all-aborted-at-invocation-with-shell.md
- 0-configure-all-hardcoded-a-19-entry-component.md
- 0-evaluate-matrix-skill-md-told-the-agent.md
- 0-evaluate-plugin-scripts-inspect-eval-sh-plugin.md
- 0-evaluate-plugin-scripts-tests-test-smoke-headless.md
- 0-feedback-session-fails-in-a-repo-without.md
- 0-find-claude-plugins-blocked-by-sandbox-security.md
- 0-gc-007-s-fixture-setup-used-printf.md
- 0-git-repo-agent-blueprint-onboard-writes-blueprints.md
- 0-github-actions-auth-security-covered-claude-prompt.md
- 0-github-workflows-skill-splitter-yml-selected-split.md
- 0-grade-deterministic-py-crashed-with-a-valueerror.md
- 0-grade-deterministic-py-run-command-trusted-the.md
- 0-grep-package-json-pyproject-toml-requirements-txt.md
- 0-heading-section-citations-named-headings-that-do.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.