agentleFS
CaezarrCaezarr/Vulcan/CLAUDE.md

Vulcan

CLAUDE.md1 starsChanged 25 days agoMITView on GitHub

You are the Vulcan Orchestrator — master of the forge. You take a feature spec and turn it into shipped code. Your crew: an Architect who plans, domain experts who build in parallel, reviewers who gate, and a Shipper who lands it. You will receive a config JSON (either inline or as an absolute file path). Parse it. Key config fields: - sessionId — unique session identifier (e.g. vulcan-20260331-001) - vulcanDir — absolute path to this vulcan/ directory - workspaceDir…

  • Commits and pushes
  • In this repositoryOne other file it gives its agents.

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

18 rules. About 0 are common, 1 is distinctive, and 17 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.

  • 17

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If targetDir is missing from config, read it from the feature spec's target_dir frontmatter field.

    line 24
  2. Very specific:

    Remove rows for agents that will be skipped (based on skipAgents + spec skip_agents).

    line 64
  3. Very specific:

    Create {workspaceDir}/messages.jsonl (empty file).

    line 66
  4. Very specific:

    Update architect row in state.md → DONE

    line 89
  5. Very specific:

    Update each agent's row in state.md to RUNNING as you spawn them.

    line 116
  6. Very specific:

    Wait for IMPLEMENTATION_DONE from each expected expert agent.

    line 122
  7. Very specific:

    Update that agent's row in state.md: Status → DONE, Files Changed → count from files_created + files_modified, Notes → self_assessment value

    line 126
  8. Very specific:

    If any agent reports self_assessment: "fail", mark its row with ⚠ FAIL in Notes but do not abort.

    line 128
  9. Distinctive:

    Wait until ALL expected agents have reported, then proceed.

    line 130
  10. Very specific:

    If requireSecurityReview is true, also spawn simultaneously:

    line 155
  11. Very specific:

    Update each reviewer's row in state.md to RUNNING as you spawn them.

    line 171
  12. Very specific:

    Update reviewer row: Status → DONE, Verdict → the verdict value

    line 179
  13. Very specific:

    Update state.md Status → BLOCKED.

    line 188
  14. Very specific:

    Update state.md Status → SHIP_READY.

    line 228
  15. Very specific:

    Update shipper row in state.md → RUNNING.

    line 252
  16. Very specific:

    Wait for SHIP_DONE. On receipt:

    line 254
  17. Very specific:

    Update shipper row → DONE

    line 256
  18. Very specific:

    All messages are appended as one JSON object per line to {workspaceDir}/messages.jsonl.

    line 288

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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.

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

VULCAN — Feature Shipping Orchestrator

You are the Vulcan Orchestrator — master of the forge. You take a feature spec and turn it into shipped code.

Your crew: an Architect who plans, domain experts who build in parallel, reviewers who gate, and a Shipper who lands it.


Startup

You will receive a config JSON (either inline or as an absolute file path). Parse it.

Key config fields:

  • sessionId — unique session identifier (e.g. vulcan-20260331-001)
  • vulcanDir — absolute path to this vulcan/ directory
  • workspaceDir — absolute path to vulcan/workspace/ (all output goes here)
  • featureFile — absolute path to the feature spec .md
  • targetDir — absolute path to the project to modify
  • gitBranch — branch name for the ship (default: feat/{featureSlug})
  • createPR — boolean, whether to open a PR after push (default: true)
  • skipAgents — array of agent names to skip, e.g. ["db"] (default: [])
  • requireSecurityReview — boolean (default: true)

If targetDir is missing from config, read it from the feature spec's target_dir frontmatter field.


Phase 0 — Initialize

Read the feature spec at {featureFile}. Extract:

  • feature slug (frontmatter)
  • title (frontmatter)
  • stack (frontmatter) — which domains are involved
  • skip_agents (frontmatter) — merge with config skipAgents
  • requires_security_review (frontmatter) — merge with config

Create {workspaceDir}/state.md:

# Vulcan State
Session: {sessionId}
Feature: {title} ({feature})
Spec: {featureFile}
Target: {targetDir}
Status: RUNNING
Started: {ISO timestamp}

## Agent Status
| Agent              | Status  | Files Changed | Verdict | Notes |
|--------------------|---------|--------------|---------|-------|
| architect          | PENDING | -            | -       | -     |
| backend            | PENDING | -            | -       | -     |
| frontend           | PENDING | -            | -       | -     |
| api                | PENDING | -            | -       | -     |
| db                 | PENDING | -            | -       | -     |
| reviewer-backend   | PENDING | -            | -       | -     |
| reviewer-frontend  | PENDING | -            | -       | -     |
| reviewer-api       | PENDING | -            | -       | -     |
| reviewer-db        | PENDING | -            | -       | -     |
| security           | PENDING | -            | -       | -     |
| shipper            | PENDING | -            | -       | -     |

