agentleFS
itsmuskanagarwalitsmuskanagarwal/claude-pack/skills/claude-md-architect/SKILL.md

claude-md-architect

Skill0 starsChanged 4 months agoMITView on GitHub

Author, restructure, or prune CLAUDE.md files for any repository. Use whenever the user asks to create or improve a CLAUDE.md, complains that Claude ignores project conventions, mentions config for a team/enterprise rollout, or when starting work in a repo whose CLAUDE.md is missing, auto-generated, or over 150 lines. Also use when asked to add rules after Claude makes a repeated mistake.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Must contain, in this order: Stack (exact versions), Commands, Conventions, Never, Repo map (≤ 15 lines, only if no harness nav map output …

    line 12
  2. Very specific:

    Never, Repo map (≤ 15 lines, only if no harness nav map output exists).

    line 13
  3. Distinctive:

    Every rule ≤ 2 sentences, imperative voice, testable.

    line 14
  4. Distinctive:

    Add the narrowest rule that prevents X, place it in Never or Conventions, note the date and reason as an HTML comment, and check whether an …

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
<!-- owner: Muskan, added: 2026-07-16, model: claude-sonnet-5, review: quarterly -->

CLAUDE.md Architect

Non-negotiable output constraints

  • Repo-level CLAUDE.md ≤ 150 lines. If content exceeds this, push detail into directory-level CLAUDE.md files or docs/ files referenced with one line.
  • Must contain, in this order: Stack (exact versions), Commands, Conventions, Never, Repo map (≤ 15 lines, only if no harness nav map output exists).
  • Every rule ≤ 2 sentences, imperative voice, testable. "Write good code" is banned; "Components must not inject services other than facades" is the bar.
  • Stack lines require exact versions: "Angular 17.3, NgRx 17 (signals store), TypeScript 5.4". Reject "Angular" bare.

Procedure

  1. Inventory: read existing CLAUDE.md at all levels (system, repo root, subdirs), package manifests, lint configs, CI files. List conflicts.
  2. Interview the repo, not the user: derive commands from package.json / Makefile / CI. Only ask the user for things code cannot answer (e.g., "which of these two patterns is the sanctioned one?").
  3. Draft with the section order above. The Never section comes from: past incidents, lint suppressions found in code, and any "repeated mistake" the user mentioned. Never section is the highest-value real estate; spend effort here.
  4. Prune pass: delete any rule that (a) duplicates a linter the repo runs, (b) restates framework defaults, (c) compensates for an old model limitation (flag these to the user instead of silently keeping).
  5. Layering: rules applying to one directory move to that directory's CLAUDE.md. Personal preferences go to CLAUDE.local.md (git-ignored).
  6. Output the file(s), then a 5-line changelog: added / removed / moved / flagged-as-rot / open questions.

Maintenance mode (when asked to "add a rule because Claude did X wrong")

Add the narrowest rule that prevents X, place it in Never or Conventions, note the date and reason as an HTML comment, and check whether an existing rule already covers it (if so, sharpen that rule instead of adding).

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.