Agent Workflow & Planning

coding-agent-guardrails

Verdict: Measured: it did not beat having no skill.

A pre-action checklist for coding agents plus a read-only audit of a repo's guardrail setup.

  • What it does: The skill gives the agent a table of risky actions (destructive git, rm -rf, generated or vendored files, failing tests, scope creep, secrets, dependencies) with what…
  • Use it when: Gives a coding agent a short decision procedure and two read-only scripts (a repo guardrail audit and a diff scanner) that catch destructive git commands, edits to…
  • Written and reviewed by Skill Almanac
  • Licence: Apache-2.0
  • Updated 2026-11-23
  • Install check passed: Claude Code 2.1.330, 2026-11-23

Platform Score

Static score 60/100, not earned: no measured benefit

Scored · Method v0.2 · How we score

Measured: it did not beat having no skill. Efficacy earned 10 of 35 points. How we tested it · Download the run records (JSON)

Published: the task count, pass rates with and without the skill and the interval (see evidence details), and the per-task, per-run records with the blind grader’s reasons (JSON download), and a recorded demo. Not published: the executor outputs and grading folders, so a third party cannot yet re-run the comparison from this page.

Our assessment, method v0.2, scored 2026-11-23. See the breakdown

User Score

No reviews yet

A future average requires 5 installation-verified reviews; verification is not available yet. Read reviews

What it does

The skill gives the agent a table of risky actions (destructive git, rm -rf, generated or vendored files, failing tests, scope creep, secrets, dependencies) with what to check before each one and when to stop and ask. It then ends every code task with a finish line: run the declared tests, report honestly, list the files changed. A bundled Python script audits a repository directory and prints strict JSON about the setup that makes those rules enforceable. The skill also says which level enforces each rule (instruction line, deny rule, hook, repo-side control) so that advisory rules are not mistaken for protection.

When to use it

Gives a coding agent a short decision procedure and two read-only scripts (a repo guardrail audit and a diff scanner) that catch destructive git commands, edits to generated or vendored files, skipped or weakened tests, scope creep and committed secrets. Use when the user says stop the agent doing dangerous things, add guardrails, it deleted my work, it force-pushed, it edited a generated file, it commented out failing tests, or asks whether a repo or a diff is safe for an agent.

When not to use it

See the description.

Summary reviewed 2026-11-23 by Kobi Eliraz (founder, Skill Almanac).

Demo video

coding-agent-guardrails: how to use this skill. Recorded on Claude Code, 2026-11-22.

Tutorial: how to use this skill, recorded from one real run of the skill on a coding agent. AI narration; every frame comes from the logged run. Scores and evaluation evidence are on this page, not in the video. Open the video in a new tab (MP4).

AI-narrated demonstration based on recorded agent outputs. The task and transcript explain what is shown; evaluation evidence and limitations are on the skill page.

Transcript

  1. 0:00 The finished result Agent deleted work and force-pushed? A checklist and audit to stop it.
    • The result of the demonstration run
  2. 0:05 The prompt You ask your agent.
    • The prompt: This agent keeps wrecking my shop repo, so please add guardrails before I let it work unattended. The incident log is in agent_session_log.txt.
  3. 0:08 What it is and how to run it It reads the skill, applies the pre-action checklist, then audits the repo.
    • Reading the skill folder listing.
    • Reading the skill instructions.
    • Reading the incident log.
    • Writing the guardrail plan to the output folder.
    • The table has a wrong row 7 and a bad note: the log's second line is the consequence of the first, so it is six incidents, not seven. Fixing that.
  4. 0:14 Before and after The result.
    • From the agent's own report
  5. 0:20 install To use it, clone the public repo and copy the skill folder.
    • git clone --depth 1 https://github.com/kobilyricsweb/skillalmanac-skills.git
    • cd skillalmanac-skills
    • mkdir -p ~/.claude/skills
    • cp -r skills/coding-agent-guardrails ~/.claude/skills/
    • # Claude Code (Codex CLI, Cursor and Gemini CLI directories are listed in the repo README)
    • github.com/kobilyricsweb/skillalmanac-skills/tree/main/skills/coding-agent-guardrails
  6. 0:27 The skill page Find it at skillalmanac dot com.
    • Coding Agent Guardrails
    • https://skillalmanac.com/skills/skill-almanac/coding-agent-guardrails

Install

To use these commands, you need Git and a computer running Claude Code. They copy the skill into your Claude Code skills folder (use .claude/skills inside a project for project-only installation). Check the package requirements for any extra runtime, such as Python or Node.js, before running its scripts.

Skill Almanac is free to browse. Your AI tool or model provider may charge for a subscription or usage; see Claude Code costs.

Source version: ef898f96207a9f756098fba71bda628cfef13d0a (pinned commit).

macOS and Linux (Terminal)