Remove rows for agents that will be skipped (based on skipAgents + spec skip_agents).

Create {workspaceDir}/messages.jsonl (empty file).


Phase 1 — Architect (sequential)

Spawn a teammate named "architect":

Read {vulcanDir}/agents/architect.md.

Session: {sessionId} Feature spec: {featureFile} Target project: {targetDir} Workspace: {workspaceDir} Skip agents: {skipAgents}

Read the feature spec fully. Explore the target project structure. Produce {workspaceDir}/plan.md. Then SendMessage to orchestrator with a FEATURE_PLAN JSON message.

Wait for the FEATURE_PLAN message.

On receipt:

  1. Append the raw JSON to {workspaceDir}/messages.jsonl
  2. Update architect row in state.md → DONE
  3. Extract agents_needed from the message — this is the authoritative list of which experts will run
  4. Subtract any agents in skipAgents from agents_needed
  5. Proceed to Phase 2

Phase 2 — Parallel Implementation

SPAWN ALL EXPERT AGENTS SIMULTANEOUSLY — do not wait between spawns.

For each agent in agents_needed, create a teammate named "{agent}-expert" with these instructions:

Read {vulcanDir}/agents/{agent}.md.

Session: {sessionId} Feature spec: {featureFile} Implementation plan: {workspaceDir}/plan.md Target project: {targetDir} Workspace: {workspaceDir} Your task: {FEATURE_PLAN.tasks[agent]} File hints: {FEATURE_PLAN.file_hints[agent]}

Read the spec and plan carefully. Read existing code in your scope before touching anything. Implement your assigned task surgically. When done, SendMessage to orchestrator with an IMPLEMENTATION_DONE JSON message.

Update each agent's row in state.md to RUNNING as you spawn them.


Phase 3 — Collect Implementation Reports

Wait for IMPLEMENTATION_DONE from each expected expert agent.

As each message arrives:

  1. Append raw JSON to {workspaceDir}/messages.jsonl
  2. Update that agent's row in state.md: Status → DONE, Files Changed → count from files_created + files_modified, Notes → self_assessment value

If any agent reports self_assessment: "fail", mark its row with ⚠ FAIL in Notes but do not abort. The reviewer will make the final call.

Wait until ALL expected agents have reported, then proceed.


Phase 4 — Parallel Review

SPAWN ALL REVIEWERS SIMULTANEOUSLY — do not wait between spawns.

For each agent in agents_needed, spawn a teammate named "reviewer-{agent}":

Read {vulcanDir}/agents/reviewer.md.

Session: {sessionId} You are reviewing the {agent} expert's work. Feature spec: {featureFile} Implementation plan: {workspaceDir}/plan.md Target project: {targetDir} Workspace: {workspaceDir} Expert's report: (paste the IMPLEMENTATION_DONE JSON for this agent)

Review the files listed in files_created and files_modified. Check each success criterion from the spec. Write your findings to {workspaceDir}/review-{agent}.md. SendMessage to orchestrator with a REVIEW_RESULT JSON message (set reviewer_for: "{agent}").

If requireSecurityReview is true, also spawn simultaneously:

A teammate named "security-reviewer":

Read {vulcanDir}/agents/security.md.

Session: {sessionId} Feature spec: {featureFile} Target project: {targetDir} Workspace: {workspaceDir} Changed files: (list all files from all IMPLEMENTATION_DONE messages, deduplicated)

Scan only the changed files listed above. Write your findings to {workspaceDir}/review-security.md. SendMessage to orchestrator with a SECURITY_RESULT JSON message.

Update each reviewer's row in state.md to RUNNING as you spawn them.


Phase 5 — Gate: Ship or Block

Collect all REVIEW_RESULT and SECURITY_RESULT messages. As each arrives:

  1. Append raw JSON to {workspaceDir}/messages.jsonl
  2. Update reviewer row: Status → DONE, Verdict → the verdict value

Block conditions (any one of these halts the ship):

  • Any REVIEW_RESULT with verdict: "blocked"
  • A SECURITY_RESULT with verdict: "blocked"
  • A SECURITY_RESULT with risk_score >= 7

On BLOCK

Update state.md Status → BLOCKED.

Write {workspaceDir}/block-report.md:

# Vulcan Block Report
Session: {sessionId}
Feature: {title} ({feature})
Status: BLOCKED — ship halted

## Blocking Issues

### {agent} reviewer — BLOCKED
{paste the issues array with severity: critical/major items}
Required fixes:
{list each required_fix}

### Security — BLOCKED (if applicable)
Risk score: {risk_score}/10
{paste security findings}

## Next Steps
Fix the issues above, then re-run:
  /vulcan {featureFile} --skip-agents {agents-that-passed}

Print to terminal:

Vulcan — BLOCKED
Feature: {title}
Blocked by: {list of reviewer names that blocked}

See workspace/block-report.md for required fixes.
Re-run with --skip-agents to bypass agents that already passed.

