Skip to content
udsy19Public

About

A production-grade .claude folder for Claude Code: 40 lifecycle skills, agents, commands, and hooks — with reflexive skill routing and always-on engineering disciplines (verify, no-bloat, continuous-git, memory, ship-fast).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

.claude — Production Claude Code Configuration

A complete, batteries-included .claude folder that doesn't just contain skills — it uses them.

41 skills · 4 agent personas · 9 slash commands · reflexive skill routing · always-on engineering disciplines · a one-prompt supervised agent organisation

License: MIT 41 skills 6 hooks Claude Code ready Stars

Install · How it works · What's inside · Agent organisation · The hooks · License


Highlights

  • Reflexive routing — the right skill is suggested on every prompt, no slash command required.
  • Always-on disciplines — verify-don't-hallucinate, no-bloat, continuous-git, memory, and ship-fast run in the background.
  • 40 skills across the full lifecycle — define → plan → build → verify → review → ship.
  • A supervised agent organisation from one prompt — /agent-org sets up lane supervisors, Claude workers and their sub-agents, an Obsidian vault as mission control, 3-layer memory, session handoffs and crash recovery.
  • 6 fail-safe hooks — degrade gracefully with missing deps and never block your prompt (the vault gate refuses one edit per session, on purpose).
  • Best-in-class bundled skills — design, React/Next, and accessibility from Anthropic, Vercel, AccessLint & more.
  • Token-conscious — progressive disclosure plus a trimmed session injection keep context lean.

Drop it into ~/.claude/ (global) or a project's .claude/ and Claude Code picks everything up automatically.


Why this exists

A pile of skills is only useful if the agent actually reaches for them. Most setups leave that to chance. This configuration adds two things on top of a strong skill library:

  1. Reflexive routing — a UserPromptSubmit hook matches every prompt against the skill set and injects a one-line hint, so the agent applies the right workflow without you typing a slash command.
  2. Standing disciplines — a SessionStart hook injects a compact operating procedure every session: verify before asserting, don't write redundant or dead code, commit continuously, persist durable memory, ship in small batches.

The result: the folder doesn't just contain skills, it uses them.

How it works

                     ┌─────────────────────────────────────────────┐
  every session  →   │ SessionStart hook → injects the discovery    │
                     │ flowchart + standing operating procedure     │
                     └─────────────────────────────────────────────┘
                     ┌─────────────────────────────────────────────┐
  every prompt   →   │ UserPromptSubmit hook (skill-router) →        │
                     │ matches intent → suggests the matching skill  │
                     └─────────────────────────────────────────────┘
                     ┌─────────────────────────────────────────────┐
  always         →   │ Native skill discovery: each skill's         │
                     │ description (~100 tokens) is loaded; the      │
                     │ full body loads only when the skill is used   │
                     └─────────────────────────────────────────────┘

Three layers, by design:

  • Native auto-discovery — Claude Code loads every skill's description and activates the one that matches your task. Cheap at rest (progressive disclosure).
  • The router — a deterministic nudge layer so the right skill surfaces reliably, even mid-session when the discovery map has scrolled out of attention. Conservative: it stays silent when nothing matches strongly.
  • Slash commands — for when you want to force a specific workflow (/spec, /plan, /build, /test, /review, /ship, …).

Install

One command installs the config; after that, /setup does the rest from inside Claude Code.

git clone https://github.com/udsy19/.claude.git claude-config
node claude-config/skills/agent-org/scripts/setup.mjs --scope base --install global

That copies skills, agents, commands, hooks, rules and references into ~/.claude/ and merges settings.json into yours: nothing of yours is overwritten, and missing permissions and hook commands are added. To install into one project instead (shared with your team via git), run it with --install project --project your-project. That also puts .mcp.json at the project root, where MCP config belongs.

Then, in any project, run /setup. It asks a short tiered interview, with a default on every question, remembers the answers in ~/.claude/setup.json, and installs:

scope what you get
base this config, globally or in the project
vault base plus the agent-org vault in this project: Obsidian mission control, rules, gates and the PR-gate workflow
org the vault plus a supervised agent organisation: the full /agent-org interview, org.json, and the host bootstrap

Re-running /setup changes nothing unless you pick "Change answers". An answer that can't be migrated (say, moving the config from global to project) is refused, with what to do by hand.

The same settings.json works in both scopes: each hook command runs the project's copy ($CLAUDE_PROJECT_DIR/.claude/hooks/…) if there is one, else the global one (~/.claude/hooks/…), and does nothing if neither exists.

