agentleFS
acfatahacfatah/skills/claude/CLAUDE.md

skills / claude

CLAUDE.md0 starsChanged 7 days agoMITView on GitHub

Write every response as if the reader has ADHD, whoever they are; long paragraphs are hard to follow. Optimize for scanning, not just brevity: - Bottom line first: answer or result in the first line or two. - Short chunks: paragraphs of 1–3 sentences; prefer bullets and headings over prose. Number steps that have an order; bullet the rest. - Bold the key word or action in a bullet, and put the point in its first three words, so skimming…

The file

Show its rules and text

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

28 rules. About 0 are common, 12 are distinctive, and 16 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 16

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write every response as if the reader has ADHD, whoever they are.

    line 3
  2. Very specific:

    Use plain markdown headings: ## for the top level, ### for a subsection, and ####, rarely, for a third level, with a blank line before each.

    line 14
  3. Distinctive:

    Keep every not, never, no, only and except, and keep numbers, commands and paths exact.

    line 21
  4. Distinctive:

    Add tips and gotchas only when non-obvious and relevant, in their own short section at the end.

    line 26
  5. Distinctive:

    Before sending, rewrite any line that reads two ways as a full sentence.

    line 29
  6. Distinctive:

    When I'm choosing between options, always list the tradeoffs and give a recommendation.

    line 31
  7. Distinctive:

    Put caveats inline, next to the claim they limit.

    line 33
  8. Very specific:

    When a reply names an opaque reference without its title, end the reply with a ### References section that gives each one its title.

    line 34
  9. Very specific:

    Known titles only: use a title already seen in this session, and write (title unknown) otherwise.

    line 45
  10. Very specific:

    Rule it off: put --- on its own line, with a blank line before it, since --- right under text turns that text into a heading.

    line 50
  11. Distinctive:

    Don't hard-wrap prose in chat replies: write each paragraph and list item as one line, and let the terminal wrap it.

    line 69
  12. Distinctive:

    Use a visual when it is easier to scan than prose, never as decoration.

    line 77
  13. Distinctive:

    Skip the visual: when a short list says the same thing.

    line 91
  14. Distinctive:

    Offer an HTML artifact: when a visual won't fit in 80 columns or needs color or interaction.

    line 92
  15. Very specific:

    Before writing to drafts/ in a git repo, make sure it is ignored: unless git check-ignore -q drafts/ succeeds, append drafts/ to git …

    line 109
  16. Very specific:

    Before writing, executing, stamping, moving, resuming, or listing any plan (plan-mode file, .claude/plans/*.md, PLAN*.md, TODO.md), load …

    line 115
  17. Very specific:

    When you notice an issue unrelated to the current task, mention it in one line and offer to log it.

    line 125
  18. Very specific:

    When forking a session, starting a second session on the same branch or PR, or resuming after a break, load the session-sync skill.

    line 131
  19. Distinctive:

    Do not wrap, even when over-width: fenced code blocks, table rows, URLs, and file paths.

    line 147
  20. Very specific:

    Never wrap YAML frontmatter, or files that need one entry per line, such as the memory index MEMORY.md.

    line 149
  21. Very specific:

    When asked to suggest a PR, load the pr-summary skill.

    line 160
  22. Very specific:

    When asked to open a PR, load the auto-pr skill.

    line 164
  23. Very specific:

    Before approving or executing a plan, or when the user asks for several distinct changes, load the auto-commit skill.

    line 168
  24. Very specific:

    Before a plan is approved or executed, the plans-and-roadmaps skill asks whether to run it in a worktree.

    line 176
  25. Very specific:

    Never run git commit unless the user explicitly asks, or chose Auto-commit mode for the current plan or session (see the auto-commit skill).

    line 193
  26. Distinctive:

    Always suggest a comprehensive commit message once a logical change to files in a git repository is finished, so the user can decide …

    line 199
  27. Very specific:

    Before writing or suggesting a commit message, load the commit-messages skill.

    line 205
  28. Very specific:

    When executing a plan, also write the final message into that plan (see the plans-and-roadmaps skill).

    line 209

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

Response & Output Style

Write every response as if the reader has ADHD, whoever they are; long paragraphs are hard to follow. Optimize for scanning, not just brevity:

  • Bottom line first: answer or result in the first line or two.
  • Short chunks: paragraphs of 1–3 sentences; prefer bullets and headings over prose. Number steps that have an order; bullet the rest.
  • Bold the key word or action in a bullet, and put the point in its first three words, so skimming works.
  • Give the bullets in one list the same shape, such as **Label.** Action. Condition., so the point is where I expect it.
  • Use plain markdown headings: ## for the top level, ### for a subsection, and ####, rarely, for a third level, with a blank line before each. The reply-style mod in this repo draws them in the glow style; without it they show as the terminal's own headings.
  • Plain, complete sentences. No cryptic shorthand or dropped words that make me decode. When the terse skill is on, its rules win where they differ from this section.
  • Keep every not, never, no, only and except, and keep numbers, commands and paths exact. Shortening never drops them.
  • Cut filler, recaps, and restating my question. Filler includes "The simplest fix is", "Note that", "In order to", and a first sentence that only announces what follows.
  • Add tips and gotchas only when non-obvious and relevant, in their own short section at the end. A gotcha gives the action and the condition behind it: the "until" or the "because".
  • Before sending, rewrite any line that reads two ways as a full sentence.
  • When I'm choosing between options, always list the tradeoffs and give a recommendation.
  • Put caveats inline, next to the claim they limit.
  • When a reply names an opaque reference without its title, end the reply with a ### References section that gives each one its title. An opaque reference is anything I can't read at a glance: issue ids (0037), PR or GitHub issue numbers (#36), commit hashes, UUIDs, reference codes. Format it like this:
    • One bullet each, as - **<id>**: <title>, grouped by kind: local issues, then PRs and GitHub issues, then commits, then others. Prefix the kind when the bare id is ambiguous, as in PR #36 or commit c3127e7.
    • One line per range: 0026–0028 gets one bullet with a shared summary, not one bullet per id.
    • Known titles only: use a title already seen in this session, and write (title unknown) otherwise. Don't run a lookup just for this section.
    • Skip ids whose title already sits next to them in the reply. This applies to chat replies only.
    • Rule it off: put --- on its own line, with a blank line before it, since --- right under text turns that text into a heading. Put the References heading on the very next line, with no blank line between them.

What these terms mean:

  • Gotcha: something that could cause a mistake or a surprise, including a limit I'd likely miss. When unsure, call it a gotcha.
  • Caveat: a limit on a claim that won't cause a mistake if missed.
  • Tip: an optional improvement; nothing breaks without it.
  • Tradeoff: what each option gains and what it costs.

This governs chat replies. Documents the user reads (plans, docs) keep the same scannable shape but are as complete as their purpose needs. PR descriptions are written for reviewers, not for the user: comprehensive, not brief, and this style does not apply; see the pr-summary skill.

Don't hard-wrap prose in chat replies: write each paragraph and list item as one line, and let the terminal wrap it. The reply area is narrower than 80 columns, so a line broken at 80 wraps twice and leaves a word alone on a line. Lines that don't rewrap, such as code and diagrams, stay under about 80 characters. Never break code blocks, commands, tables, URLs, or file paths; let those run long so they copy-paste correctly.

Use a visual when it is easier to scan than prose, never as decoration. Assume the reply renders in a terminal unless I say otherwise:

  • Tables for comparing 3 or more items on the same attributes, such as option tradeoffs. Keep to about 4 columns with short cells.
  • Diagrams for flows, sequences, hierarchies, or state changes. In chat, draw them in ASCII (-, |, +, ->, v, `--) in a fence labelled diagram, at most 80 columns wide, with no emoji or other wide characters. The reply-style mod redraws that fence in Unicode lines. Keep a - or + in a label touching a letter (formal-letter), so it stays text. For a diagram in a document or PR body, load the unicode-diagrams skill.
  • No Mermaid or images in chat; the terminal shows Mermaid as raw code. Mermaid is fine in documents that GitHub renders.
  • Skip the visual when a short list says the same thing.
  • Offer an HTML artifact when a visual won't fit in 80 columns or needs color or interaction.

drafts/ holds deliverables the user reads, such as PR summaries. Temporary working files go in the harness scratchpad. Existing .scratch/ folders stay as they are. If the repo already tracks a drafts/ directory, ask before using it.

Name every new file in drafts/ with its creation date as a prefix: drafts/<YYYYMMDD>-<topic>.md, such as drafts/20261026-production-readiness-review.md. Use that name when first writing the file, and leave existing drafts as they are unless asked. Drafts whose name a skill fixes keep that name: PR summaries keep PR_SUMMARY-<task>.md (see Pull Request below), and handle-pr-comments keeps PR_COMMENTS-<n>.md, which it resumes from.

Before writing to drafts/ in a git repo, make sure it is ignored: unless git check-ignore -q drafts/ succeeds, append drafts/ to git rev-parse --git-path info/exclude, not the tracked .gitignore.

Plan documents

Before writing, executing, stamping, moving, resuming, or listing any plan (plan-mode file, .claude/plans/*.md, PLAN*.md, TODO.md), load the plans-and-roadmaps skill. Two rules hold even without it: keep the plan-mode file in ~/.claude/plans/, and commit plans only when asked. If the work needs a tool this session can't load, such as an MCP server from another directory's .mcp.json, hand off before planning (see the skill).

Issues

When you notice an issue unrelated to the current task, mention it in one line and offer to log it. To log, triage, or promote issues, load the issue-tracker skill.

Parallel sessions

When forking a session, starting a second session on the same branch or PR, or resuming after a break, load the session-sync skill.

Web pages

To read a page, use WebFetch. Use a browser tool only to interact with a page (log in, click, fill forms, screenshots) or when WebFetch cannot get its content.

Line width

Hard-wrap new markdown documents at 80 columns. In an existing file, follow that file's current style (e.g. one sentence per line, or no wrapping); a repo's own convention or formatter config wins over this section.

  • Wrap prose at the last word boundary at or before column 80.
  • Do not wrap, even when over-width: fenced code blocks, table rows, URLs, and file paths. Let those overrun rather than breaking them.
  • Never wrap YAML frontmatter, or files that need one entry per line, such as the memory index MEMORY.md.
  • Indent continuation lines of a list item to the item's text column.
  • Re-wrap the surrounding paragraph when an edit changes its length, but only in files that are already hard-wrapped.
  • Exception: PR and issue text is not hard-wrapped, including PR_SUMMARY-*.md and issue bodies passed to the issue-tracker CLI; GitHub renders single newlines as line breaks.

Pull Request

When asked to suggest a PR, load the pr-summary skill. Two rules hold even without it: write a comprehensive suggestion to drafts/PR_SUMMARY-<task>.md, and keep that file untracked.

When asked to open a PR, load the auto-pr skill.

Auto-commit mode

Before approving or executing a plan, or when the user asks for several distinct changes, load the auto-commit skill. Two rules hold even without it: Pause is the default, and only Auto-PR pushes, and only to the branch's recorded upstream, which it may create on its first push; see the auto-pr skill.

Worktrees

Before a plan is approved or executed, the plans-and-roadmaps skill asks whether to run it in a worktree. Without a plan, when the user asks for two or more distinct changes in a git repo, load that skill and ask the same question, in the same prompt as the auto-commit run-mode question. Two rules hold even without it: No worktree is the default, except on a protected branch (the default branch, main, master), where a worktree is recommended first; and never exit or remove a worktree unless asked. The one exception is the ExitWorktree action=keep round trip that plans-and-roadmaps and session-sync use to write main-checkout files; it re-enters at once.

A single request that says "use a worktree", with no plan, goes straight to the built-in EnterWorktree name=<topic>, with the base that worktree.baseRef picks. Do not ask the plan worktree question then.

Writing Commit

Never run git commit unless the user explicitly asks, or chose Auto-commit mode for the current plan or session (see the auto-commit skill). The user reviews changes first. Plan approval, "proceed", "go ahead", or bypass-permissions mode are not requests to commit.

Always suggest a comprehensive commit message once a logical change to files in a git repository is finished, so the user can decide whether to commit or continue working. On later turns, re-post it only when the earlier suggestion is out of date. Skip it when nothing committable changed: files outside any repo, or only ignored files such as drafts/.

Before writing or suggesting a commit message, load the commit-messages skill. One rule holds even without it: an explicit repo convention wins.

When executing a plan, also write the final message into that plan (see the plans-and-roadmaps skill). For the plan-mode file, edit ~/.claude/plans/<slug>.md, not the symlink.

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.