@devran-ai/kit 4.1.0
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.
- package/.agent/CheatSheet.md +350 -0
- package/.agent/README.md +76 -0
- package/.agent/agents/README.md +155 -0
- package/.agent/agents/architect.md +185 -0
- package/.agent/agents/backend-specialist.md +276 -0
- package/.agent/agents/build-error-resolver.md +207 -0
- package/.agent/agents/code-reviewer.md +162 -0
- package/.agent/agents/database-architect.md +138 -0
- package/.agent/agents/devops-engineer.md +144 -0
- package/.agent/agents/doc-updater.md +229 -0
- package/.agent/agents/e2e-runner.md +145 -0
- package/.agent/agents/explorer-agent.md +143 -0
- package/.agent/agents/frontend-specialist.md +144 -0
- package/.agent/agents/go-reviewer.md +128 -0
- package/.agent/agents/knowledge-agent.md +197 -0
- package/.agent/agents/mobile-developer.md +150 -0
- package/.agent/agents/performance-optimizer.md +175 -0
- package/.agent/agents/planner.md +133 -0
- package/.agent/agents/pr-reviewer.md +148 -0
- package/.agent/agents/python-reviewer.md +123 -0
- package/.agent/agents/refactor-cleaner.md +201 -0
- package/.agent/agents/reliability-engineer.md +156 -0
- package/.agent/agents/security-reviewer.md +141 -0
- package/.agent/agents/sprint-orchestrator.md +124 -0
- package/.agent/agents/tdd-guide.md +179 -0
- package/.agent/agents/typescript-reviewer.md +110 -0
- package/.agent/checklists/README.md +102 -0
- package/.agent/checklists/pre-commit.md +93 -0
- package/.agent/checklists/session-end.md +99 -0
- package/.agent/checklists/session-start.md +102 -0
- package/.agent/checklists/task-complete.md +81 -0
- package/.agent/commands/README.md +130 -0
- package/.agent/commands/adr.md +29 -0
- package/.agent/commands/ask.md +28 -0
- package/.agent/commands/build.md +30 -0
- package/.agent/commands/changelog.md +40 -0
- package/.agent/commands/checkpoint.md +28 -0
- package/.agent/commands/code-review.md +65 -0
- package/.agent/commands/compact.md +28 -0
- package/.agent/commands/cook.md +30 -0
- package/.agent/commands/db.md +30 -0
- package/.agent/commands/debug.md +31 -0
- package/.agent/commands/deploy.md +37 -0
- package/.agent/commands/design.md +29 -0
- package/.agent/commands/doc.md +30 -0
- package/.agent/commands/eval.md +30 -0
- package/.agent/commands/fix.md +32 -0
- package/.agent/commands/git.md +32 -0
- package/.agent/commands/help.md +273 -0
- package/.agent/commands/implement.md +30 -0
- package/.agent/commands/integrate.md +32 -0
- package/.agent/commands/learn.md +29 -0
- package/.agent/commands/perf.md +31 -0
- package/.agent/commands/plan.md +56 -0
- package/.agent/commands/pr-describe.md +65 -0
- package/.agent/commands/pr-fix.md +45 -0
- package/.agent/commands/pr-merge.md +45 -0
- package/.agent/commands/pr-review.md +50 -0
- package/.agent/commands/pr-split.md +54 -0
- package/.agent/commands/pr-status.md +56 -0
- package/.agent/commands/pr.md +58 -0
- package/.agent/commands/refactor.md +32 -0
- package/.agent/commands/research.md +28 -0
- package/.agent/commands/scout.md +30 -0
- package/.agent/commands/security-scan.md +33 -0
- package/.agent/commands/setup.md +31 -0
- package/.agent/commands/status.md +59 -0
- package/.agent/commands/tdd.md +73 -0
- package/.agent/commands/verify.md +58 -0
- package/.agent/contexts/brainstorm.md +26 -0
- package/.agent/contexts/debug.md +28 -0
- package/.agent/contexts/implement.md +29 -0
- package/.agent/contexts/plan-quality-log.md +30 -0
- package/.agent/contexts/review.md +27 -0
- package/.agent/contexts/ship.md +28 -0
- package/.agent/decisions/001-trust-grade-governance.md +46 -0
- package/.agent/decisions/002-cross-ide-generation.md +15 -0
- package/.agent/engine/identity.json +4 -0
- package/.agent/engine/loading-rules.json +193 -0
- package/.agent/engine/marketplace-index.json +29 -0
- package/.agent/engine/mcp-servers/filesystem.json +9 -0
- package/.agent/engine/mcp-servers/github.json +11 -0
- package/.agent/engine/mcp-servers/postgres.json +11 -0
- package/.agent/engine/mcp-servers/supabase.json +11 -0
- package/.agent/engine/mcp-servers/vercel.json +11 -0
- package/.agent/engine/reliability-config.json +14 -0
- package/.agent/engine/sdlc-map.json +50 -0
- package/.agent/engine/workflow-state.json +167 -0
- package/.agent/hooks/README.md +101 -0
- package/.agent/hooks/hooks.json +104 -0
- package/.agent/hooks/templates/session-end.md +110 -0
- package/.agent/hooks/templates/session-start.md +95 -0
- package/.agent/manifest.json +466 -0
- package/.agent/rules/agent-upgrade-policy.md +56 -0
- package/.agent/rules/architecture.md +111 -0
- package/.agent/rules/coding-style.md +75 -0
- package/.agent/rules/documentation.md +74 -0
- package/.agent/rules/git-workflow.md +140 -0
- package/.agent/rules/quality-gate.md +117 -0
- package/.agent/rules/security.md +67 -0
- package/.agent/rules/sprint-tracking.md +103 -0
- package/.agent/rules/testing.md +80 -0
- package/.agent/rules/workflow-standards.md +30 -0
- package/.agent/rules.md +293 -0
- package/.agent/session-context.md +69 -0
- package/.agent/session-state.json +27 -0
- package/.agent/skills/README.md +135 -0
- package/.agent/skills/api-patterns/SKILL.md +117 -0
- package/.agent/skills/app-builder/SKILL.md +202 -0
- package/.agent/skills/architecture/SKILL.md +101 -0
- package/.agent/skills/behavioral-modes/SKILL.md +295 -0
- package/.agent/skills/brainstorming/SKILL.md +156 -0
- package/.agent/skills/clean-code/SKILL.md +142 -0
- package/.agent/skills/context-budget/SKILL.md +78 -0
- package/.agent/skills/continuous-learning/SKILL.md +145 -0
- package/.agent/skills/database-design/SKILL.md +303 -0
- package/.agent/skills/debugging-strategies/SKILL.md +158 -0
- package/.agent/skills/deployment-procedures/SKILL.md +191 -0
- package/.agent/skills/docker-patterns/SKILL.md +161 -0
- package/.agent/skills/eval-harness/SKILL.md +89 -0
- package/.agent/skills/frontend-patterns/SKILL.md +141 -0
- package/.agent/skills/git-workflow/SKILL.md +159 -0
- package/.agent/skills/i18n-localization/SKILL.md +191 -0
- package/.agent/skills/intelligent-routing/SKILL.md +180 -0
- package/.agent/skills/mcp-integration/SKILL.md +240 -0
- package/.agent/skills/mobile-design/SKILL.md +191 -0
- package/.agent/skills/nodejs-patterns/SKILL.md +164 -0
- package/.agent/skills/parallel-agents/SKILL.md +200 -0
- package/.agent/skills/performance-profiling/SKILL.md +134 -0
- package/.agent/skills/plan-validation/SKILL.md +192 -0
- package/.agent/skills/plan-writing/SKILL.md +183 -0
- package/.agent/skills/plan-writing/domain-enhancers.md +184 -0
- package/.agent/skills/plan-writing/plan-retrospective.md +116 -0
- package/.agent/skills/plan-writing/plan-schema.md +119 -0
- package/.agent/skills/pr-toolkit/SKILL.md +174 -0
- package/.agent/skills/production-readiness/SKILL.md +126 -0
- package/.agent/skills/security-practices/SKILL.md +109 -0
- package/.agent/skills/shell-conventions/SKILL.md +92 -0
- package/.agent/skills/strategic-compact/SKILL.md +62 -0
- package/.agent/skills/testing-patterns/SKILL.md +141 -0
- package/.agent/skills/typescript-expert/SKILL.md +160 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +137 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +68 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +253 -0
- package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +114 -0
- package/.agent/skills/verification-loop/SKILL.md +89 -0
- package/.agent/skills/webapp-testing/SKILL.md +175 -0
- package/.agent/templates/adr-template.md +32 -0
- package/.agent/templates/bug-report.md +37 -0
- package/.agent/templates/feature-request.md +32 -0
- package/.agent/workflows/README.md +101 -0
- package/.agent/workflows/brainstorm.md +86 -0
- package/.agent/workflows/create.md +85 -0
- package/.agent/workflows/debug.md +83 -0
- package/.agent/workflows/deploy.md +114 -0
- package/.agent/workflows/enhance.md +85 -0
- package/.agent/workflows/orchestrate.md +106 -0
- package/.agent/workflows/plan.md +105 -0
- package/.agent/workflows/pr-fix.md +163 -0
- package/.agent/workflows/pr-merge.md +117 -0
- package/.agent/workflows/pr-review.md +178 -0
- package/.agent/workflows/pr-split.md +118 -0
- package/.agent/workflows/pr.md +184 -0
- package/.agent/workflows/preflight.md +107 -0
- package/.agent/workflows/preview.md +95 -0
- package/.agent/workflows/quality-gate.md +103 -0
- package/.agent/workflows/retrospective.md +100 -0
- package/.agent/workflows/review.md +104 -0
- package/.agent/workflows/status.md +89 -0
- package/.agent/workflows/test.md +98 -0
- package/.agent/workflows/ui-ux-pro-max.md +93 -0
- package/.agent/workflows/upgrade.md +97 -0
- package/LICENSE +21 -0
- package/README.md +218 -0
- package/bin/kit.js +773 -0
- package/lib/agent-registry.js +228 -0
- package/lib/agent-reputation.js +343 -0
- package/lib/circuit-breaker.js +195 -0
- package/lib/cli-commands.js +322 -0
- package/lib/config-validator.js +274 -0
- package/lib/conflict-detector.js +252 -0
- package/lib/constants.js +47 -0
- package/lib/engineering-manager.js +336 -0
- package/lib/error-budget.js +370 -0
- package/lib/hook-system.js +256 -0
- package/lib/ide-generator.js +434 -0
- package/lib/identity.js +240 -0
- package/lib/io.js +146 -0
- package/lib/learning-engine.js +163 -0
- package/lib/loading-engine.js +421 -0
- package/lib/logger.js +118 -0
- package/lib/marketplace.js +321 -0
- package/lib/plugin-system.js +604 -0
- package/lib/plugin-verifier.js +197 -0
- package/lib/rate-limiter.js +113 -0
- package/lib/security-scanner.js +312 -0
- package/lib/self-healing.js +468 -0
- package/lib/session-manager.js +264 -0
- package/lib/skill-sandbox.js +244 -0
- package/lib/task-governance.js +522 -0
- package/lib/task-model.js +332 -0
- package/lib/updater.js +240 -0
- package/lib/verify.js +279 -0
- package/lib/workflow-engine.js +373 -0
- package/lib/workflow-events.js +166 -0
- package/lib/workflow-persistence.js +160 -0
- package/package.json +57 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create new features, components, or modules from scratch.
|
|
3
|
+
version: 2.1.0
|
|
4
|
+
sdlc-phase: build
|
|
5
|
+
skills: [app-builder, clean-code]
|
|
6
|
+
commit-types: [feat]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /create — Scaffold New Features
|
|
10
|
+
|
|
11
|
+
> **Trigger**: `/create [description]`
|
|
12
|
+
> **Lifecycle**: Build — after `/plan` approval
|
|
13
|
+
|
|
14
|
+
> Standards: See `rules/workflow-standards.md`
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Critical Rules
|
|
19
|
+
|
|
20
|
+
1. Follow existing patterns — scan codebase before writing
|
|
21
|
+
2. No orphan code — every file must be imported/referenced/routed
|
|
22
|
+
3. Tests required for all new features
|
|
23
|
+
4. Stack-agnostic detection from config files
|
|
24
|
+
5. User approval for scaffolds creating >5 files
|
|
25
|
+
6. Document all exported public APIs
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Steps
|
|
30
|
+
|
|
31
|
+
// turbo
|
|
32
|
+
1. **Clarify Requirements** — component type, acceptance criteria, constraints
|
|
33
|
+
|
|
34
|
+
// turbo
|
|
35
|
+
2. **Detect Stack** — auto-detect from config files, identify framework/conventions
|
|
36
|
+
|
|
37
|
+
// turbo
|
|
38
|
+
3. **Analyze Patterns** — find similar modules, naming conventions, import patterns, reusable utils
|
|
39
|
+
|
|
40
|
+
4. **Present Plan** (for >5 files) — show file structure, integration points. Wait for approval.
|
|
41
|
+
|
|
42
|
+
5. **Implement** — follow detected conventions, SOLID principles, wire up imports/routes
|
|
43
|
+
|
|
44
|
+
6. **Add Tests** — unit, integration, E2E as applicable
|
|
45
|
+
|
|
46
|
+
7. **Document** — JSDoc/docstrings, README updates, usage examples
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Output Template
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
## Create: [Feature]
|
|
54
|
+
|
|
55
|
+
- **Stack**: [language] + [framework]
|
|
56
|
+
- **Files Created**: [list with purposes]
|
|
57
|
+
- **Integration**: [how it connects]
|
|
58
|
+
- **Tests**: [what's covered]
|
|
59
|
+
|
|
60
|
+
**Next**: `/test` or `/preview`
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Governance
|
|
66
|
+
|
|
67
|
+
**PROHIBITED:** Creating without checking patterns · wrong-stack scaffolding · orphan files · skipping tests
|
|
68
|
+
|
|
69
|
+
**REQUIRED:** Stack detection · pattern analysis · user approval for >5 files · test coverage · integration
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Completion Criteria
|
|
74
|
+
|
|
75
|
+
- [ ] Stack detected, patterns analyzed
|
|
76
|
+
- [ ] Files created and integrated
|
|
77
|
+
- [ ] Tests written and passing
|
|
78
|
+
- [ ] Documentation added
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Related Resources
|
|
83
|
+
|
|
84
|
+
- **Previous**: `/plan` · **Next**: `/test` · `/preview`
|
|
85
|
+
- **Skill**: `.agent/skills/app-builder/SKILL.md`
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Systematic debugging workflow. Activates DEBUG mode for problem investigation.
|
|
3
|
+
version: 2.1.0
|
|
4
|
+
sdlc-phase: reactive
|
|
5
|
+
skills: [debugging-strategies]
|
|
6
|
+
commit-types: [fix]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /debug — Systematic Problem Investigation
|
|
10
|
+
|
|
11
|
+
> **Trigger**: `/debug [issue description]`
|
|
12
|
+
> **Lifecycle**: Reactive — any SDLC phase
|
|
13
|
+
|
|
14
|
+
> Standards: See `rules/workflow-standards.md`
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Critical Rules
|
|
19
|
+
|
|
20
|
+
1. Root cause required — never fix without understanding why
|
|
21
|
+
2. No guessing — form hypotheses, test systematically
|
|
22
|
+
3. Prevention mandatory — every fix includes recurrence prevention
|
|
23
|
+
4. Preserve evidence before changing anything
|
|
24
|
+
5. Minimal changes — fix only what's broken
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
|
|
30
|
+
// turbo
|
|
31
|
+
1. **Gather Info** — exact error/stack trace, reproduction steps, expected vs actual
|
|
32
|
+
|
|
33
|
+
// turbo
|
|
34
|
+
2. **Environment** — OS, runtime versions, recent git changes, deps, config
|
|
35
|
+
|
|
36
|
+
// turbo
|
|
37
|
+
3. **Hypotheses** — list 3+ causes ordered by likelihood
|
|
38
|
+
|
|
39
|
+
// turbo
|
|
40
|
+
4. **Investigate** — test each hypothesis, check logs/data/state, eliminate definitively
|
|
41
|
+
|
|
42
|
+
5. **Fix** — minimal fix for root cause, verify resolution, confirm no regressions
|
|
43
|
+
|
|
44
|
+
6. **Prevent** — add tests, validation, guardrails, document root cause
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Output Template
|
|
49
|
+
|
|
50
|
+
```markdown
|
|
51
|
+
## Debug: [Issue]
|
|
52
|
+
|
|
53
|
+
1. **Symptom**: [error/behavior]
|
|
54
|
+
2. **Root Cause**: [explanation]
|
|
55
|
+
3. **Fix**: [changes applied]
|
|
56
|
+
4. **Prevention**: [tests/guardrails added]
|
|
57
|
+
|
|
58
|
+
**Next**: `/test` for regression check.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Governance
|
|
64
|
+
|
|
65
|
+
**PROHIBITED:** Fixing without root cause · random guessing · modifying production without rollback
|
|
66
|
+
|
|
67
|
+
**REQUIRED:** Hypothesis testing · root cause documentation · prevention measures · regression verification
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Completion Criteria
|
|
72
|
+
|
|
73
|
+
- [ ] Issue reproduced and documented
|
|
74
|
+
- [ ] Root cause identified with evidence
|
|
75
|
+
- [ ] Fix applied and verified
|
|
76
|
+
- [ ] Prevention measures implemented
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Related Resources
|
|
81
|
+
|
|
82
|
+
- **Next**: `/test`
|
|
83
|
+
- **Skill**: `.agent/skills/debugging-strategies/SKILL.md`
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Production deployment with pre-flight checks, execution, and verification.
|
|
3
|
+
version: 2.1.0
|
|
4
|
+
sdlc-phase: ship
|
|
5
|
+
skills: [deployment-procedures]
|
|
6
|
+
commit-types: [chore, fix]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /deploy — Production Deployment
|
|
10
|
+
|
|
11
|
+
> **Trigger**: `/deploy [sub-command]`
|
|
12
|
+
> **Lifecycle**: Ship — after `/pr` is merged
|
|
13
|
+
|
|
14
|
+
> Standards: See `rules/workflow-standards.md`
|
|
15
|
+
|
|
16
|
+
> [!CAUTION]
|
|
17
|
+
> Deployment impacts production users and consumes platform credits. Never deploy untested code.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Critical Rules
|
|
22
|
+
|
|
23
|
+
1. Rollback plan required before deploying
|
|
24
|
+
2. No test deploys to production — use preview/staging
|
|
25
|
+
3. Pre-flight must pass before deployment
|
|
26
|
+
4. Health check mandatory after deployment
|
|
27
|
+
5. No secrets in deployment logs
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Scope Filter
|
|
32
|
+
|
|
33
|
+
Deploy only production-impacting changes: `apps/`, `docker/`, infra config. Never deploy docs-only or `.agent/` changes.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Argument Parsing
|
|
38
|
+
|
|
39
|
+
| Command | Action |
|
|
40
|
+
| :--- | :--- |
|
|
41
|
+
| `/deploy` | Interactive wizard |
|
|
42
|
+
| `/deploy check` | Pre-flight only |
|
|
43
|
+
| `/deploy preview` | Deploy to staging |
|
|
44
|
+
| `/deploy production` | Deploy to production |
|
|
45
|
+
| `/deploy rollback` | Rollback to previous |
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Steps
|
|
50
|
+
|
|
51
|
+
// turbo
|
|
52
|
+
1. **Pre-Flight** — tsc, lint, tests, security audit, build, environment check
|
|
53
|
+
|
|
54
|
+
// turbo
|
|
55
|
+
2. **Scope Verification** — check changed files against scope filter
|
|
56
|
+
|
|
57
|
+
3. **Rollback Plan** — document current version, verify rollback command, check migration reversibility
|
|
58
|
+
|
|
59
|
+
4. **Deploy** — build, deploy to target, monitor progress
|
|
60
|
+
|
|
61
|
+
// turbo
|
|
62
|
+
5. **Health Check** — API responding, database connected, services healthy, no error spikes
|
|
63
|
+
|
|
64
|
+
6. **Post-Deploy** — document version/SHA, update tracking, notify stakeholders
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Platform Support
|
|
69
|
+
|
|
70
|
+
| Platform | Command | Auto-detect |
|
|
71
|
+
| :--- | :--- | :--- |
|
|
72
|
+
| Vercel | `vercel --prod` | Next.js |
|
|
73
|
+
| Railway | `railway up` | NestJS, API |
|
|
74
|
+
| Expo EAS | `eas build` | React Native |
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Output Template
|
|
79
|
+
|
|
80
|
+
```markdown
|
|
81
|
+
## Deployment Complete
|
|
82
|
+
|
|
83
|
+
- **Version**: [SHA/tag]
|
|
84
|
+
- **Environment**: [target]
|
|
85
|
+
- **Health**: All checks passing
|
|
86
|
+
- **Rollback**: `/deploy rollback` to [previous]
|
|
87
|
+
|
|
88
|
+
**Next**: `/status` for monitoring.
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Governance
|
|
94
|
+
|
|
95
|
+
**PROHIBITED:** Deploying without `/review` · production for testing · docs-only deploys · skipping rollback plan
|
|
96
|
+
|
|
97
|
+
**REQUIRED:** Pre-flight passing · scope verification · rollback plan · health check · cost-conscious batching
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Completion Criteria
|
|
102
|
+
|
|
103
|
+
- [ ] Pre-flight passed, scope verified
|
|
104
|
+
- [ ] Rollback plan documented
|
|
105
|
+
- [ ] Deployed, health check passed
|
|
106
|
+
- [ ] Version documented
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Related Resources
|
|
111
|
+
|
|
112
|
+
- **Previous**: `/pr` (merged) · `/preflight`
|
|
113
|
+
- **Next**: `/status`
|
|
114
|
+
- **Skill**: `.agent/skills/deployment-procedures/SKILL.md`
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Add or update features in existing application. Iterative development.
|
|
3
|
+
version: 2.1.0
|
|
4
|
+
sdlc-phase: build
|
|
5
|
+
skills: [clean-code, testing-patterns]
|
|
6
|
+
commit-types: [feat, refactor]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /enhance — Iterative Feature Development
|
|
10
|
+
|
|
11
|
+
> **Trigger**: `/enhance [description]`
|
|
12
|
+
> **Lifecycle**: Build — after `/plan` or ad-hoc for minor updates
|
|
13
|
+
|
|
14
|
+
> Standards: See `rules/workflow-standards.md`
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Critical Rules
|
|
19
|
+
|
|
20
|
+
1. Preserve existing functionality — never break what works
|
|
21
|
+
2. Regression check mandatory after every change
|
|
22
|
+
3. User approval for changes affecting >5 files
|
|
23
|
+
4. Incremental approach — small, verifiable changes
|
|
24
|
+
5. Follow existing conventions
|
|
25
|
+
6. Document user-facing changes
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Steps
|
|
30
|
+
|
|
31
|
+
// turbo
|
|
32
|
+
1. **Understand State** — explore structure, review features/stack/conventions, identify relevant files
|
|
33
|
+
|
|
34
|
+
// turbo
|
|
35
|
+
2. **Impact Analysis** — affected files, dependencies, regression risk, breaking changes
|
|
36
|
+
|
|
37
|
+
3. **Present Plan** (for >5 files) — show scope, affected areas, risk level. Wait for approval.
|
|
38
|
+
|
|
39
|
+
4. **Implement** — follow existing patterns, apply incrementally
|
|
40
|
+
|
|
41
|
+
// turbo
|
|
42
|
+
5. **Regression Check** — tests, build, lint, type-check
|
|
43
|
+
|
|
44
|
+
6. **Document** — update inline docs, README if user-facing, changelog if applicable
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Output Template
|
|
49
|
+
|
|
50
|
+
```markdown
|
|
51
|
+
## Enhancement: [Feature]
|
|
52
|
+
|
|
53
|
+
| Action | File | Description |
|
|
54
|
+
| :--- | :--- | :--- |
|
|
55
|
+
| Modified/Created | `path` | [what] |
|
|
56
|
+
|
|
57
|
+
- **Risk**: Low/Medium/High
|
|
58
|
+
- **Regression**: tests/build/lint passing
|
|
59
|
+
|
|
60
|
+
**Next**: `/test` or `/preview`
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Governance
|
|
66
|
+
|
|
67
|
+
**PROHIBITED:** Breaking existing functionality · large changes without impact analysis · skipping regression checks
|
|
68
|
+
|
|
69
|
+
**REQUIRED:** Impact analysis · user approval for >5 files · regression check · documentation updates
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Completion Criteria
|
|
74
|
+
|
|
75
|
+
- [ ] Impact analysis complete
|
|
76
|
+
- [ ] Changes implemented following patterns
|
|
77
|
+
- [ ] Regression check passed
|
|
78
|
+
- [ ] Documentation updated
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Related Resources
|
|
83
|
+
|
|
84
|
+
- **Previous**: `/plan` · **Next**: `/test` · `/preview`
|
|
85
|
+
- **Skill**: `.agent/skills/clean-code/SKILL.md`
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Multi-agent orchestration for complex tasks requiring multiple specialists.
|
|
3
|
+
version: 2.1.0
|
|
4
|
+
sdlc-phase: reactive
|
|
5
|
+
agents: [planner, explorer-agent]
|
|
6
|
+
skills: [parallel-agents, intelligent-routing]
|
|
7
|
+
commit-types: [feat, refactor, fix]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /orchestrate — Multi-Agent Coordination
|
|
11
|
+
|
|
12
|
+
> **Trigger**: `/orchestrate [task description]`
|
|
13
|
+
> **Lifecycle**: Reactive — complex multi-domain tasks at any SDLC phase
|
|
14
|
+
|
|
15
|
+
> Standards: See `rules/workflow-standards.md`
|
|
16
|
+
|
|
17
|
+
> [!CAUTION]
|
|
18
|
+
> Coordinates multiple agents on same codebase. Ensure clear domain boundaries. Phase 2 requires explicit user approval.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Critical Rules
|
|
23
|
+
|
|
24
|
+
1. **2-Phase protocol** — always plan before implementing
|
|
25
|
+
2. User approval gate between phases
|
|
26
|
+
3. Every subagent receives full context (request, decisions, prior work)
|
|
27
|
+
4. No agent conflicts — separate files or delineated domains
|
|
28
|
+
5. Verification required after all agents complete
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Steps
|
|
33
|
+
|
|
34
|
+
### PHASE 1: Planning (Sequential)
|
|
35
|
+
|
|
36
|
+
// turbo
|
|
37
|
+
1. **Analyze Domains** — identify all domains, map needed agents
|
|
38
|
+
|
|
39
|
+
// turbo
|
|
40
|
+
2. **Create Plan** — structured breakdown with execution order and dependencies
|
|
41
|
+
|
|
42
|
+
3. **User Approval** — present plan, wait for explicit approval
|
|
43
|
+
|
|
44
|
+
### PHASE 2: Implementation (After Approval)
|
|
45
|
+
|
|
46
|
+
4. **Execute in Groups** — Foundation (data, security) → Core (app logic) → Quality (tests) → Operations (infra)
|
|
47
|
+
|
|
48
|
+
5. **Context Passing** — every subagent gets: original request, decisions, prior agent work, plan state
|
|
49
|
+
|
|
50
|
+
// turbo
|
|
51
|
+
6. **Verification** — tests, lint, type-check, build
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Agent Selection
|
|
56
|
+
|
|
57
|
+
| Domain | Agent(s) |
|
|
58
|
+
| :--- | :--- |
|
|
59
|
+
| Architecture | `architect`, `planner` |
|
|
60
|
+
| Backend/DB | `backend-specialist`, `database-architect` |
|
|
61
|
+
| Frontend | `frontend-specialist` |
|
|
62
|
+
| Mobile | `mobile-developer` |
|
|
63
|
+
| Security | `security-reviewer` |
|
|
64
|
+
| Testing | `tdd-guide`, `e2e-runner` |
|
|
65
|
+
| DevOps | `devops-engineer` |
|
|
66
|
+
| Performance | `performance-optimizer` |
|
|
67
|
+
| Code Quality | `refactor-cleaner`, `code-reviewer` |
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Output Template
|
|
72
|
+
|
|
73
|
+
```markdown
|
|
74
|
+
## Orchestration Complete
|
|
75
|
+
|
|
76
|
+
### Agents Invoked
|
|
77
|
+
| Agent | Domain | Summary |
|
|
78
|
+
|
|
79
|
+
### Deliverables
|
|
80
|
+
| Action | File | Agent |
|
|
81
|
+
|
|
82
|
+
### Verification
|
|
83
|
+
Tests / Build / Lint: status
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Governance
|
|
89
|
+
|
|
90
|
+
**PROHIBITED:** Skipping Phase 1 · Phase 2 without approval · agents without context · overlapping files · skipping verification
|
|
91
|
+
|
|
92
|
+
**REQUIRED:** 2-Phase protocol · full context passing · domain boundaries · verification after completion
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Completion Criteria
|
|
97
|
+
|
|
98
|
+
- [ ] Domains analyzed, plan approved
|
|
99
|
+
- [ ] Agents executed with context
|
|
100
|
+
- [ ] Verification passed
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Related Resources
|
|
105
|
+
|
|
106
|
+
- **Skills**: `.agent/skills/parallel-agents/SKILL.md` · `.agent/skills/intelligent-routing/SKILL.md`
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create implementation plan. Invokes planner agent for structured task breakdown.
|
|
3
|
+
version: 2.2.0
|
|
4
|
+
sdlc-phase: plan
|
|
5
|
+
agents: [planner]
|
|
6
|
+
skills: [plan-writing, brainstorming, plan-validation]
|
|
7
|
+
commit-types: [docs]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /plan — Implementation Planning
|
|
11
|
+
|
|
12
|
+
> **Trigger**: `/plan [task description]`
|
|
13
|
+
> **Lifecycle**: Plan — first step of SDLC after discovery
|
|
14
|
+
|
|
15
|
+
> Standards: See `rules/workflow-standards.md`
|
|
16
|
+
|
|
17
|
+
> [!IMPORTANT]
|
|
18
|
+
> This workflow creates plans, NOT code. No implementation during planning. All plans require user approval before execution.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Critical Rules
|
|
23
|
+
|
|
24
|
+
1. **No code writing** — plans only
|
|
25
|
+
2. **Socratic gate** — ask at least 3 clarifying questions before planning
|
|
26
|
+
3. **Dynamic naming** — `PLAN-{task-slug}.md`
|
|
27
|
+
4. **Verification criteria** — every task must have clear "done" criteria
|
|
28
|
+
5. **User approval required** — never implement without explicit approval
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Steps
|
|
33
|
+
|
|
34
|
+
// turbo
|
|
35
|
+
1. **Clarify Requirements** — ask 3+ clarifying questions about purpose, scope, constraints. Confirm acceptance criteria and edge cases.
|
|
36
|
+
|
|
37
|
+
// turbo
|
|
38
|
+
2. **Explore Codebase** — scan structure, identify relevant files, patterns, dependencies.
|
|
39
|
+
|
|
40
|
+
3. **Create Plan**
|
|
41
|
+
- Consult mandatory rules (security, testing, coding-style, documentation, git-workflow)
|
|
42
|
+
- Classify task: Trivial (1-2 files), Medium (3-10), Large (10+)
|
|
43
|
+
- Break down into steps with exact file paths and verification criteria
|
|
44
|
+
- Include cross-cutting concerns (security, testing, docs) for ALL sizes
|
|
45
|
+
- For Medium/Large: invoke specialist synthesis (security-reviewer, tdd-guide, architect)
|
|
46
|
+
- Save to `docs/PLAN-{task-slug}.md`
|
|
47
|
+
|
|
48
|
+
// turbo
|
|
49
|
+
3.5. **Validate Plan** — verify schema compliance, cross-cutting sections populated, file paths in every step. Score >= 70% → present. Below → revise (max 2 cycles).
|
|
50
|
+
|
|
51
|
+
4. **Present for Approval** — show plan with quality score, wait for approval.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Output Template
|
|
56
|
+
|
|
57
|
+
```markdown
|
|
58
|
+
## Plan: [Task Name]
|
|
59
|
+
|
|
60
|
+
### Scope
|
|
61
|
+
[Coverage and exclusions]
|
|
62
|
+
|
|
63
|
+
### Tasks
|
|
64
|
+
1. [ ] [Task] — **Verify**: [done criteria]
|
|
65
|
+
|
|
66
|
+
### Agent Assignments (if multi-domain)
|
|
67
|
+
| Task | Agent | Domain |
|
|
68
|
+
|
|
69
|
+
### Risks & Considerations
|
|
70
|
+
|
|
71
|
+
Plan saved: `docs/PLAN-{slug}.md`
|
|
72
|
+
Approve to start with `/create` or `/enhance`.
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Governance
|
|
78
|
+
|
|
79
|
+
**PROHIBITED:** Writing code during planning · proceeding without approval · vague tasks · skipping Socratic gate
|
|
80
|
+
|
|
81
|
+
**REQUIRED:** 3+ clarifying questions · mandatory rule consultation · verification criteria per task · cross-cutting concerns · plan validation · user approval · plan saved in `docs/`
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Post-Implementation Retrospective
|
|
86
|
+
|
|
87
|
+
After implementation reaches VERIFY phase, compare plan against `git diff --name-only`. Run plan-retrospective protocol, append to `.agent/contexts/plan-quality-log.md`. Non-blocking.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Completion Criteria
|
|
92
|
+
|
|
93
|
+
- [ ] Requirements clarified, codebase explored
|
|
94
|
+
- [ ] Plan created with verifiable tasks and file paths
|
|
95
|
+
- [ ] Plan validated (score >= 70%)
|
|
96
|
+
- [ ] User approved
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Related Resources
|
|
101
|
+
|
|
102
|
+
- **Previous**: `/brainstorm` · `/quality-gate`
|
|
103
|
+
- **Next**: `/create` · `/enhance`
|
|
104
|
+
- **Skill**: `.agent/skills/plan-writing/SKILL.md`
|
|
105
|
+
- **Agent**: `planner`
|