The cache hooks write to .claude/sdd-cache/ and .claude/.simplify-ignore-cache/ inside whichever project you work in, so add those two lines to its .gitignore (vault projects get them automatically).

In a git repo without a vault, the vault gate blocks the first edit of each session once, reminding you to run /setup. To work there without a vault, touch .claude/no-vault or set ORG_VAULT=off.

Important

  • Contents go directly under .claude/ (i.e. .claude/skills/...), not nested in a sub-folder.
  • .mcp.json belongs at the project root, next to .claude/, not inside it.
  • .claude/rules/*.md files without a paths: field auto-load every session (that's how no-bloat.md is always enforced).

Requirements

Everything degrades gracefully if a dependency is missing, but for full functionality:

Dependency Used by
jq all hooks (router, session-start, caches, vault gate) — they silently no-op without it
curl, shasum/sha256sum the sdd-cache web-fetch cache hooks
python3 the ui-ux-pro-max skill's design-system CLI
Google Chrome + the AccessLint MCP server the accesslint-* live-DOM accessibility skills
Claude Code v2.1.59+ native auto-memory referenced by memory-discipline
node, python3, git the agent-org installer, gates and vault generators
tmux, flock, rsync, claude (and codex for a codex supervisor) the agent-org runtime host — checked by its bootstrap-host.sh

What's inside

41 skills: 40 organized by development phase (including the meta-skill that wires discovery), plus agent-org for running agents as a supervised organisation.

Define & Plan
Skill What it does
interview-me Surface what you actually want before any plan or code
idea-refine Diverge then converge on an approach
spec-driven-development Requirements + acceptance criteria before code
planning-and-task-breakdown Decompose into small, verifiable tasks
Build
Skill What it does
pre-edit-scan Search for existing code before writing — no duplicates, no dead code
incremental-implementation Thin vertical slices, verified one at a time
context-engineering Load the right context; token & tool-use efficiency
source-driven-development Verify against official docs before implementing
doubt-driven-development Cross-examine non-trivial decisions in-flight
api-and-interface-design Stable contracts, clear versioning
frontend-ui-engineering Production UI with accessibility
frontend-design (Anthropic) Distinctive, intentional visual design
ui-ux-pro-max (nextlevelbuilder) Searchable design DB: styles, palettes, fonts, UX rules
controlled-ux-designer / innovative-ux-designer (bencium) Deep UX fundamentals (systematic / bold variants)
react-best-practices (Vercel) React/Next performance: waterfalls, bundle, re-renders
composition-patterns (Vercel) React component architecture, compound components
react-native-skills (Vercel) React Native / Expo mobile UI performance
Verify & Review
Skill What it does
test-driven-development Failing test first, then make it pass
browser-testing-with-devtools Runtime verification via Chrome DevTools
debugging-and-error-recovery Reproduce → localize → fix → guard
anti-hallucination Verify facts/APIs against sources; research best practice before deciding
code-review-and-quality Five-axis review before merge
code-simplification Reduce complexity, preserve behavior
security-and-hardening Input validation, least privilege, OWASP
performance-optimization Measure first, optimize what matters
web-design-guidelines (Vercel) Audit UI against 100+ interface rules
accesslint-scan / accesslint-audit / accesslint-diff (AccessLint) Live-DOM WCAG auditing via Chrome
Ship
Skill What it does
autonomous-git-workflow Commit continuously; parallelize with worktrees (no-overlap + clean-merge guidance)
git-workflow-and-versioning Atomic commits, clean history
ship-fast Small batches, low WIP, deploy often behind flags
ci-cd-and-automation Automated quality gates on every change
deprecation-and-migration Retire old systems and migrate users safely
documentation-and-adrs Capture the why, not just the what
observability-and-instrumentation Structured logs, RED metrics, traces
shipping-and-launch Pre-launch checklist, monitoring, rollback
Cross-cutting / always-on
Skill What it does
using-agent-skills The meta-skill: discovery flowchart + operating behaviors (injected each session)
memory-discipline What to persist to native memory (and what not)
Organise
Skill What it does
agent-org One prompt → a supervised agent organisation: lane supervisors, workers, sub-agents, vault, memory, handoffs, recovery. See below.

Skills tagged with a source in (parentheses) are bundled third-party skills — see Acknowledgements.

Also included:

  • agents/ — 4 reusable personas: code-reviewer, security-auditor, test-engineer, web-performance-auditor.
  • commands/ — 9 slash commands: /setup, /build, /plan, /spec, /test, /review, /ship, /code-simplify, /webperf.
  • rules/no-bloat.md — always-on policy: search before write, leave no dead code.
  • references/ — checklists for testing, performance, security, accessibility, observability, orchestration, plus a .claude-folder authoring guide.

Agent organisation (agent-org)

The skills above make one Claude session work well. agent-org is for when the work outgrows one session: a standing product effort split into lanes that run for days, survive restarts and usage limits, and only stop for the owner's decisions.

OWNER        vision · rulings · spend/access · judges by looking
  │
OVERSEER     your Claude session: relays answers, audits evidence, keeps memory + vault + handoff current
  │
SUPERVISOR   one per lane, read-only (Claude or codex): plans, briefs workers, judges evidence, merges/lands
  │
WORKER       a Claude Code agent: one task, own worktree + branch, builds, screenshots, checkpointed report
  │
SUB-AGENT    the worker's helpers: research, review, parallel exploration

Goals go down, evidence comes up. Around the chain the kit installs:

  • an Obsidian vault as mission control: Vision, Plan, Roadmap, Missions, Decisions and Sessions, with generated hubs and an Index;
  • three memory layers: auto-memory for corrections and preferences, the vault and .claude/rules/owner-rulings.md for project knowledge and the owner's standing rulings, and per-lane memory for each supervisor;
  • seven rules plus the hooks, role cards (builder, reviewer, researcher, bug-fixer, …) and gates that enforce them (scripts/gates/org-board.sh, and a PR-gate workflow);
  • ops: git sync, an hourly state snapshot, an event feed with login probes, landings that run the gates first, daily spend caps per lane, and safe lane restarts that keep workers alive.

Use it — in Claude Code, in any repo:

/setup                          (pick the full org)  — or —  /agent-org set up the agent organisation for this project

Claude interviews you about the project, runtime (locally as you, or on a Linux VPS as a worker user), models and lanes, shows a summary for your yes, then installs and starts everything. The only steps left to you are the claude/codex logins, typed in your own terminal. Day-to-day commands are in skills/agent-org/README.md, and the full design (every guard and the failure it exists for) is in skills/agent-org/docs/HIERARCHY.md.

It reuses this config rather than duplicating it: the pre-edit-scan and memory-discipline skills its rules depend on are the ones in skills/, and references/orchestration-patterns.md lists it as Pattern 6 (supervised lanes). It is also the most expensive pattern here, a supervisor consult per cycle plus up to N workers per lane, so use it for ongoing efforts, not single features.

The hooks

All wired in settings.json and written to fail safe (no dependency → silent no-op; they never block your prompt). The context hooks use Claude Code's documented output: session-start.sh returns hookSpecificOutput.additionalContext, and skill-router.sh prints plain text. Both stay silent in agent-org lane processes (AGENT_ORG_HEADLESS=1), which are headless and follow their own rules.

Hook Event(s) What it does
session-start.sh SessionStart Injects the discovery flowchart + standing operating procedure
skill-router.sh UserPromptSubmit Matches the prompt to skills and injects a routing hint (silent on weak/no match; skips slash commands)
sdd-cache-pre.sh / sdd-cache-post.sh PreToolUse / PostToolUse (WebFetch) HTTP-validator cache for WebFetch — serves unchanged pages from cache on a 304
simplify-ignore.sh PreToolUse (Read) / PostToolUse (Edit|Write) / Stop Hides simplify-ignore-marked blocks from the model during edits, restores them after
vault-gate.sh PreToolUse (Edit|Write|MultiEdit|NotebookEdit) In a git repo without an agent-org vault, refuses the first edit of a session once with "run /setup here"; silent outside git, with a vault, in headless org processes, and with .claude/no-vault or ORG_VAULT=off

Configuration & customization

  • Permissions — settings.json ships a conservative allowlist (read-only inspection + local git ops like add/commit/worktree); push/merge/reset stay in ask. Trim to taste.
  • Tune the router — all keyword patterns live in one labeled block in hooks/skill-router.sh. Add/adjust a line per skill; it's plain grep -E.
  • Add a skill — drop a skills/<name>/SKILL.md with name + description frontmatter. It's discoverable immediately; add a router line if you want an explicit nudge.
  • Disable a hook — remove its entry from settings.json (the script can stay).
  • MCP — .mcp.json configures the AccessLint server (launched on demand via npx). Remove the block if you don't want it.

Security & trust

Agent Skills can execute code (scripts, and !-prefixed shell blocks run on load). Treat any skill folder like third-party code:

  • Review before you trust. Everything here is plain markdown and shell — readable end to end.
  • The bundled third-party skills were scanned for obvious exfiltration / shell-escape / credential-read patterns and ran clean at bundling time, but you should verify for your own threat model.
  • ui-ux-pro-max ships a local Python CLI (queries bundled CSVs — no network); the accesslint-* skills drive a local Chrome via an MCP server. Review both if that matters to you.
  • The hooks only ever read tool inputs and write to local cache and state dirs; none phone home.
  • agent-org runs agents with permissions skipped, inside their own worktrees. Safety comes from roles and gates instead: a Claude supervisor gets only read and web-research tools, supervisor output is validated before it touches git, a landing runs the gates first, and each lane has daily spend caps. It pushes lane branches, and main only if you set sync.push_main. Its hourly lane-state snapshot is pushed to origin too, so anyone who can read the repo can read it (org.json is reduced to an allowlist of known-safe keys; the rest are named in the snapshot log). On a VPS it runs as a separate worker user (its bootstrap creates one). It never handles secrets: you type logins into your own terminal.

CI

.github/workflows/ci.yml runs on every push and PR. A lint job (Ubuntu) runs shellcheck over the hooks and the agent-org scripts, checks that every JSON config parses, that every skills/*/SKILL.md has YAML frontmatter with name and description, that no Python bytecode is tracked, and that the README's skill count matches skills/. A test job on Ubuntu and macOS runs every *.test.mjs under node --test, the loop-guard cases, and the agent-org suites: the lane loop, the host scripts, the init-repo e2e with org-board.sh, the headless audit, the /setup permutation matrix, and a local org run end to end (setup, two lanes, refused landings, a restart adopting a running agent, the hourly snapshot, STOP). All of them use fakes; none needs a login or the network.