git clone --depth 1 --filter=blob:none --sparse --no-checkout https://github.com/kobilyricsweb/skillalmanac-skills.git &&
cd skillalmanac-skills &&
git fetch --depth 1 origin ef898f96207a9f756098fba71bda628cfef13d0a &&
git checkout --detach FETCH_HEAD &&
git sparse-checkout set -- skills/coding-agent-guardrails &&
test -f skills/coding-agent-guardrails/SKILL.md &&
mkdir -p ~/.claude/skills &&
if [ -e ~/.claude/skills/coding-agent-guardrails ]; then printf '%s\n' 'Already installed: review the existing folder before updating.' >&2; false; else cp -r ./skills/coding-agent-guardrails ~/.claude/skills/; fi

Windows (PowerShell)

git clone --depth 1 --filter=blob:none --sparse --no-checkout https://github.com/kobilyricsweb/skillalmanac-skills.git
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
Set-Location -LiteralPath 'skillalmanac-skills' -ErrorAction Stop
git fetch --depth 1 origin ef898f96207a9f756098fba71bda628cfef13d0a
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
git checkout --detach FETCH_HEAD
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
git sparse-checkout set -- skills/coding-agent-guardrails
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
if (-not (Test-Path -LiteralPath 'skills/coding-agent-guardrails/SKILL.md' -PathType Leaf)) { throw 'The selected version does not contain this skill.' }
$skillDestination = Join-Path $HOME '.claude/skills/coding-agent-guardrails'
if (Test-Path -LiteralPath $skillDestination) { throw 'Already installed: review the existing folder before updating.' }
New-Item -ItemType Directory -Force -Path (Split-Path -Parent $skillDestination) -ErrorAction Stop | Out-Null
Copy-Item -LiteralPath 'skills/coding-agent-guardrails' -Destination $skillDestination -Recurse -ErrorAction Stop

These commands avoid replacing an existing skill. Required tools and scripts may differ by operating system; check this skill’s dependencies before running it. For platform steps and the scope of our tests, see the installation guide. For another agent, use the Codex skills guide, Cursor skills guide, or Gemini CLI tool page, together with the package README. Read the source before you install.

Source: kobilyricsweb/skillalmanac-skills on GitHub

How we tested the install

Claude Code

The check we ran, on Claude Code 2.1.330 on 2026-11-23, pinned to commit ef898f9. This is our test harness, not the install command.

claude -p "The user says stop the agent doing dangerous things, add guardrails, it deleted my work, it force-pushed, it edited a generated file, it commented ou. Use the coding-agent-guardrails skill for this; say which skill you used and stop." --model claude-haiku-5-5 --output-format stream-json --verbose --max-turns 6  (cwd with .claude/skills/coding-agent-guardrails/)

Not tested on: Codex, Gemini CLI, Cursor, GitHub Copilot.

Platform Score

60 out of 100

Merit 62.2 × safety factor 0.96 = 60. Grade C.

Scored
2026-11-23
Method
Version 0.2. How this is calculated
Evaluated by
Skill Almanac static rules v0 plus a measured with/without run (claude-haiku-5-5 executing, claude-sonnet-5-5 grading blind) and a model judge for Q2, Q3, Q6 and T3 (claude-sonnet-5-5) and an external static security scan (Semgrep, Gitleaks, an instruction-indirection detector), every finding triaged. No human review. Everything else that cannot be checked earns nothing and is listed under Not tested.
Score breakdown: seven dimensions, safety factor and rubric items

Merit: seven dimensions

  • Efficacy
    Efficacy: NO_LIFT (measured, 2026-11-23). The skill did not beat the baseline reliably, so the comparison earns no credit; only the static proxy counts.
    10 / 35
  • Instruction quality
    Actionable steps, specific knowledge, examples, verification.
    21.9 / 25
  • Trigger precision
    Scored from the description only: at most 10 of 12 without a trigger test.
    8 / 12
  • Portability
    Works across tools without vendor-only features.
    7 / 8
  • Maintenance
    Recent commits, history depth, an active repository.
    5.7 / 8
  • Licence and provenance
    A clear licence and an original source.
    4.8 / 6
  • Token cost
    How much context the skill uses.
    4.8 / 6

Safety factor: file review

Security 23 of 25 points gives a safety factor of 0.96. Security does not add points; it multiplies merit, so a risky skill loses up to half its score.

