agentleFS
0xrafasec0xrafasec/ai-workflow/CLAUDE.md

ai-workflow

CLAUDE.md9 starsChanged 18 days agoMITView on GitHub

These rules apply only when working inside the ai-workflow repo. The global Claude defaults live at dotfiles/CLAUDE.md (symlinked to ~/.claude/CLAUDE.md by install.sh) and apply to every project. This repo is two things: the wf Claude Code plugin, and the personal config files a plugin cannot carry. Any change to a skill, workflow, convention, or installer must update the relevant docs in the same change. Docs are not a follow-up. They are part of the change. When you change something in…

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. rafagomes/ai-workflow★ 9100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository16 other files it gives its agents.

The file

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

8 rules. About 0 are common, 3 are distinctive, and 5 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.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    When you change something in this list (left), update the docs on the right in the same commit/PR:

    line 32
  2. Distinctive:

    If you're not sure whether a change is doc-relevant, it is.

    line 43
  3. Very specific:

    After editing a skill or the agent: start a session with the working tree loaded as the plugin — claude --plugin-dir .

    line 63
  4. Very specific:

    After editing hooks/: bash tests/hooks_test.sh, and break the rule you changed to see a test fail.

    line 65
  5. Very specific:

    After editing a manifest, or adding or renaming a skill: claude plugin validate ..

    line 66
  6. Very specific:

    After editing install.sh or uninstall.sh: run them against a throwaway CLAUDE_DIR and verify the symlinks land where expected.

    line 67
  7. Very specific:

    Before every push, run the CI checks locally (no secrets or network needed except for validate's CLI):

    line 68
  8. Distinctive:

    If a change touches multiple skills or shifts a convention, surface the plan before editing — don't make wide changes in one shot without …

    line 79

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

ai-workflow — Project-Specific Instructions

These rules apply only when working inside the ai-workflow repo. The global Claude defaults live at dotfiles/CLAUDE.md (symlinked to ~/.claude/CLAUDE.md by install.sh) and apply to every project.

Repo layout

This repo is two things: the wf Claude Code plugin, and the personal config files a plugin cannot carry.

  • .claude-plugin/plugin.json, .claude-plugin/marketplace.json — the plugin manifest and the marketplace that serves it
  • .codex-plugin/plugin.json, .agents/plugins/marketplace.json — the same for Codex (no version either); skills/<name>/agents/openai.yaml is Codex's invocation policy, required for every skill that sets disable-model-invocation
  • skills/<name>/SKILL.md — the plugin's skills, invoked as /wf:<name>
  • agents/reviewer.md — the plugin's reviewer agent (wf:reviewer)
  • hooks/hooks.json, hooks/guard.sh — the plugin's guardrail hook (PreToolUse on Bash); tested by tests/hooks_test.sh
  • dotfiles/CLAUDE.md — global defaults, symlinked to ~/.claude/CLAUDE.md by install.sh
  • settings.json — your untracked settings, symlinked into ~/.claude/ by install.sh
  • CLAUDE.md (this file) — project-specific rules, loaded only when cwd is this repo
  • extras/ — opt-in personal skills, only installed via ./install.sh --extra
  • tests/ — CI checks that run offline: install_test.sh (installer and uninstaller, including --codex), hooks_test.sh, check_codex.py (Codex manifests, skill frontmatter, openai.yaml) and check_links.py (Markdown links and anchors)
  • .github/ — workflows/ci.yml (free-only CI), issue templates and the PR template
  • docs/ — the trunk-based workflow guide and the skill-quality notes

Editing rules

  • Edit the source in this repo, never an installed copy. The plugin is installed into Claude Code's plugin cache and the dotfiles are symlinks; an edit made under ~/.claude/ is either lost on the next update or silently changes this repo.
  • Skills cross-reference each other by their namespaced name (/wf:pr, wf:reviewer). Keep that form when adding a reference.
  • Run claude plugin validate . after adding, removing, or renaming a skill or agent, or touching either manifest.

Docs are part of the change — never ship a behavior change without doc updates

Any change to a skill, workflow, convention, or installer must update the relevant docs in the same change. Docs are not a follow-up. They are part of the change.

When you change something in this list (left), update the docs on the right in the same commit/PR:

ChangeUpdate
Skill behavior, args, or removal/renameskills/<name>/SKILL.md (the source), README.md Skills table + tree, CHANGELOG.md
Workflow convention (trunk rules, commit style, etc.)dotfiles/CLAUDE.md, docs/TRUNK_BASED_WORKFLOW.md, CHANGELOG.md
Adding/removing a skillREADME.md Skills tables, dotfiles/CLAUDE.md "Toolkit" section, .claude-plugin/marketplace.json description if the count changes, CHANGELOG.md
Plugin manifests (Claude or Codex), installer or symlink layoutinstall.sh, uninstall.sh, README.md install section + Codex section + tree, CHANGELOG.md
CI or test change (tests/, .github/workflows/)CONTRIBUTING.md CI section, CHANGELOG.md
New or repurposed top-level convention fileREADME.md repo-tree section

If you're not sure whether a change is doc-relevant, it is. Default to updating docs. The cost of a stale doc is much higher than the cost of a one-line CHANGELOG entry.

Versioning + releases

  • Version lives in CHANGELOG.md only — no package.json, VERSION file, or other source of truth. plugin.json deliberately has no version, so installed copies track the repository's commits.
  • Bump via SemVer:
    • patch (0.x.y → 0.x.y+1) — doc-only, typo, or internal cleanup with no behavior change
    • minor (0.x.y → 0.x+1.0) — new skill, new flag, repositioned skill, new convention, anything users can observe
    • major (0.x.y → 1.0.0) — breaking removal/rename of a skill, flag, or convention users may depend on
  • main is branch-protected (PR required, CI required, linear history), so a release is a PR: open chore: release <version> renaming [Unreleased] → [<version>] - <YYYY-MM-DD> with a fresh empty [Unreleased] above it (CHANGELOG only: T0, review skipped), merge it, then tag the merge commit v<version> on main and push the tag.

Commit + PR style for this repo

  • Conventional commits per global rule (feat:, fix:, refactor:, chore:, docs:, test:, perf:, build:, ci:, security:).
  • Skill changes: feat(skill-name): ... or fix(skill-name): .... Doc-only: docs: ....
  • Splitting commits by concern is especially important here because skill, doc, and installer edits often land together — keep each commit independently revertible.
  • The PR body follows the template in .github/PULL_REQUEST_TEMPLATE.md, including ## Risk (tier per the global Risk tiers). Text that instructs an agent (a skill, the agent, a CLAUDE.md) is never T0.

Testing changes locally

  • After editing a skill or the agent: start a session with the working tree loaded as the plugin — claude --plugin-dir . — and invoke it (e.g., /wf:autopilot --dry-run).
  • After changing /wf:commit, /wf:feature, /wf:fix or /wf:pr (or the structure of any skill with a case in evals/): run that skill's evals from a plain terminal (inside an agent session the eval child may have no usable git, so git-based cases fail; see docs/SKILL_QUALITY.md), e.g. claude plugin eval . --tag fix --scaffold --no-publish --allow-tools Bash Write Edit --max-cost-usd 5. Evals call a model on your own account, so they are local and opt-in and never run in CI; see docs/SKILL_QUALITY.md for when to run them, how to read the result and how to add a case.
  • After editing hooks/: bash tests/hooks_test.sh, and break the rule you changed to see a test fail.
  • After editing a manifest, or adding or renaming a skill: claude plugin validate ..
  • After editing install.sh or uninstall.sh: run them against a throwaway CLAUDE_DIR and verify the symlinks land where expected.
  • Before every push, run the CI checks locally (no secrets or network needed except for validate's CLI):
    • claude plugin validate .
    • git ls-files -z '*.sh' | xargs -0 shellcheck
    • bash tests/install_test.sh
    • bash tests/hooks_test.sh
    • python3 -I tests/check_codex.py
    • python3 -I tests/check_links.py
  • Codex packaging can be loaded for real without a model call: with CODEX_HOME and HOME pointed at a scratch dir, npx -y @openai/codex@0.167.1 plugin marketplace add "$PWD" then plugin marketplace list. Never run a prompt against a model for this.

When in doubt, ask

If a change touches multiple skills or shifts a convention, surface the plan before editing — don't make wide changes in one shot without confirmation.

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.