system-prompt-audit
Skill9 starsChanged 3 months agoMITView on GitHub
Inspired by CL4R1T4S (Latin: "clarity") — the open-source project that collects and publishes AI system prompts to promote transparency. For each file, record: - File path - Word count (proxy for complexity) - Presence of: role definition, constraints, examples, output format
In this repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- router/CLAUDE.mdCLAUDE.md
- .agents/skills/llms.txtllms.txt
- agent-harnessSkill
- auto-fixSkill
- brain-dumpSkill
- industrial-brutalist-uiSkill
- changelog-enforcerSkill
- checkpoint-strategySkill
- context-primeSkill
- cooldown-resumeSkill
- council-reviewSkill
- data-quality-auditSkill
- debug-tracerSkill
- dependency-auditSkill
- deslopSkill
- docs-syncSkill
- duplicate-threadSkill
- email-triageSkill
- fabric-patternsSkill
- feature-flagSkill
- git-hygieneSkill
- graphifySkill
- implementation-plannerSkill
- insightsSkill
- issue-resolverSkill
- learn-ruleSkill
- local-ai-querySkill
- lr-schedule-advisorSkill
- minimalist-uiSkill
- modularity-reviewSkill
- full-output-enforcementSkill
- parallel-agentsSkill
- parallel-worktreesSkill
- prompt-librarySkill
- prompt-transparencySkill
- pro-workflowSkill
- redesign-existing-projectsSkill
- release-readinessSkill
- replay-learningsSkill
- repo-memory-updaterSkill
- repowise-intelligenceSkill
- researchSkill
- resource-panelSkill
- risky-module-reviewSkill
- sandboxed-execSkill
- scope-guardSkill
- self-improveSkill
- session-handoffSkill
- skill-composerSkill
- smart-commitSkill
- high-end-visual-designSkill
- stitch-design-tasteSkill
- task-alive-updatesSkill
- task-scoperSkill
- design-taste-frontendSkill
- test-first-executorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Run before merging changes to .claude/ directory
- Distinctive: line 13
Run as part of release readiness checks
- Distinctive: line 14
Run when a new agent or skill is added
- Distinctive: line 15
Run on-demand for governance audits
- Very specific: line 81
Add to .claude/commands/review.md as an optional step:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Skill: system-prompt-audit
Purpose
Audit all system-level instructions embedded in this repository's Claude configuration, surface them as a structured inventory, and validate them for consistency, safety, and alignment with project goals.
Inspired by CL4R1T4S (Latin: "clarity") — the open-source project that collects and publishes AI system prompts to promote transparency.
When to Use
- Run before merging changes to
.claude/directory - Run as part of release readiness checks
- Run when a new agent or skill is added
- Run on-demand for governance audits
Steps
1. Inventory Collection
Scan the following paths:
.claude/agents/ → agent persona definitions
.claude/skills/ → skill behavioral specs
.claude/commands/ → command implementations
CLAUDE.md → root-level project instructionsFor each file, record:
- File path
- Word count (proxy for complexity)
- Presence of: role definition, constraints, examples, output format
2. Consistency Check
Cross-reference all files for:
- Duplicate roles: two agents claiming the same responsibility
- Contradictory constraints: one skill allows X, another forbids X
- Missing output formats: skills that don't specify what they produce
- Undocumented side effects: skills that write files/commit without stating so
3. Safety Check
Flag any instructions that:
- Allow unrestricted file system writes
- Allow network calls without validation
- Grant escalated permissions
- Lack human-in-the-loop checkpoints for destructive operations
4. Generate Audit Report
Write docs/system-prompt-audit.md with:
# System Prompt Audit Report
Generated: <timestamp>
## Summary
- Total components audited: N
- Agents: N | Skills: N | Commands: N
- Issues found: N (critical: N, warnings: N, info: N)
## Inventory Table
| Component | Type | Role | Has Constraints | Has Examples |
|-----------|------|------|-----------------|--------------|
## Issues
### Critical
...
### Warnings
...
### Info
...
## Full Behavioral Inventory
[per-component breakdown]5. Exit Codes
- 0: No issues found
- 1: Warnings found (non-blocking)
- 2: Critical issues found (should block merge)
Integration
Add to .claude/commands/review.md as an optional step:
- [ ] Run system-prompt-audit before final review sign-offRelated Skills
prompt-transparency— generates human-facing transparency docsrelease-readiness— broader release gate checkscouncil-review— multi-agent review process
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.