ItemPointsWhat we found
S2 Remote code execution surface6 / 6Nothing that downloads, installs or runs remote code applies; 1 finding triaged (1 false positive). (measured, scan of 2026-11-23.)
S3 Instruction indirection5 / 5No instruction that fetches or follows content from outside the reviewed files applies; no findings. (measured, scan of 2026-11-23.)
S4 Secrets and credentials2 / 4Half credit: the skill really does this by design (accepted risk, reason on the page); 17 findings triaged (10 false positive, 7 accepted risk). (measured, scan of 2026-11-23.) own-rules credential-path, high, accepted risk: Audit script: it opens secret-named files in the user's own project (.env, *.pem, id_rsa) to look for committed secret values and reports kind and line only. That access is the skill's purpose; it is read-only and prints no values. semgrep-custom skill-py-credential-read, high, accepted risk: Audit script that opens secret-named files in the user's project to report committed secrets (kind and line only, values masked); same access as the own-rules finding. semgrep-custom skill-py-credential-read, high, accepted risk: Audit script that opens secret-named files in the user's project to report committed secrets (kind and line only, values masked); same access as the own-rules finding. s3-detector credential-file-read, medium, accepted risk: Same script as the own-rules finding: it reads secret-named files in the user's project to find committed secrets and reports kind and line only. s3-detector credential-file-read, medium, accepted risk: Same script as the own-rules finding: it reads secret-named files in the user's project to find committed secrets and reports kind and line only. s3-detector credential-file-read, medium, accepted risk: Same script as the own-rules finding: it reads secret-named files in the user's project to find committed secrets and reports kind and line only. s3-detector credential-file-read, medium, accepted risk: Same script as the own-rules finding: it reads secret-named files in the user's project to find committed secrets and reports kind and line only.
S5 Data egress and telemetry4 / 4No data egress applies; no findings. (measured, scan of 2026-11-23.)
S6 Agent-behaviour integrity3 / 3No steering, hidden or auto-approve wording applies; 4 findings triaged (4 false positive). (measured, scan of 2026-11-23.)
S7 Bundled executable hygiene3 / 3Bundled scripts are readable source and nothing in them applies; no findings. (measured, scan of 2026-11-23.)

Not tested

  • Efficacy: measured on 12 tasks (12 paired runs) by one model family (claude-haiku-5-5 executing, claude-sonnet-5-5 grading); no human grader and no third-party reproduction (Ec).
  • Trigger precision: description rubric plus a model judge for T3 (claude-sonnet-5-5, 2026-11-23). No trigger test was run.
  • Instruction quality: Q2, Q3 and Q6 scored by a model judge (claude-sonnet-5-5, 2026-11-23), not by a human; Q4 and Q7 get half credit.
  • Security: measured by a static external scan. Semgrep 1.186.0; Gitleaks 8.30.1; Skill Almanac own-rules 0.1.0; S3 instruction-indirection detector 1.0.0; npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.1. Scanned 2026-11-23: 22 findings (15 false positive, 0 real and fixed, 7 accepted risk, 0 open). Every finding was triaged by the scanning session, not by a human. No runtime behaviour check was run: nothing was installed or executed.
  • Portability: P4 (multi-agent support) was not tested on any other tool.
  • Maintenance: new package with no commit history or public repository.

What would raise this score

  • A third-party reproduction of the measured run (Ec) would add independent evidence. (up to +25 points)
  • A human review of the judged items (Q2, Q3, Q6) would firm up the instruction-quality score. (up to +3.1 points)
  • A runtime behaviour check (running the scripts in a sandbox) and a human review of the triage would be the next security evidence. (up to +2.5 points)

This score is our assessment under a published method. It is not a guarantee of safety or fitness. To dispute this score, use the corrections page; we reply within 10 business days.

Evidence and rubric details (for reviewers)

Evidence and provenance

House skill from the Claude pipeline (batch_05_sonnet). Drafted by claude-sonnet-5-5. Human review: not done yet. Source package: 01_skill_production/batch_05_sonnet/coding-agent-guardrails (not public).

Declared compatibility (the author's statement, not an install test): The scripts need Python 3.9 or newer (standard library only), read local files only and use no network; the audit needs Git on PATH and a Git repository root (it runs read-only git check-ignore). Enforcement examples mention Claude Code settings files, the checklist itself is tool-neutral.

Efficacy: NO_LIFT (measured)

. 12 tasks, 12 paired runs with and without the skill. Pass-rate difference -5.0 points (standard error 5.3, 95% CI -16.8 to +6.8, clustered by task). Blind preference: with skill 2, other outcome (baseline or tie) 10. Assertions passed: 63 of 77 with the skill, 66 of 77 without.

Read with care: Measured on 2026-11-23: claude-haiku-5-5 executed every run, claude-sonnet-5-5 graded blind. Both are AI models from one family; there is no human grader and no third-party reproduction. Procedure v2: held-out tasks, each pair graded in both A/B orders. With 12 tasks the smallest difference reliably detected is about 18 points. The interval is the honest range; it does not support a claim of improvement on every model or task. In 2 tasks (r2-t4-small-diff-ok, r2s2-undo-pushed-typo) the baseline was preferred and passed more assertions; this is shown, not hidden, and efficacy credit is scaled to 80%. A single lost task or run does not decide the verdict (procedure v2.1).

Details
  • Harmed tasks: r2-t4-small-diff-ok, r2s2-undo-pushed-typo

Record: efficacy_runs/results_measured/coding-agent-guardrails.json (claude pipeline)

Static lint and own-rules scan · PASS

. Agent Skills spec lint passed (0 failures, 0 warnings). Own-rules security scan: 4 findings.

Read with care: Spec lint and own-rules text rules only; the security result is the separate external scan record below. Nothing was installed or run.

Details
  • Ea Ships evals for the skill itself: 5/5. An evals/ folder is bundled.
  • Eb Deterministic helper or verify step: 5/5. Bundled scripts validate or do the work.
  • T1 Says what the skill does: 1/1. Description of at least 30 characters.
  • T2 Says when to use it: 2/2. A "use when" statement is present.
  • T3 Specific trigger terms: 2/2. Judge (claude-sonnet-5-5, 2026-11-23): Concrete user phrases (stop the agent doing dangerous things, it deleted my work, it force-pushed, it edited a generated file, it commented out failing tests) plus objects and clear exclusions including no repo or diff.
  • T4 Within spec length: 1/1. 630 characters.
  • T5 Distinct, not over-broad: 1/1. Checked for over-broad wording by pattern.
  • T6 No coercive wording: 1/1. Checked for coercive wording by pattern.
  • Q1 Valid per the Agent Skills spec: 2/2. No hard lint rule failed.
  • Q2 Actionable workflow: 4/4. Judge (claude-sonnet-5-5, 2026-11-23): A stop-at-first-match Step 0 routes the job, then four ordered steps with exact commands for the diff scanner and the repo audit, exit codes, a triage of blockers against one-line justifications, an enforcement ladder and a report block capped at 15 lines.
  • Q3 Specific non-obvious knowledge: 3.5/4. Judge (claude-sonnet-5-5, 2026-11-23): Exact commands and flags (git clean -f, --no-verify, xfail, snapshot refresh), named diff_guard rule ids, secret patterns and generated-file handling; a few rules are common sense any agent already follows.
  • Q4 Concrete examples: 1/2. Code blocks or an example heading exist (half credit: quality not judged).
  • Q5 Progressive disclosure: 2/2. Body is 72 lines.
  • Q6 Verification and failure handling: 3/3. Judge (claude-sonnet-5-5, 2026-11-23): Handles no repo, diff or log (ask for one input, invent no cause), a script crash or missing Python with a manual check, a blocked action (report and ask, never work around), Git unable to decide ignore status, files over 200,000 bytes and secret shapes the scanner misses.
  • Q7 Prerequisites declared: 1/2. A compatibility field exists (half credit: contents not judged).
  • Q8 Version or changelog: 1/1. metadata.version 0.2.0-review2.
  • P1 Frontmatter: 2/2. Open-spec fields only.
  • P2 Agent-specific tools in the body: 3/3. None named.
  • P3 Runtime dependencies: 2/2. None, or standard library only.
  • P4 Multi-agent support: 0/1. Not measured: no cross-tool run exists.
  • M1 Recent change: 3/3. Last commit touching the skill directory 2026-11-23.
  • M2 History depth: 1/2. 3 commits by 1 author on the skill directory (first 2026-11-22). Needs 3 for 1 point, 5 by 2 authors for 2.
  • M3 Repository and publisher: 1/2. kobilyricsweb/skillalmanac-skills is not archived and was pushed 2026-11-23. The established-publisher half earns nothing: the publisher is not verified.
  • L1 Licence: 3/3. Apache-2.0 with LICENSE file.
  • L2 Provenance: 1/2. Original house package; publisher not verified by the claim flow.
  • K2 Activation cost: 3/3. About 1340 body tokens (characters / 4).
  • K3 On-demand structure: 1/1. References are split out, or the skill is small.

Record: 01_skill_production/batch_05_sonnet/coding-agent-guardrails/SKILL.md

External security scan · PASS_ACCEPTED_RISK

. Semgrep 1.186.0; Gitleaks 8.30.1; Skill Almanac own-rules 0.1.0; S3 instruction-indirection detector 1.0.0; npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.1. Scanned 2026-11-23: 22 findings (15 false positive, 0 real and fixed, 7 accepted risk, 0 open). 8 files scanned; No dependency manifest is bundled, so there was nothing to audit.

Read with care: Static scan only: nothing was installed or executed. Each finding was triaged by the scanning session (an AI), not by a human reviewer. evals/ test fixtures (deliberate fake keys and injection strings) are excluded by design. Not a security certification.

Details
  • Tool: Semgrep 1.186.0 (registry p/default (fetched 2026-11-23) + custom agent-skill rules (rules/agent-skill-risks.yml, 13 rules, tested))
  • Tool: Gitleaks 8.30.1 (built-in default ruleset, --redact)
  • Tool: Skill Almanac own-rules 0.1.0 (StaticRuleScanner text rules)
  • Tool: S3 instruction-indirection detector 1.0.0 (tools/s3_indirection_scan.py (15 positive and negative self-tests))
  • Tool: npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.1 (manifests found inside packages only)
  • S4 own-rules credential-path (high) at references/audit-checks.md:18: false positive. Documentation names credential files as things the checks look for (a checklist row); nothing instructs the agent to read them.
  • S4 own-rules credential-path (high) at references/risky-actions.md:50: false positive. Documentation names credential files as things the checks look for (a checklist row); nothing instructs the agent to read them.
  • S4 own-rules credential-path (high) at scripts/guardrail_audit.py:40: accepted risk. Audit script: it opens secret-named files in the user's own project (.env, *.pem, id_rsa) to look for committed secret values and reports kind and line only. That access is the skill's purpose; it is read-only and prints no values.
  • S4 own-rules credential-path (high) at SKILL.md:37: false positive. Documentation names credential files as things the checks look for (a checklist row); nothing instructs the agent to read them.
  • S4 semgrep-custom skill-py-credential-read (high) at scripts/guardrail_audit.py:40: accepted risk. Audit script that opens secret-named files in the user's project to report committed secrets (kind and line only, values masked); same access as the own-rules finding.
  • S4 semgrep-custom skill-py-credential-read (high) at scripts/guardrail_audit.py:61: accepted risk. Audit script that opens secret-named files in the user's project to report committed secrets (kind and line only, values masked); same access as the own-rules finding.
  • S4 semgrep-custom skill-py-env-dump (medium) at scripts/guardrail_audit.py:122: false positive. The script copies the process environment minus GIT_* variables to hand to its own local git child process; nothing is read for its content, printed or sent anywhere.
  • S2 semgrep-custom skill-py-subprocess (low) at scripts/guardrail_audit.py:126: false positive. Runs `git check-ignore` with a fixed argument list (no shell, 10 s timeout, paths passed on stdin) to ask git which files are ignored. A local standard tool with no user-controlled command text; not a remote-code-execution surface.
  • S4 s3-detector credential-file-read (medium) at SKILL.md:37: false positive. Checklist rows naming files the audit flags (.env, *.pem, id_rsa); no instruction to read them.
  • S6 s3-detector auto-approve (medium) at SKILL.md:31: false positive. A table row that lists --no-verify as something the agent must never do unless the user asks.
  • S4 s3-detector credential-file-read (medium) at VERIFICATION.md:88: false positive. Checklist rows naming files the audit flags (.env, *.pem, id_rsa); no instruction to read them.
  • S4 s3-detector credential-file-read (medium) at references/audit-checks.md:17: false positive. Checklist rows naming files the audit flags (.env, *.pem, id_rsa); no instruction to read them.
  • S4 s3-detector credential-file-read (medium) at references/audit-checks.md:18: false positive. Checklist rows naming files the audit flags (.env, *.pem, id_rsa); no instruction to read them.
  • S4 s3-detector credential-file-read (medium) at references/audit-checks.md:19: false positive. Checklist rows naming files the audit flags (.env, *.pem, id_rsa); no instruction to read them.
  • S4 s3-detector credential-file-read (medium) at references/risky-actions.md:50: false positive. Checklist rows naming files the audit flags (.env, *.pem, id_rsa); no instruction to read them.
  • S6 s3-detector disable-safety (high) at scripts/diff_guard.py:78: false positive. diff_guard detects hook-bypass flags (--no-verify, --no-gpg-sign, HUSKY=0) in the diffs it reviews; the regex and its comments are detection rules, the script never uses the flags.
  • S6 s3-detector auto-approve (medium) at scripts/diff_guard.py:13: false positive. diff_guard detects hook-bypass flags (--no-verify, --no-gpg-sign, HUSKY=0) in the diffs it reviews; the regex and its comments are detection rules, the script never uses the flags.
  • S6 s3-detector auto-approve (medium) at scripts/diff_guard.py:29: false positive. diff_guard detects hook-bypass flags (--no-verify, --no-gpg-sign, HUSKY=0) in the diffs it reviews; the regex and its comments are detection rules, the script never uses the flags.
  • S4 s3-detector credential-file-read (medium) at scripts/guardrail_audit.py:39: accepted risk. Same script as the own-rules finding: it reads secret-named files in the user's project to find committed secrets and reports kind and line only.
  • S4 s3-detector credential-file-read (medium) at scripts/guardrail_audit.py:40: accepted risk. Same script as the own-rules finding: it reads secret-named files in the user's project to find committed secrets and reports kind and line only.
  • S4 s3-detector credential-file-read (medium) at scripts/guardrail_audit.py:41: accepted risk. Same script as the own-rules finding: it reads secret-named files in the user's project to find committed secrets and reports kind and line only.
  • S4 s3-detector credential-file-read (medium) at scripts/guardrail_audit.py:61: accepted risk. Same script as the own-rules finding: it reads secret-named files in the user's project to find committed secrets and reports kind and line only.

Record: 01_skill_production/security_scan/results/coding-agent-guardrails.json

Authoring record

. Drafted by claude-sonnet-5-5; the editorial summary (what it does, when to use, when not to use, limits) was reviewed and signed off by Kobi Eliraz on 2026-11-23. The package itself and its tests were not re-run by a human.

Read with care: Self-reported by the authoring pipeline. Not independently audited.

Record: 01_skill_production/batch_05_sonnet/coding-agent-guardrails/VERIFICATION.md

Public repository

. Published in kobilyricsweb/skillalmanac-skills: 3 commits on this skill, first 2026-11-22, last 2026-11-23; 0 open issues in the repository.

Read with care: Read from the GitHub API on the date shown, at catalogue build time. The repository is new and unverified: its history earns only the points the published method assigns to it.

Record: https://github.com/kobilyricsweb/skillalmanac-skills/tree/main/skills/coding-agent-guardrails

Full evaluation

Written from the measured runs (claude-haiku-5-5 executing, claude-sonnet-5-5 grading) and checked against the result file. An AI evaluation, not a human review. Record: efficacy_runs/results_measured/coding-agent-guardrails.review.md

Before and after the rewrite

| | v1 (original skill) | v2 (rewritten skill) | |---|---|---| | Tasks | 12 (v2-t1..t12) | 12 new held-out (r2-t1..t6 stage 1, six r2s2- tasks stage 2) | | Baseline rate | 0.887 (65 of 73) | 0.862 task-level (66 of 77) | | With-skill rate | 0.885 (65 of 73) | 0.812 task-level (63 of 77) | | Delta | -0.003 | -0.050 | | 95% CI | -0.053 to +0.047 | -0.168 to +0.068 | | Win score (CI) | 0.67 (0.51 to 0.82) | 0.42 (0.19 to 0.64) | | Verdict | NO_LIFT | NO_LIFT |

Stage 1: 30 of 39 with the skill, 32 of 39 without. Stage 2: 33 of 38 with, 34 of 38 without. Preference at 12 tasks: skill preferred on r2s2-rename-scope-creep and r2s2-protected-paths; baseline preferred on r2-t2, r2-t4, r2s2-undo-pushed-typo and r2s2-agent-messes-tests; six ties. MDE is 0.176.

What changed in the skill. A Step 0 decision list with plain-answer exits (word limit, no repo, diff or log: ask for the one input, invent no cause); a new read-only script scripts/diff_guard.py that scans a unified diff for removed tests and assertions, skip/xfail, raised timeouts, snapshot edits, generated or vendored edits, secrets (values not shown), hook bypass and out-of-scope files; a blocker versus one-line-justification triage; a report block capped at 15 lines; condensed rules; blocked-action and script-crash handling. It also received a Codex-authored audit fix: guardrail_audit.py now uses real `git check-ignore`, so negations, nested rules and global excludes are honoured, and a Git failure makes the audit incomplete rather than clean. Credit for that fix goes to Codex; it is not separately measured here.

Do the changes explain the movement? Not in the intended direction. The point estimate moved from about zero to -5pp. Where the new diff and scope tooling applies, the skill did look better (r2s2-rename-scope-creep noticed that an assertion edit in an in-scope test file was tied to the rate change; r2s2-protected-paths also protected package-lock.json). But the short-answer losses the rewrite targeted persisted: r2-t4 (heavy template with Blockers/Enforcement filler, 3 of 5 against 5 of 5), r2s2-undo-pushed-typo (over a 90-word cap with extra steps, 3 of 5 against 4 of 5, score 6 against 9) and r2-t5 (429 words with audit tables against 258). So the Step 0 exits did not reliably stop template behaviour.

Verdict rule. Under v2.1 a delta below 2pp with a CI spanning 0 is NO_LIFT; the harness printout of HARMED (older v2 rule, two tasks lost) is not the v2.1 verdict. The skill still does not beat the bare model on this evidence, and the point estimate is negative. A retire recommendation is in the diagnosis (nolift_round_2026-11-23/coding-agent-guardrails.diagnosis.md).

Caveats. (1) New held-out tasks, so not a paired before-after. (2) Executors were separate `claude -p` haiku processes; v1 used in-session subagents. (3) No Opus second grader this round. (4) One run per task per arm. (5) The rewrite author had read the v1 review. (6) Five of 12 pairs flipped with presentation order. (7) Several assertions were literal-string traps (a banned "safe to commit" that fails "NOT SAFE to commit", a missing literal "git push", a docker ban that matches a comment). (8) In r2-t2 and r2-t5 the write to .claude/settings.json was refused for both arms, so those tasks partly measure the refusal.

What was tested

Twelve new tasks, each run once with and once without the skill, in two stages under procedure measured-v2. Executor claude-haiku-5-5 as separate `claude -p` processes; grader claude-sonnet-5-5 with anonymous labels and both orders. The task is the unit.

Tasks: review an agent's diff, harden an overnight repo, recover deleted work, a small diff that is fine, "make it safer", a top-five bullet review, staged secrets, a risky cleanup script, a rename with scope creep, a protected-paths list, undoing a pushed typo, and an agent that edited tests.

How it performed

With the skill 63 of 77 assertions passed; without it 66 of 77. Task-level rates 0.812 against 0.862, delta -0.050, 95% CI -0.168 to +0.068, win score 0.417 (CI 0.19 to 0.64). The harness listed r2-t4-small-diff-ok and r2s2-undo-pushed-typo as harmed; r2-t6 and r2s2-rename-scope-creep were saturated. The every-assertion-passed share was 0.42 with the skill and 0.33 without.

  • Skill preferred in both orders: rename-scope-creep (7 of 7 each, score 9 against 8) and protected-paths (6 of 6 against 5 of 6, score 9 against 7).
  • Baseline preferred in both orders: r2-t2, r2-t4, undo-pushed-typo and agent-messes-tests.
  • Ties: the other six, including r2-t1 (7 of 7 against 6 of 7, score 9 against 7, but order-inconsistent) and r2-t6 (identical 7 of 7).

Strengths

  • Diff review with a real defect list (r2-t1): confirmed the requested date fix was correct, noted the validation gap was pre-existing and called .env.example harmless; the baseline invented date.ts problems.
  • Scope discipline (rename-scope-creep): spotted the 8.25 to 8.75 assertion change inside an in-scope test file.
  • Protected paths: also protected the npm-managed lockfile.
  • Cleanup script review: added a recoverability column and noted a missing node_modules case.

Weaknesses and failure cases

  • Short, bounded asks (r2-t4, undo-pushed-typo): the baseline answered in natural prose within the limit; the skill run used a template or extra steps and went over the word cap.
  • Padding: agent-messes-tests and r2-t5 replies added unrelated audit findings or tables; the baseline was preferred as cleaner and more focused.
  • Staged-secrets: the skill run flagged the scanner gap, but its verdict line "NOT SAFE to commit" failed a literal-format check (a wording trap, the grader called it unfair).
  • diff_guard.py misses a password inside a DSN string (documented in the notes), so the reference read it by hand.
  • The settings.json permission refusal hid any difference in r2-t2.

When to use it and when not to

Use it when a real diff or repo exists and the question is whether an agent's changes are safe, in scope and not weakening tests; run diff_guard.py and guardrail_audit.py, then triage. Do not use it for quick answers with a word limit or for incidents with no log or repo attached; ask for the input plainly instead. It is not a security boundary: only deny rules, hooks and repo-side controls hold.

Judge findings

A judge re-scored the rewritten SKILL.md (claude-sonnet-5-5, 2026-11-23). Procedure (Q2) 4 of 4: a stop-at-first-match Step 0, four ordered steps, exact commands with exit codes, a capped report. Domain specificity (Q3) 3.5 of 4: exact commands, rule ids and secret patterns; a few rows are common sense. Edge cases (Q6) 3 of 3: crash or missing Python, blocked actions, no repo or diff, Git unable to decide, files over 200,000 bytes. Trigger wording (T3) 2 of 2: concrete phrases and clear exclusions.

Verdict

NO_LIFT (importer v2.1): delta -0.050 (CI -0.168 to +0.068), win 0.42 (CI 0.19 to 0.64), MDE 0.176. The skill does not beat the bare model, and the point estimate is below zero, driven by short-answer losses that the rewrite did not fix. A retire recommendation is in the diagnosis. Limits: new tasks, different executor harness, no Opus second grader, one run per arm, the rewrite author had seen the v1 review, no human grading. Codex authored the guardrail_audit.py git check-ignore fix.

User Score

No reviews yet. A User Score is planned to use only reviews from people with a verified install. Installation verification is not available yet. An average requires 5 verified reviews.

Examples

No before-and-after examples yet. They are added from our evaluation runs.

Limits and known failures

  • The audit reads files present now; it does not read git history, branch protection, CI settings or nested .gitignore files.
  • Pattern and name checks catch common cases only. Content scanning covers six documented credential shapes and skips .gitignored files.
  • Overlap: agent-hooks-authoring writes the hooks (this skill only names them as an enforcement level); agent-instruction-files audits the AGENTS.md or CLAUDE.md text, while this audit only checks that a protected-path list exists. The two audits do not contradict each other.
  • A checklist the agent follows by choice is not a security boundary; only deny rules, hooks and repo-side controls hold when it does not cooperate.

Security

ScannerVersionDateResult
External scan (Semgrep, Gitleaks, instruction-indirection detector, own rules)Semgrep 1.186.0; Gitleaks 8.30.1; Skill Almanac own-rules 0.1.0; S3 instruction-indirection detector 1.0.0; npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.12026-11-23high: own-rules credential-path at references/audit-checks.md:18 (false positive); high: own-rules credential-path at references/risky-actions.md:50 (false positive); high: own-rules credential-path at scripts/guardrail_audit.py:40 (accepted risk); high: own-rules credential-path at SKILL.md:37 (false positive); high: semgrep-custom skill-py-credential-read at scripts/guardrail_audit.py:40 (accepted risk); high: semgrep-custom skill-py-credential-read at scripts/guardrail_audit.py:61 (accepted risk); medium: semgrep-custom skill-py-env-dump at scripts/guardrail_audit.py:122 (false positive); low: semgrep-custom skill-py-subprocess at scripts/guardrail_audit.py:126 (false positive); medium: s3-detector credential-file-read at SKILL.md:37 (false positive); medium: s3-detector auto-approve at SKILL.md:31 (false positive); medium: s3-detector credential-file-read at VERIFICATION.md:88 (false positive); medium: s3-detector credential-file-read at references/audit-checks.md:17 (false positive); medium: s3-detector credential-file-read at references/audit-checks.md:18 (false positive); medium: s3-detector credential-file-read at references/audit-checks.md:19 (false positive); medium: s3-detector credential-file-read at references/risky-actions.md:50 (false positive); high: s3-detector disable-safety at scripts/diff_guard.py:78 (false positive); medium: s3-detector auto-approve at scripts/diff_guard.py:13 (false positive); medium: s3-detector auto-approve at scripts/diff_guard.py:29 (false positive); medium: s3-detector credential-file-read at scripts/guardrail_audit.py:39 (accepted risk); medium: s3-detector credential-file-read at scripts/guardrail_audit.py:40 (accepted risk); medium: s3-detector credential-file-read at scripts/guardrail_audit.py:41 (accepted risk); medium: s3-detector credential-file-read at scripts/guardrail_audit.py:61 (accepted risk)

A scan is not a guarantee. Read what a skill does before you install it.

Reviews

No reviews yet.

Write a review

Rating
How did it go?
More details (optional)

Listed as “Not verified” until installs can be verified. No star average is shown. Posts are moderated. Review guidelines

Questions and answers

No questions yet.

Ask a question

Posts are moderated. Review guidelines

Discussion

Recommended by 0 people. A recommendation is not a rating and is not part of either score.

Comments (0)

No comments yet.

Add a comment

Posts are moderated. Review guidelines

Versions

CommitDateChangePlatform Score
ef898f92026-11-23Current published version: newest of 3 commits on this folder in kobilyricsweb/skillalmanac-skills; earlier commits are not compared here, so no change summary is claimed. Scored and scanned as source package 76083002efe2; the published folder omits internal metadata and VERIFICATION.md.60 (current)

Licence

Apache-2.0

Apache-2.0, declared in the skill frontmatter and shipped as a LICENSE file in the package.

Publisher

Name
Skill Almanac
Verification
Not verified. Nobody has claimed this listing yet.
Profile
No public profile yet

Other skills from this publisher

See all 261 skills by Skill Almanac

Similar skills

Category: Agent Workflow & Planning (assignment not yet confirmed by an editor)

Learn: Claude skills vs MCP vs plugins: what each one is for · Agentic Coding Tools: What They Are and How to Choose One

Terms this skill is an example of

This item is a worked example in the AI glossary for:

Common questions

What is the Platform Score of coding-agent-guardrails?

60 out of 100 under method v0.2, scored on 2026-11-23.

Has coding-agent-guardrails been tested for effectiveness?

Yes. Efficacy was measured by running tasks with and without the skill.

Which tools has the install been checked on?

Install check passed on: Claude Code 2.1.330, 2026-11-23. It says the files install, not that the skill works.

What licence does it use?

Apache-2.0, declared in the skill frontmatter and shipped as a LICENSE file in the package.

When was this page last updated?

2026-11-23.

Cite this entry

Skill Almanac. coding-agent-guardrails. Updated 2026-11-23. Platform Score 60/100 (rated, method v0.2), scored 2026-11-23. https://skillalmanac.com/skills/skill-almanac/coding-agent-guardrails

This citation identifies our entry and assessment. The original skill belongs to its publisher.

SKILL.md

The skill text is not mirrored here. Read it in the source repository.

Report or claim this listing

Report a problem with this listing (malicious content, wrong licence, impersonation, copyright). Publishers can add their own skills through Submit a skill; claiming an existing listing is not available yet.

Index status: eligible for search engines. Markdown version of this page

What to do next