agentleFS
yu-iskwyu-iskw/coding-agent-fabric/CLAUDE.md

coding-agent-fabric

CLAUDE.md1 starsChanged 9 months agoApache-2.0View on GitHub

This is a production-ready TypeScript monorepo template using modern tooling: For large tasks that can benefit from concurrent work: This decomposes tasks into independent subtasks with file ownership, executes them in parallel, and verifies results.

  • Installs packages

The file

Show its rules and text

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

19 rules. About 0 are common, 6 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    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:

    Use TypeScript for all code

    line 27
  2. Distinctive:

    Follow project ESLint/Prettier configuration (managed via Trunk)

    line 28
  3. Distinctive:

    Use functional programming patterns where appropriate

    line 29
  4. Very specific:

    Use PascalCase for classes/interfaces, camelCase for functions/variables

    line 30
  5. Very specific:

    Use kebab-case for file names (e.g., user-service.ts)

    line 31
  6. Very specific:

    Write tests in tests/ or alongside source files as *.test.ts

    line 35
  7. Distinctive:

    Use Vitest for unit and integration tests

    line 36
  8. Very specific:

    Run pnpm test before committing

    line 38
  9. Distinctive:

    Create feature branches from main

    line 42
  10. Very specific:

    Run pnpm lint && pnpm test before commits

    line 43
  11. Very specific:

    Commit messages: type(scope): description (e.g., feat(ui): add new button component)

    line 44
  12. Very specific:

    Document significant design decisions as Architecture Decision Records (ADRs) in docs/adr.

    line 54
  13. Very specific:

    Always use pnpm instead of npm or yarn

    line 58
  14. Very specific:

    Run trunk install if linters report missing tools

    line 61
  15. Very specific:

    Rules: Add to CLAUDE.md or .cursor/rules/ for guidance requiring judgment.

    line 108
  16. Very specific:

    Hooks: Use PreToolUse or PostToolUse in .claude/settings.json for deterministic, mandatory checks.

    line 109
  17. Very specific:

    Skills: Create new entries in .claude/skills/ for reusable complex workflows.

    line 110
  18. Distinctive:

    Be Specific & Minimal: Only add rules or skills that provide clear, non-obvious value.

    line 113
  19. Very specific:

    Use the /improve-claude-config skill to orchestrate these changes.

    line 115

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

TypeScript Monorepo - Claude Code Memory

Project Overview

This is a production-ready TypeScript monorepo template using modern tooling:

  • Package Manager: pnpm (with workspace support)
  • Runtime: Node.js (see .node-version for current version)
  • Build System: tsc / pnpm
  • Linting/Formatting: Trunk (manages ESLint, Prettier, and more)
  • Testing: Vitest
  • CI/CD: GitHub Actions

Quick Commands

pnpm install    # Install all dependencies
pnpm build      # Build all packages
pnpm test       # Run all tests via Vitest
pnpm lint       # Run all linters via Trunk
pnpm format     # Auto-format code via Trunk
pnpm clean      # Clean build artifacts

Code Style

  • Use TypeScript for all code
  • Follow project ESLint/Prettier configuration (managed via Trunk)
  • Use functional programming patterns where appropriate
  • Use PascalCase for classes/interfaces, camelCase for functions/variables
  • Use kebab-case for file names (e.g., user-service.ts)

Testing

  • Write tests in tests/ or alongside source files as *.test.ts
  • Use Vitest for unit and integration tests
  • Aim for high test coverage on core logic
  • Run pnpm test before committing

Git Workflow

  • Create feature branches from main
  • Run pnpm lint && pnpm test before commits
  • Commit messages: type(scope): description (e.g., feat(ui): add new button component)
  • Types: feat, fix, docs, style, refactor, test, chore
  • Record changes using the manage-changelog skill when changie is available

Architecture

  • Source code in packages/* or src/ (depending on package structure)
  • Development scripts and shared config in root
  • CI/CD workflows in .github/workflows/
  • Claude Code configuration in .claude/
  • Document significant design decisions as Architecture Decision Records (ADRs) in docs/adr; use the manage-adr skill when adr is available

Common Gotchas

  • Always use pnpm instead of npm or yarn
  • Trunk manages tool versions hermetically - don't install linters globally
  • The pnpm-lock.yaml file is committed for reproducibility - don't gitignore it
  • Run trunk install if linters report missing tools

Parallel Task Execution

For large tasks that can benefit from concurrent work:

/parallel-executor Add comprehensive logging to all modules

This decomposes tasks into independent subtasks with file ownership, executes them in parallel, and verifies results.

Available Agents

AgentPurpose
verifierRun build → lint → test cycle
code-reviewerReview code for quality and security
parallel-executorOrchestrate parallel task execution
parallel-tasks-plannerPlan task decomposition
task-workerExecute isolated subtasks

Available Skills

SkillPurpose
build-and-fixBuild the project and automatically fix build errors, compilation failures, or type mismatches
clean-projectPerform a "hard reset" of the development environment (clean node_modules, lockfiles, etc.)
fix-issueFix a GitHub issue end-to-end (view, branch, fix, test, PR)
improve-claude-configSelf-improvement skill for evolving Claude Code configuration
initialize-projectInitialize a new project from the template (rename packages, update metadata)
lint-and-fixRun linters and fix violations, formatting errors, or style mismatches using Trunk
manage-adrManage Architecture Decision Records (init, create, list, link ADRs in docs/adr)
manage-changelogManage changelogs with Changie (init, add fragments, batch releases, merge into CHANGELOG.md)
node-upgradeSafely upgrade Node.js dependencies in pnpm workspaces
bumpup-versionsConsistently bump and synchronize versions across all packages in the monorepo
security-vulnerability-auditAudit security vulnerabilities using Trunk (Trivy and OSV-scanner)
setup-dev-envSet up the development environment (Node.js, pnpm, Trunk)
test-and-fixRun unit tests and automatically fix failures, regression bugs, or test mismatches
problem-solvingSystematic issue analysis and report generation (global skill)

Configuration Self-Improvement

This project supports Claude Code self-improvement. When you notice repeated mistakes, recurring explanations, or opportunities for automation:

  1. Analyze Pattern: Identify if it's a rule (guidance), a hook (mandatory action), a skill (workflow), or an agent (specialized task).
  2. Implement Improvement:
    • Rules: Add to CLAUDE.md or .cursor/rules/ for guidance requiring judgment.
    • Hooks: Use PreToolUse or PostToolUse in .claude/settings.json for deterministic, mandatory checks.
    • Skills: Create new entries in .claude/skills/ for reusable complex workflows.
    • Agents: Define new agents in .claude/agents/ for specialized context isolation.
  3. Use Subagents: For configuration research or verification, use subagents to isolate context and prevent contamination of the main session.
  4. Be Specific & Minimal: Only add rules or skills that provide clear, non-obvious value.

Use the /improve-claude-config skill to orchestrate these changes.

Recent Learnings

  • [2026-02-05]: Initial setup of the comprehensive skills reference and self-improvement guidelines.

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.