Acknowledgements & credits

This project stands on excellent open-source work. If you fork or redistribute, keep these credits and the corresponding licenses — they are required by the upstream licenses.

Component Author / Source License
Core skill library, agents, commands, base hooks, references Addy Osmani — addyosmani/agent-skills MIT
frontend-design Anthropic — anthropics/skills Apache-2.0
web-design-guidelines, react-best-practices, composition-patterns, react-native-skills Vercel — vercel-labs/agent-skills MIT
ui-ux-pro-max nextlevelbuilder/ui-ux-pro-max-skill MIT
accesslint-scan / accesslint-audit / accesslint-diff + MCP server accesslint/claude-marketplace MIT
controlled-ux-designer, innovative-ux-designer bencium/bencium-claude-code-design-skill None declared — not cleared for redistribution

Original to this project: the skill-router reflexive routing system, the SessionStart standing-procedure injection, and the skills anti-hallucination, pre-edit-scan (+ rules/no-bloat.md), memory-discipline, ship-fast, autonomous-git-workflow, the agent-org supervised-organisation kit, plus the wiring that ties them together.

Full attributions and license texts are in THIRD-PARTY-LICENSES.md. Upstream LICENSE files are retained where they ship (skills/frontend-design/LICENSE.txt — Apache-2.0; skills/ui-ux-pro-max/LICENSE — MIT).

Warning

The two bencium skills (controlled-ux-designer, innovative-ux-designer) declare no upstream license (all rights reserved by default) and are included here without one. Copyright remains with bencium — obtain the author's permission before reusing or redistributing them. See THIRD-PARTY-LICENSES.md.

License

This project's original contributions are MIT-licensed — see LICENSE. Bundled third-party skills remain under their own licenses; see THIRD-PARTY-LICENSES.md. Your project license does not override theirs.

Contributing

Issues and PRs welcome. When adding a skill, follow the existing anatomy — name + description frontmatter, then Overview / When to Use / Process / Common Rationalizations / Red Flags / Verification — and reference other skills rather than duplicating them (the pre-edit-scan and no-bloat disciplines apply to this repo too).

Built for Claude Code · MIT (original work) · see THIRD-PARTY-LICENSES for bundled components

About

A production-grade .claude folder for Claude Code: 40 lifecycle skills, agents, commands, and hooks — with reflexive skill routing and always-on engineering disciplines (verify, no-bloat, continuous-git, memory, ship-fast).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages