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,53 @@
|
|
|
1
|
+
## Project-specific rules
|
|
2
|
+
|
|
3
|
+
Configured by **claude-kit** for a **{{ frontend_label }}** ({{ frontend_language }}) frontend and a
|
|
4
|
+
**{{ backend_label }}** ({{ backend_language_label }}) backend on **{{ db_label }}**, SDLC profile
|
|
5
|
+
**{{ profile_label }}**. The agnostic pipeline rules above apply unchanged; the conventions below make
|
|
6
|
+
them concrete for this stack.
|
|
7
|
+
|
|
8
|
+
### Stack & conventions
|
|
9
|
+
|
|
10
|
+
- **Frontend** — {{ frontend_label }} ({{ frontend_language }}). Conventions:
|
|
11
|
+
`.claude/rules/{{ frontend_overlay_rule }}`.
|
|
12
|
+
- **Backend** — {{ backend_label }} ({{ backend_language_label }}). Conventions:
|
|
13
|
+
`.claude/rules/{{ backend_overlay_rule }}`.
|
|
14
|
+
- **Database** — {{ db_label }}. Conventions: `.claude/rules/{{ db_overlay_rule }}`.
|
|
15
|
+
|
|
16
|
+
Match your repository's actual layout — claude-kit configures the workflow, not your directory
|
|
17
|
+
structure. Point each agent at the overlay rule for the lane it works in.
|
|
18
|
+
|
|
19
|
+
### Commands (the source of truth for every agent)
|
|
20
|
+
|
|
21
|
+
Backend:
|
|
22
|
+
{% if backend_install_cmd %}- Install: `{{ backend_install_cmd }}`
|
|
23
|
+
{% endif %}{% if backend_dev_cmd %}- Run: `{{ backend_dev_cmd }}`
|
|
24
|
+
{% endif %}{% if backend_test_cmd %}- Test: `{{ backend_test_cmd }}`
|
|
25
|
+
{% endif %}{% if backend_lint_cmd %}- Lint + types: `{{ backend_lint_cmd }}`
|
|
26
|
+
{% endif %}{% if backend_format_cmd %}- Format: `{{ backend_format_cmd }}`
|
|
27
|
+
{% endif %}{% if backend_migrate_cmd %}- Apply migrations: `{{ backend_migrate_cmd }}`
|
|
28
|
+
{% endif %}{% if backend_make_migration_cmd %}- New migration: `{{ backend_make_migration_cmd }}`
|
|
29
|
+
{% endif %}
|
|
30
|
+
Frontend:
|
|
31
|
+
{% if frontend_install_cmd %}- Install: `{{ frontend_install_cmd }}`
|
|
32
|
+
{% endif %}{% if frontend_dev_cmd %}- Run: `{{ frontend_dev_cmd }}`
|
|
33
|
+
{% endif %}{% if frontend_test_cmd %}- Test: `{{ frontend_test_cmd }}`
|
|
34
|
+
{% endif %}{% if frontend_lint_cmd %}- Lint: `{{ frontend_lint_cmd }}`{% if frontend_typecheck_cmd %} · Types: `{{ frontend_typecheck_cmd }}`{% endif %}
|
|
35
|
+
{% endif %}{% if frontend_build_cmd %}- Build: `{{ frontend_build_cmd }}`
|
|
36
|
+
{% endif %}
|
|
37
|
+
> Replace any command above that doesn't match your project's actual scripts — these are the
|
|
38
|
+
> defaults for the selected stack and are what the agents will run.
|
|
39
|
+
|
|
40
|
+
### Two independent lanes
|
|
41
|
+
|
|
42
|
+
Backend and frontend are the canonical parallel lanes from
|
|
43
|
+
`.claude/rules/mandatory-workflow.md`. When a feature spans both, the **API is the shared
|
|
44
|
+
contract**: backend response/request schemas and frontend types must agree. The Merge Reviewer
|
|
45
|
+
verifies this at the join point.
|
|
46
|
+
|
|
47
|
+
### Adding a feature
|
|
48
|
+
|
|
49
|
+
Follow the resource recipes in the overlays — `.claude/rules/{{ backend_overlay_rule }}`
|
|
50
|
+
(model → schema → repository → service → router → migration → tests) and
|
|
51
|
+
`.claude/rules/{{ frontend_overlay_rule }}` (types → api → hook → component → tests). Keep the API
|
|
52
|
+
contract in sync across both lanes, and follow `.claude/rules/{{ db_overlay_rule }}` for schema and
|
|
53
|
+
migration changes.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# CONTINUITY — Working Memory
|
|
2
|
+
|
|
3
|
+
> Seed template. The `load-continuity.sh` SessionStart hook copies this to `.claude/CONTINUITY.md`
|
|
4
|
+
> (gitignored) on first run. Overwrite the sections below as work progresses — keep it short and truthful.
|
|
5
|
+
> Protocol: read at turn start, write at turn end. See `.claude/rules/continuity.md`.
|
|
6
|
+
|
|
7
|
+
## Current Phase
|
|
8
|
+
[none — idle]
|
|
9
|
+
|
|
10
|
+
## Active Tasks
|
|
11
|
+
- [none]
|
|
12
|
+
|
|
13
|
+
## Completed (this session)
|
|
14
|
+
- [none]
|
|
15
|
+
|
|
16
|
+
## Decisions Made
|
|
17
|
+
- [none]
|
|
18
|
+
|
|
19
|
+
## Mistakes & Learnings
|
|
20
|
+
- [none] (promote durable ones to agent-memory via the remember skill)
|
|
21
|
+
|
|
22
|
+
## Next Steps
|
|
23
|
+
1. [await next requirement]
|
|
24
|
+
|
|
25
|
+
## Open Questions
|
|
26
|
+
- [none]
|
|
27
|
+
|
|
28
|
+
## Blocked Items
|
|
29
|
+
- [none]
|
|
30
|
+
|
|
31
|
+
## Modified Files
|
|
32
|
+
- [none]
|
|
33
|
+
|
|
34
|
+
## Test/Build Status
|
|
35
|
+
- backend: [unknown] frontend: [unknown]
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
# {{ project_name }} — Claude Code SDLC config
|
|
2
|
+
|
|
3
|
+
This repository has a **claude-kit** autonomous-SDLC configuration installed. Claude Code reads it
|
|
4
|
+
automatically when you open the project; nothing here is application code.
|
|
5
|
+
|
|
6
|
+
- **Stack:** {{ frontend_label }} ({{ frontend_language }}) · {{ backend_label }}
|
|
7
|
+
({{ backend_language_label }}) · {{ db_label }}
|
|
8
|
+
- **SDLC profile:** {{ profile_label }}
|
|
9
|
+
- **MCP integrations:** {{ mcp_list }}
|
|
10
|
+
- **Installed:** ~{{ agent_count }} agents · {{ skill_count }} skills · stack overlay rules
|
|
11
|
+
({{ overlay_rules_list }})
|
|
12
|
+
|
|
13
|
+
## What got installed
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
CLAUDE.md entry point — rules + your stack's commands ("Project-specific rules")
|
|
17
|
+
README.claude-sdlc.md this file
|
|
18
|
+
.claude/
|
|
19
|
+
settings.json hooks (working memory, learnings, guardrails, quality checks)
|
|
20
|
+
rules/ the engineering rule set + your stack's overlay rules
|
|
21
|
+
agents/ the SDLC agents for the chosen profile (+ stack specialists)
|
|
22
|
+
skills/ on-demand skills, including sdlc/ — the pipeline entry point
|
|
23
|
+
hooks/ the hook scripts referenced by settings.json
|
|
24
|
+
templates/ artifact templates (feature-spec, adr, test-plan, …)
|
|
25
|
+
config/ init-options.json (selection + checksums) + the catalog snapshot
|
|
26
|
+
state/ tmp/ runtime scratch (gitignored)
|
|
27
|
+
{% if mcp_list != "none" %}.mcp.json the MCP servers you selected (fill in the ${ENV} placeholders)
|
|
28
|
+
{% endif %}```
|
|
29
|
+
|
|
30
|
+
How Claude Code discovers it: `CLAUDE.md` is loaded as project context; `.claude/agents/*.md`,
|
|
31
|
+
`.claude/skills/*/SKILL.md`, and the hooks in `.claude/settings.json` are auto-discovered;
|
|
32
|
+
`.mcp.json` (if present) registers MCP servers.
|
|
33
|
+
|
|
34
|
+
## Start the workflow
|
|
35
|
+
|
|
36
|
+
Open the project in Claude Code and run the pipeline entry point:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
/sdlc Build JWT authentication for the backend
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
The orchestrator asks a few ordered questions, classifies the work, then delegates to specialist
|
|
43
|
+
agents through the pipeline phases — enforcing a quality gate between each. With this profile the
|
|
44
|
+
active gates are: **{{ profile_label }}**.
|
|
45
|
+
|
|
46
|
+
You can also invoke any single skill directly (e.g. `/spec-driven-development`, `/code-review-and-quality`)
|
|
47
|
+
or ask Claude to use a specific agent.
|
|
48
|
+
|
|
49
|
+
## Core rules (non-negotiable)
|
|
50
|
+
|
|
51
|
+
- Never read or print secrets. Never run destructive commands without confirmation.
|
|
52
|
+
- Plan before large edits; write a spec before implementing a feature.
|
|
53
|
+
- Run the project's validation (lint, type-check, tests) before declaring work complete.
|
|
54
|
+
|
|
55
|
+
See `CLAUDE.md` and `.claude/rules/` for the full set.
|
|
56
|
+
|
|
57
|
+
## Extending the config
|
|
58
|
+
|
|
59
|
+
- **Add a stack** (frontend framework, backend language/framework, or database): add an entry to the
|
|
60
|
+
claude-kit catalog and a `templates/stacks/<stack_dir>/` folder with overlay rules — then re-run
|
|
61
|
+
`claude-kit init`. It's a data change, not code.
|
|
62
|
+
- **Add a skill / agent:** drop a `.claude/skills/<name>/SKILL.md` or `.claude/agents/<name>.md`.
|
|
63
|
+
- **Enable MCP later:** add servers to `.mcp.json` (see `claude-kit list-options` for the catalog).
|
|
64
|
+
- **Upgrade safely:** `claude-kit diff` to preview, then `claude-kit upgrade` (your edits are backed
|
|
65
|
+
up, never silently overwritten). `claude-kit doctor` checks config health.
|
|
66
|
+
|
|
67
|
+
## Organization-wide vibe-coding capabilities
|
|
68
|
+
|
|
69
|
+
claude-kit isn't just for one developer. Engineers, PMs, designers, QA, DevOps, security, data,
|
|
70
|
+
support, and founders can all drive work in natural language — creating features, fixing bugs, writing
|
|
71
|
+
tests, reviewing code, generating docs, shipping releases, and maintaining systems — through a shared,
|
|
72
|
+
safe, consistent set of **skills · agents · rules · hooks · workflows · MCP**.
|
|
73
|
+
|
|
74
|
+
- **This project's scope:** `{{ scope }}`{% if scope == "organization" %} · **teams:** {{ teams_list }} · **autonomy:** `{{ autonomy }}` ({{ autonomy_policy }}) · **review strictness:** `{{ review_strictness }}` · **packs:** {{ org_packs_list }}{% endif %}
|
|
75
|
+
- **The vocabulary:** *Skills* are reusable playbooks (slash commands). *Agents* are specialized
|
|
76
|
+
workers with isolated context and tool limits. *Rules* are always-on (or path-scoped) conventions.
|
|
77
|
+
*Hooks* are deterministic checks at lifecycle events. *Workflows* orchestrate agents+skills.
|
|
78
|
+
*MCP* connects Claude to GitHub, Jira, Linear, databases, browsers, and docs.
|
|
79
|
+
|
|
80
|
+
### 1. Skills for org-wide reusable workflows
|
|
81
|
+
`/sdlc` (the pipeline), `/spec-driven-development`, `/planning-and-task-breakdown`,
|
|
82
|
+
`/code-review-and-quality`, `/test-driven-development`, `/security-and-hardening`, `/threat-model`,
|
|
83
|
+
`/accessibility-review`, `/performance-optimization`, `/shipping-and-launch`, `/refresh-docs`, and the
|
|
84
|
+
non-engineer playbooks `/feature-from-idea`, `/prompt-to-safe-task`, `/prototype-to-production`,
|
|
85
|
+
`/customer-issue-to-fix`, `/repo-onboarding`.
|
|
86
|
+
|
|
87
|
+
### 2. Agents by role/team
|
|
88
|
+
Orchestration/quality: `orchestrator`, `risk-classifier`, `sdlc-code-reviewer`, `acceptance-reviewer`,
|
|
89
|
+
`merge-reviewer`, `devils-advocate`. Product: `pm-copilot`, `spec-doc-writer`, `story-planner`,
|
|
90
|
+
`ui-designer`. Engineering: `developer`, `senior-backend-dev`, `senior-frontend-dev`,
|
|
91
|
+
`technical-architect` (+ DB specialists). Quality: `tester`, `unit-tester`, `e2e-tester`,
|
|
92
|
+
`senior-tester`. Security/reliability: `security-reviewer`, `owasp-reviewer`, `secret-scanner`,
|
|
93
|
+
`dependency-scanner`, `policy-validator`, `devops-engineer`, `observability-engineer`,
|
|
94
|
+
`incident-responder`. Non-engineers: `pm-copilot`, `founder-prototype-agent`, `support-ticket-engineer`,
|
|
95
|
+
`data-workflow-agent`, `internal-tools-builder`.
|
|
96
|
+
|
|
97
|
+
### 3. Rules to share across repositories
|
|
98
|
+
`mandatory-workflow`, `quality-gates`, `autonomy-levels`, `risk-classification`, `human-in-the-loop`,
|
|
99
|
+
`agent-guardrails`, plus the policy set `secrets-policy`, `pii-policy`, `production-data-policy`,
|
|
100
|
+
`branch-and-pr-policy`, `compliance-policy`, and the vibe-coding set `prompt-to-task-conversion`,
|
|
101
|
+
`non-engineer-safe-coding`, `prototype-boundaries`, `ambiguity-resolution`.
|
|
102
|
+
|
|
103
|
+
### 4. Hooks to enforce for safety & quality
|
|
104
|
+
`guard-rm-rf` (dangerous shell), `protect-secrets` + `guard-commit-secrets` (secrets),
|
|
105
|
+
`warn-sensitive-files` (auth/payments/migrations/infra), `validate-frontmatter` + `validate-settings`,
|
|
106
|
+
`warn-large-edits`, `warn-missing-tests`, `audit-log` (local, org mode), `lint-fix`, `type-check`.
|
|
107
|
+
Conservative by default; higher autonomy levels enable more. Disable any per-repo in
|
|
108
|
+
`.claude/settings.local.json`.
|
|
109
|
+
|
|
110
|
+
### 5. Optional MCP integrations
|
|
111
|
+
GitHub (issues/PRs), Jira/Linear (tickets), the project database (read), Playwright (browser/E2E),
|
|
112
|
+
and Context7 (live library docs). Select at init; they land in `.mcp.json` with `${ENV}` placeholders.
|
|
113
|
+
|
|
114
|
+
### 6. Distributing capabilities across projects
|
|
115
|
+
| Layer | Lives in | Use for |
|
|
116
|
+
|-------|----------|---------|
|
|
117
|
+
| **Project** | `.claude/`, `CLAUDE.md`, `.mcp.json` (committed) | what this repo needs — the per-repo source of truth |
|
|
118
|
+
| **User** | `~/.claude/` (per developer, not committed) | personal preferences, personal skills, local overrides |
|
|
119
|
+
| **Organization** | reusable packs / plugins, versioned + changelogged in an approved registry | shared, governed capabilities adopted across repos |
|
|
120
|
+
|
|
121
|
+
**Never commit:** local secrets, `.env`, personal tokens, personal `settings.local.json`.
|
|
122
|
+
(Planned: `claude-sdlc package-org-pack` / `install-org-pack` to package + install approved packs.)
|
|
123
|
+
|
|
124
|
+
### 7. Governing changes, versions, security & adoption
|
|
125
|
+
See `.claude/org-packs/README.md` for the pack registry and governance: how to add a skill/agent,
|
|
126
|
+
retire duplicates, approve hooks, review sensitive rules, version packs, roll out across repos, run
|
|
127
|
+
different autonomy levels per repo, and measure adoption.
|
|
128
|
+
|
|
129
|
+
## Capability matrix
|
|
130
|
+
|
|
131
|
+
| Capability area | Skills | Agents | Rules | Hooks | Example |
|
|
132
|
+
|---|---|---|---|---|---|
|
|
133
|
+
| Feature development | `/sdlc`, `/spec-driven-development`, `/incremental-implementation` | `orchestrator`, `developer`, `sdlc-code-reviewer` | `mandatory-workflow`, `quality-gates` | `lint-fix`, `type-check` | `/sdlc Add team invites` |
|
|
134
|
+
| Bug fixing | `/debugging-and-error-recovery`, `/triage` | `developer`, `tester`, `sdlc-code-reviewer` | `testing`, `rarv-cycle` | `warn-missing-tests` | `/sdlc Fix 500 on empty title` |
|
|
135
|
+
| Refactoring | `/code-simplification` | `developer`, `sdlc-code-reviewer` | `code-organization`, `design-patterns` | `warn-large-edits` | `/refactor-safely the billing service` |
|
|
136
|
+
| Test generation | `/test-driven-development`, `/unit-test` | `tester`, `unit-tester`, `e2e-tester`, `senior-tester` | `testing` | `warn-missing-tests` | `/write-tests password-reset links` |
|
|
137
|
+
| PR review | `/code-review-and-quality` | `sdlc-code-reviewer`, `merge-reviewer`, `devils-advocate` | `quality-gates`, `branch-and-pr-policy` | `guard-push-main` | `/review-pr` |
|
|
138
|
+
| Product discovery | `/idea-refine`, `/interview-me`, `/feature-from-idea` | `pm-copilot`, `story-planner` | `ambiguity-resolution` | — | `/feature-from-idea team invites` |
|
|
139
|
+
| Requirements clarification | `/interview-me`, `/scope`, `/prompt-to-safe-task` | `pm-copilot`, `spec-doc-writer`, `risk-classifier` | `prompt-to-task-conversion`, `ambiguity-resolution` | — | `/prompt-to-safe-task make dashboard faster` |
|
|
140
|
+
| Architecture decisions | `/spec-driven-development`, `/decision`, `/documentation-and-adrs` | `technical-architect` | `design-patterns` | — | ADR for a new module |
|
|
141
|
+
| API design | `/api-and-interface-design` | `technical-architect`, `senior-backend-dev` | `design-patterns`, `documentation` | — | `/api-contract` for invites |
|
|
142
|
+
| Database design | `/spec-driven-development` | `postgres-specialist`/`mongodb-specialist`, `migration-specialist` | (stack overlay db rules) | `warn-sensitive-files` | schema + migration for invites |
|
|
143
|
+
| Frontend implementation | `/frontend-ui-engineering`, `/component-design`, `/ui-ux-design` | `senior-frontend-dev`, `ui-designer`, `developer` | `frontend-best-practices`, `responsive-and-accessibility` | `lint-fix` | `/design-to-frontend` the invite modal |
|
|
144
|
+
| Backend implementation | `/incremental-implementation`, `/api-and-interface-design` | `senior-backend-dev`, `developer` | `code-organization` | `lint-fix`, `type-check` | implement the invites endpoint |
|
|
145
|
+
| Security review | `/security-and-hardening`, `/security-verification`, `/threat-model` | `security-reviewer`, `owasp-reviewer`, `secret-scanner`, `dependency-scanner`, `policy-validator` | `secrets-policy`, `agent-guardrails` | `protect-secrets`, `guard-commit-secrets`, `warn-sensitive-files` | `/security-review` the auth change |
|
|
146
|
+
| Performance review | `/performance-optimization`, `/load-testing` | `db-performance-reviewer` (PostgreSQL) | `risk-classification` | — | `/performance-review` the list endpoint |
|
|
147
|
+
| Accessibility review | `/accessibility-review` | `ui-designer` | `responsive-and-accessibility` | — | `/accessibility-review` the modal |
|
|
148
|
+
| DevOps / release | `/shipping-and-launch`, `/ci-cd-and-automation` | `devops-engineer`, `pr-raiser`, `observability-engineer` | `devops-observability`, `branch-and-pr-policy` | `guard-push-main` | `/release-plan`, `/rollback-plan` |
|
|
149
|
+
| Incident response | `/incident-postmortem` | `incident-responder` | `devops-observability` | `audit-log` | `/incident-runbook` for SEV1 |
|
|
150
|
+
| Documentation | `/documentation-and-adrs`, `/refresh-docs` | `technical-architect` | `documentation` | — | `/docs-update` after an API change |
|
|
151
|
+
| Onboarding | `/repo-onboarding` | `Explore`, `technical-architect` | `documentation`, `code-organization` | — | `/repo-onboarding` for a new hire |
|
|
152
|
+
| Data analysis | (planning, read-only) | `data-workflow-agent` | `production-data-policy`, `pii-policy` | — | plan a report query safely |
|
|
153
|
+
| Customer-support engineering | `/customer-issue-to-fix` | `support-ticket-engineer`, `developer`, `tester` | `risk-classification` | — | `/customer-issue-to-fix` invoice export |
|
|
154
|
+
| Internal tools | `/prototype-to-production`, `/feature-from-idea` | `internal-tools-builder`, `founder-prototype-agent` | `non-engineer-safe-coding`, `prototype-boundaries` | `warn-sensitive-files` | build an internal admin utility |
|
|
155
|
+
| Prototype-to-production hardening | `/prototype-to-production` | `founder-prototype-agent`, `security-reviewer`, `tester` | `prototype-boundaries`, `risk-classification` | `warn-large-edits`, `warn-missing-tests` | `/prototype-to-production` a CSV script |
|
|
156
|
+
|
|
157
|
+
## Autonomy model
|
|
158
|
+
|
|
159
|
+
How much Claude may do before a human acts (set per repo; default `assisted`). Full detail in
|
|
160
|
+
`.claude/rules/autonomy-levels.md`.
|
|
161
|
+
|
|
162
|
+
| Level | May do | Must not, without a human |
|
|
163
|
+
|-------|--------|----------------------------|
|
|
164
|
+
| advisory | inspect · explain · plan · review | edit files unless asked |
|
|
165
|
+
| assisted *(default)* | edit after explaining the plan | broad/cross-cutting changes without asking |
|
|
166
|
+
| autonomous-local | implement locally + run validation | push, open PRs, leave the repo |
|
|
167
|
+
| autonomous-pr | create branches + PR-ready changes | **merge** (human review required) |
|
|
168
|
+
| enterprise-controlled | work through strict gates + audit | edit sensitive files / complete without security + review |
|
|
169
|
+
|
|
170
|
+
## Risk classification
|
|
171
|
+
|
|
172
|
+
Every task is classified **low · medium · high · restricted** before work starts
|
|
173
|
+
(`.claude/rules/risk-classification.md`). High-risk areas — authentication, authorization, payments,
|
|
174
|
+
secrets, production data, database migrations, infrastructure, security controls, compliance, destructive
|
|
175
|
+
operations, dependency upgrades, many-file changes — require: a plan · explicit approval · security
|
|
176
|
+
review · test review · rollback notes · a residual-risk summary. Restricted work cannot start without
|
|
177
|
+
written human authorization.
|
|
178
|
+
|
|
179
|
+
## Governance & adoption
|
|
180
|
+
|
|
181
|
+
- **Add a skill/agent:** create it in the kit's `templates/org/…`, list it in the pack's `pack.yaml`,
|
|
182
|
+
document it in the pack README. **Reuse before creating** — never add a competing duplicate.
|
|
183
|
+
- **Retire duplicates:** prefer one canonical component; deprecate aliases via `/deprecation-and-migration`.
|
|
184
|
+
- **Approve hooks & sensitive rules:** security/DevOps review before rollout; keep hooks conservative.
|
|
185
|
+
- **Version & roll out:** version packs, keep a changelog, roll out repo-by-repo with `claude-kit diff`
|
|
186
|
+
then `claude-kit upgrade` (edits are backed up).
|
|
187
|
+
- **Different teams, different autonomy:** choose the level per repo (a regulated service vs an internal tool).
|
|
188
|
+
- **Collect feedback:** capture recurring prompts (→ new skills) and recurring mistakes (→ new rules)
|
|
189
|
+
via the `remember` skill.
|
|
190
|
+
|
|
191
|
+
### Metrics worth tracking
|
|
192
|
+
tasks completed through `/sdlc` · PRs created with Claude assistance · test-coverage change · escaped
|
|
193
|
+
defects · review comments per PR · idea→PR time · security findings caught pre-merge · rollback
|
|
194
|
+
frequency · docs updated with code · unsafe actions blocked by hooks · repeated prompts that should
|
|
195
|
+
become skills · repeated mistakes that should become rules.
|
|
196
|
+
|
|
197
|
+
## Examples for different org users
|
|
198
|
+
|
|
199
|
+
```text
|
|
200
|
+
# PM — idea to reviewable plan (asks product questions, writes acceptance criteria + stories,
|
|
201
|
+
# routes to engineering, STOPS for approval before any code)
|
|
202
|
+
/feature-from-idea Add team invites to the admin dashboard
|
|
203
|
+
|
|
204
|
+
# Engineer — behavior-preserving refactor (reads files, classifies risk, plans, proposes tests,
|
|
205
|
+
# small changes, invokes code + test review)
|
|
206
|
+
/refactor-safely Simplify the billing service without changing behavior
|
|
207
|
+
|
|
208
|
+
# QA — regression coverage (finds modules, proposes unit/integration/e2e tests, writes + validates,
|
|
209
|
+
# summarizes coverage gaps)
|
|
210
|
+
/write-tests Add regression coverage for failed password-reset links
|
|
211
|
+
|
|
212
|
+
# Support — issue to fix (repro report, asks for logs/steps, finds code paths, proposes fix +
|
|
213
|
+
# validation checklist)
|
|
214
|
+
/customer-issue-to-fix Customer cannot export invoices over 10MB
|
|
215
|
+
|
|
216
|
+
# Founder/operator — prototype to production (identifies risks, asks about users + data sensitivity,
|
|
217
|
+
# adds validation/auth/error handling/logging/tests, requires review)
|
|
218
|
+
/prototype-to-production Turn this internal CSV upload script into a safe admin feature
|
|
219
|
+
```
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Agent Memory Index
|
|
2
|
+
|
|
3
|
+
Categorized, durable learnings captured across Claude sessions for this project. Each entry
|
|
4
|
+
links to a detailed memory file. Captured via the `remember` skill; injected into context each
|
|
5
|
+
session by the `load-learnings.sh` SessionStart hook.
|
|
6
|
+
|
|
7
|
+
Before design or implementation work, open the category file flagged by an entry's "applies
|
|
8
|
+
when" hook and follow it.
|
|
9
|
+
|
|
10
|
+
## Categories
|
|
11
|
+
|
|
12
|
+
### Architecture Decisions
|
|
13
|
+
<!-- - [Title](architecture/filename.md) — one-line description | applies when: ... -->
|
|
14
|
+
|
|
15
|
+
### Debugging Insights
|
|
16
|
+
<!-- - [Title](debugging/filename.md) — one-line description | applies when: ... -->
|
|
17
|
+
|
|
18
|
+
### Project Patterns
|
|
19
|
+
<!-- - [Title](patterns/filename.md) — one-line description | applies when: ... -->
|
|
20
|
+
|
|
21
|
+
### API & Integration
|
|
22
|
+
<!-- - [Title](api/filename.md) — one-line description | applies when: ... -->
|
|
23
|
+
|
|
24
|
+
### Performance
|
|
25
|
+
<!-- - [Title](performance/filename.md) — one-line description | applies when: ... -->
|
|
26
|
+
|
|
27
|
+
### Gotchas & Pitfalls
|
|
28
|
+
<!-- - [Title](gotchas/filename.md) — one-line description | applies when: ... -->
|
|
29
|
+
|
|
30
|
+
_No learnings recorded yet. They accumulate here automatically as you work._
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# ADR <NNNN>: <title>
|
|
2
|
+
|
|
3
|
+
- **Status:** proposed | accepted | superseded by ADR-<NNNN>
|
|
4
|
+
- **Date:** <YYYY-MM-DD>
|
|
5
|
+
- **Deciders:** <who>
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
The forces at play: the problem, constraints, and what makes this decision non-trivial.
|
|
9
|
+
|
|
10
|
+
## Decision
|
|
11
|
+
The choice made, stated in active voice ("We will …").
|
|
12
|
+
|
|
13
|
+
## Alternatives considered
|
|
14
|
+
- Option A — pros / cons / why not.
|
|
15
|
+
- Option B — pros / cons / why not.
|
|
16
|
+
|
|
17
|
+
## Consequences
|
|
18
|
+
What becomes easier and what becomes harder. Follow-ups, migrations, and risks created.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Feature spec: <name>
|
|
2
|
+
|
|
3
|
+
> Produced before implementation (see `.claude/rules/mandatory-workflow.md`). Keep it explicit
|
|
4
|
+
> enough to review.
|
|
5
|
+
|
|
6
|
+
## Problem / motivation
|
|
7
|
+
What user need or problem does this address? Why now?
|
|
8
|
+
|
|
9
|
+
## Goals / non-goals
|
|
10
|
+
- Goals:
|
|
11
|
+
- Non-goals:
|
|
12
|
+
|
|
13
|
+
## Acceptance criteria
|
|
14
|
+
- [ ] Given … when … then …
|
|
15
|
+
- [ ] …
|
|
16
|
+
|
|
17
|
+
## Scope
|
|
18
|
+
Affected modules / files / surfaces. Independent work streams (e.g. backend lane, frontend lane).
|
|
19
|
+
|
|
20
|
+
## Design
|
|
21
|
+
Approach, data model / API contract changes, key decisions (link ADRs for significant ones).
|
|
22
|
+
|
|
23
|
+
## Risks & constraints
|
|
24
|
+
Deadline, compatibility, security, performance, compliance.
|
|
25
|
+
|
|
26
|
+
## Test plan (summary)
|
|
27
|
+
What unit / integration / e2e coverage proves the acceptance criteria. (Detail in test-plan.md.)
|
|
28
|
+
|
|
29
|
+
## Rollout / open questions
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Release plan: <version / change>
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
What's shipping and the user-visible impact.
|
|
5
|
+
|
|
6
|
+
## Pre-flight
|
|
7
|
+
- [ ] All quality gates green (review, tests, security; pipeline/observability if applicable).
|
|
8
|
+
- [ ] Migrations reviewed and reversible; back-fill plan for new constraints.
|
|
9
|
+
- [ ] Config / env vars / feature flags documented and set per environment.
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
1. …
|
|
13
|
+
2. …
|
|
14
|
+
|
|
15
|
+
## Verification (post-deploy)
|
|
16
|
+
- Health/readiness checks pass; key user journeys smoke-tested.
|
|
17
|
+
- Dashboards/alerts show expected baselines.
|
|
18
|
+
|
|
19
|
+
## Rollback
|
|
20
|
+
Exact steps to revert (deploy + data). Trigger conditions.
|
|
21
|
+
|
|
22
|
+
## Comms
|
|
23
|
+
Who to notify, changelog entry, and any user-facing notes.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Runbook: <service / capability>
|
|
2
|
+
|
|
3
|
+
> Operational reference (see `.claude/rules/devops-observability.md`).
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
What this service does and its critical user journeys / SLOs.
|
|
7
|
+
|
|
8
|
+
## Health & dashboards
|
|
9
|
+
- Health endpoint(s): …
|
|
10
|
+
- Dashboards / logs / traces: …
|
|
11
|
+
- Key metrics & alert thresholds: …
|
|
12
|
+
|
|
13
|
+
## Common operations
|
|
14
|
+
- Deploy / rollback: …
|
|
15
|
+
- Run/replay a migration: …
|
|
16
|
+
- Rotate credentials: …
|
|
17
|
+
|
|
18
|
+
## Incident playbook
|
|
19
|
+
| Symptom | Likely cause | First checks | Mitigation |
|
|
20
|
+
|---|---|---|---|
|
|
21
|
+
| … | … | … | … |
|
|
22
|
+
|
|
23
|
+
## Escalation
|
|
24
|
+
On-call / owners and when to escalate.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Security review: <change>
|
|
2
|
+
|
|
3
|
+
> Output of the Security Clear gate (see `.claude/rules/quality-gates.md`). Findings are classified
|
|
4
|
+
> Critical / High / Medium / Low / Cosmetic; Critical/High/Medium block.
|
|
5
|
+
|
|
6
|
+
## Scope
|
|
7
|
+
What changed and what attack surface it touches (inputs, auth, data, dependencies, config).
|
|
8
|
+
|
|
9
|
+
## Findings
|
|
10
|
+
| # | Severity | Area | Finding | Recommendation | Status |
|
|
11
|
+
|---|---|---|---|---|---|
|
|
12
|
+
| 1 | … | secrets/deps/owasp/policy | … | … | open/fixed |
|
|
13
|
+
|
|
14
|
+
## Checklist
|
|
15
|
+
- [ ] No hardcoded secrets / keys / tokens committed.
|
|
16
|
+
- [ ] Dependencies free of known Critical/High CVEs.
|
|
17
|
+
- [ ] Input validated & queries parameterized (no injection).
|
|
18
|
+
- [ ] AuthN/AuthZ enforced on new surfaces; least privilege.
|
|
19
|
+
- [ ] Sensitive data not logged; errors don't leak internals.
|
|
20
|
+
- [ ] CORS / rate limiting / secure cookie flags as required by policy.
|
|
21
|
+
|
|
22
|
+
## Verdict
|
|
23
|
+
PASS / FAIL (with the blocking findings, if any).
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Test plan: <feature>
|
|
2
|
+
|
|
3
|
+
> Maps every acceptance criterion to concrete tests (see `.claude/rules/testing.md`).
|
|
4
|
+
|
|
5
|
+
## Coverage matrix
|
|
6
|
+
| Acceptance criterion | Test type (unit/integration/e2e) | Test name / location |
|
|
7
|
+
|---|---|---|
|
|
8
|
+
| … | … | … |
|
|
9
|
+
|
|
10
|
+
## Unit
|
|
11
|
+
Happy paths, edge cases, error paths for new/changed units.
|
|
12
|
+
|
|
13
|
+
## Integration
|
|
14
|
+
Component/contract boundaries (API ↔ client, service ↔ data layer).
|
|
15
|
+
|
|
16
|
+
## End-to-end
|
|
17
|
+
The full user journeys the feature enables.
|
|
18
|
+
|
|
19
|
+
## Edge cases & negative tests
|
|
20
|
+
Invalid input, auth failures, empty/loading/error states, concurrency, limits.
|
|
21
|
+
|
|
22
|
+
## Out of scope / not tested (with rationale)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Organization capability packs
|
|
2
|
+
|
|
3
|
+
This directory is the **org capability layer** claude-kit installs when you scaffold with
|
|
4
|
+
`scope: organization`. Each subdirectory is a **capability pack** — a `pack.yaml` manifest plus a
|
|
5
|
+
`README.md` — that bundles a coherent set of skills, agents, rules, and hooks for a way of working.
|
|
6
|
+
|
|
7
|
+
> **Packs are manifests, not copies.** A pack *references* components by name; the runnable
|
|
8
|
+
> skills/agents/rules it lists are installed in the standard auto-discovered locations
|
|
9
|
+
> (`.claude/skills/`, `.claude/agents/`, `.claude/rules/`) so Claude Code picks them up normally. This
|
|
10
|
+
> directory is the **catalog + governance** layer: it documents which capabilities exist, who they're
|
|
11
|
+
> for, and how to adopt them — it is not itself executed.
|
|
12
|
+
|
|
13
|
+
## The packs
|
|
14
|
+
|
|
15
|
+
| Pack | For | Purpose |
|
|
16
|
+
|------|-----|---------|
|
|
17
|
+
| `engineering-core` | Engineering | Feature dev, refactoring, debugging, review, tests, release prep |
|
|
18
|
+
| `product-to-code` | Product · Founders | Ideas/tickets/PRDs/feedback → specs, stories, acceptance criteria, tasks |
|
|
19
|
+
| `quality-and-review` | QA · Engineering | Test planning, regression, PR/security/perf/acceptance review |
|
|
20
|
+
| `security-and-compliance` | Security · DevOps | Secrets, insecure code, unsafe commands, dependency/auth/data risk |
|
|
21
|
+
| `devops-and-release` | DevOps · Engineering | CI/CD, deploy/rollback planning, release notes, observability, runbooks |
|
|
22
|
+
| `onboarding-and-docs` | Engineering · Support | Understand the repo, generate/keep docs in sync, onboarding paths |
|
|
23
|
+
| `non-engineer-builder` | Product · Design · Founders · Support · Data | Safe vibe-coding for non-engineers (clarify, plan, limited scope, approval gates) |
|
|
24
|
+
|
|
25
|
+
## How capabilities reach this repo
|
|
26
|
+
|
|
27
|
+
| Layer | Lives in | Use for |
|
|
28
|
+
|-------|----------|---------|
|
|
29
|
+
| **Project** | `.claude/`, `CLAUDE.md`, `.mcp.json`, this README — committed | what this repo needs; the source of truth per repo |
|
|
30
|
+
| **User** | `~/.claude/` (per developer, not committed) | personal preferences, personal skills, local overrides |
|
|
31
|
+
| **Organization** | reusable packs/plugins distributed across repos | the shared, approved, versioned capabilities below |
|
|
32
|
+
|
|
33
|
+
**Never commit:** local secrets, `.env`, personal tokens, or personal `settings.local.json`.
|
|
34
|
+
|
|
35
|
+
## Autonomy & risk
|
|
36
|
+
|
|
37
|
+
Every pack operates under the project's **autonomy level** (`.claude/rules/autonomy-levels.md`) and
|
|
38
|
+
**risk classification** (`.claude/rules/risk-classification.md`). High-risk or restricted work (auth,
|
|
39
|
+
payments, secrets, production data, migrations, infrastructure) always requires a plan, explicit human
|
|
40
|
+
approval, security + test review, and rollback notes — regardless of pack or autonomy level.
|
|
41
|
+
|
|
42
|
+
## Governance (adopt · change · version)
|
|
43
|
+
|
|
44
|
+
- **Add a skill/agent/rule to a pack:** add the file to the kit's `templates/org/…`, list it in the
|
|
45
|
+
pack's `pack.yaml`, and document it in the pack README. Reuse an existing component before creating a
|
|
46
|
+
new one (avoid duplicate, competing components).
|
|
47
|
+
- **Approve hooks & sensitive rules:** security-relevant hooks and policy rules change through review by
|
|
48
|
+
the owning team (security/DevOps) before rollout.
|
|
49
|
+
- **Version & roll out:** packs are versioned; record changes in a changelog and roll out repo-by-repo
|
|
50
|
+
with `claude-kit diff` / `claude-kit upgrade` (your edits are backed up, never silently overwritten).
|
|
51
|
+
- **Different teams, different autonomy:** pick the autonomy level per repo; a regulated repo can run
|
|
52
|
+
`enterprise-controlled` while an internal tool runs `assisted`.
|
|
53
|
+
- **Measure adoption & quality:** see the "Metrics" section in `README.claude-sdlc.md`.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: data-workflow-agent
|
|
3
|
+
description: Data-workflow partner for analysts. Turns a described query, report, or transformation into a sanity-checked, runnable plan — READ-ONLY by default. Plans and clarifies — never runs queries or writes data; requires human approval before any production access, write/delete, or PII handling.
|
|
4
|
+
tools: Read, Glob, Grep, SendMessage
|
|
5
|
+
mode: plan
|
|
6
|
+
model: sonnet
|
|
7
|
+
color: green
|
|
8
|
+
tier: specialist
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
You are the **Data Workflow Agent** — an analyst's partner for safe data work. You turn a described
|
|
12
|
+
query, report, or transformation into a reviewable, runnable plan. You are **read-only by default**
|
|
13
|
+
and do **not** run queries or modify data.
|
|
14
|
+
|
|
15
|
+
## MANDATORY: Read Before Acting
|
|
16
|
+
1. `.claude/rules/production-data-policy.md` — what production data access requires.
|
|
17
|
+
2. `.claude/rules/pii-policy.md` — how sensitive/personal data must be handled.
|
|
18
|
+
3. `.claude/rules/risk-classification.md` — classify the workflow before planning.
|
|
19
|
+
|
|
20
|
+
## Role
|
|
21
|
+
Translate a described query, report, or data transformation into a sanity-checked, ordered plan the
|
|
22
|
+
analyst can run safely — surfacing risk, scope, and data-sensitivity first.
|
|
23
|
+
|
|
24
|
+
## Responsibilities
|
|
25
|
+
- Clarify the question: inputs, the data store(s) involved, expected output, and filters.
|
|
26
|
+
- Sanity-check the logic for join/grain errors, missing filters, double-counting, and unbounded scans.
|
|
27
|
+
- Classify risk (with `risk-classifier`) and flag any production, write/delete, or PII exposure.
|
|
28
|
+
- Produce a step-by-step **runnable plan** the analyst executes, or route via `/repo-onboarding` for context.
|
|
29
|
+
|
|
30
|
+
## Allowed tools
|
|
31
|
+
Read, Glob, Grep (to inspect schemas/definitions read-only) and SendMessage (to delegate). No editing, no running.
|
|
32
|
+
|
|
33
|
+
## Forbidden actions
|
|
34
|
+
- Do not run, execute, or schedule queries, transformations, or shell commands.
|
|
35
|
+
- Do not perform destructive or write/delete operations under any circumstances.
|
|
36
|
+
- Do not touch PII or production data, or export sensitive data, without explicit human approval.
|
|
37
|
+
|
|
38
|
+
## Required inputs
|
|
39
|
+
A described query, report, or transformation. If the data store, grain, or output is unclear, ask before planning.
|
|
40
|
+
|
|
41
|
+
## Output schema
|
|
42
|
+
```
|
|
43
|
+
GOAL: <what the analyst needs, 1–2 sentences>
|
|
44
|
+
DATA STORE(S): <sources> / GRAIN: <one row = ...>
|
|
45
|
+
LOGIC CHECK: <joins, filters, dedup, scope concerns found>
|
|
46
|
+
RUNNABLE PLAN (ordered): <step 1 ... step n — read-only unless approved>
|
|
47
|
+
RISK: <low|medium|high|restricted> — <why>
|
|
48
|
+
SENSITIVITY: <prod? write/delete? PII? export?>
|
|
49
|
+
APPROVAL NEEDED: <what the human must confirm before running>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Escalation conditions
|
|
53
|
+
Ambiguous grain or scope; logic that risks double-counting or unbounded scans; anything touching
|
|
54
|
+
production, writes/deletes, or PII; work exceeding the active autonomy level → escalate via
|
|
55
|
+
`.claude/rules/human-in-the-loop.md`.
|
|
56
|
+
|
|
57
|
+
## Human-approval conditions
|
|
58
|
+
Always for any production-data access; always for any write/delete or PII handling; always before
|
|
59
|
+
exporting sensitive data; whenever the plan changes materially after approval.
|