claudesec
CLAUDE.md16 starsChanged 6 months agoMITView on GitHub
ClaudeSec is a DevSecOps toolkit for AI-assisted secure development. All documentation is in Markdown. No build system required. Project agents live in .claude/agents/ (the sec-* and ci-pipeline roles). architect, test-engineer, and explore below are generic roles from the global oh-my-claudecode catalog, not project-scoped files. Model selection: Key workflows: Token budget: prefer haiku subagents for read-only exploration. Use run_in_background for scans/builds.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- scanner/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- .claude/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
Show its rules and text
We split this CLAUDE.md 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
- Distinctive: line 6
All documentation is in Markdown.
- Very specific: line 52
Read specific line ranges, not entire files: Read(file, offset=10, limit=30)
- Distinctive: line 53
Use Grep/Glob instead of Bash for file search — dedicated tools are cheaper
- Very specific: line 55
Prefer run_in_background for scans, builds, tests — frees context for other work
- Distinctive: line 56
Keep slash command outputs concise — scanner summary, not full report
- Distinctive: line 58
When compacting, always preserve the full list of modified files and test commands
- Very specific: line 62
Run scanner shell tests directly: bash scanner/tests/test_<name>.sh.
- Distinctive: line 67
All Markdown must pass markdownlint
- Distinctive: line 74
Keep a single CodeQL model: repository default setup only.
- Very specific: line 76
Treat external action download 401 as transient by default: rerun failed workflow up to 2 times before manual triage.
- Distinctive: line 87
Use hourly automation for repository synchronization, scanner execution, and dashboard refresh.
- Very specific: line 88
Use MEMORY.md to keep a persistent backlog across security, performance, operations, quality, and UX.
- Very specific: line 89
Use /ralph-loop for autonomous iteration and /ulw-loop for deep-focus execution on highest-priority items.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.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
ClaudeSec Project Instructions
Project Overview
ClaudeSec is a DevSecOps toolkit for AI-assisted secure development. All documentation is in Markdown. No build system required.
Conventions
- Markdown files use YAML frontmatter with title, description, tags
- File names: kebab-case
- Code examples must be tested and runnable
- Security advice must reference authoritative sources (OWASP, NIST, CIS)
Directory Layout
- docs/devsecops/ — DevSecOps pipeline and practices
- docs/github/ — GitHub security features
- docs/ai/ — AI and LLM security
- docs/guides/ — Step-by-step tutorials
- docs/compliance/ — NIST, ISO, ISMS-P compliance guides
- docs/architecture/ — Architecture and flow diagrams
- docs/reports/ — Session reports, retrospectives, and generated scan/seminar collateral
- docs/plans/ — Strategy and planning documents
- assets/ — Logo and branding assets
- templates/ — Reusable config templates
- scanner/ — Security scanner CLI
- scripts/ — Automation scripts
- hooks/ — Claude Code security hooks
- examples/ — Example projects and configs
Agents & Model Routing
Project agents live in .claude/agents/ (the sec-* and ci-pipeline roles).
architect, test-engineer, and explore below are generic roles from the
global oh-my-claudecode catalog, not project-scoped files. Model selection:
- opus: sec-orchestrator, architect — coordination, architecture, security audit
- sonnet: sec-implementer, sec-researcher, sec-reviewer, ci-pipeline, test-engineer — standard work
- haiku: explore, docs lookup, quick validation — lightweight tasks
Key workflows:
- Security guide: researcher → implementer → writer → reviewer → test
- Scanner feature: architect → implementer → test → ci-pipeline
- Hotfix: researcher → implementer → reviewer
Token budget: prefer haiku subagents for read-only exploration. Use run_in_background for scans/builds.
Token Optimization
- Read specific line ranges, not entire files:
Read(file, offset=10, limit=30) - Use Grep/Glob instead of Bash for file search — dedicated tools are cheaper
- Subagents for exploration: always use
model: "haiku"for read-only tasks - Prefer
run_in_backgroundfor scans, builds, tests — frees context for other work - Keep slash command outputs concise — scanner summary, not full report
- Autocompact at 70%: run
/compactmanually at logical milestones for better quality - When compacting, always preserve the full list of modified files and test commands
Local Testing
- Run scanner shell tests directly:
bash scanner/tests/test_<name>.sh. - Set
CLAUDESEC_DASHBOARD_OFFLINE=1for any test that callsgenerate_html_dashboard. Without it,dashboard-gen.pymakes live GitHub API calls and the test can hang for minutes. The kcov coverage job sets this at the job level and every such test also self-exports it (PR #190/#191). List them withgrep -l generate_html_dashboard scanner/tests/*.sh, never from a count written here — this line said three when there were five.
Quality Gates
- All Markdown must pass markdownlint
- Links must be valid (no broken references)
- Code blocks must specify language
- Security claims must cite sources
GitHub Actions Policy
- Keep a single CodeQL model: repository default setup only; do not add duplicate repo-level CodeQL workflow files.
- Require local pre-PR validation for docs changes:
markdownlint "**/*.md"andlychee "**/*.md". - Treat external action download
401as transient by default: rerun failed workflow up to 2 times before manual triage. - For Dependabot action PR conflicts: apply required action-version updates directly to
main, then close duplicate/conflicting Dependabot PRs with rationale.
Continuous Operations
- Hourly automation entrypoint: see
docs/guides/hourly-operations.md - OpenCode profile:
OPENCODE.md - Improvement memory:
MEMORY.md
Continuous Improvement Workflow
- Use hourly automation for repository synchronization, scanner execution, and dashboard refresh.
- Use
MEMORY.mdto keep a persistent backlog across security, performance, operations, quality, and UX. - Use
/ralph-loopfor autonomous iteration and/ulw-loopfor deep-focus execution on highest-priority items.
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.

