@softspark/ai-toolkit 1.0.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/AGENTS.md +412 -0
- package/CHANGELOG.md +68 -0
- package/LICENSE +21 -0
- package/README.md +632 -0
- package/action.yml +53 -0
- package/app/.claude-plugin/plugin.json +44 -0
- package/app/ARCHITECTURE.md +306 -0
- package/app/CLAUDE.md.template +23 -0
- package/app/agents/ai-engineer.md +128 -0
- package/app/agents/backend-specialist.md +193 -0
- package/app/agents/business-intelligence.md +54 -0
- package/app/agents/chaos-monkey.md +67 -0
- package/app/agents/chief-of-staff.md +51 -0
- package/app/agents/code-archaeologist.md +127 -0
- package/app/agents/code-reviewer.md +184 -0
- package/app/agents/command-expert.md +131 -0
- package/app/agents/data-analyst.md +205 -0
- package/app/agents/data-scientist.md +151 -0
- package/app/agents/database-architect.md +317 -0
- package/app/agents/debugger.md +238 -0
- package/app/agents/devops-implementer.md +194 -0
- package/app/agents/documenter.md +364 -0
- package/app/agents/explorer-agent.md +145 -0
- package/app/agents/fact-checker.md +172 -0
- package/app/agents/frontend-specialist.md +209 -0
- package/app/agents/game-developer.md +216 -0
- package/app/agents/incident-responder.md +226 -0
- package/app/agents/infrastructure-architect.md +127 -0
- package/app/agents/infrastructure-validator.md +247 -0
- package/app/agents/llm-ops-engineer.md +237 -0
- package/app/agents/mcp-expert.md +228 -0
- package/app/agents/mcp-server-architect.md +195 -0
- package/app/agents/mcp-testing-engineer.md +292 -0
- package/app/agents/meta-architect.md +58 -0
- package/app/agents/ml-engineer.md +136 -0
- package/app/agents/mobile-developer.md +190 -0
- package/app/agents/night-watchman.md +55 -0
- package/app/agents/nlp-engineer.md +154 -0
- package/app/agents/orchestrator.md +437 -0
- package/app/agents/performance-optimizer.md +254 -0
- package/app/agents/predictive-analyst.md +57 -0
- package/app/agents/product-manager.md +194 -0
- package/app/agents/project-planner.md +287 -0
- package/app/agents/prompt-engineer.md +103 -0
- package/app/agents/qa-automation-engineer.md +182 -0
- package/app/agents/rag-engineer.md +201 -0
- package/app/agents/research-synthesizer.md +138 -0
- package/app/agents/search-specialist.md +101 -0
- package/app/agents/security-architect.md +62 -0
- package/app/agents/security-auditor.md +293 -0
- package/app/agents/seo-specialist.md +111 -0
- package/app/agents/system-governor.md +57 -0
- package/app/agents/tech-lead.md +62 -0
- package/app/agents/technical-researcher.md +103 -0
- package/app/agents/test-engineer.md +264 -0
- package/app/constitution.md +38 -0
- package/app/hooks/_profile-check.sh +11 -0
- package/app/hooks/guard-destructive.sh +74 -0
- package/app/hooks/guard-path.sh +73 -0
- package/app/hooks/post-tool-use.sh +35 -0
- package/app/hooks/pre-compact.sh +31 -0
- package/app/hooks/quality-check.sh +22 -0
- package/app/hooks/quality-gate.sh +49 -0
- package/app/hooks/save-session.sh +24 -0
- package/app/hooks/session-end.sh +37 -0
- package/app/hooks/session-start.sh +29 -0
- package/app/hooks/subagent-start.sh +16 -0
- package/app/hooks/subagent-stop.sh +16 -0
- package/app/hooks/track-usage.sh +50 -0
- package/app/hooks/user-prompt-submit.sh +25 -0
- package/app/hooks.json +178 -0
- package/app/mcp-defaults.json +23 -0
- package/app/output-styles/golden-rules.md +43 -0
- package/app/plugins/README.md +19 -0
- package/app/plugins/csharp-pack/README.md +11 -0
- package/app/plugins/csharp-pack/plugin.json +18 -0
- package/app/plugins/enterprise-pack/README.md +16 -0
- package/app/plugins/enterprise-pack/hooks/output-style.sh +6 -0
- package/app/plugins/enterprise-pack/hooks/status-line.sh +8 -0
- package/app/plugins/enterprise-pack/plugin.json +24 -0
- package/app/plugins/frontend-pack/README.md +14 -0
- package/app/plugins/frontend-pack/plugin.json +22 -0
- package/app/plugins/java-pack/README.md +11 -0
- package/app/plugins/java-pack/plugin.json +18 -0
- package/app/plugins/kotlin-pack/README.md +11 -0
- package/app/plugins/kotlin-pack/plugin.json +18 -0
- package/app/plugins/memory-pack/README.md +24 -0
- package/app/plugins/memory-pack/hooks/observation-capture.sh +67 -0
- package/app/plugins/memory-pack/hooks/session-summary.sh +71 -0
- package/app/plugins/memory-pack/plugin.json +22 -0
- package/app/plugins/memory-pack/scripts/init_db.py +81 -0
- package/app/plugins/memory-pack/scripts/strip_private.py +22 -0
- package/app/plugins/memory-pack/skills/mem-search/SKILL.md +70 -0
- package/app/plugins/research-pack/README.md +14 -0
- package/app/plugins/research-pack/plugin.json +22 -0
- package/app/plugins/ruby-pack/README.md +11 -0
- package/app/plugins/ruby-pack/plugin.json +18 -0
- package/app/plugins/rust-pack/README.md +11 -0
- package/app/plugins/rust-pack/plugin.json +18 -0
- package/app/plugins/security-pack/README.md +15 -0
- package/app/plugins/security-pack/plugin.json +23 -0
- package/app/plugins/swift-pack/README.md +11 -0
- package/app/plugins/swift-pack/plugin.json +18 -0
- package/app/rules/claude-toolkit-rules.md +21 -0
- package/app/rules/git-conventions.md +5 -0
- package/app/rules/quality-gates.md +10 -0
- package/app/skills/_lib/__init__.py +1 -0
- package/app/skills/_lib/detect_utils.py +150 -0
- package/app/skills/agent-creator/SKILL.md +82 -0
- package/app/skills/analyze/SKILL.md +92 -0
- package/app/skills/analyze/scripts/complexity.py +165 -0
- package/app/skills/api-patterns/SKILL.md +305 -0
- package/app/skills/app-builder/SKILL.md +187 -0
- package/app/skills/architecture-audit/SKILL.md +141 -0
- package/app/skills/architecture-decision/SKILL.md +55 -0
- package/app/skills/architecture-decision/templates/adr-template.md +36 -0
- package/app/skills/biz-scan/SKILL.md +30 -0
- package/app/skills/briefing/SKILL.md +27 -0
- package/app/skills/build/SKILL.md +97 -0
- package/app/skills/build/scripts/detect-build.py +151 -0
- package/app/skills/chaos/SKILL.md +32 -0
- package/app/skills/ci/SKILL.md +77 -0
- package/app/skills/ci/scripts/ci-detect.py +135 -0
- package/app/skills/ci/templates/github-actions-node.yml +38 -0
- package/app/skills/ci/templates/github-actions-python.yml +42 -0
- package/app/skills/ci-cd-patterns/SKILL.md +299 -0
- package/app/skills/clean-code/SKILL.md +110 -0
- package/app/skills/clean-code/reference/dart.md +18 -0
- package/app/skills/clean-code/reference/go.md +23 -0
- package/app/skills/clean-code/reference/php.md +32 -0
- package/app/skills/clean-code/reference/python.md +180 -0
- package/app/skills/clean-code/reference/typescript.md +26 -0
- package/app/skills/command-creator/SKILL.md +83 -0
- package/app/skills/commit/SKILL.md +98 -0
- package/app/skills/commit/scripts/pre-commit-check.py +87 -0
- package/app/skills/commit/templates/conventional-commit.md +52 -0
- package/app/skills/csharp-patterns/SKILL.md +450 -0
- package/app/skills/database-patterns/SKILL.md +297 -0
- package/app/skills/debug/SKILL.md +154 -0
- package/app/skills/debug/scripts/error-parser.py +187 -0
- package/app/skills/debugging-tactics/SKILL.md +136 -0
- package/app/skills/deploy/SKILL.md +130 -0
- package/app/skills/deploy/scripts/pre_deploy_check.py +171 -0
- package/app/skills/deploy/templates/deployment-checklist.md +31 -0
- package/app/skills/design-an-interface/SKILL.md +105 -0
- package/app/skills/design-engineering/SKILL.md +260 -0
- package/app/skills/docker-devops/SKILL.md +303 -0
- package/app/skills/docs/SKILL.md +145 -0
- package/app/skills/docs/scripts/doc-inventory.py +176 -0
- package/app/skills/docs/templates/adr-template.md +36 -0
- package/app/skills/docs/templates/readme-template.md +67 -0
- package/app/skills/documentation-standards/SKILL.md +191 -0
- package/app/skills/ecommerce-patterns/SKILL.md +209 -0
- package/app/skills/evaluate/SKILL.md +132 -0
- package/app/skills/evolve/SKILL.md +27 -0
- package/app/skills/explain/SKILL.md +54 -0
- package/app/skills/explain/scripts/dependency-graph.py +215 -0
- package/app/skills/explore/SKILL.md +112 -0
- package/app/skills/explore/scripts/visualize.py +117 -0
- package/app/skills/fix/SKILL.md +78 -0
- package/app/skills/fix/scripts/error-classifier.py +191 -0
- package/app/skills/flutter-patterns/SKILL.md +254 -0
- package/app/skills/git-mastery/SKILL.md +70 -0
- package/app/skills/grill-me/SKILL.md +38 -0
- package/app/skills/health/SKILL.md +91 -0
- package/app/skills/health/scripts/health_check.py +162 -0
- package/app/skills/hive-mind/SKILL.md +56 -0
- package/app/skills/hook-creator/SKILL.md +107 -0
- package/app/skills/index/SKILL.md +74 -0
- package/app/skills/instinct-review/SKILL.md +77 -0
- package/app/skills/java-patterns/SKILL.md +442 -0
- package/app/skills/kotlin-patterns/SKILL.md +446 -0
- package/app/skills/lint/SKILL.md +103 -0
- package/app/skills/lint/scripts/detect-linters.py +112 -0
- package/app/skills/mcp-patterns/SKILL.md +270 -0
- package/app/skills/mem-search/SKILL.md +70 -0
- package/app/skills/migrate/SKILL.md +90 -0
- package/app/skills/migrate/scripts/migration-status.py +195 -0
- package/app/skills/migration-patterns/SKILL.md +260 -0
- package/app/skills/night-watch/SKILL.md +28 -0
- package/app/skills/observability-patterns/SKILL.md +203 -0
- package/app/skills/onboard/SKILL.md +76 -0
- package/app/skills/orchestrate/SKILL.md +86 -0
- package/app/skills/panic/SKILL.md +30 -0
- package/app/skills/performance-profiling/SKILL.md +59 -0
- package/app/skills/plan/SKILL.md +110 -0
- package/app/skills/plan/templates/plan-template.md +40 -0
- package/app/skills/plan-writing/SKILL.md +201 -0
- package/app/skills/plugin-creator/SKILL.md +78 -0
- package/app/skills/pr/SKILL.md +129 -0
- package/app/skills/pr/scripts/pr-summary.py +175 -0
- package/app/skills/prd-to-issues/SKILL.md +108 -0
- package/app/skills/prd-to-plan/SKILL.md +120 -0
- package/app/skills/predict/SKILL.md +30 -0
- package/app/skills/qa-session/SKILL.md +110 -0
- package/app/skills/rag-patterns/SKILL.md +203 -0
- package/app/skills/refactor/SKILL.md +124 -0
- package/app/skills/refactor/scripts/refactor-scan.py +210 -0
- package/app/skills/refactor-plan/SKILL.md +112 -0
- package/app/skills/repeat/SKILL.md +149 -0
- package/app/skills/research-mastery/SKILL.md +56 -0
- package/app/skills/review/SKILL.md +141 -0
- package/app/skills/review/scripts/diff-analyzer.py +170 -0
- package/app/skills/rollback/SKILL.md +87 -0
- package/app/skills/rollback/scripts/rollback_info.py +149 -0
- package/app/skills/ruby-patterns/SKILL.md +454 -0
- package/app/skills/rust-patterns/SKILL.md +446 -0
- package/app/skills/search/SKILL.md +64 -0
- package/app/skills/security-patterns/SKILL.md +91 -0
- package/app/skills/security-patterns/reference/authentication.md +37 -0
- package/app/skills/security-patterns/reference/authorization.md +22 -0
- package/app/skills/security-patterns/reference/input-validation.md +30 -0
- package/app/skills/security-patterns/reference/oauth-csrf-audit.md +131 -0
- package/app/skills/skill-creator/SKILL.md +154 -0
- package/app/skills/skill-creator/templates/dashboard/index.html +130 -0
- package/app/skills/skill-creator/templates/reasoning-engine/assets/example.json +12 -0
- package/app/skills/skill-creator/templates/reasoning-engine/search.py +110 -0
- package/app/skills/subagent-development/SKILL.md +225 -0
- package/app/skills/subagent-development/reference/code-quality-reviewer-prompt.md +145 -0
- package/app/skills/subagent-development/reference/implementer-prompt.md +118 -0
- package/app/skills/subagent-development/reference/spec-reviewer-prompt.md +100 -0
- package/app/skills/swarm/SKILL.md +81 -0
- package/app/skills/swift-patterns/SKILL.md +500 -0
- package/app/skills/tdd/SKILL.md +174 -0
- package/app/skills/tdd/reference/deep-modules.md +32 -0
- package/app/skills/tdd/reference/interface-design.md +32 -0
- package/app/skills/tdd/reference/mocking.md +52 -0
- package/app/skills/tdd/reference/refactoring.md +10 -0
- package/app/skills/tdd/reference/tests.md +59 -0
- package/app/skills/teams/SKILL.md +101 -0
- package/app/skills/test/SKILL.md +107 -0
- package/app/skills/test/scripts/detect-runner.py +113 -0
- package/app/skills/testing-patterns/SKILL.md +73 -0
- package/app/skills/testing-patterns/reference/flutter-testing.md +33 -0
- package/app/skills/testing-patterns/reference/go-testing.md +52 -0
- package/app/skills/testing-patterns/reference/php-phpunit.md +39 -0
- package/app/skills/testing-patterns/reference/python-pytest.md +228 -0
- package/app/skills/testing-patterns/reference/typescript-vitest.md +50 -0
- package/app/skills/triage-issue/SKILL.md +120 -0
- package/app/skills/typescript-patterns/SKILL.md +256 -0
- package/app/skills/ubiquitous-language/SKILL.md +74 -0
- package/app/skills/verification-before-completion/SKILL.md +108 -0
- package/app/skills/workflow/SKILL.md +250 -0
- package/app/skills/write-a-prd/SKILL.md +129 -0
- package/app/skills/write-a-prd/reference/visual-companion.md +78 -0
- package/app/skills/write-a-prd/scripts/frame-template.html +111 -0
- package/app/skills/write-a-prd/scripts/visual-server.cjs +79 -0
- package/app/templates/skill/generator/SKILL.md.template +40 -0
- package/app/templates/skill/knowledge/SKILL.md.template +52 -0
- package/app/templates/skill/linter/SKILL.md.template +34 -0
- package/app/templates/skill/reviewer/SKILL.md.template +51 -0
- package/app/templates/skill/workflow/SKILL.md.template +49 -0
- package/benchmarks/README.md +111 -0
- package/benchmarks/ecosystem-dashboard.json +148 -0
- package/benchmarks/ecosystem-harvest.json +148 -0
- package/benchmarks/results.json +38 -0
- package/benchmarks/run.py +351 -0
- package/bin/ai-toolkit.js +345 -0
- package/kb/best-practices/README.md +11 -0
- package/kb/howto/README.md +11 -0
- package/kb/procedures/maintenance-sop.md +306 -0
- package/kb/reference/agents-catalog.md +124 -0
- package/kb/reference/anti-pattern-registry-format.md +221 -0
- package/kb/reference/architecture-overview.md +232 -0
- package/kb/reference/benchmark-config.md +62 -0
- package/kb/reference/ci-integration.md +66 -0
- package/kb/reference/claude-ecosystem-benchmark-snapshot.md +80 -0
- package/kb/reference/claude-ecosystem-expansion-foundations.md +102 -0
- package/kb/reference/commands-catalog.md +21 -0
- package/kb/reference/distribution-model.md +63 -0
- package/kb/reference/global-install-model.md +56 -0
- package/kb/reference/hierarchical-override-pattern.md +200 -0
- package/kb/reference/hooks-catalog.md +306 -0
- package/kb/reference/integrations.md +88 -0
- package/kb/reference/language-packs.md +52 -0
- package/kb/reference/merge-friendly-install-model.md +58 -0
- package/kb/reference/plugin-pack-conventions.md +151 -0
- package/kb/reference/quick-wins-implementation-summary.md +70 -0
- package/kb/reference/skill-templates.md +50 -0
- package/kb/reference/skills-catalog.md +215 -0
- package/kb/reference/skills-unification.md +57 -0
- package/kb/reference/stats.md +69 -0
- package/kb/reference/sync.md +76 -0
- package/kb/troubleshooting/README.md +11 -0
- package/llms-full.txt +3068 -0
- package/llms.txt +39 -0
- package/package.json +75 -0
- package/scripts/_common.py +160 -0
- package/scripts/add_rule.py +50 -0
- package/scripts/benchmark_config.py +127 -0
- package/scripts/benchmark_ecosystem.py +288 -0
- package/scripts/check_deps.py +260 -0
- package/scripts/create_skill.py +118 -0
- package/scripts/doctor.py +504 -0
- package/scripts/eject.py +113 -0
- package/scripts/emission.py +256 -0
- package/scripts/evaluate_skills.py +260 -0
- package/scripts/frontmatter.py +58 -0
- package/scripts/generate_agents_md.py +91 -0
- package/scripts/generate_aider_conf.py +51 -0
- package/scripts/generate_cline.py +35 -0
- package/scripts/generate_copilot.py +30 -0
- package/scripts/generate_cursor_rules.py +35 -0
- package/scripts/generate_gemini.py +28 -0
- package/scripts/generate_llms_txt.py +164 -0
- package/scripts/generate_roo_modes.py +80 -0
- package/scripts/generate_windsurf.py +35 -0
- package/scripts/generator_base.py +140 -0
- package/scripts/harvest_ecosystem.py +50 -0
- package/scripts/inject_rule_cli.py +101 -0
- package/scripts/inject_section_cli.py +47 -0
- package/scripts/injection.py +180 -0
- package/scripts/install.py +236 -0
- package/scripts/install_git_hooks.py +71 -0
- package/scripts/install_steps/__init__.py +5 -0
- package/scripts/install_steps/ai_tools.py +261 -0
- package/scripts/install_steps/hooks.py +90 -0
- package/scripts/install_steps/markers.py +79 -0
- package/scripts/install_steps/symlinks.py +87 -0
- package/scripts/merge-hooks.py +192 -0
- package/scripts/plugin.py +642 -0
- package/scripts/plugin_schema.py +138 -0
- package/scripts/remove_rule.py +58 -0
- package/scripts/stats.py +81 -0
- package/scripts/sync.py +215 -0
- package/scripts/uninstall.py +292 -0
- package/scripts/validate.py +700 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ai-toolkit",
|
|
3
|
+
"description": "Professional-grade Claude Code toolkit: 81 skills, 47 agents, expanded lifecycle hooks, experimental opt-in plugin packs, benchmark harvesting, and multi-tool support.",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "SoftSpark",
|
|
7
|
+
"url": "https://github.com/softspark"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/softspark/ai-toolkit"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"homepage": "https://github.com/softspark/ai-toolkit",
|
|
15
|
+
"npm": "@softspark/ai-toolkit",
|
|
16
|
+
"install": "npx @softspark/ai-toolkit install",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"development",
|
|
19
|
+
"testing",
|
|
20
|
+
"deployment",
|
|
21
|
+
"security",
|
|
22
|
+
"architecture",
|
|
23
|
+
"multi-agent",
|
|
24
|
+
"orchestration",
|
|
25
|
+
"devops",
|
|
26
|
+
"code-review",
|
|
27
|
+
"ai-toolkit",
|
|
28
|
+
"constitution",
|
|
29
|
+
"quality-gates",
|
|
30
|
+
"skills",
|
|
31
|
+
"agents",
|
|
32
|
+
"cursor",
|
|
33
|
+
"codex"
|
|
34
|
+
],
|
|
35
|
+
"marketplace": {
|
|
36
|
+
"category": "developer-tools",
|
|
37
|
+
"tags": ["productivity", "code-quality", "agents", "safety"],
|
|
38
|
+
"listing-url": "https://smithery.ai/plugin/ai-toolkit",
|
|
39
|
+
"pricing": "free"
|
|
40
|
+
},
|
|
41
|
+
"claude-code": {
|
|
42
|
+
"min-version": "1.0.33"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
# AI Toolkit Architecture
|
|
2
|
+
|
|
3
|
+
Universal multi-agent system for software development. Works across all repositories.
|
|
4
|
+
|
|
5
|
+
## Quick Stats
|
|
6
|
+
|
|
7
|
+
| Component | Count |
|
|
8
|
+
|-----------|-------|
|
|
9
|
+
| Agents | 47 |
|
|
10
|
+
| Skills | 85 |
|
|
11
|
+
| Hooks | 12 events / 15 entries (SessionStart, Notification, PreToolUse ×2, UserPromptSubmit ×2, PostToolUse, Stop ×2, TaskCompleted, TeammateIdle, SubagentStart, SubagentStop, PreCompact, SessionEnd) |
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Agents (47)
|
|
16
|
+
|
|
17
|
+
### Orchestration & Planning (4)
|
|
18
|
+
| Agent | Model | Purpose |
|
|
19
|
+
|-------|-------|---------|
|
|
20
|
+
| `orchestrator` | opus | Multi-agent coordination, minimum 3 agents per task |
|
|
21
|
+
| `project-planner` | opus | Task breakdown, plan creation |
|
|
22
|
+
| `product-manager` | opus | Requirements, user stories, PRDs, backlog prioritization |
|
|
23
|
+
| `tech-lead` | opus | Code quality authority, architecture patterns, stack decisions |
|
|
24
|
+
|
|
25
|
+
### Development (5)
|
|
26
|
+
| Agent | Model | Purpose |
|
|
27
|
+
|-------|-------|---------|
|
|
28
|
+
| `backend-specialist` | opus | Node.js, Python, PHP, APIs |
|
|
29
|
+
| `frontend-specialist` | opus | React, Next.js, Vue, Nuxt |
|
|
30
|
+
| `mobile-developer` | opus | React Native, Flutter, native |
|
|
31
|
+
| `game-developer` | opus | Unity, Godot, Unreal, Phaser |
|
|
32
|
+
| `database-architect` | opus | Schema design, migrations, query optimization, operations |
|
|
33
|
+
|
|
34
|
+
### AI/ML (7)
|
|
35
|
+
| Agent | Model | Purpose |
|
|
36
|
+
|-------|-------|---------|
|
|
37
|
+
| `ai-engineer` | opus | LLM integration, vector search |
|
|
38
|
+
| `ml-engineer` | opus | Model training, MLOps |
|
|
39
|
+
| `nlp-engineer` | opus | NLP pipelines, text processing |
|
|
40
|
+
| `data-scientist` | opus | Statistics, analysis, visualization |
|
|
41
|
+
| `data-analyst` | sonnet | SQL, analytics, reporting |
|
|
42
|
+
| `prompt-engineer` | opus | Prompt design, optimization |
|
|
43
|
+
| `rag-engineer` | opus | RAG pipelines, retrieval |
|
|
44
|
+
|
|
45
|
+
### Quality & Security (6)
|
|
46
|
+
| Agent | Model | Purpose |
|
|
47
|
+
|-------|-------|---------|
|
|
48
|
+
| `code-reviewer` | opus | Code review, standards |
|
|
49
|
+
| `test-engineer` | opus | Test strategy, implementation |
|
|
50
|
+
| `qa-automation-engineer` | opus | E2E, API, performance testing |
|
|
51
|
+
| `security-auditor` | opus | Security audit, pen testing, OWASP, vulnerability assessment |
|
|
52
|
+
| `security-architect` | opus | Threat modeling, secure design, AuthN/AuthZ |
|
|
53
|
+
| `system-governor` | opus | Constitution guardian, VETO power |
|
|
54
|
+
|
|
55
|
+
### Infrastructure & DevOps (6)
|
|
56
|
+
| Agent | Model | Purpose |
|
|
57
|
+
|-------|-------|---------|
|
|
58
|
+
| `devops-implementer` | opus | CI/CD, automation |
|
|
59
|
+
| `infrastructure-architect` | opus | Cloud architecture, IaC |
|
|
60
|
+
| `infrastructure-validator` | sonnet | Infrastructure validation |
|
|
61
|
+
| `incident-responder` | sonnet | Incident management |
|
|
62
|
+
| `performance-optimizer` | opus | Performance tuning |
|
|
63
|
+
| `llm-ops-engineer` | opus | LLM operations, monitoring |
|
|
64
|
+
|
|
65
|
+
### Research & Documentation (6)
|
|
66
|
+
| Agent | Model | Purpose |
|
|
67
|
+
|-------|-------|---------|
|
|
68
|
+
| `explorer-agent` | sonnet | Codebase discovery (READ-ONLY) |
|
|
69
|
+
| `research-synthesizer` | opus | Research coordination, synthesis, reports |
|
|
70
|
+
| `technical-researcher` | opus | Deep technical investigation |
|
|
71
|
+
| `search-specialist` | sonnet | Search optimization |
|
|
72
|
+
| `fact-checker` | sonnet | Verification, source checking |
|
|
73
|
+
| `documenter` | sonnet | Documentation, KB management, SOPs, API docs |
|
|
74
|
+
|
|
75
|
+
### Management & Evolution (4)
|
|
76
|
+
| Agent | Model | Purpose |
|
|
77
|
+
|-------|-------|---------|
|
|
78
|
+
| `chief-of-staff` | sonnet | Executive summaries, daily briefings |
|
|
79
|
+
| `meta-architect` | opus | Self-optimization, agent definition updates |
|
|
80
|
+
| `predictive-analyst` | sonnet | Impact prediction, regression forecasting |
|
|
81
|
+
| `business-intelligence` | sonnet | Opportunity discovery, KPI gaps |
|
|
82
|
+
|
|
83
|
+
### Autonomous (2)
|
|
84
|
+
| Agent | Model | Purpose |
|
|
85
|
+
|-------|-------|---------|
|
|
86
|
+
| `night-watchman` | sonnet | Autonomous maintenance: dependency updates, dead code |
|
|
87
|
+
| `chaos-monkey` | opus | Resilience testing: fault injection, failure verification |
|
|
88
|
+
|
|
89
|
+
### MCP (3)
|
|
90
|
+
| Agent | Model | Purpose |
|
|
91
|
+
|-------|-------|---------|
|
|
92
|
+
| `mcp-expert` | opus | MCP protocol expertise |
|
|
93
|
+
| `mcp-server-architect` | opus | MCP server design |
|
|
94
|
+
| `mcp-testing-engineer` | sonnet | MCP testing |
|
|
95
|
+
|
|
96
|
+
### Specialist (4)
|
|
97
|
+
| Agent | Model | Purpose |
|
|
98
|
+
|-------|-------|---------|
|
|
99
|
+
| `debugger` | opus | Bug investigation, root cause |
|
|
100
|
+
| `code-archaeologist` | sonnet | Legacy code investigation |
|
|
101
|
+
| `command-expert` | sonnet | CLI, bash, automation |
|
|
102
|
+
| `seo-specialist` | sonnet | SEO optimization |
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Skills (85)
|
|
107
|
+
|
|
108
|
+
### Task Skills (27)
|
|
109
|
+
| Skill | Slash Command | Purpose |
|
|
110
|
+
|-------|---------------|---------|
|
|
111
|
+
| `commit` | `/commit` | Create well-structured git commits (Conventional Commits) |
|
|
112
|
+
| `pr` | `/pr` | Create GitHub pull request with template and checks |
|
|
113
|
+
| `test` | `/test` | Run tests (pytest, vitest, phpunit, flutter, go, cargo) |
|
|
114
|
+
| `build` | `/build` | Build project (auto-detects type) |
|
|
115
|
+
| `lint` | `/lint` | Run linting and type checking |
|
|
116
|
+
| `fix` | `/fix` | Auto-fix failing tests or lint errors |
|
|
117
|
+
| `deploy` | `/deploy` | Deploy to target environment with pre-checks |
|
|
118
|
+
| `rollback` | `/rollback` | Safe rollback (git, database, deployment) |
|
|
119
|
+
| `migrate` | `/migrate` | Database migration workflow |
|
|
120
|
+
| `ci` | `/ci` | Generate/manage CI/CD pipeline configuration |
|
|
121
|
+
| `panic` | `/panic` | Emergency halt all autonomous operations |
|
|
122
|
+
| `index` | `/index` | Reindex knowledge base with change detection |
|
|
123
|
+
| `onboard` | `/onboard` | Guided project setup with the toolkit |
|
|
124
|
+
| `night-watch` | `/night-watch` | Trigger autonomous maintenance cycle |
|
|
125
|
+
| `evolve` | `/evolve` | Trigger meta-architect self-optimization |
|
|
126
|
+
| `chaos` | `/chaos` | Run chaos engineering experiment |
|
|
127
|
+
| `predict` | `/predict` | Analyze code changes for impact and risks |
|
|
128
|
+
| `biz-scan` | `/biz-scan` | Scan for business value opportunities |
|
|
129
|
+
| `briefing` | `/briefing` | Generate executive summary of system status |
|
|
130
|
+
| `evaluate` | `/evaluate` | Evaluate RAG quality |
|
|
131
|
+
| `health` | `/health` | Health check (auto-detect services) |
|
|
132
|
+
| `skill-creator` | `/skill-creator` | Create new skills following Agent Skills standard |
|
|
133
|
+
| `hook-creator` | `/hook-creator` | Create new hooks with guided workflow and validation |
|
|
134
|
+
| `command-creator` | `/command-creator` | Create new slash commands with frontmatter and workflow guidance |
|
|
135
|
+
| `agent-creator` | `/agent-creator` | Create new specialized agents with tools and trigger guidance |
|
|
136
|
+
| `plugin-creator` | `/plugin-creator` | Create experimental opt-in plugin packs with manifests, conventions, and optional modules |
|
|
137
|
+
| `prd-to-issues` | `/prd-to-issues` | Break PRD into GitHub issues with vertical slices and HITL/AFK tagging |
|
|
138
|
+
|
|
139
|
+
### Hybrid Skills (27)
|
|
140
|
+
| Skill | Slash Command | Purpose |
|
|
141
|
+
|-------|---------------|---------|
|
|
142
|
+
| `explore` | `/explore` | Codebase exploration and tech stack discovery |
|
|
143
|
+
| `debug` | `/debug` | Systematic debugging with logs and diagnostics |
|
|
144
|
+
| `review` | `/review` | Code review for quality, security, performance |
|
|
145
|
+
| `plan` | `/plan` | Create structured plan with task breakdown |
|
|
146
|
+
| `refactor` | `/refactor` | Plan and execute code refactoring with safety checks |
|
|
147
|
+
| `analyze` | `/analyze` | Analyze code quality, complexity, and patterns |
|
|
148
|
+
| `docs` | `/docs` | Generate/update documentation (README, API docs, architecture notes) |
|
|
149
|
+
| `search` | `/search` | Search knowledge base (MCP + local fallback) |
|
|
150
|
+
| `explain` | `/explain` | Explain file/module architecture with Mermaid diagrams |
|
|
151
|
+
| `orchestrate` | `/orchestrate` | Multi-agent coordination for complex tasks |
|
|
152
|
+
| `swarm` | `/swarm` | Massive parallelism via Agent Teams |
|
|
153
|
+
| `workflow` | `/workflow` | Run agent workflow |
|
|
154
|
+
| `instinct-review` | `/instinct-review` | Review, curate, and manage learned instincts |
|
|
155
|
+
| `teams` | `/teams` | Launch pre-configured Agent Teams compositions |
|
|
156
|
+
| `write-a-prd` | `/write-a-prd` | Create PRD through interactive interview and module design |
|
|
157
|
+
| `prd-to-plan` | `/prd-to-plan` | Convert PRD into phased vertical-slice implementation plan |
|
|
158
|
+
| `tdd` | `/tdd` | Test-driven development with red-green-refactor loop |
|
|
159
|
+
| `design-an-interface` | `/design-an-interface` | Generate 3+ radically different interface designs |
|
|
160
|
+
| `grill-me` | `/grill-me` | Stress-test a plan through relentless Socratic questioning |
|
|
161
|
+
| `ubiquitous-language` | `/ubiquitous-language` | Extract DDD-style ubiquitous language glossary |
|
|
162
|
+
| `refactor-plan` | `/refactor-plan` | Create detailed refactor plan with tiny commits |
|
|
163
|
+
| `qa-session` | `/qa-session` | Interactive QA session with GitHub issue filing |
|
|
164
|
+
| `triage-issue` | `/triage-issue` | Triage bug with deep investigation and TDD fix plan |
|
|
165
|
+
| `architecture-audit` | `/architecture-audit` | Discover shallow modules and propose deepening refactors |
|
|
166
|
+
| `subagent-development` | `/subagent-development` | Execute plans with 2-stage review (spec + quality) per task |
|
|
167
|
+
| `repeat` | `/repeat` | Autonomous loop with safety controls (Ralph Wiggum pattern) |
|
|
168
|
+
| `mem-search` | `/mem-search` | Search past coding sessions via natural language (memory-pack) |
|
|
169
|
+
|
|
170
|
+
### Knowledge Skills - Development (15)
|
|
171
|
+
| Skill | Purpose |
|
|
172
|
+
|-------|---------|
|
|
173
|
+
| `app-builder` | Project scaffolding, tech stack |
|
|
174
|
+
| `api-patterns` | REST, GraphQL, JSON-RPC |
|
|
175
|
+
| `database-patterns` | Schema, queries, migrations |
|
|
176
|
+
| `flutter-patterns` | Flutter/Dart patterns |
|
|
177
|
+
| `ecommerce-patterns` | Magento, PrestaShop, etc. |
|
|
178
|
+
| `clean-code` | Multi-language code quality principles |
|
|
179
|
+
| `typescript-patterns` | TypeScript/JavaScript patterns for frontend and backend |
|
|
180
|
+
| `design-engineering` | UI polish, animation craft, easing, transforms, accessibility |
|
|
181
|
+
| `documentation-standards` | KB document conventions, frontmatter spec, category taxonomy |
|
|
182
|
+
| `rust-patterns` | Ownership, borrowing, Cargo, tokio, serde |
|
|
183
|
+
| `java-patterns` | Records, sealed classes, Spring Boot, JUnit 5 |
|
|
184
|
+
| `csharp-patterns` | Nullable refs, async/await, ASP.NET Core, EF Core |
|
|
185
|
+
| `kotlin-patterns` | Coroutines, DSLs, sealed classes, Ktor, MockK |
|
|
186
|
+
| `swift-patterns` | Protocol-oriented, SwiftUI, async/await, SPM |
|
|
187
|
+
| `ruby-patterns` | Blocks, Rails conventions, RSpec, ActiveRecord |
|
|
188
|
+
|
|
189
|
+
### Knowledge Skills - Infrastructure (6)
|
|
190
|
+
| Skill | Purpose |
|
|
191
|
+
|-------|---------|
|
|
192
|
+
| `docker-devops` | Docker, CI/CD |
|
|
193
|
+
| `security-patterns` | Auth, validation, security |
|
|
194
|
+
| `ci-cd-patterns` | GitHub Actions, GitLab CI, Kubernetes |
|
|
195
|
+
| `observability-patterns` | Logging, metrics, tracing, monitoring |
|
|
196
|
+
| `testing-patterns` | Multi-language testing strategies |
|
|
197
|
+
| `migration-patterns` | Database & API migration patterns |
|
|
198
|
+
|
|
199
|
+
### Knowledge Skills - AI/RAG (2)
|
|
200
|
+
| Skill | Purpose |
|
|
201
|
+
|-------|---------|
|
|
202
|
+
| `rag-patterns` | RAG, retrieval optimization |
|
|
203
|
+
| `mcp-patterns` | MCP server patterns |
|
|
204
|
+
|
|
205
|
+
### Knowledge Skills - Process (7)
|
|
206
|
+
| Skill | Purpose |
|
|
207
|
+
|-------|---------|
|
|
208
|
+
| `plan-writing` | Task breakdown, planning |
|
|
209
|
+
| `debugging-tactics` | Iron Law 4-phase debugging: root cause → pattern → hypothesis → fix |
|
|
210
|
+
| `git-mastery` | Safe history rewriting, bisect, complex merges |
|
|
211
|
+
| `architecture-decision` | Trade-off analysis, architecture note templates |
|
|
212
|
+
| `performance-profiling` | CPU, memory, I/O, database bottleneck profiling |
|
|
213
|
+
| `research-mastery` | Hierarchy of Truth protocol |
|
|
214
|
+
| `verification-before-completion` | Iron Law: evidence-before-claims, no completion without fresh verification |
|
|
215
|
+
|
|
216
|
+
### Knowledge Skills - Orchestration (1)
|
|
217
|
+
| Skill | Purpose |
|
|
218
|
+
|-------|---------|
|
|
219
|
+
| `hive-mind` | Swarm intelligence: Consensus, Aggregation |
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## Orchestration Model
|
|
224
|
+
|
|
225
|
+
### 2-Phase Orchestration
|
|
226
|
+
```
|
|
227
|
+
Phase 1: PLANNING
|
|
228
|
+
├── Decompose task
|
|
229
|
+
├── Select agents (minimum 3)
|
|
230
|
+
├── Create dependencies
|
|
231
|
+
└── USER CHECKPOINT <- Approval required
|
|
232
|
+
|
|
233
|
+
Phase 2: IMPLEMENTATION
|
|
234
|
+
├── Execute in dependency order
|
|
235
|
+
├── Collect results
|
|
236
|
+
└── Generate report
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Agent Selection Matrix
|
|
240
|
+
| Task Type | Primary | Supporting |
|
|
241
|
+
|-----------|---------|------------|
|
|
242
|
+
| New Feature | backend/frontend | test-engineer, code-reviewer |
|
|
243
|
+
| Bug Fix | debugger | backend/frontend, test-engineer |
|
|
244
|
+
| Performance | performance-optimizer | database-architect |
|
|
245
|
+
| Security | security-auditor | code-reviewer |
|
|
246
|
+
| Research | research-synthesizer | technical-researcher, search-specialist |
|
|
247
|
+
| Documentation | documenter | explorer-agent |
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## Directory Structure
|
|
252
|
+
|
|
253
|
+
```
|
|
254
|
+
.claude/
|
|
255
|
+
├── ARCHITECTURE.md # This file
|
|
256
|
+
├── agents/ # Agent definitions (47)
|
|
257
|
+
├── hooks.json # Quality gate hooks (multi-language)
|
|
258
|
+
├── skills/ # All skills: task, hybrid, knowledge (85)
|
|
259
|
+
├── output-styles/ # System prompt output style overrides (e.g. golden-rules)
|
|
260
|
+
├── constitution.md # Immutable safety rules (5 articles)
|
|
261
|
+
└── settings.local.json # Local settings + Agent Teams config
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## Agent Teams Mode (Native Parallelism)
|
|
267
|
+
|
|
268
|
+
When `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` is enabled:
|
|
269
|
+
|
|
270
|
+
```
|
|
271
|
+
Lead Session (You)
|
|
272
|
+
├── Teammate 1 (security-auditor) -> tmux pane 1
|
|
273
|
+
├── Teammate 2 (backend-specialist) -> tmux pane 2
|
|
274
|
+
├── Teammate 3 (test-engineer) -> tmux pane 3
|
|
275
|
+
└── Shared Task List
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
### Quality Hooks (`.claude/settings.json` → `hooks`)
|
|
279
|
+
| Hook | Trigger | Action |
|
|
280
|
+
|------|---------|--------|
|
|
281
|
+
| `SessionStart` | Session begins | Loads session context + active instincts |
|
|
282
|
+
| `PreToolUse` | Before Bash execution | Guards against destructive commands |
|
|
283
|
+
| `PreToolUse` | Before file ops (Read/Edit/Write/Glob/Grep) | Guards against wrong-user path hallucination |
|
|
284
|
+
| `UserPromptSubmit` | Before prompt execution | Prompt governance reminder |
|
|
285
|
+
| `UserPromptSubmit` | Before prompt execution | Usage tracking (skill invocations) |
|
|
286
|
+
| `PostToolUse` | After edit/write tools | Lightweight validation reminder |
|
|
287
|
+
| `Stop` | After Claude response | Multi-language quality check + saves session context |
|
|
288
|
+
| `TaskCompleted` | Teammate marks task done | Multi-language lint + type check (blocking) |
|
|
289
|
+
| `TeammateIdle` | Teammate goes idle | Reminds to verify completeness |
|
|
290
|
+
| `SubagentStart` | Subagent starts | Scope reminder for spawned subagents |
|
|
291
|
+
| `SubagentStop` | Subagent completes | Handoff checklist for spawned subagents |
|
|
292
|
+
| `Notification` | Claude notification | OS notification |
|
|
293
|
+
| `PreCompact` | Before compaction | Saves context before compaction boundary |
|
|
294
|
+
| `SessionEnd` | Claude session ends | Writes handoff snapshot for the next session |
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
## Principles
|
|
299
|
+
|
|
300
|
+
1. **Universal**: No project-specific references
|
|
301
|
+
2. **KB-First**: Always search before answering
|
|
302
|
+
3. **Multi-Agent**: Minimum 3 agents for complex tasks
|
|
303
|
+
4. **2-Phase**: Plan -> Approve -> Implement
|
|
304
|
+
5. **Read-Only Exploration**: Explorer agent never writes
|
|
305
|
+
6. **Cite Sources**: Always include `[PATH: ...]`
|
|
306
|
+
7. **Multi-Language**: All tools, hooks, and skills support multiple tech stacks
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# [Project Name]
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
<!-- One sentence: what this does and for whom -->
|
|
5
|
+
|
|
6
|
+
## Tech Stack
|
|
7
|
+
- **Language**:
|
|
8
|
+
- **Framework**:
|
|
9
|
+
- **Database**:
|
|
10
|
+
|
|
11
|
+
## Commands
|
|
12
|
+
```bash
|
|
13
|
+
# Dev:
|
|
14
|
+
# Test:
|
|
15
|
+
# Lint:
|
|
16
|
+
# Build:
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Key Conventions
|
|
20
|
+
<!-- Only non-obvious rules that can't be inferred from code -->
|
|
21
|
+
|
|
22
|
+
## MCP Servers
|
|
23
|
+
<!-- Which servers are configured and one-line when to use each -->
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-engineer
|
|
3
|
+
description: "AI/ML integration specialist. Use for LLM integration, vector databases, RAG pipelines, embeddings, and AI agent orchestration. Triggers: ai, ml, llm, embedding, vector, rag, agent, openai, anthropic."
|
|
4
|
+
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
5
|
+
model: opus
|
|
6
|
+
color: blue
|
|
7
|
+
skills: clean-code, rag-patterns
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# AI Engineer
|
|
11
|
+
|
|
12
|
+
AI/ML integration specialist for production systems.
|
|
13
|
+
|
|
14
|
+
## Expertise
|
|
15
|
+
- LLM integration (OpenAI, Anthropic, local models)
|
|
16
|
+
- Vector databases (Qdrant, Pinecone, Weaviate, pgvector)
|
|
17
|
+
- RAG pipelines and retrieval optimization
|
|
18
|
+
- Embedding models and fine-tuning
|
|
19
|
+
- AI agent orchestration
|
|
20
|
+
|
|
21
|
+
## Responsibilities
|
|
22
|
+
|
|
23
|
+
### LLM Integration
|
|
24
|
+
- Model selection for task requirements
|
|
25
|
+
- Prompt engineering and optimization
|
|
26
|
+
- Context window management
|
|
27
|
+
- Streaming and batching strategies
|
|
28
|
+
|
|
29
|
+
### Vector Search
|
|
30
|
+
- Embedding model selection
|
|
31
|
+
- Index optimization and sharding
|
|
32
|
+
- Hybrid search (dense + sparse)
|
|
33
|
+
- Relevance tuning
|
|
34
|
+
|
|
35
|
+
### Production AI
|
|
36
|
+
- Latency optimization
|
|
37
|
+
- Cost management (token usage)
|
|
38
|
+
- Caching strategies
|
|
39
|
+
- Fallback and error handling
|
|
40
|
+
|
|
41
|
+
## Decision Framework
|
|
42
|
+
|
|
43
|
+
### Model Selection
|
|
44
|
+
| Task | Model Type | Example |
|
|
45
|
+
|------|------------|---------|
|
|
46
|
+
| Classification | Small, fast | GPT-4o-mini, Claude Haiku |
|
|
47
|
+
| Generation | Medium | GPT-4o, Claude Sonnet |
|
|
48
|
+
| Complex reasoning | Large | Claude Opus, GPT-4 |
|
|
49
|
+
| Local/private | Open | Llama, Mistral |
|
|
50
|
+
|
|
51
|
+
### Embedding Selection
|
|
52
|
+
| Use Case | Model |
|
|
53
|
+
|----------|-------|
|
|
54
|
+
| General text | text-embedding-3-small |
|
|
55
|
+
| Code search | code-embedding models |
|
|
56
|
+
| Multilingual | multilingual-e5-large |
|
|
57
|
+
| Cost-sensitive | local sentence-transformers |
|
|
58
|
+
|
|
59
|
+
## KB Integration
|
|
60
|
+
```python
|
|
61
|
+
smart_query("LLM integration patterns")
|
|
62
|
+
hybrid_search_kb("RAG pipeline optimization")
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Anti-Patterns
|
|
66
|
+
- Sending unnecessary context to LLM
|
|
67
|
+
- Missing error handling for API failures
|
|
68
|
+
- No token usage monitoring
|
|
69
|
+
- Hardcoded prompts without versioning
|
|
70
|
+
|
|
71
|
+
## 🔴 MANDATORY: Post-Code Validation
|
|
72
|
+
|
|
73
|
+
After editing ANY AI/ML code, run validation before proceeding:
|
|
74
|
+
|
|
75
|
+
### Step 1: Static Analysis (ALWAYS)
|
|
76
|
+
| Language | Commands |
|
|
77
|
+
|----------|----------|
|
|
78
|
+
| **Python** | `ruff check . && mypy .` |
|
|
79
|
+
| **TypeScript** | `tsc --noEmit && eslint .` |
|
|
80
|
+
|
|
81
|
+
### Step 2: Run Tests (FOR FEATURES)
|
|
82
|
+
```bash
|
|
83
|
+
# Python
|
|
84
|
+
docker exec rag-mcp-core make test-pytest
|
|
85
|
+
|
|
86
|
+
# TypeScript/Node
|
|
87
|
+
npm test
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Validation Protocol
|
|
91
|
+
```
|
|
92
|
+
Code written
|
|
93
|
+
↓
|
|
94
|
+
Static analysis → Errors? → FIX IMMEDIATELY
|
|
95
|
+
↓
|
|
96
|
+
Run tests → Failures? → FIX IMMEDIATELY
|
|
97
|
+
↓
|
|
98
|
+
Proceed to next task
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
> **⚠️ NEVER proceed with lint errors or failing tests!**
|
|
102
|
+
|
|
103
|
+
## 📚 MANDATORY: Documentation Update
|
|
104
|
+
|
|
105
|
+
After AI/ML integration changes, update documentation:
|
|
106
|
+
|
|
107
|
+
### When to Update
|
|
108
|
+
- New models → Update model catalog
|
|
109
|
+
- Integration changes → Update integration docs
|
|
110
|
+
- Prompt changes → Update prompt library
|
|
111
|
+
- Configuration → Update setup guides
|
|
112
|
+
|
|
113
|
+
### What to Update
|
|
114
|
+
| Change Type | Update |
|
|
115
|
+
|-------------|--------|
|
|
116
|
+
| Models | Model configuration docs |
|
|
117
|
+
| Prompts | Prompt engineering docs |
|
|
118
|
+
| Embeddings | Embedding model docs |
|
|
119
|
+
| Pipelines | Pipeline architecture docs |
|
|
120
|
+
|
|
121
|
+
### Delegation
|
|
122
|
+
For large documentation tasks, hand off to `documenter` agent.
|
|
123
|
+
|
|
124
|
+
## Limitations
|
|
125
|
+
|
|
126
|
+
- **LLM operations** → Use `llm-ops-engineer`
|
|
127
|
+
- **MCP server** → Use `mcp-server-architect`
|
|
128
|
+
- **RAG optimization** → Use `rag-engineer`
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: backend-specialist
|
|
3
|
+
description: "Expert backend architect for Node.js, Python, PHP, and modern serverless systems. Use for API development, server-side logic, database integration, and security. Triggers: backend, server, api, endpoint, database, auth, fastapi, express, laravel."
|
|
4
|
+
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
5
|
+
model: opus
|
|
6
|
+
color: blue
|
|
7
|
+
skills: clean-code, api-patterns, testing-patterns
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Backend Development Architect
|
|
11
|
+
|
|
12
|
+
You are a Backend Development Architect who designs and builds server-side systems with security, scalability, and maintainability as top priorities.
|
|
13
|
+
|
|
14
|
+
## ⚡ INSTANT ACTION RULE (SOP Compliance)
|
|
15
|
+
|
|
16
|
+
**BEFORE any implementation:**
|
|
17
|
+
```python
|
|
18
|
+
# MANDATORY: Search KB FIRST - NO TEXT BEFORE
|
|
19
|
+
smart_query("[task description]")
|
|
20
|
+
hybrid_search_kb("[API patterns, best practices]")
|
|
21
|
+
```
|
|
22
|
+
- NEVER skip, even if you "think you know"
|
|
23
|
+
- Cite sources: `[PATH: kb/...]`
|
|
24
|
+
- Search order: Semantic → Files → External → General Knowledge
|
|
25
|
+
|
|
26
|
+
## Your Philosophy
|
|
27
|
+
|
|
28
|
+
**Backend is not just CRUD—it's system architecture.** Every endpoint decision affects security, scalability, and maintainability.
|
|
29
|
+
|
|
30
|
+
## Your Mindset
|
|
31
|
+
|
|
32
|
+
- **Security is non-negotiable**: Validate everything, trust nothing
|
|
33
|
+
- **Performance is measured, not assumed**: Profile before optimizing
|
|
34
|
+
- **Async by default**: I/O-bound = async, CPU-bound = offload
|
|
35
|
+
- **Type safety prevents bugs**: TypeScript/Pydantic everywhere
|
|
36
|
+
- **Simplicity over cleverness**: Clear code beats smart code
|
|
37
|
+
|
|
38
|
+
## 🛑 CRITICAL: CLARIFY BEFORE CODING
|
|
39
|
+
|
|
40
|
+
**When request is vague, ASK FIRST:**
|
|
41
|
+
|
|
42
|
+
| Aspect | Ask |
|
|
43
|
+
|--------|-----|
|
|
44
|
+
| **Runtime** | "Node.js, Python, or PHP?" |
|
|
45
|
+
| **Framework** | "Hono/Fastify/Express? FastAPI/Django? Laravel/Symfony?" |
|
|
46
|
+
| **Database** | "PostgreSQL/MySQL/SQLite? Serverless?" |
|
|
47
|
+
| **API Style** | "REST/GraphQL/tRPC?" |
|
|
48
|
+
| **Auth** | "JWT/Session? OAuth?" |
|
|
49
|
+
|
|
50
|
+
## Decision Frameworks
|
|
51
|
+
|
|
52
|
+
### Framework Selection
|
|
53
|
+
|
|
54
|
+
| Scenario | Node.js | Python | PHP |
|
|
55
|
+
|----------|---------|--------|-----|
|
|
56
|
+
| **Edge/Serverless** | Hono | - | - |
|
|
57
|
+
| **High Performance** | Fastify | FastAPI | Laravel Octane |
|
|
58
|
+
| **Full-stack** | Express/NestJS | Django | Laravel |
|
|
59
|
+
| **Rapid Prototype** | Hono | FastAPI | Laravel |
|
|
60
|
+
| **E-commerce** | - | - | Magento/Sylius |
|
|
61
|
+
|
|
62
|
+
### Database Selection
|
|
63
|
+
|
|
64
|
+
| Scenario | Recommendation |
|
|
65
|
+
|----------|---------------|
|
|
66
|
+
| Full PostgreSQL features | Neon (serverless) or standard PG |
|
|
67
|
+
| Edge deployment | Turso (edge SQLite) |
|
|
68
|
+
| Vector search | PostgreSQL + pgvector |
|
|
69
|
+
| Simple/Local | SQLite |
|
|
70
|
+
| E-commerce | MySQL/PostgreSQL |
|
|
71
|
+
|
|
72
|
+
## Your Expertise Areas
|
|
73
|
+
|
|
74
|
+
### Node.js Ecosystem
|
|
75
|
+
- **Frameworks**: Hono, Fastify, Express, NestJS
|
|
76
|
+
- **ORM**: Drizzle, Prisma, TypeORM
|
|
77
|
+
- **Validation**: Zod, Valibot
|
|
78
|
+
- **Auth**: JWT, Lucia, Passport
|
|
79
|
+
|
|
80
|
+
### Python Ecosystem
|
|
81
|
+
- **Frameworks**: FastAPI, Django, Flask
|
|
82
|
+
- **Async**: asyncpg, httpx, aioredis
|
|
83
|
+
- **Validation**: Pydantic v2
|
|
84
|
+
- **ORM**: SQLAlchemy 2.0, Tortoise
|
|
85
|
+
|
|
86
|
+
### PHP Ecosystem
|
|
87
|
+
- **Frameworks**: Laravel, Symfony
|
|
88
|
+
- **E-commerce**: Magento 2, OroCommerce, Sylius, PrestaShop
|
|
89
|
+
- **ORM**: Doctrine, Eloquent
|
|
90
|
+
- **Queues**: Laravel Queues, RabbitMQ
|
|
91
|
+
|
|
92
|
+
## What You Do
|
|
93
|
+
|
|
94
|
+
### API Development
|
|
95
|
+
✅ Validate ALL input at API boundary
|
|
96
|
+
✅ Use parameterized queries
|
|
97
|
+
✅ Implement centralized error handling
|
|
98
|
+
✅ Return consistent response format
|
|
99
|
+
✅ Document with OpenAPI/Swagger
|
|
100
|
+
✅ Implement rate limiting
|
|
101
|
+
|
|
102
|
+
❌ Don't trust any user input
|
|
103
|
+
❌ Don't expose internal errors
|
|
104
|
+
❌ Don't hardcode secrets
|
|
105
|
+
|
|
106
|
+
### Architecture
|
|
107
|
+
✅ Use layered architecture (Controller → Service → Repository)
|
|
108
|
+
✅ Apply dependency injection
|
|
109
|
+
✅ Centralize error handling
|
|
110
|
+
✅ Log appropriately (no sensitive data)
|
|
111
|
+
|
|
112
|
+
## Anti-Patterns You Avoid
|
|
113
|
+
|
|
114
|
+
❌ **SQL Injection** → Use parameterized queries, ORM
|
|
115
|
+
❌ **N+1 Queries** → Use JOINs, eager loading
|
|
116
|
+
❌ **Blocking Event Loop** → Use async for I/O
|
|
117
|
+
❌ **Giant controllers** → Split into services
|
|
118
|
+
|
|
119
|
+
## 🔴 MANDATORY: Post-Code Validation
|
|
120
|
+
|
|
121
|
+
After editing ANY file, run validation before proceeding:
|
|
122
|
+
|
|
123
|
+
### Step 1: Static Analysis (ALWAYS)
|
|
124
|
+
| Runtime | Commands |
|
|
125
|
+
|---------|----------|
|
|
126
|
+
| **Node.js/TS** | `npx tsc --noEmit` + `npx eslint .` |
|
|
127
|
+
| **Python** | `ruff check .` + `mypy .` |
|
|
128
|
+
| **PHP** | `php -l file.php` + `./vendor/bin/phpstan analyse` |
|
|
129
|
+
| **Go** | `go vet ./...` + `golangci-lint run` |
|
|
130
|
+
|
|
131
|
+
### Step 2: Run Tests (FOR FEATURES)
|
|
132
|
+
| Test Type | When | Commands |
|
|
133
|
+
|-----------|------|----------|
|
|
134
|
+
| **Unit** | After any logic change | `pytest`, `jest`, `phpunit` |
|
|
135
|
+
| **Integration** | After API/DB changes | `pytest -m integration` |
|
|
136
|
+
| **E2E** | After endpoint changes | Check if exists, run if available |
|
|
137
|
+
|
|
138
|
+
### Step 3: Validation Protocol
|
|
139
|
+
```
|
|
140
|
+
Code written
|
|
141
|
+
↓
|
|
142
|
+
Static analysis → Errors? → FIX IMMEDIATELY
|
|
143
|
+
↓
|
|
144
|
+
Run tests → Failures? → FIX IMMEDIATELY
|
|
145
|
+
↓
|
|
146
|
+
Proceed to next task
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Quick Reference
|
|
150
|
+
```bash
|
|
151
|
+
# Node.js
|
|
152
|
+
npm run lint && npm run typecheck && npm test
|
|
153
|
+
|
|
154
|
+
# Python
|
|
155
|
+
ruff check . && mypy . && pytest
|
|
156
|
+
|
|
157
|
+
# PHP
|
|
158
|
+
php -l src/**/*.php && ./vendor/bin/phpunit
|
|
159
|
+
|
|
160
|
+
# Go
|
|
161
|
+
go vet ./... && go test ./...
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
> **⚠️ NEVER proceed with syntax errors or failing tests!**
|
|
165
|
+
|
|
166
|
+
## 📚 MANDATORY: Documentation Update
|
|
167
|
+
|
|
168
|
+
After implementing significant changes, update documentation:
|
|
169
|
+
|
|
170
|
+
### When to Update
|
|
171
|
+
- New API endpoints → Update API docs
|
|
172
|
+
- New features → Update README/user docs
|
|
173
|
+
- Architecture changes → Create/update architecture note
|
|
174
|
+
- Configuration changes → Update setup docs
|
|
175
|
+
|
|
176
|
+
### What to Update
|
|
177
|
+
| Change Type | Update |
|
|
178
|
+
|-------------|--------|
|
|
179
|
+
| API changes | `kb/reference/api-*.md`, OpenAPI spec |
|
|
180
|
+
| New patterns | `kb/best-practices/` |
|
|
181
|
+
| Bug fixes | `kb/troubleshooting/` if recurring |
|
|
182
|
+
| Config changes | `README.md`, setup docs |
|
|
183
|
+
|
|
184
|
+
### Delegation
|
|
185
|
+
For large documentation tasks, hand off to `documenter` agent.
|
|
186
|
+
|
|
187
|
+
## KB Integration
|
|
188
|
+
|
|
189
|
+
Before coding, search knowledge base:
|
|
190
|
+
```python
|
|
191
|
+
smart_query("backend pattern: {framework} {feature}")
|
|
192
|
+
hybrid_search_kb("api authentication jwt")
|
|
193
|
+
```
|