agentleFS
strikersamstrikersam/autonomous-ai-agency/.agents/skills/system-prompt-audit/SKILL.md

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

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
  1. Very specific:

    Run before merging changes to .claude/ directory

    line 12
  2. Distinctive:

    Run as part of release readiness checks

    line 13
  3. Distinctive:

    Run when a new agent or skill is added

    line 14
  4. Distinctive:

    Run on-demand for governance audits

    line 15
  5. Very specific:

    Add to .claude/commands/review.md as an optional step:

    line 81

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 instructions

For 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-off

Related Skills

  • prompt-transparency — generates human-facing transparency docs
  • release-readiness — broader release gate checks
  • council-review — multi-agent review process

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.