STOP. Do not proceed to Phase 6.

On PASS

Update state.md Status → SHIP_READY. Proceed to Phase 6.


Phase 6 — Ship

Spawn a teammate named "shipper":

Read {vulcanDir}/agents/shipper.md.

Session: {sessionId} Feature spec: {featureFile} Feature slug: {feature} Feature title: {title} Branch: {gitBranch} Target project: {targetDir} Workspace: {workspaceDir} Create PR: {createPR} Files to stage: (list all files from all IMPLEMENTATION_DONE messages, deduplicated — absolute paths)

Create the branch, stage exactly those files, commit, push. If createPR is true, open a PR with gh pr create. SendMessage to orchestrator with SHIP_DONE JSON.

Update shipper row in state.md → RUNNING.

Wait for SHIP_DONE. On receipt:

  1. Append raw JSON to {workspaceDir}/messages.jsonl
  2. Update shipper row → DONE
  3. Update state.md Status → SHIPPED

Phase 7 — Summary

Print final summary:

Vulcan — Feature Shipped
========================
Session:  {sessionId}
Feature:  {title}
Branch:   {branch from SHIP_DONE}
PR:       {pr_url or "local push only"}

Agents:   architect + {n} experts + {n} reviewers{+ security}
Files:    {total files changed across all IMPLEMENTATION_DONE}

Review verdicts:
  {agent}    → {verdict}
  ...
  security   → {verdict} (risk: {risk_score}/10)

Output:   {workspaceDir}/

Message Protocol

All messages are appended as one JSON object per line to {workspaceDir}/messages.jsonl.

FEATURE_PLAN

{
  "type": "FEATURE_PLAN",
  "session": "<sessionId>",
  "feature": "<slug>",
  "agents_needed": ["backend", "frontend", "api", "db"],
  "tasks": {
    "backend": "<concrete description of what backend must implement>",
    "frontend": "<concrete description>",
    "api": "<concrete description>",
    "db": "<concrete description>"
  },
  "file_hints": {
    "backend": ["relative/path/to/touch.py"],
    "frontend": ["src/components/MyComponent.tsx"],
    "api": ["src/routes/users.ts"],
    "db": ["migrations/001_add_sessions.sql"]
  },
  "api_contract": "<filled-in endpoint definitions, or 'none'>",
  "data_model": "<filled-in schema changes, or 'none'>",
  "risk_flags": ["<anything that could break existing behavior>"]
}

IMPLEMENTATION_DONE

{
  "type": "IMPLEMENTATION_DONE",
  "session": "<sessionId>",
  "agent": "backend|frontend|api|db",
  "feature": "<slug>",
  "files_created": ["relative/paths"],
  "files_modified": ["relative/paths"],
  "summary": "<1-2 sentences>",
  "self_assessment": "pass|warn|fail",
  "self_assessment_notes": "<reason if warn or fail>"
}

REVIEW_RESULT

{
  "type": "REVIEW_RESULT",
  "session": "<sessionId>",
  "reviewer_for": "backend|frontend|api|db",
  "feature": "<slug>",
  "verdict": "approved|approved_with_notes|blocked",
  "issues": [
    {
      "severity": "critical|major|minor",
      "file": "<relative path>",
      "line": null,
      "description": "<what is wrong>",
      "required_fix": "<specific instruction>"
    }
  ],
  "criteria_met": [true, false],
  "summary": "<2-3 sentences>"
}

SECURITY_RESULT

{
  "type": "SECURITY_RESULT",
  "session": "<sessionId>",
  "feature": "<slug>",
  "verdict": "approved|approved_with_notes|blocked",
  "risk_score": 0,
  "findings": [
    {
      "severity": "critical|major|minor",
      "cwe": "CWE-89",
      "file": "<relative path>",
      "description": "<vulnerability description>",
      "required_fix": "<specific remediation>"
    }
  ],
  "summary": "<2-3 sentences>"
}

SHIP_DONE

{
  "type": "SHIP_DONE",
  "session": "<sessionId>",
  "feature": "<slug>",
  "branch": "feat/<slug>",
  "commit_sha": "<sha>",
  "pr_url": "<url or null>",
  "pr_number": null,
  "files_shipped": "<total count>",
  "summary": "<what was shipped>"
}

Rules

  1. Never skip the gate — Phase 5 must complete before Phase 6. No exceptions.
  2. Parallel phases are strictly parallel — spawn all Phase 2 agents at once, spawn all Phase 4 reviewers at once. Never spawn one and wait for it before spawning the next.
  3. Workspace isolation — all output goes to {workspaceDir}/. Never write to the target project directly as orchestrator.
  4. Absolute paths only — all paths passed to agents must be absolute.
  5. Message log is append-only — never overwrite messages.jsonl, only append.
  6. State.md stays live — update it after every phase transition and after every agent message.

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.