agentleFS
tranhieutttranhieutt/software_development_department/CLAUDE.md

software_development_department

CLAUDE.md72 starsChanged 7 months agoMITView on GitHub

Software development managed through specialized Claude Code subagents. Each agent owns a specific domain, enforcing separation of concerns and quality. Commands vs Skills precedence: Workflow commands trên đây là gates (xác định stage của task); skills là domain expertise (cung cấp content). Commands CHỨA skills, không thay thế. Xem .claude/docs/skills-precedence.md để biết rule chi tiết và boundary giữa các skill trùng scope. @.claude/memory/MEMORY.md First session? If no stack has been configured yet, run /start to begin the guided onboarding flow.

The file

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

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

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NO AUTOPILOT: Every task follows Question -> Options -> Decision -> Draft -> Approval.

    line 7
  2. Very specific:

    CONFIRM BEFORE PROACTIVE WRITES: If the agent decides to create/edit a file *outside* the explicitly requested scope, MUST ask "May I write …

    line 8
  3. Distinctive:

    SAFETY TIERS & RISK ASSESSMENT: Before editing code or executing commands, assign a Risk Tier (Low: reversible.

    line 11
  4. Very specific:

    ANNOTATION PROTOCOL: When you discover unexpected API behavior, undocumented caveats, version bugs, or non-obvious workarounds — …

    line 13
  5. Distinctive:

    If the user invokes these short commands, or if the task context implies them, YOU MUST trigger the corresponding skill:

    line 16
  6. Very specific:

    /plan: ALWAYS trigger the planning-and-task-breakdown skill first for complex epics.

    line 17
  7. Very specific:

    /spec: ALWAYS trigger the spec-driven-development skill before writing logic for a task.

    line 18
  8. Very specific:

    /tdd: ALWAYS trigger the test-driven-development skill when writing the source.

    line 19
  9. Very specific:

    /diagnose: ALWAYS trigger the diagnose skill for complex, non-obvious failures.

    line 21
  10. Very specific:

    /vertical-slice: ALWAYS trigger the vertical-slicing skill when planning fullstack features.

    line 22
  11. Very specific:

    /ui-spec: ALWAYS trigger the ui-spec skill.

    line 23

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

Claude Code Software Development Department

Software development managed through specialized Claude Code subagents. Each agent owns a specific domain, enforcing separation of concerns and quality.

🚨 CRITICAL RULES (Must obey on every turn)

  • NO AUTOPILOT: Every task follows Question -> Options -> Decision -> Draft -> Approval.
  • CONFIRM BEFORE PROACTIVE WRITES: If the agent decides to create/edit a file outside the explicitly requested scope, MUST ask "May I write this to [filepath]?". If the user explicitly named the file or acceptEdits mode is active, skip the question.
  • NO COMMITS WITHOUT PERMISSION: Multi-file changes require explicit approval for the full changeset.
  • GIT SNAPSHOT WARNING: The Internal Git status is a STALE SNAPSHOT! You MUST run git status or git diff via BashTool before making git operations or tracking git state.
  • SAFETY TIERS & RISK ASSESSMENT: Before editing code or executing commands, assign a Risk Tier (Low: reversible; Medium: shared code, needs rollback plan; High: destructive/prod, requires explicit approval).
  • TOOL CONSTRAINTS (READ BEFORE WRITE/EDIT): You MUST read a file's contents before writing to or editing it. For edits, strictly adhere to string replacement uniqueness constraints.
  • ANNOTATION PROTOCOL: When you discover unexpected API behavior, undocumented caveats, version bugs, or non-obvious workarounds — immediately add a dated entry to .claude/memory/annotations.md via /annotate. Do NOT wait to be asked. Knowledge that is not persisted is lost.

🧭 Implicit Workflow Commands (Process Shields)

If the user invokes these short commands, or if the task context implies them, YOU MUST trigger the corresponding skill:

  • /plan: ALWAYS trigger the planning-and-task-breakdown skill first for complex epics. Output an atomic markdown task checklist. Do NOT write code yet.
  • /spec: ALWAYS trigger the spec-driven-development skill before writing logic for a task. Secure explicit blueprint/architecture approval from the user.
  • /tdd: ALWAYS trigger the test-driven-development skill when writing the source. Write failing tests, check CMD outputs (🔴 RED), implement, and pass (🟢 GREEN). Never claim success without terminal test logs.
  • /context or /memory: ALWAYS trigger the context-engineering skill. Diagnose context stuffing, optimize persistent vs episodic knowledge, and enforce the Research-Plan-Reset-Implement cycle using mcp_supermemory tools.
  • /diagnose: ALWAYS trigger the diagnose skill for complex, non-obvious failures. Use sequential Investigator -> Verifier -> Solver logic.
  • /vertical-slice: ALWAYS trigger the vertical-slicing skill when planning fullstack features. Divide work into functional end-to-end units.
  • /ui-spec: ALWAYS trigger the ui-spec skill. Transform PRDs and prototypes into rigorous technical UI specifications with state matrices.

Commands vs Skills precedence: Workflow commands trên đây là gates (xác định stage của task); skills là domain expertise (cung cấp content). Commands CHỨA skills, không thay thế. Xem .claude/docs/skills-precedence.md để biết rule chi tiết và boundary giữa các skill trùng scope.

Project Durable Memory

@.claude/memory/MEMORY.md

Technology Stack

  • Language: Shell (Bash), JavaScript (Node.js), PowerShell
  • Frontend Framework: none (CLI Infrastructure)
  • Backend Framework: Model Context Protocol (MCP), Git Bash Hooks
  • Database: Filesystem (Markdown/JSONL), Supermemory MCP
  • Deployment: Shell installation scripts (init-sdd.sh, init-sdd.ps1)
  • CI/CD: GitHub Actions (planned)

First session? If no stack has been configured yet, run /start to begin the guided onboarding flow.

Project Structure

@.claude/docs/directory-structure.md

Technical Preferences

@.claude/docs/technical-preferences.md

Coordination Rules

@.claude/docs/coordination-rules.md

Coding Standards

@.claude/docs/coding-standards.md

Output & UX Utilities

@.claude/docs/utility-prompts.md

Context Management

@.claude/docs/context-management.md @.claude/docs/skills-precedence.md

<!-- Deep-dive examples, misconceptions table, and startup order diagram: .claude/docs/context-management-guide.md (NOT injected — reference only) -->

LLM Coding Behavior

@.claude/docs/llm-coding-behavior.md

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.