claude-code-kit 0.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- claude_code_kit-0.7.0.dist-info/METADATA +384 -0
- claude_code_kit-0.7.0.dist-info/RECORD +209 -0
- claude_code_kit-0.7.0.dist-info/WHEEL +4 -0
- claude_code_kit-0.7.0.dist-info/entry_points.txt +4 -0
- claude_code_kit-0.7.0.dist-info/licenses/LICENSE +21 -0
- claude_kit/__init__.py +10 -0
- claude_kit/__main__.py +8 -0
- claude_kit/_payload/agents/acceptance-reviewer.md +60 -0
- claude_kit/_payload/agents/auditor.md +76 -0
- claude_kit/_payload/agents/dependency-scanner.md +84 -0
- claude_kit/_payload/agents/developer.md +187 -0
- claude_kit/_payload/agents/devils-advocate.md +62 -0
- claude_kit/_payload/agents/devops-engineer.md +134 -0
- claude_kit/_payload/agents/e2e-tester.md +152 -0
- claude_kit/_payload/agents/em-reviewer.md +105 -0
- claude_kit/_payload/agents/incident-responder.md +64 -0
- claude_kit/_payload/agents/merge-reviewer.md +194 -0
- claude_kit/_payload/agents/observability-engineer.md +94 -0
- claude_kit/_payload/agents/orchestrator.md +551 -0
- claude_kit/_payload/agents/owasp-reviewer.md +76 -0
- claude_kit/_payload/agents/policy-validator.md +63 -0
- claude_kit/_payload/agents/pr-raiser.md +138 -0
- claude_kit/_payload/agents/risk-classifier.md +50 -0
- claude_kit/_payload/agents/sdlc-code-reviewer.md +196 -0
- claude_kit/_payload/agents/secret-scanner.md +70 -0
- claude_kit/_payload/agents/security-reviewer.md +80 -0
- claude_kit/_payload/agents/senior-backend-dev.md +199 -0
- claude_kit/_payload/agents/senior-frontend-dev.md +181 -0
- claude_kit/_payload/agents/senior-tester.md +206 -0
- claude_kit/_payload/agents/spec-doc-writer.md +331 -0
- claude_kit/_payload/agents/story-planner.md +56 -0
- claude_kit/_payload/agents/technical-architect.md +139 -0
- claude_kit/_payload/agents/tester.md +193 -0
- claude_kit/_payload/agents/ui-designer.md +73 -0
- claude_kit/_payload/agents/unit-tester.md +119 -0
- claude_kit/_payload/catalog/mcp.yaml +54 -0
- claude_kit/_payload/catalog/org.yaml +145 -0
- claude_kit/_payload/catalog/profiles.yaml +96 -0
- claude_kit/_payload/catalog/stacks.yaml +96 -0
- claude_kit/_payload/commands/init.md +36 -0
- claude_kit/_payload/commands/sdlc.md +18 -0
- claude_kit/_payload/commands/status.md +20 -0
- claude_kit/_payload/hooks/hooks.json +58 -0
- claude_kit/_payload/hooks/scripts/audit-log.sh +18 -0
- claude_kit/_payload/hooks/scripts/guard-secrets.sh +26 -0
- claude_kit/_payload/hooks/scripts/lint-fix.sh +38 -0
- claude_kit/_payload/hooks/scripts/load-continuity.sh +32 -0
- claude_kit/_payload/hooks/scripts/load-learnings.sh +40 -0
- claude_kit/_payload/hooks/scripts/type-check.sh +23 -0
- claude_kit/_payload/hooks/scripts/validate-frontmatter.sh +34 -0
- claude_kit/_payload/hooks/scripts/validate-settings.sh +21 -0
- claude_kit/_payload/hooks/scripts/warn-large-edits.sh +24 -0
- claude_kit/_payload/hooks/scripts/warn-missing-tests.sh +24 -0
- claude_kit/_payload/hooks/scripts/warn-sensitive-files.sh +30 -0
- claude_kit/_payload/hooks/scripts/warn-shared-modules.sh +33 -0
- claude_kit/_payload/rules/agent-guardrails.md +83 -0
- claude_kit/_payload/rules/agent-memory.md +106 -0
- claude_kit/_payload/rules/agent-resilience.md +61 -0
- claude_kit/_payload/rules/autonomy-levels.md +30 -0
- claude_kit/_payload/rules/code-organization.md +312 -0
- claude_kit/_payload/rules/continuity.md +84 -0
- claude_kit/_payload/rules/design-patterns.md +422 -0
- claude_kit/_payload/rules/devops-observability.md +57 -0
- claude_kit/_payload/rules/documentation.md +326 -0
- claude_kit/_payload/rules/evals.md +62 -0
- claude_kit/_payload/rules/frontend-best-practices.md +157 -0
- claude_kit/_payload/rules/goal-setting-and-monitoring.md +72 -0
- claude_kit/_payload/rules/human-in-the-loop.md +64 -0
- claude_kit/_payload/rules/linting-and-formatting.md +220 -0
- claude_kit/_payload/rules/mandatory-workflow.md +309 -0
- claude_kit/_payload/rules/model-tiers.md +34 -0
- claude_kit/_payload/rules/quality-gates.md +107 -0
- claude_kit/_payload/rules/rarv-cycle.md +31 -0
- claude_kit/_payload/rules/reasoning-techniques.md +62 -0
- claude_kit/_payload/rules/responsive-and-accessibility.md +353 -0
- claude_kit/_payload/rules/risk-classification.md +36 -0
- claude_kit/_payload/rules/testing.md +417 -0
- claude_kit/_payload/rules/tool-design.md +66 -0
- claude_kit/_payload/skills/_references/accessibility-checklist.md +160 -0
- claude_kit/_payload/skills/_references/orchestration-patterns.md +405 -0
- claude_kit/_payload/skills/_references/performance-checklist.md +153 -0
- claude_kit/_payload/skills/_references/security-checklist.md +134 -0
- claude_kit/_payload/skills/_references/testing-patterns.md +236 -0
- claude_kit/_payload/skills/accessibility-review/SKILL.md +56 -0
- claude_kit/_payload/skills/api-and-interface-design/SKILL.md +294 -0
- claude_kit/_payload/skills/api-integration/SKILL.md +348 -0
- claude_kit/_payload/skills/archive-sprint/SKILL.md +31 -0
- claude_kit/_payload/skills/backlog/SKILL.md +41 -0
- claude_kit/_payload/skills/backlog/item-template.md +20 -0
- claude_kit/_payload/skills/browser-testing-with-devtools/SKILL.md +302 -0
- claude_kit/_payload/skills/ci-cd-and-automation/SKILL.md +402 -0
- claude_kit/_payload/skills/code-review-and-quality/SKILL.md +347 -0
- claude_kit/_payload/skills/code-simplification/SKILL.md +331 -0
- claude_kit/_payload/skills/component-design/SKILL.md +171 -0
- claude_kit/_payload/skills/consolidate-learnings/SKILL.md +55 -0
- claude_kit/_payload/skills/context-engineering/SKILL.md +321 -0
- claude_kit/_payload/skills/debugging-and-error-recovery/SKILL.md +300 -0
- claude_kit/_payload/skills/decision/SKILL.md +46 -0
- claude_kit/_payload/skills/decision/adr-template.md +36 -0
- claude_kit/_payload/skills/deprecation-and-migration/SKILL.md +207 -0
- claude_kit/_payload/skills/documentation-and-adrs/SKILL.md +299 -0
- claude_kit/_payload/skills/doubt-driven-development/SKILL.md +243 -0
- claude_kit/_payload/skills/execute/SKILL.md +27 -0
- claude_kit/_payload/skills/frontend-ui-engineering/SKILL.md +328 -0
- claude_kit/_payload/skills/git-workflow-and-versioning/SKILL.md +300 -0
- claude_kit/_payload/skills/idea-refine/SKILL.md +178 -0
- claude_kit/_payload/skills/idea-refine/examples.md +238 -0
- claude_kit/_payload/skills/idea-refine/frameworks.md +99 -0
- claude_kit/_payload/skills/idea-refine/refinement-criteria.md +113 -0
- claude_kit/_payload/skills/idea-refine/scripts/idea-refine.sh +15 -0
- claude_kit/_payload/skills/incident-postmortem/SKILL.md +74 -0
- claude_kit/_payload/skills/incremental-implementation/SKILL.md +245 -0
- claude_kit/_payload/skills/interview-me/SKILL.md +221 -0
- claude_kit/_payload/skills/load-testing/SKILL.md +83 -0
- claude_kit/_payload/skills/manual-test/SKILL.md +516 -0
- claude_kit/_payload/skills/performance-optimization/SKILL.md +277 -0
- claude_kit/_payload/skills/planning-and-task-breakdown/SKILL.md +223 -0
- claude_kit/_payload/skills/playwright-verification/SKILL.md +205 -0
- claude_kit/_payload/skills/refresh-docs/SKILL.md +63 -0
- claude_kit/_payload/skills/remember/SKILL.md +96 -0
- claude_kit/_payload/skills/scope/SKILL.md +52 -0
- claude_kit/_payload/skills/scope/scope-template.md +82 -0
- claude_kit/_payload/skills/sdlc/SKILL.md +83 -0
- claude_kit/_payload/skills/security-and-hardening/SKILL.md +368 -0
- claude_kit/_payload/skills/security-verification/SKILL.md +209 -0
- claude_kit/_payload/skills/shipping-and-launch/SKILL.md +309 -0
- claude_kit/_payload/skills/smoke-test/SKILL.md +78 -0
- claude_kit/_payload/skills/source-driven-development/SKILL.md +195 -0
- claude_kit/_payload/skills/spec-driven-development/SKILL.md +200 -0
- claude_kit/_payload/skills/sprint/SKILL.md +67 -0
- claude_kit/_payload/skills/sprint/sprint-template.md +90 -0
- claude_kit/_payload/skills/test-driven-development/SKILL.md +383 -0
- claude_kit/_payload/skills/threat-model/SKILL.md +60 -0
- claude_kit/_payload/skills/triage/SKILL.md +87 -0
- claude_kit/_payload/skills/ui-ux-design/SKILL.md +71 -0
- claude_kit/_payload/skills/unit-test/SKILL.md +237 -0
- claude_kit/_payload/skills/using-agent-skills/SKILL.md +180 -0
- claude_kit/_payload/templates/CLAUDE.md +238 -0
- claude_kit/_payload/templates/CLAUDE.stack.md.tmpl +53 -0
- claude_kit/_payload/templates/CONTINUITY.template.md +35 -0
- claude_kit/_payload/templates/README.claude-sdlc.md.tmpl +219 -0
- claude_kit/_payload/templates/agent-memory/MEMORY.md +30 -0
- claude_kit/_payload/templates/agent-memory/api/.gitkeep +0 -0
- claude_kit/_payload/templates/agent-memory/architecture/.gitkeep +0 -0
- claude_kit/_payload/templates/agent-memory/debugging/.gitkeep +0 -0
- claude_kit/_payload/templates/agent-memory/gotchas/.gitkeep +0 -0
- claude_kit/_payload/templates/agent-memory/patterns/.gitkeep +0 -0
- claude_kit/_payload/templates/agent-memory/performance/.gitkeep +0 -0
- claude_kit/_payload/templates/artifacts/adr.md +18 -0
- claude_kit/_payload/templates/artifacts/feature-spec.md +29 -0
- claude_kit/_payload/templates/artifacts/release-plan.md +23 -0
- claude_kit/_payload/templates/artifacts/runbook.md +24 -0
- claude_kit/_payload/templates/artifacts/security-review.md +23 -0
- claude_kit/_payload/templates/artifacts/test-plan.md +22 -0
- claude_kit/_payload/templates/org/README.md +53 -0
- claude_kit/_payload/templates/org/agents/data-workflow-agent.md +59 -0
- claude_kit/_payload/templates/org/agents/founder-prototype-agent.md +61 -0
- claude_kit/_payload/templates/org/agents/internal-tools-builder.md +63 -0
- claude_kit/_payload/templates/org/agents/pm-copilot.md +60 -0
- claude_kit/_payload/templates/org/agents/support-ticket-engineer.md +63 -0
- claude_kit/_payload/templates/org/packs/devops-and-release/README.md +46 -0
- claude_kit/_payload/templates/org/packs/devops-and-release/pack.yaml +32 -0
- claude_kit/_payload/templates/org/packs/engineering-core/README.md +46 -0
- claude_kit/_payload/templates/org/packs/engineering-core/pack.yaml +44 -0
- claude_kit/_payload/templates/org/packs/non-engineer-builder/README.md +53 -0
- claude_kit/_payload/templates/org/packs/non-engineer-builder/pack.yaml +39 -0
- claude_kit/_payload/templates/org/packs/onboarding-and-docs/README.md +49 -0
- claude_kit/_payload/templates/org/packs/onboarding-and-docs/pack.yaml +26 -0
- claude_kit/_payload/templates/org/packs/product-to-code/README.md +50 -0
- claude_kit/_payload/templates/org/packs/product-to-code/pack.yaml +34 -0
- claude_kit/_payload/templates/org/packs/quality-and-review/README.md +53 -0
- claude_kit/_payload/templates/org/packs/quality-and-review/pack.yaml +40 -0
- claude_kit/_payload/templates/org/packs/security-and-compliance/README.md +50 -0
- claude_kit/_payload/templates/org/packs/security-and-compliance/pack.yaml +36 -0
- claude_kit/_payload/templates/org/rules/ai-working-agreement.md +45 -0
- claude_kit/_payload/templates/org/rules/ambiguity-resolution.md +36 -0
- claude_kit/_payload/templates/org/rules/branch-and-pr-policy.md +41 -0
- claude_kit/_payload/templates/org/rules/compliance-policy.md +50 -0
- claude_kit/_payload/templates/org/rules/non-engineer-safe-coding.md +37 -0
- claude_kit/_payload/templates/org/rules/pii-policy.md +46 -0
- claude_kit/_payload/templates/org/rules/production-data-policy.md +35 -0
- claude_kit/_payload/templates/org/rules/prompt-to-task-conversion.md +30 -0
- claude_kit/_payload/templates/org/rules/prototype-boundaries.md +40 -0
- claude_kit/_payload/templates/org/rules/secrets-policy.md +34 -0
- claude_kit/_payload/templates/org/skills/customer-issue-to-fix/SKILL.md +61 -0
- claude_kit/_payload/templates/org/skills/feature-from-idea/SKILL.md +56 -0
- claude_kit/_payload/templates/org/skills/prompt-to-safe-task/SKILL.md +59 -0
- claude_kit/_payload/templates/org/skills/prototype-to-production/SKILL.md +61 -0
- claude_kit/_payload/templates/org/skills/repo-onboarding/SKILL.md +60 -0
- claude_kit/_payload/templates/settings.json +53 -0
- claude_kit/_payload/templates/stacks/backend/python/fastapi/rules/fastapi-patterns.md +64 -0
- claude_kit/_payload/templates/stacks/db/mongodb/agents/migration-specialist.md +61 -0
- claude_kit/_payload/templates/stacks/db/mongodb/agents/mongodb-specialist.md +59 -0
- claude_kit/_payload/templates/stacks/db/mongodb/rules/mongodb-patterns.md +39 -0
- claude_kit/_payload/templates/stacks/db/postgres/agents/db-performance-reviewer.md +66 -0
- claude_kit/_payload/templates/stacks/db/postgres/agents/migration-specialist.md +56 -0
- claude_kit/_payload/templates/stacks/db/postgres/agents/postgres-specialist.md +58 -0
- claude_kit/_payload/templates/stacks/db/postgres/rules/database-performance.md +64 -0
- claude_kit/_payload/templates/stacks/db/postgres/rules/postgres-patterns.md +43 -0
- claude_kit/_payload/templates/stacks/frontend/react/rules/react-patterns.md +63 -0
- claude_kit/catalog.py +476 -0
- claude_kit/cli.py +327 -0
- claude_kit/hooks.py +246 -0
- claude_kit/models.py +205 -0
- claude_kit/prompts.py +209 -0
- claude_kit/render.py +146 -0
- claude_kit/scaffold.py +492 -0
- claude_kit/upgrader.py +294 -0
- claude_kit/validator.py +197 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refresh-docs
|
|
3
|
+
description: Scan for stale reference docs and update them by reading current source code and data files.
|
|
4
|
+
argument-hint: [--since N | path/to/doc.md]
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Refresh stale documentation by scanning source code and updating docs that have fallen behind.
|
|
9
|
+
|
|
10
|
+
## Arguments
|
|
11
|
+
|
|
12
|
+
- No args: full scan of all reference and spec docs
|
|
13
|
+
- `--since N`: only check source files changed in the last N commits
|
|
14
|
+
- `path/to/doc.md`: refresh a specific doc file
|
|
15
|
+
|
|
16
|
+
## Steps
|
|
17
|
+
|
|
18
|
+
1. **Identify what changed**:
|
|
19
|
+
- If `$ARGUMENTS` is a file path: skip the scan, just refresh that specific doc.
|
|
20
|
+
- If `$ARGUMENTS` contains `--since`: run `git diff --name-only HEAD~N` to find changed source files in the last N commits.
|
|
21
|
+
- Otherwise: compare docs against source files to find stale documentation.
|
|
22
|
+
|
|
23
|
+
2. **Map changes to docs**: Determine which docs are affected by the changes:
|
|
24
|
+
- Component changes → `docs/reports/DEVELOPER_HANDOFF.md` (component inventory), `CLAUDE.md` (architecture section)
|
|
25
|
+
- Data file changes → `docs/reports/DEVELOPER_HANDOFF.md` (data model section)
|
|
26
|
+
- Route changes → `docs/reports/DEVELOPER_HANDOFF.md` (routing section)
|
|
27
|
+
- KPI/RAG threshold changes → `docs/reference/AOCT_Apex_CT_RAG_Definitions.md`, `docs/reference/Apex_CT_Metric_Formulas.md`
|
|
28
|
+
- New pages/features → `docs/specs/USER_JOURNEY.md`
|
|
29
|
+
|
|
30
|
+
3. **Categorize results**: Group into:
|
|
31
|
+
- **Existing docs to refresh**: docs that exist but have newer source files
|
|
32
|
+
- **Missing docs to create**: coverage gaps
|
|
33
|
+
Present both lists to the user with counts.
|
|
34
|
+
|
|
35
|
+
4. **Ask the user what to refresh**: Use AskUserQuestion to ask which docs to update.
|
|
36
|
+
|
|
37
|
+
5. **For each doc to refresh/create**:
|
|
38
|
+
- **Read the source files** that affect this doc
|
|
39
|
+
- **Read the existing doc** to understand current structure
|
|
40
|
+
- **Update the doc** following the existing structure and conventions:
|
|
41
|
+
- For existing docs: update only the sections affected by source changes
|
|
42
|
+
- Include file paths with line numbers for key components
|
|
43
|
+
- Keep the doc concise but comprehensive
|
|
44
|
+
|
|
45
|
+
6. **Verify**: Run `git diff --stat` to confirm what was changed.
|
|
46
|
+
|
|
47
|
+
7. **Summarize**: Tell the user what was updated, what was created, and what (if anything) was skipped.
|
|
48
|
+
|
|
49
|
+
## Key Documentation Files
|
|
50
|
+
|
|
51
|
+
| Doc | Source Dependencies |
|
|
52
|
+
|-----|-------------------|
|
|
53
|
+
| `CLAUDE.md` | `src/components/ui/`, `src/lib/`, `src/hooks/`, project structure |
|
|
54
|
+
| `docs/reports/DEVELOPER_HANDOFF.md` | All `src/` files |
|
|
55
|
+
| `docs/reference/Apex_CT_Metric_Formulas.md` | `src/data/ragThresholds.ts`, `src/data/kpiRegistry.ts` |
|
|
56
|
+
| `docs/reference/AOCT_Apex_CT_RAG_Definitions.md` | `src/data/ragThresholds.ts`, `src/data/mockControlTower.ts` |
|
|
57
|
+
|
|
58
|
+
## Guidelines
|
|
59
|
+
|
|
60
|
+
- **Don't rewrite docs that are only slightly stale.** If the source change was minor (a small bug fix, import reorder), note it but skip the update.
|
|
61
|
+
- **Preserve existing structure.** When updating, match the existing doc's heading structure and level of detail.
|
|
62
|
+
- **Use the Explore agent** to understand source files before writing docs. Don't guess at behavior from file names alone.
|
|
63
|
+
- **Parallelize with Task agents** when refreshing 5+ docs — spawn `frontend-dev` agents to handle batches concurrently.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: remember
|
|
3
|
+
description: Capture a durable learning so future sessions reuse it automatically. Use whenever the user corrects Claude, states a preference or rule (UX, code style, architecture, API behavior), shares a hard-won debugging insight, or explicitly says "remember this" / "note this for next time" / "don't make this mistake again". Writes a structured entry into .claude/agent-memory/ and updates the index. Pairs with the SessionStart hook that loads these learnings back into context each session.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Remember — Durable Learning Capture
|
|
7
|
+
|
|
8
|
+
Turn a one-off correction or insight into a permanent, reusable learning. This is the **capture** half of the self-improving loop. The **application** half is automatic: the `load-learnings.sh` SessionStart hook injects the index below into context at the start of every session, so anything recorded here is surfaced before future work.
|
|
9
|
+
|
|
10
|
+
## When to invoke this skill
|
|
11
|
+
|
|
12
|
+
**This is now automatic.** A `UserPromptSubmit` hook semantically scans every message you send; when it detects a durable learning it injects a `LEARNING DETECTED` note telling Claude to invoke this skill silently. You do not need to type `/remember` — though you still can to force a capture. Invoke proactively whenever any of these happen:
|
|
13
|
+
|
|
14
|
+
- The user **corrects** something Claude did ("no, buttons should be 44px touch targets", "always validate at the boundary").
|
|
15
|
+
- The user states a **preference or rule** for how work should be done (UX, design, naming, architecture, testing, tone).
|
|
16
|
+
- A **debugging session** uncovered a non-obvious root cause that took real effort to find.
|
|
17
|
+
- An **API / integration quirk** surfaced that isn't visible in the code.
|
|
18
|
+
- The user says "remember this", "note this", "next time…", "don't repeat this", or similar.
|
|
19
|
+
|
|
20
|
+
Do **not** record:
|
|
21
|
+
- Facts already visible in the codebase or the rules under `.claude/rules/`.
|
|
22
|
+
- Standard framework behavior (look it up instead).
|
|
23
|
+
- Temporary task state (that's what tasks are for).
|
|
24
|
+
- Anything already captured — update the existing entry instead of duplicating.
|
|
25
|
+
|
|
26
|
+
## How to capture (4 steps)
|
|
27
|
+
|
|
28
|
+
### 1. Decide the category
|
|
29
|
+
|
|
30
|
+
Map the learning to one folder under `.claude/agent-memory/`:
|
|
31
|
+
|
|
32
|
+
| Category | Folder | What goes here |
|
|
33
|
+
|----------|--------|----------------|
|
|
34
|
+
| UX / Design | `ux/` | Interaction rules, design-system preferences, accessibility musts, layout/visual decisions |
|
|
35
|
+
| Architecture | `architecture/` | Why X over Y, structural decisions, module boundaries |
|
|
36
|
+
| Debugging | `debugging/` | Root causes of tricky bugs, non-obvious failure modes |
|
|
37
|
+
| Patterns | `patterns/` | Recurring project-specific patterns and conventions |
|
|
38
|
+
| API & Integration | `api/` | API quirks, auth flows, endpoint behaviors |
|
|
39
|
+
| Performance | `performance/` | Optimization discoveries, bottleneck insights |
|
|
40
|
+
| Gotchas | `gotchas/` | Looks-right-but-isn't traps, common mistakes |
|
|
41
|
+
|
|
42
|
+
If unsure, pick the closest fit; UX preferences go in `ux/`.
|
|
43
|
+
|
|
44
|
+
### 2. Check for an existing entry
|
|
45
|
+
|
|
46
|
+
Read `.claude/agent-memory/MEMORY.md` and skim the relevant category folder. If a similar learning exists, **edit that file** (refine, add nuance, correct it) rather than creating a duplicate.
|
|
47
|
+
|
|
48
|
+
### 3. Write the learning file
|
|
49
|
+
|
|
50
|
+
Filename: lowercase kebab-case describing the insight, e.g. `touch-target-min-size.md`, `filter-resets-on-persona-change.md`. Write to `.claude/agent-memory/<category>/<filename>.md` using this format:
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
---
|
|
54
|
+
title: {short descriptive title}
|
|
55
|
+
category: {category name}
|
|
56
|
+
date: {YYYY-MM-DD}
|
|
57
|
+
trigger: {when this applies — e.g. "designing any UI", "writing an HTTP endpoint"}
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Context
|
|
61
|
+
{What situation produced this learning — keep it brief}
|
|
62
|
+
|
|
63
|
+
## Learning
|
|
64
|
+
{The rule/insight, stated as a clear, actionable directive Claude can follow next time}
|
|
65
|
+
|
|
66
|
+
## Evidence
|
|
67
|
+
{How it was discovered — the user's words, an error, debugging steps}
|
|
68
|
+
|
|
69
|
+
## Apply when
|
|
70
|
+
{Concrete signal that this learning is relevant to the current task}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The `trigger` and `Apply when` fields matter most — they are how a future session knows to pull this learning before acting.
|
|
74
|
+
|
|
75
|
+
### 4. Update the index
|
|
76
|
+
|
|
77
|
+
Add a one-line entry to `.claude/agent-memory/MEMORY.md` under the matching `###` section:
|
|
78
|
+
|
|
79
|
+
```markdown
|
|
80
|
+
- [Title](category/filename.md) — one-line hook | applies when: {trigger}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Keep each index line under ~150 chars. The index is what the SessionStart hook injects, so it must stay scannable.
|
|
84
|
+
|
|
85
|
+
## After capturing
|
|
86
|
+
|
|
87
|
+
Confirm to the user in one line what was recorded and where, e.g.:
|
|
88
|
+
> Recorded: "44px minimum touch targets" → `agent-memory/ux/touch-target-min-size.md`. I'll apply it automatically next time I design UI.
|
|
89
|
+
|
|
90
|
+
## How application works (for reference)
|
|
91
|
+
|
|
92
|
+
You do not need to do anything to apply learnings — the loop closes on its own:
|
|
93
|
+
|
|
94
|
+
1. `load-learnings.sh` runs on **SessionStart** and prints the MEMORY.md index into context.
|
|
95
|
+
2. Before doing design/implementation work, open the relevant category file(s) flagged by `Apply when` and follow them.
|
|
96
|
+
3. When you learn something new, this skill records it — and it shows up automatically next session.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: scope
|
|
3
|
+
description: Generate a detailed scope document for a backlog item by analyzing the codebase, dependencies, and reference docs.
|
|
4
|
+
argument-hint: [backlog item number]
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Scope backlog item #$ARGUMENTS for implementation.
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
1. **Read the backlog entry**: Read `docs/backlog/README.md` to find which horizon file contains item #$ARGUMENTS, then read that horizon file (e.g., `docs/backlog/now.md`) and find the item. Extract the title, priority, status, and full description.
|
|
13
|
+
|
|
14
|
+
2. **Read the scope template**: Read the [scope template](scope-template.md) to understand the output structure.
|
|
15
|
+
|
|
16
|
+
3. **Gather context**: Based on what the backlog item describes, read the relevant reference docs:
|
|
17
|
+
- For domain-specific definitions: read any reference docs in `docs/reference/` that define terminology, metrics, or business rules
|
|
18
|
+
- For component/UI changes: read `CLAUDE.md` for design system rules and component patterns
|
|
19
|
+
- For user journey changes: read product specs or user journey documentation
|
|
20
|
+
- For role/authorization changes: read architecture docs defining roles and permissions
|
|
21
|
+
|
|
22
|
+
4. **Explore the codebase**: Use the Explore agent to find the actual code that's relevant:
|
|
23
|
+
- Find existing components, modules, and data files that would be modified
|
|
24
|
+
- Identify data structures (schemas, models, mock data) that need changes
|
|
25
|
+
- Find state management (stores, hooks, contexts) that would change
|
|
26
|
+
- Look for existing patterns to follow in similar modules
|
|
27
|
+
|
|
28
|
+
5. **Check dependencies**: Look at the execution horizons in `docs/backlog/README.md` to find items that block or are blocked by this one. Check the dependency chain.
|
|
29
|
+
|
|
30
|
+
6. **Generate the scope doc**: Create a slug from the item title (e.g., "Semantic HTML Landmarks" → "semantic-html"). Write the scope document to `docs/planning/{slug}/scope.md` following the template structure. Fill in:
|
|
31
|
+
- Problem statement from the backlog entry
|
|
32
|
+
- Current state from your codebase exploration (with file paths and line references)
|
|
33
|
+
- Target state with specific, testable outcomes
|
|
34
|
+
- Component/module changes: specific components/modules to create/modify, with file paths
|
|
35
|
+
- Data/schema changes: new data structures or modifications to existing ones
|
|
36
|
+
- Route/endpoint changes: new or modified routes/endpoints
|
|
37
|
+
- State changes: state management additions or modifications
|
|
38
|
+
- Wireframes (ASCII) for any new or modified screens (frontend changes)
|
|
39
|
+
- Dependencies from the backlog
|
|
40
|
+
- Open questions that need human decision
|
|
41
|
+
|
|
42
|
+
7. **Summarize**: Tell the user what you wrote, list the open questions that need their input, and suggest they review the scope doc before asking for a sprint plan.
|
|
43
|
+
|
|
44
|
+
## Guidelines
|
|
45
|
+
|
|
46
|
+
- Be specific — reference actual file paths, function names, and module names from the codebase
|
|
47
|
+
- Don't be vague ("add a module") — name the module, its interface, and where it integrates
|
|
48
|
+
- Identify the riskiest parts and call them out
|
|
49
|
+
- If the item is too large for a single sprint, suggest how to break it into phases
|
|
50
|
+
- Mark the scope doc status as "Draft"
|
|
51
|
+
- **Frontend wireframes**: If the feature has any frontend impact (new screens, modified screens, new UI components), you MUST include wireframes in the scope doc. Use ASCII wireframes for visual review so the user can validate layout, flow, and information hierarchy before implementation.
|
|
52
|
+
- Adapt to the project's architecture — scope documents should reflect whether the project has a backend/frontend split, is frontend-only, is a CLI tool, is a library, etc.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Scope: {Item Title} (Backlog #{N})
|
|
2
|
+
|
|
3
|
+
> **Status**: Draft | In Review | Approved
|
|
4
|
+
> **Backlog Item**: [#{N} — {Title}](../../docs/backlog/README.md)
|
|
5
|
+
> **Author**: {name}
|
|
6
|
+
> **Date**: {YYYY-MM-DD}
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Problem Statement
|
|
11
|
+
|
|
12
|
+
What problem does this solve? Why now?
|
|
13
|
+
|
|
14
|
+
## Current State
|
|
15
|
+
|
|
16
|
+
What exists today that's relevant? Link to reference docs and source files.
|
|
17
|
+
|
|
18
|
+
## Target State
|
|
19
|
+
|
|
20
|
+
What does "done" look like? Be specific about user-visible outcomes.
|
|
21
|
+
|
|
22
|
+
## Component Changes
|
|
23
|
+
|
|
24
|
+
### New Components
|
|
25
|
+
|
|
26
|
+
- [ ] {component name} — {file path} — {purpose}
|
|
27
|
+
|
|
28
|
+
### Modified Components
|
|
29
|
+
|
|
30
|
+
- [ ] {component name} — {file path} — {what changes}
|
|
31
|
+
|
|
32
|
+
### Wireframes
|
|
33
|
+
|
|
34
|
+
> Include ASCII wireframes for any new or modified screens. Show layout, key elements, and user flow.
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
{wireframe here}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Data / Mock Data Changes
|
|
41
|
+
|
|
42
|
+
### New Data Files
|
|
43
|
+
|
|
44
|
+
- [ ] {file path} — {what data, key interfaces}
|
|
45
|
+
|
|
46
|
+
### Modified Data Files
|
|
47
|
+
|
|
48
|
+
- [ ] {file path} — {what changes to existing mock data}
|
|
49
|
+
|
|
50
|
+
## Route Changes
|
|
51
|
+
|
|
52
|
+
- [ ] {new or modified routes in src/App.tsx}
|
|
53
|
+
|
|
54
|
+
## State Changes
|
|
55
|
+
|
|
56
|
+
- [ ] {Zustand store or hook changes}
|
|
57
|
+
|
|
58
|
+
## Dependencies & Blockers
|
|
59
|
+
|
|
60
|
+
| Dependency | Status | Notes |
|
|
61
|
+
|------------|--------|-------|
|
|
62
|
+
| | | |
|
|
63
|
+
|
|
64
|
+
## Related ADRs
|
|
65
|
+
|
|
66
|
+
| ADR | Relevance |
|
|
67
|
+
|-----|-----------|
|
|
68
|
+
| [NNNN — Title](../../docs/architecture/decisions/NNNN-slug.md) | {how this ADR relates to the scope} |
|
|
69
|
+
|
|
70
|
+
## Verification Checklist
|
|
71
|
+
|
|
72
|
+
Run through after implementation to confirm everything works end-to-end.
|
|
73
|
+
|
|
74
|
+
| # | Check | How to verify |
|
|
75
|
+
|---|-------|---------------|
|
|
76
|
+
| 1 | TypeScript compiles | `npm run build` |
|
|
77
|
+
| 2 | No lint errors | `npm run lint` |
|
|
78
|
+
| 3 | {what to verify} | {manual step or command} |
|
|
79
|
+
|
|
80
|
+
## Open Questions
|
|
81
|
+
|
|
82
|
+
1. {question}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sdlc
|
|
3
|
+
description: Run the autonomous SDLC pipeline on a task — the single entrypoint that drives spec → review → build → code review → test → security → delivery through the profile's quality gates. Use when asked to "run the SDLC", build/ship a feature end to end, or take a task through the full pipeline with gates.
|
|
4
|
+
argument-hint: <feature or task description>
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Autonomous SDLC
|
|
8
|
+
|
|
9
|
+
You are the **entrypoint** to claude-kit's autonomous software development lifecycle. The request to
|
|
10
|
+
handle is:
|
|
11
|
+
|
|
12
|
+
> $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
Your job is to **delegate to the `orchestrator` agent** and let it drive the pipeline — you do not
|
|
15
|
+
implement the work yourself here. The orchestrator never writes code; it classifies the work,
|
|
16
|
+
sequences the phases, spawns the specialist agents, and enforces the gates.
|
|
17
|
+
|
|
18
|
+
## 1. Load the contract
|
|
19
|
+
|
|
20
|
+
Before doing anything, read:
|
|
21
|
+
|
|
22
|
+
- `CLAUDE.md` — the project's rules and the exact build/test/lint commands.
|
|
23
|
+
- `.claude/rules/mandatory-workflow.md` — the full phase pipeline and the defect loop.
|
|
24
|
+
- `.claude/rules/quality-gates.md` — the severity model (zero Critical/High/Medium to pass a gate)
|
|
25
|
+
and the blind-review + Devil's Advocate protocol.
|
|
26
|
+
- `.claude/rules/rarv-cycle.md` — the Reason → Act → Reflect → Verify self-check every agent runs.
|
|
27
|
+
|
|
28
|
+
## 2. Discover the active profile (this decides which gates run)
|
|
29
|
+
|
|
30
|
+
Read `.claude/config/stack-catalog.snapshot.yaml`. Its `gates:` and `agents:` lists are the
|
|
31
|
+
**authoritative set** of what the installed profile activated. Also read
|
|
32
|
+
`.claude/config/init-options.json` for the stack `selection` (frontend / backend / database) so you
|
|
33
|
+
point each lane at the right overlay rule.
|
|
34
|
+
|
|
35
|
+
- If those files are absent (a minimal/no-pip install), fall back to the **standard** pipeline.
|
|
36
|
+
|
|
37
|
+
Run **only** the gates present in the snapshot's `gates:` list. The three profiles resolve to:
|
|
38
|
+
|
|
39
|
+
| Profile | Gates that run |
|
|
40
|
+
|---|---|
|
|
41
|
+
| **lean** | code-review · build-green |
|
|
42
|
+
| **standard** | spec-complete · em-approved · code-review · build-green · test-coverage · security-clear |
|
|
43
|
+
| **enterprise** | standard + pipeline-green · observability-ready · acceptance |
|
|
44
|
+
|
|
45
|
+
Never run a gate (or spawn its agent) that isn't in the active set — that's what makes lean fast and
|
|
46
|
+
enterprise thorough. Conversely, never skip a gate that *is* in the set.
|
|
47
|
+
|
|
48
|
+
## 3. Drive the pipeline
|
|
49
|
+
|
|
50
|
+
Spawn the `orchestrator` agent via the Agent tool with: the task ($ARGUMENTS), the active gate list,
|
|
51
|
+
and the stack selection. Instruct it to:
|
|
52
|
+
|
|
53
|
+
1. **Classify** the work — bug fix vs. feature; single-stream vs. parallel lanes (backend/frontend);
|
|
54
|
+
fast-track (< 5 files) vs. full pipeline. Fast-track collapses to the lean gate set regardless of
|
|
55
|
+
profile.
|
|
56
|
+
2. **Record** the plan and initial state in `.claude/CONTINUITY.md` (working memory survives
|
|
57
|
+
compaction — update it at every phase transition).
|
|
58
|
+
3. **Run each active phase with its gate**, in order, using only the profile's agents:
|
|
59
|
+
spec & dev-docs → story planning → (design, if UI) → senior/architect/EM review →
|
|
60
|
+
implementation (one worktree per lane) → code review → unit + e2e tests → test-coverage merge →
|
|
61
|
+
security clear → pipeline-green + observability-ready (enterprise) → acceptance (enterprise) → PR.
|
|
62
|
+
4. **Enforce gates** with the `quality-gates.md` severity model and a green RARV Verify before each
|
|
63
|
+
handoff. On a unanimous PASS, run the `devils-advocate` agent before the gate counts.
|
|
64
|
+
5. **Run the defect loop** when a gate fails: document, re-run only the affected lane(s), re-merge,
|
|
65
|
+
re-test — never patch informally around the process.
|
|
66
|
+
|
|
67
|
+
If the `orchestrator` agent is unavailable in this session, act as the orchestrator yourself,
|
|
68
|
+
following the same steps.
|
|
69
|
+
|
|
70
|
+
## 4. Stop for the human where required
|
|
71
|
+
|
|
72
|
+
Pause and ask the user at the points the workflow requires: ambiguous requirements, spec
|
|
73
|
+
confirmation, destructive or project-wide changes, and choice of deploy/release target. In the
|
|
74
|
+
enterprise profile, the **acceptance** gate hands off to a human before the PR is finalized.
|
|
75
|
+
|
|
76
|
+
## 5. Close the loop
|
|
77
|
+
|
|
78
|
+
When the active gates are green: summarize what shipped, list any open issues by severity, ensure
|
|
79
|
+
`.claude/CONTINUITY.md` reflects the final state, and promote any durable lessons with the
|
|
80
|
+
`remember` skill (into `.claude/agent-memory/`).
|
|
81
|
+
|
|
82
|
+
Begin by confirming your classification, the active profile + gate set, and the stage plan — then
|
|
83
|
+
proceed.
|