agentshield-scan
Skill3 starsChanged 10 months agoMITView on GitHub
Weekly or manual security triage loop that executes AgentShield with a hard iteration cap and records the result in a repository state file.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- dependency-triageSkill
- engram-councilSkill
- engram-onboardingSkill
- loop-engineeringSkill
- loop-triage-ciSkill
- loop-triageSkill
- pr-review-triageSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 11
Run a bounded security scan on the repository using AgentShield, enforce a high-severity gate, and record outcomes so the loop can resume …
- Very specific: line 17
Check that the agentshield command is available on the path before running scans.
- Very specific: line 18
Run bash scripts/run-agentshield-loop.sh so the scan uses the repository's bounded wrapper.
- Very specific: line 19
Keep LOOP_MAX_ITERATIONS between 1 and 5.
- Very specific: line 20
Run agentshield scan . --ignore-tests --fail-on high --explain through the wrapper's gate path.
- Very specific: line 21
Use .agentshield-baseline.json only after explicit review.
- Distinctive: line 25
Never auto-fix, auto-commit, or auto-push scanner findings from this loop.
- Distinctive: line 26
Never disable the scanner or bypass high-severity findings without a documented safety exception.
- Distinctive: line 27
Never commit raw API credentials, private keys, or tokens to the repository.
- Distinctive: line 28
Never expose API secrets or tokens in execution logs.
- Distinctive: line 29
Never bypass the gate validation on failure.
- Distinctive: line 30
Never mount production credentials or run the loop with broader privileges than repository read access.
- Very specific: line 33
Read and update the local STATE.md file located at docs/loops/agentshield-scan/STATE.md after every iteration.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AgentShield Security Scan Skill Instructions
Objective
Run a bounded security scan on the repository using AgentShield, enforce a high-severity gate, and record outcomes so the loop can resume across sessions. This loop is for static security triage only; it does not remediate findings by itself.
Always Do
- Check that the
agentshieldcommand is available on the path before running scans. - Run
bash scripts/run-agentshield-loop.shso the scan uses the repository's bounded wrapper. - Keep
LOOP_MAX_ITERATIONSbetween 1 and 5; the default is 1. - Run
agentshield scan . --ignore-tests --fail-on high --explainthrough the wrapper's gate path. - Use
.agentshield-baseline.jsononly after explicit review; create it withLOOP_WRITE_BASELINE=1. - Append a structured entry to
docs/loops/agentshield-scan/STATE.mdafter every iteration.
Never Do
- Never auto-fix, auto-commit, or auto-push scanner findings from this loop.
- Never disable the scanner or bypass high-severity findings without a documented safety exception.
- Never commit raw API credentials, private keys, or tokens to the repository.
- Never expose API secrets or tokens in execution logs.
- Never bypass the gate validation on failure.
- Never mount production credentials or run the loop with broader privileges than repository read access.
State Handoff
- Read and update the local
STATE.mdfile located atdocs/loops/agentshield-scan/STATE.mdafter every iteration. - Record whether the run used a baseline, the iteration cap, and any non-zero exit code.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

