claudesec
AGENTS.md16 starsChanged 6 months agoMITView on GitHub
Agent guidance for ClaudeSec documentation changes and quality gates
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- scanner/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/claude-agents-and-practices.mdcCursor rule
- .cursor/rules/claudesec-project.mdcCursor rule
- .cursor/rules/markdown-quality.mdcCursor rule
- .cursor/rules/no-sensitive-paths.mdcCursor rule
- .cursor/rules/security-citations.mdcCursor rule
- ci-config-guard-claudesecSkill
- kcov-debugSkill
- lychee-redirect-triageSkill
- omc-referenceSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- Very specific: line 14
All documentation for ClaudeSec: DevSecOps guides, compliance frameworks, AI/LLM security, GitHub security features, architecture diagrams, …
- Very specific: line 51
Every Markdown file requires YAML frontmatter: title, description, tags.
- Very specific: line 55
No broken links — validate with lychee "/*.md" before commit.
- Very specific: line 69
Create docs/guides/<kebab-name>.md with YAML frontmatter.
- Distinctive: line 70
Add an entry to the relevant table in README.md under the Documentation section.
- Very specific: line 71
If it introduces a new compliance control, update scanner/lib/compliance-map.py.
- Very specific: line 72
Use the /new-guide slash command for scaffolding.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md — docs/
<!-- Parent: ../AGENTS.md --><!-- Generated: 2026-04-08 -->Purpose
All documentation for ClaudeSec: DevSecOps guides, compliance frameworks, AI/LLM security, GitHub security features, architecture diagrams, and step-by-step tutorials. All files are Markdown with YAML frontmatter.
Directory Structure
docs/
├── devsecops/ # DevSecOps pipeline and practices
├── ai/ # AI/LLM security (OWASP LLM, MITRE ATLAS, prompt injection)
├── compliance/ # NIST CSF 2.0, ISO 27001/42001, KISA ISMS-P
├── github/ # GitHub security features, branch protection, Actions
├── architecture/ # Draw.io diagrams (scanner flow, security domains)
├── reports/ # Report templates and samples
└── guides/ # Step-by-step tutorials and operations runbooksKey Files
| File | Description |
guides/getting-started.md | Quick setup and first scan |
guides/claude-lead-agents-and-best-practices.md | Multi-agent roles and handoff format |
guides/hourly-operations.md | Hourly cron automation and improvement loop |
guides/compliance-mapping.md | SOC 2, ISO 27001, NIST, PCI-DSS, KISA ISMS-P |
guides/workflow-components.md | Reusable composite actions and template contract |
guides/incident-response.md | IR runbook |
guides/shell-lint-policy.md | ShellCheck scope, severity, and CI options |
devsecops/owasp-top10-2025.md | OWASP Top 10 2025 with controls and code examples |
devsecops/pipeline.md | End-to-end secure CI/CD pipeline |
ai/llm-top10-2025.md | OWASP LLM Top 10 2025 |
ai/mitre-atlas.md | MITRE ATLAS — 66 AI threat techniques |
compliance/isms-p.md | KISA ISMS-P 102-item certification guide |
compliance/nist-csf-2.md | NIST CSF 2.0 six-function framework |
For AI Agents
Writing Conventions
- Every Markdown file requires YAML frontmatter:
title,description,tags. - File names: kebab-case (e.g.,
owasp-top10-2025.md). - Code blocks must specify language identifier (
```bash,```yaml, etc.). - Security claims must cite authoritative sources: OWASP, NIST, CIS, MITRE ATLAS.
- No broken links — validate with
lychee "**/*.md"before commit.
Quality Gate
# Lint all docs
markdownlint "docs/**/*.md"
# Check links
lychee "docs/**/*.md"Adding a New Guide
- Create
docs/guides/<kebab-name>.mdwith YAML frontmatter. - Add an entry to the relevant table in
README.mdunder the Documentation section. - If it introduces a new compliance control, update
scanner/lib/compliance-map.py. - Use the
/new-guideslash command for scaffolding.
Compliance Coverage
| Framework | Location |
| NIST CSF 2.0 | compliance/nist-csf-2.md |
| ISO 27001:2022 | compliance/iso27001-2022.md |
| ISO 42001:2023 | compliance/iso42001-ai.md |
| KISA ISMS-P | compliance/isms-p.md |
| OWASP Top 10 2025 | devsecops/owasp-top10-2025.md |
| OWASP LLM Top 10 | ai/llm-top10-2025.md |
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.

