agentleFS
howar31howar31/magi-workflow/CLAUDE.md

magi-workflow

CLAUDE.md3 starsChanged 7 months agoMITView on GitHub

The file

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

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Before any commit, check whether .claude-plugin/plugin.json needs a bump per SPEC.md §Plugin versioning.

    line 21
  2. Very specific:

    When bumping, also update the version badge in README.md (line near shields.io/badge/version-vX.Y.Z) in the same commit.

    line 22
  3. Very specific:

    When magi misbehaves in a real session and we have to re-correct Claude's shortcut, add a one-line entry to references/LESSONS.md under the …

    line 40

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

What this is

Multi-CLI MAGI orchestration plugin for code/plan review. → SPEC.md

Slash commands

Per-command contract in skills/<name>/SKILL.md. → SPEC.md §Slash commands

Subagents

→ agents/developer.md, agents/reviewer.md

Project state model

8 filesystem-derived states; SSOT is scripts/shared/detect-state.sh. → SPEC.md §Project state model

Project document tiers

→ SPEC.md §Project document tiers

Spec deltas

PLAN/SPEC carry a ## Spec deltas section declaring expected modifications to root SPEC.md / CLAUDE.md / magi/PRD.md / magi/TECHSTACK.md. Evaluated by /magi:review-plan; verified by /magi:commit §2.5 (D1/D2/D3). → SPEC.md §Spec deltas

Commits

  • /magi:commit is the single in-project commit path (sprint + standalone). Independent of ~/.claude/skills/commit/.
  • Before any commit, check whether .claude-plugin/plugin.json needs a bump per SPEC.md §Plugin versioning. Bump goes in the same commit.
    • When bumping, also update the version badge in README.md (line near shields.io/badge/version-vX.Y.Z) in the same commit.

Run / test

./scripts/shared/preflight.sh    # CLI healthcheck
./test/e2e-smoke.sh              # real CLI smoke test
./test/e2e-fallback.sh           # mock-adapter fallback test

Conventions

  • Bash 3.2 compatible (no mapfile, readarray, declare -A, ${var^^})
  • set -uo pipefail on every script; avoid set -e; init arrays with arr=()
  • jq for JSON; no setsid (Linux-only); prefer gtimeout over timeout
  • Shellcheck-friendly (# shellcheck source= annotations)
  • File naming: project SSOT docs uppercase (PLAN.md, SPEC.md, TASKS.md, WORKS.md, DRIFT.md, PRD.md, TECHSTACK.md, BACKLOG.md); plugin internals kebab-case
  • Language: English for CLAUDE.md, SPEC.md, references/, skills/**/SKILL.md, agents/*.md; zh-TW for README.md and user-facing prompts; English for code comments

Lessons

When magi misbehaves in a real session and we have to re-correct Claude's shortcut, add a one-line entry to references/LESSONS.md under the relevant skill section. Empirical incidents only — no theoretical "what if" entries.

Adapter contract

→ SPEC.md §Adapter contract

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.