create-hq 5.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/dist/deps.d.ts +4 -0
- package/dist/deps.d.ts.map +1 -0
- package/dist/deps.js +65 -0
- package/dist/deps.js.map +1 -0
- package/dist/git.d.ts +3 -0
- package/dist/git.d.ts.map +1 -0
- package/dist/git.js +19 -0
- package/dist/git.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/scaffold.d.ts +8 -0
- package/dist/scaffold.d.ts.map +1 -0
- package/dist/scaffold.js +130 -0
- package/dist/scaffold.js.map +1 -0
- package/dist/ui.d.ts +7 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +36 -0
- package/dist/ui.js.map +1 -0
- package/package.json +41 -0
- package/template/.claude/CLAUDE.md +202 -0
- package/template/.claude/commands/checkpoint.md +127 -0
- package/template/.claude/commands/cleanup.md +307 -0
- package/template/.claude/commands/execute-task.md +440 -0
- package/template/.claude/commands/exit-plan.md +41 -0
- package/template/.claude/commands/handoff.md +97 -0
- package/template/.claude/commands/learn.md +218 -0
- package/template/.claude/commands/metrics.md +118 -0
- package/template/.claude/commands/newworker.md +162 -0
- package/template/.claude/commands/nexttask.md +67 -0
- package/template/.claude/commands/prd.md +238 -0
- package/template/.claude/commands/reanchor.md +51 -0
- package/template/.claude/commands/remember.md +126 -0
- package/template/.claude/commands/run-project.md +348 -0
- package/template/.claude/commands/run.md +110 -0
- package/template/.claude/commands/search-reindex.md +62 -0
- package/template/.claude/commands/search.md +100 -0
- package/template/.claude/commands/setup.md +381 -0
- package/template/.claude/scripts/pure-ralph-loop.ps1 +312 -0
- package/template/.claude/scripts/pure-ralph-loop.sh +859 -0
- package/template/CHANGELOG.md +220 -0
- package/template/LICENSE +21 -0
- package/template/MIGRATION.md +259 -0
- package/template/README.md +368 -0
- package/template/data/journal/.gitkeep +0 -0
- package/template/docs/images/ascii-banner-options.md +122 -0
- package/template/docs/images/hq-banner.svg +105 -0
- package/template/knowledge/Ralph/01-overview.md +71 -0
- package/template/knowledge/Ralph/02-core-concepts.md +114 -0
- package/template/knowledge/Ralph/03-how-ralph-works.md +184 -0
- package/template/knowledge/Ralph/04-back-pressure.md +222 -0
- package/template/knowledge/Ralph/05-specifications.md +210 -0
- package/template/knowledge/Ralph/06-agents-md.md +222 -0
- package/template/knowledge/Ralph/07-implementation.md +316 -0
- package/template/knowledge/Ralph/08-economics.md +182 -0
- package/template/knowledge/Ralph/09-resources.md +145 -0
- package/template/knowledge/Ralph/10-claude-code-workflow.md +212 -0
- package/template/knowledge/Ralph/11-team-training-guide.md +383 -0
- package/template/knowledge/Ralph/README.md +40 -0
- package/template/knowledge/ai-security-framework/CONTRIBUTING.md +139 -0
- package/template/knowledge/ai-security-framework/GLOSSARY.md +176 -0
- package/template/knowledge/ai-security-framework/LICENSE +21 -0
- package/template/knowledge/ai-security-framework/QUICK-START.md +172 -0
- package/template/knowledge/ai-security-framework/README.md +232 -0
- package/template/knowledge/ai-security-framework/checklists/browser-security.md +301 -0
- package/template/knowledge/ai-security-framework/checklists/credential-isolation.md +322 -0
- package/template/knowledge/ai-security-framework/checklists/incident-response.md +288 -0
- package/template/knowledge/ai-security-framework/checklists/pre-flight.md +249 -0
- package/template/knowledge/ai-security-framework/checklists/weekly-audit.md +159 -0
- package/template/knowledge/ai-security-framework/configs/audit-logging.md +372 -0
- package/template/knowledge/ai-security-framework/configs/kill-switches.md +354 -0
- package/template/knowledge/ai-security-framework/docs/01-core-principles.md +256 -0
- package/template/knowledge/ai-security-framework/docs/02-threat-landscape.md +326 -0
- package/template/knowledge/ai-security-framework/docs/03-security-posture.md +250 -0
- package/template/knowledge/ai-security-framework/templates/agents-security.md +233 -0
- package/template/knowledge/design-styles/README.md +42 -0
- package/template/knowledge/design-styles/american-industrial.md +136 -0
- package/template/knowledge/design-styles/ethereal-abstract.md +133 -0
- package/template/knowledge/design-styles/liminal-portal.md +111 -0
- package/template/knowledge/design-styles/swipes/american-industrial/G-3m4YPW0AADdu2.jpeg +0 -0
- package/template/knowledge/design-styles/swipes/american-industrial/G-JJlt5WwAABK3K.png +0 -0
- package/template/knowledge/design-styles/swipes/american-industrial/G-JJmj5W0AEbJ-7.png +0 -0
- package/template/knowledge/design-styles/swipes/american-industrial/G59fgNuXkAAKLJQ (1).jpeg +0 -0
- package/template/knowledge/design-styles/swipes/american-industrial/G59fgNuXkAAKLJQ.jpeg +0 -0
- package/template/knowledge/design-styles/swipes/american-industrial/G7fVkn3WEAAM-ST.jpeg +0 -0
- package/template/knowledge/design-styles/swipes/american-industrial/G8ECO5JWEAIksyn.png +0 -0
- package/template/knowledge/design-styles/swipes/american-industrial/G9-3GQSWoAA8eqZ.png +0 -0
- package/template/knowledge/design-styles/swipes/american-industrial/G9xEOqrXkAEZRcs.png +0 -0
- package/template/knowledge/design-styles/swipes/american-industrial/G_MVeJrXQAA8sx4.jpeg +0 -0
- package/template/knowledge/design-styles/swipes/american-industrial/G_RSkmGXkAAgAVZ.png +0 -0
- package/template/knowledge/design-styles/swipes/american-industrial/README.md +31 -0
- package/template/knowledge/design-styles/swipes/american-industrial/qyqtg7Dq.png +0 -0
- package/template/knowledge/dev-team/README.md +35 -0
- package/template/knowledge/dev-team/patterns/README.md +34 -0
- package/template/knowledge/dev-team/patterns/frontend/react-best-practices.md +178 -0
- package/template/knowledge/dev-team/troubleshooting/README.md +31 -0
- package/template/knowledge/dev-team/workflows/README.md +49 -0
- package/template/knowledge/hq/checkpoint-schema.json +51 -0
- package/template/knowledge/hq/index-md-spec.md +74 -0
- package/template/knowledge/hq/thread-schema.md +153 -0
- package/template/knowledge/hq-core/checkpoint-schema.json +51 -0
- package/template/knowledge/hq-core/index-md-spec.md +74 -0
- package/template/knowledge/hq-core/thread-schema.md +153 -0
- package/template/knowledge/loom/README.md +51 -0
- package/template/knowledge/loom/architecture.md +125 -0
- package/template/knowledge/loom/code-style.md +169 -0
- package/template/knowledge/loom/llm-proxy.md +132 -0
- package/template/knowledge/loom/state-machine.md +131 -0
- package/template/knowledge/loom/thread-system.md +117 -0
- package/template/knowledge/loom/tools.md +94 -0
- package/template/knowledge/loom/weaver.md +96 -0
- package/template/knowledge/loom/web-frontend.md +131 -0
- package/template/knowledge/projects/README.md +72 -0
- package/template/knowledge/projects/templates/README.template.md +28 -0
- package/template/knowledge/workers/README.md +195 -0
- package/template/knowledge/workers/ralph-loop-pattern.md +157 -0
- package/template/knowledge/workers/skill-schema.md +182 -0
- package/template/knowledge/workers/state-machine.md +102 -0
- package/template/knowledge/workers/templates/base-worker.yaml +73 -0
- package/template/knowledge/workers/templates/code-worker.yaml +85 -0
- package/template/knowledge/workers/templates/skill.yaml +49 -0
- package/template/knowledge/workers/templates/social-worker.yaml +70 -0
- package/template/modules/examples/full-manifest.yaml +92 -0
- package/template/modules/examples/minimal.yaml +14 -0
- package/template/modules/modules.yaml +59 -0
- package/template/projects/.gitkeep +0 -0
- package/template/projects/incorporate-workers-into-pure-ralph/prd.json +88 -0
- package/template/projects/pure-ralph-branch-isolation/README.md +114 -0
- package/template/projects/pure-ralph-branch-isolation/prd.json +123 -0
- package/template/projects/purist-ralph-loop/README.md +148 -0
- package/template/projects/purist-ralph-loop/prd.json +135 -0
- package/template/projects/ralph-test/prd.json +50 -0
- package/template/prompts/pure-ralph-base.md +551 -0
- package/template/settings/.gitkeep +0 -0
- package/template/settings/pure-ralph.json +42 -0
- package/template/social-content/drafts/INDEX.md +21 -0
- package/template/social-content/drafts/linkedin/.gitkeep +1 -0
- package/template/social-content/drafts/x/.gitkeep +1 -0
- package/template/social-content/images/.gitkeep +1 -0
- package/template/starter-projects/code-worker/README.md +97 -0
- package/template/starter-projects/code-worker/prd.json +45 -0
- package/template/starter-projects/personal-assistant/README.md +42 -0
- package/template/starter-projects/personal-assistant/prd.json +43 -0
- package/template/starter-projects/social-media/README.md +60 -0
- package/template/starter-projects/social-media/prd.json +43 -0
- package/template/workers/content-brand/README.md +59 -0
- package/template/workers/content-brand/skills/messaging-alignment.md +91 -0
- package/template/workers/content-brand/skills/tone-check.md +76 -0
- package/template/workers/content-brand/skills/voice-analysis.md +68 -0
- package/template/workers/content-brand/worker.yaml +81 -0
- package/template/workers/content-legal/README.md +80 -0
- package/template/workers/content-legal/skills/claim-substantiation.md +150 -0
- package/template/workers/content-legal/skills/compliance-scan.md +123 -0
- package/template/workers/content-legal/skills/disclaimer-check.md +146 -0
- package/template/workers/content-legal/worker.yaml +118 -0
- package/template/workers/content-product/README.md +77 -0
- package/template/workers/content-product/skills/claim-verification.md +96 -0
- package/template/workers/content-product/skills/feature-accuracy.md +117 -0
- package/template/workers/content-product/skills/stats-check.md +128 -0
- package/template/workers/content-product/worker.yaml +97 -0
- package/template/workers/content-sales/README.md +70 -0
- package/template/workers/content-sales/skills/conversion-analysis.md +96 -0
- package/template/workers/content-sales/skills/cta-audit.md +107 -0
- package/template/workers/content-sales/skills/value-prop-check.md +114 -0
- package/template/workers/content-sales/worker.yaml +93 -0
- package/template/workers/content-shared/cli.ts +242 -0
- package/template/workers/content-shared/index.ts +234 -0
- package/template/workers/content-shared/lib/accuracy-analyzer.ts +661 -0
- package/template/workers/content-shared/lib/analyze.ts +370 -0
- package/template/workers/content-shared/lib/brand-analyzer.ts +526 -0
- package/template/workers/content-shared/lib/cms-integration.ts +446 -0
- package/template/workers/content-shared/lib/compliance-analyzer.ts +655 -0
- package/template/workers/content-shared/lib/conversion-analyzer.ts +555 -0
- package/template/workers/content-shared/lib/github-integration.ts +582 -0
- package/template/workers/content-shared/lib/output.ts +373 -0
- package/template/workers/content-shared/lib/parser.ts +771 -0
- package/template/workers/content-shared/lib/priority.ts +439 -0
- package/template/workers/content-shared/lib/recommendations.ts +512 -0
- package/template/workers/content-shared/lib/reporter.ts +749 -0
- package/template/workers/content-shared/lib/restructure.ts +664 -0
- package/template/workers/content-shared/lib/scorer.ts +140 -0
- package/template/workers/content-shared/lib/types.ts +227 -0
- package/template/workers/content-shared/lib/variants.ts +595 -0
- package/template/workers/content-shared/package.json +51 -0
- package/template/workers/content-shared/pnpm-lock.yaml +39 -0
- package/template/workers/content-shared/test/sample-page.json +115 -0
- package/template/workers/content-shared/tsconfig.json +20 -0
- package/template/workers/dev-team/README.md +166 -0
- package/template/workers/dev-team/_template.yaml +70 -0
- package/template/workers/dev-team/architect/package.json +27 -0
- package/template/workers/dev-team/architect/skills/api-design.md +89 -0
- package/template/workers/dev-team/architect/skills/refactor-plan.md +96 -0
- package/template/workers/dev-team/architect/skills/system-design.md +100 -0
- package/template/workers/dev-team/architect/src/index.ts +49 -0
- package/template/workers/dev-team/architect/src/mcp-server.ts +122 -0
- package/template/workers/dev-team/architect/src/skills/api-design.ts +316 -0
- package/template/workers/dev-team/architect/src/skills/refactor-plan.ts +264 -0
- package/template/workers/dev-team/architect/src/skills/system-design.ts +212 -0
- package/template/workers/dev-team/architect/tsconfig.json +19 -0
- package/template/workers/dev-team/architect/worker.yaml +128 -0
- package/template/workers/dev-team/backend-dev/package-lock.json +1252 -0
- package/template/workers/dev-team/backend-dev/package.json +27 -0
- package/template/workers/dev-team/backend-dev/skills/implement-endpoint.md +70 -0
- package/template/workers/dev-team/backend-dev/skills/implement-service.md +62 -0
- package/template/workers/dev-team/backend-dev/src/index.ts +51 -0
- package/template/workers/dev-team/backend-dev/src/mcp-server.ts +109 -0
- package/template/workers/dev-team/backend-dev/src/skills/implement-endpoint.ts +122 -0
- package/template/workers/dev-team/backend-dev/src/skills/implement-service.ts +126 -0
- package/template/workers/dev-team/backend-dev/tsconfig.json +19 -0
- package/template/workers/dev-team/backend-dev/worker.yaml +128 -0
- package/template/workers/dev-team/code-reviewer/package-lock.json +1080 -0
- package/template/workers/dev-team/code-reviewer/package.json +24 -0
- package/template/workers/dev-team/code-reviewer/skills/merge-to-production.md +61 -0
- package/template/workers/dev-team/code-reviewer/skills/merge-to-staging.md +54 -0
- package/template/workers/dev-team/code-reviewer/skills/request-changes.md +63 -0
- package/template/workers/dev-team/code-reviewer/skills/review-pr.md +77 -0
- package/template/workers/dev-team/code-reviewer/src/index.ts +56 -0
- package/template/workers/dev-team/code-reviewer/src/mcp-server.ts +101 -0
- package/template/workers/dev-team/code-reviewer/tsconfig.json +19 -0
- package/template/workers/dev-team/code-reviewer/worker.yaml +90 -0
- package/template/workers/dev-team/database-dev/package.json +22 -0
- package/template/workers/dev-team/database-dev/skills/create-schema.md +48 -0
- package/template/workers/dev-team/database-dev/src/index.ts +50 -0
- package/template/workers/dev-team/database-dev/src/mcp-server.ts +76 -0
- package/template/workers/dev-team/database-dev/tsconfig.json +18 -0
- package/template/workers/dev-team/database-dev/worker.yaml +90 -0
- package/template/workers/dev-team/frontend-dev/package.json +22 -0
- package/template/workers/dev-team/frontend-dev/skills/create-component.md +26 -0
- package/template/workers/dev-team/frontend-dev/src/index.ts +50 -0
- package/template/workers/dev-team/frontend-dev/src/mcp-server.ts +77 -0
- package/template/workers/dev-team/frontend-dev/tsconfig.json +18 -0
- package/template/workers/dev-team/frontend-dev/worker.yaml +132 -0
- package/template/workers/dev-team/infra-dev/package.json +24 -0
- package/template/workers/dev-team/infra-dev/skills/add-monitoring.md +73 -0
- package/template/workers/dev-team/infra-dev/skills/configure-deployment.md +80 -0
- package/template/workers/dev-team/infra-dev/skills/create-dockerfile.md +62 -0
- package/template/workers/dev-team/infra-dev/skills/setup-cicd.md +63 -0
- package/template/workers/dev-team/infra-dev/src/index.ts +55 -0
- package/template/workers/dev-team/infra-dev/src/mcp-server.ts +82 -0
- package/template/workers/dev-team/infra-dev/tsconfig.json +19 -0
- package/template/workers/dev-team/infra-dev/worker.yaml +92 -0
- package/template/workers/dev-team/knowledge-curator/package.json +24 -0
- package/template/workers/dev-team/knowledge-curator/skills/curate-troubleshooting.md +63 -0
- package/template/workers/dev-team/knowledge-curator/skills/process-learnings.md +61 -0
- package/template/workers/dev-team/knowledge-curator/skills/sync-documentation.md +76 -0
- package/template/workers/dev-team/knowledge-curator/skills/update-patterns.md +63 -0
- package/template/workers/dev-team/knowledge-curator/src/index.ts +53 -0
- package/template/workers/dev-team/knowledge-curator/src/mcp-server.ts +92 -0
- package/template/workers/dev-team/knowledge-curator/tsconfig.json +19 -0
- package/template/workers/dev-team/knowledge-curator/worker.yaml +80 -0
- package/template/workers/dev-team/motion-designer/package.json +22 -0
- package/template/workers/dev-team/motion-designer/skills/add-animation.md +25 -0
- package/template/workers/dev-team/motion-designer/skills/generate-image.md +36 -0
- package/template/workers/dev-team/motion-designer/src/index.ts +63 -0
- package/template/workers/dev-team/motion-designer/src/mcp-server.ts +79 -0
- package/template/workers/dev-team/motion-designer/tsconfig.json +18 -0
- package/template/workers/dev-team/motion-designer/worker.yaml +84 -0
- package/template/workers/dev-team/product-planner/queue.json +4 -0
- package/template/workers/dev-team/product-planner/worker.yaml +220 -0
- package/template/workers/dev-team/project-manager/package-lock.json +1252 -0
- package/template/workers/dev-team/project-manager/package.json +27 -0
- package/template/workers/dev-team/project-manager/skills/create-prd.md +66 -0
- package/template/workers/dev-team/project-manager/skills/next-issue.md +51 -0
- package/template/workers/dev-team/project-manager/skills/project-status.md +59 -0
- package/template/workers/dev-team/project-manager/skills/update-learnings.md +65 -0
- package/template/workers/dev-team/project-manager/src/index.ts +54 -0
- package/template/workers/dev-team/project-manager/src/mcp-server.ts +207 -0
- package/template/workers/dev-team/project-manager/src/skills/create-prd.ts +86 -0
- package/template/workers/dev-team/project-manager/src/skills/next-issue.ts +137 -0
- package/template/workers/dev-team/project-manager/src/skills/project-status.ts +131 -0
- package/template/workers/dev-team/project-manager/src/skills/update-learnings.ts +94 -0
- package/template/workers/dev-team/project-manager/tsconfig.json +19 -0
- package/template/workers/dev-team/project-manager/worker.yaml +96 -0
- package/template/workers/dev-team/qa-tester/package.json +24 -0
- package/template/workers/dev-team/qa-tester/skills/create-demo-account.md +36 -0
- package/template/workers/dev-team/qa-tester/skills/run-tests.md +36 -0
- package/template/workers/dev-team/qa-tester/skills/write-test.md +27 -0
- package/template/workers/dev-team/qa-tester/src/index.ts +61 -0
- package/template/workers/dev-team/qa-tester/src/mcp-server.ts +88 -0
- package/template/workers/dev-team/qa-tester/tsconfig.json +18 -0
- package/template/workers/dev-team/qa-tester/worker.yaml +116 -0
- package/template/workers/dev-team/task-executor/package-lock.json +1252 -0
- package/template/workers/dev-team/task-executor/package.json +27 -0
- package/template/workers/dev-team/task-executor/skills/analyze-issue.md +101 -0
- package/template/workers/dev-team/task-executor/skills/execute.md +133 -0
- package/template/workers/dev-team/task-executor/skills/report-learnings.md +106 -0
- package/template/workers/dev-team/task-executor/skills/validate-completion.md +121 -0
- package/template/workers/dev-team/task-executor/src/index.ts +54 -0
- package/template/workers/dev-team/task-executor/src/mcp-server.ts +139 -0
- package/template/workers/dev-team/task-executor/src/skills/analyze-issue.ts +219 -0
- package/template/workers/dev-team/task-executor/src/skills/execute.ts +132 -0
- package/template/workers/dev-team/task-executor/src/skills/report-learnings.ts +119 -0
- package/template/workers/dev-team/task-executor/src/skills/validate-completion.ts +142 -0
- package/template/workers/dev-team/task-executor/tsconfig.json +19 -0
- package/template/workers/dev-team/task-executor/worker.yaml +110 -0
- package/template/workers/registry.yaml +171 -0
- package/template/workers/security-scanner/README.md +73 -0
- package/template/workers/security-scanner/skills/pre-deploy-check.md +205 -0
- package/template/workers/security-scanner/worker.yaml +26 -0
- package/template/workspace/checkpoints/.gitkeep +0 -0
- package/template/workspace/content-ideas/inbox.jsonl +0 -0
- package/template/workspace/drafts/.gitkeep +0 -0
- package/template/workspace/learnings/.gitkeep +3 -0
- package/template/workspace/orchestrator/.gitkeep +0 -0
- package/template/workspace/ralph-test/COMPLETE.md +18 -0
- package/template/workspace/ralph-test/hello.txt +2 -0
- package/template/workspace/reports/.gitkeep +0 -0
- package/template/workspace/scratch/.gitkeep +0 -0
- package/template/workspace/threads/.gitkeep +3 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"url": "/enterprise-platform",
|
|
3
|
+
"title": "Enterprise Document Management Platform",
|
|
4
|
+
"meta": {
|
|
5
|
+
"description": "Secure, compliant document management for enterprises. SOC 2 certified with HIPAA-ready infrastructure.",
|
|
6
|
+
"keywords": ["document management", "enterprise", "SOC 2", "compliance"],
|
|
7
|
+
"ogTitle": "Enterprise Document Management | ExampleCo",
|
|
8
|
+
"ogDescription": "Join 10,000+ companies using our leading document platform"
|
|
9
|
+
},
|
|
10
|
+
"sections": [
|
|
11
|
+
{
|
|
12
|
+
"id": "hero",
|
|
13
|
+
"type": "hero",
|
|
14
|
+
"heading": "The Leading Document Management Platform",
|
|
15
|
+
"subheading": "Trusted by enterprise teams worldwide",
|
|
16
|
+
"paragraphs": [
|
|
17
|
+
"Streamline your document workflows with our industry-leading platform. Save up to 40% on document processing time and reduce errors by 85%.",
|
|
18
|
+
"Our platform is SOC 2 Type II certified and HIPAA compliant, ensuring your sensitive data is always protected."
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "features",
|
|
23
|
+
"type": "features",
|
|
24
|
+
"heading": "Enterprise-Grade Features",
|
|
25
|
+
"paragraphs": [
|
|
26
|
+
"Built for teams that need powerful, secure document management.",
|
|
27
|
+
"Integrates with Salesforce, HubSpot, and 100+ other tools."
|
|
28
|
+
],
|
|
29
|
+
"bulletPoints": [
|
|
30
|
+
"Advanced version control",
|
|
31
|
+
"Real-time collaboration",
|
|
32
|
+
"Automated workflows",
|
|
33
|
+
"Custom approval chains",
|
|
34
|
+
"AI-powered search"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "testimonials",
|
|
39
|
+
"type": "testimonials",
|
|
40
|
+
"heading": "Trusted by Industry Leaders",
|
|
41
|
+
"paragraphs": [
|
|
42
|
+
"Over 10,000 companies trust our platform for their document needs.",
|
|
43
|
+
"See how leading enterprises transformed their workflows."
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "stats",
|
|
48
|
+
"type": "content",
|
|
49
|
+
"heading": "Results That Speak for Themselves",
|
|
50
|
+
"paragraphs": [
|
|
51
|
+
"Our customers see an average 40% reduction in document processing time.",
|
|
52
|
+
"99.9% uptime guaranteed with our enterprise SLA.",
|
|
53
|
+
"Join the 500+ Fortune 500 companies using our platform."
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "security",
|
|
58
|
+
"type": "content",
|
|
59
|
+
"heading": "Enterprise Security You Can Trust",
|
|
60
|
+
"paragraphs": [
|
|
61
|
+
"Bank-level encryption protects your data at rest and in transit.",
|
|
62
|
+
"Our platform is the only document solution with both SOC 2 and HIPAA certifications.",
|
|
63
|
+
"Zero downtime deployments ensure your team is never interrupted."
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "cta-section",
|
|
68
|
+
"type": "cta",
|
|
69
|
+
"heading": "Ready to Transform Your Workflows?",
|
|
70
|
+
"paragraphs": [
|
|
71
|
+
"Get started today and see results in just 15 minutes.",
|
|
72
|
+
"No credit card required for your free trial."
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"ctas": [
|
|
77
|
+
{
|
|
78
|
+
"text": "Start Free Trial",
|
|
79
|
+
"href": "/signup",
|
|
80
|
+
"type": "primary",
|
|
81
|
+
"location": "hero"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"text": "Request Demo",
|
|
85
|
+
"href": "/demo",
|
|
86
|
+
"type": "primary",
|
|
87
|
+
"location": "hero"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"text": "Learn More",
|
|
91
|
+
"href": "/features",
|
|
92
|
+
"type": "secondary",
|
|
93
|
+
"location": "features"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"text": "Contact Sales",
|
|
97
|
+
"href": "/contact",
|
|
98
|
+
"type": "primary",
|
|
99
|
+
"location": "cta-section"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"images": [
|
|
103
|
+
{
|
|
104
|
+
"src": "/images/hero-dashboard.png",
|
|
105
|
+
"alt": "Example dashboard showing document workflows",
|
|
106
|
+
"context": "hero"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"src": "/images/security-badges.png",
|
|
110
|
+
"alt": "SOC 2 and HIPAA certification badges",
|
|
111
|
+
"context": "security"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"extractedAt": "2026-01-25T12:00:00Z"
|
|
115
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"moduleResolution": "NodeNext",
|
|
6
|
+
"lib": ["ES2022"],
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"rootDir": ".",
|
|
9
|
+
"strict": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"declaration": true,
|
|
15
|
+
"declarationMap": true,
|
|
16
|
+
"sourceMap": true
|
|
17
|
+
},
|
|
18
|
+
"include": ["lib/**/*", "index.ts", "cli.ts"],
|
|
19
|
+
"exclude": ["node_modules", "dist"]
|
|
20
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# Dev Team Worker System
|
|
2
|
+
|
|
3
|
+
Multi-worker system for software development with intelligent task routing, sub-agent spawning, and learning loops.
|
|
4
|
+
|
|
5
|
+
## Architecture
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
9
|
+
│ PROJECT MANAGER │
|
|
10
|
+
│ • Owns PRD lifecycle │
|
|
11
|
+
│ • Selects next issue from project │
|
|
12
|
+
│ • Spawns Task Executor per issue │
|
|
13
|
+
│ • Aggregates learnings → knowledge base │
|
|
14
|
+
└─────────────────────┬───────────────────────────────────────┘
|
|
15
|
+
│ spawns per issue
|
|
16
|
+
▼
|
|
17
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
18
|
+
│ TASK EXECUTOR │
|
|
19
|
+
│ • Analyzes issue requirements │
|
|
20
|
+
│ • Determines worker sequence │
|
|
21
|
+
│ • Spawns workers as Task subagents │
|
|
22
|
+
│ • Validates completion, retries on failure │
|
|
23
|
+
│ • Reports learnings back to Project Manager │
|
|
24
|
+
└─────────────────────┬───────────────────────────────────────┘
|
|
25
|
+
│ spawns per phase
|
|
26
|
+
▼
|
|
27
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
28
|
+
│ SPECIALIZED WORKERS │
|
|
29
|
+
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
|
|
30
|
+
│ │ Architect│ │ Backend │ │ Frontend │ │ QA │ │
|
|
31
|
+
│ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
|
|
32
|
+
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
|
|
33
|
+
│ │ Database │ │ Infra │ │ Motion │ │Code Review│ │
|
|
34
|
+
│ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
|
|
35
|
+
└─────────────────────────────────────────────────────────────┘
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Workers
|
|
39
|
+
|
|
40
|
+
| Worker | Purpose | Key Skills |
|
|
41
|
+
|--------|---------|------------|
|
|
42
|
+
| **project-manager** | PRD lifecycle, issue selection | next-issue, create-prd, update-learnings |
|
|
43
|
+
| **task-executor** | Route to workers, validate | execute, analyze-issue, validate-completion |
|
|
44
|
+
| **architect** | System design, planning | system-design, api-design, refactor-plan |
|
|
45
|
+
| **backend-dev** | API, business logic | implement-endpoint, implement-service |
|
|
46
|
+
| **database-dev** | Schema, migrations | create-schema, create-migration, optimize-query |
|
|
47
|
+
| **qa-tester** | Testing, automation | run-tests, write-test, create-demo-account |
|
|
48
|
+
| **frontend-dev** | React/Next components | create-component, create-page, add-form |
|
|
49
|
+
| **motion-designer** | Animations, polish | add-animation, generate-image (via gnb) |
|
|
50
|
+
| **infra-dev** | CI/CD, deployment | setup-cicd, create-dockerfile, add-monitoring |
|
|
51
|
+
| **code-reviewer** | PR review, merge | review-pr, merge-to-staging, merge-to-production |
|
|
52
|
+
| **knowledge-curator** | Learnings, docs | process-learnings, update-patterns |
|
|
53
|
+
|
|
54
|
+
## Usage
|
|
55
|
+
|
|
56
|
+
### Start a Project
|
|
57
|
+
```bash
|
|
58
|
+
# Create PRD
|
|
59
|
+
/run project-manager create-prd --name "my-feature"
|
|
60
|
+
|
|
61
|
+
# Get next issue
|
|
62
|
+
/run project-manager next-issue --project "my-feature"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Execute a Task
|
|
66
|
+
```bash
|
|
67
|
+
# Execute specific issue
|
|
68
|
+
/run task-executor execute --issue "US-001" --project "my-feature"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Individual Workers
|
|
72
|
+
```bash
|
|
73
|
+
# Design system
|
|
74
|
+
/run architect system-design --spec "User authentication system"
|
|
75
|
+
|
|
76
|
+
# Create API endpoint
|
|
77
|
+
/run backend-dev implement-endpoint --name "login" --repo ~/repos/my-app
|
|
78
|
+
|
|
79
|
+
# Review PR
|
|
80
|
+
/run code-reviewer review-pr --pr 123 --repo ~/repos/my-app
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Task Format
|
|
84
|
+
|
|
85
|
+
**PRD** (project level):
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"project": "feature-x",
|
|
89
|
+
"epics": [{
|
|
90
|
+
"id": "E1",
|
|
91
|
+
"title": "User Authentication",
|
|
92
|
+
"stories": [{
|
|
93
|
+
"id": "US-001",
|
|
94
|
+
"title": "Login flow",
|
|
95
|
+
"acceptance_criteria": [...],
|
|
96
|
+
"priority": 1,
|
|
97
|
+
"passes": false,
|
|
98
|
+
"worker_hints": ["architect", "backend-dev", "frontend-dev", "qa-tester"]
|
|
99
|
+
}]
|
|
100
|
+
}]
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Beads**: Stories → beads epics, acceptance criteria → child beads (via `bd` CLI)
|
|
105
|
+
|
|
106
|
+
## Human-in-the-Loop
|
|
107
|
+
|
|
108
|
+
Every phase surfaces decisions:
|
|
109
|
+
- Approve worker sequence before execution
|
|
110
|
+
- Inject context at any phase
|
|
111
|
+
- Approve changes before commit
|
|
112
|
+
- Confirm production deployments
|
|
113
|
+
- On ambiguity: escalate, never auto-decide
|
|
114
|
+
|
|
115
|
+
## Learning Loop
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
Task Executor completes issue
|
|
119
|
+
↓
|
|
120
|
+
Extract learnings (what worked, what failed, patterns)
|
|
121
|
+
↓
|
|
122
|
+
knowledge-curator routes to:
|
|
123
|
+
- projects/{name}/learnings/
|
|
124
|
+
- knowledge/public/dev-team/patterns/
|
|
125
|
+
- workers/{worker}/knowledge/
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Directory Structure
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
workers/public/dev-team/
|
|
132
|
+
├── README.md
|
|
133
|
+
├── project-manager/
|
|
134
|
+
├── task-executor/
|
|
135
|
+
├── architect/
|
|
136
|
+
├── backend-dev/
|
|
137
|
+
├── database-dev/
|
|
138
|
+
├── qa-tester/
|
|
139
|
+
├── frontend-dev/
|
|
140
|
+
├── motion-designer/
|
|
141
|
+
├── infra-dev/
|
|
142
|
+
├── code-reviewer/
|
|
143
|
+
└── knowledge-curator/
|
|
144
|
+
|
|
145
|
+
knowledge/public/dev-team/
|
|
146
|
+
├── patterns/
|
|
147
|
+
├── workflows/
|
|
148
|
+
└── troubleshooting/
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Building Workers
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
cd workers/public/dev-team/<worker>
|
|
155
|
+
npm install
|
|
156
|
+
npm run build
|
|
157
|
+
npm run typecheck
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Integrated Tools
|
|
161
|
+
|
|
162
|
+
- **beads** (`bd` CLI) - Task tracking
|
|
163
|
+
- **gnb** (gemini-nano-banana) - Image generation
|
|
164
|
+
- **Playwright** - Browser automation for QA
|
|
165
|
+
- **GitHub CLI** (`gh`) - PR/issue management
|
|
166
|
+
- **skills.sh** - Reusable development skills
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Dev Team Worker Template
|
|
2
|
+
# Copy and customize for each new worker
|
|
3
|
+
|
|
4
|
+
worker:
|
|
5
|
+
id: worker-id
|
|
6
|
+
name: "Worker Name"
|
|
7
|
+
type: CodeWorker # CodeWorker for dev, OpsWorker for orchestration
|
|
8
|
+
version: "1.0"
|
|
9
|
+
|
|
10
|
+
execution:
|
|
11
|
+
mode: on_demand
|
|
12
|
+
max_runtime: 15m
|
|
13
|
+
retry_attempts: 2
|
|
14
|
+
|
|
15
|
+
context:
|
|
16
|
+
base:
|
|
17
|
+
- workers/public/dev-team/{worker-id}/
|
|
18
|
+
- workers/public/dev-team/{worker-id}/skills/
|
|
19
|
+
- knowledge/public/dev-team/patterns/{category}/
|
|
20
|
+
dynamic:
|
|
21
|
+
- pattern: "{target_repo}/"
|
|
22
|
+
when: "task.type == 'implementation'"
|
|
23
|
+
exclude:
|
|
24
|
+
- node_modules/
|
|
25
|
+
- dist/
|
|
26
|
+
- "*.log"
|
|
27
|
+
- ".git/"
|
|
28
|
+
|
|
29
|
+
verification:
|
|
30
|
+
post_execute:
|
|
31
|
+
- check: typescript
|
|
32
|
+
command: npm run typecheck
|
|
33
|
+
- check: lint
|
|
34
|
+
command: npm run lint
|
|
35
|
+
approval_required: true # Human-in-the-loop
|
|
36
|
+
|
|
37
|
+
output:
|
|
38
|
+
destination: workspace/reports/dev-team/
|
|
39
|
+
format: both
|
|
40
|
+
naming: "{date}-{worker-id}-{task}.{ext}"
|
|
41
|
+
|
|
42
|
+
mcp:
|
|
43
|
+
server:
|
|
44
|
+
command: node
|
|
45
|
+
args:
|
|
46
|
+
- dist/mcp-server.js
|
|
47
|
+
cwd: workers/public/dev-team/{worker-id}
|
|
48
|
+
tools: [] # Add worker-specific tools
|
|
49
|
+
|
|
50
|
+
instructions: |
|
|
51
|
+
# {Worker Name}
|
|
52
|
+
|
|
53
|
+
## Purpose
|
|
54
|
+
{Description of what this worker does}
|
|
55
|
+
|
|
56
|
+
## Skills
|
|
57
|
+
| Skill | Description |
|
|
58
|
+
|-------|-------------|
|
|
59
|
+
|
|
60
|
+
## CLI Usage
|
|
61
|
+
```bash
|
|
62
|
+
cd workers/public/dev-team/{worker-id}
|
|
63
|
+
node dist/index.js <skill> [options]
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Human-in-the-loop
|
|
67
|
+
This worker surfaces decisions to human before proceeding.
|
|
68
|
+
- Before: Show planned actions
|
|
69
|
+
- After: Show changes made, request approval
|
|
70
|
+
- On ambiguity: Escalate, never auto-decide
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hq/architect",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "System design, planning, and technical decision-making",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"architect": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"typecheck": "tsc --noEmit",
|
|
12
|
+
"dev": "ts-node src/index.ts",
|
|
13
|
+
"mcp": "node dist/mcp-server.js"
|
|
14
|
+
},
|
|
15
|
+
"keywords": ["hq", "worker", "architect", "design", "planning"],
|
|
16
|
+
"author": "",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
20
|
+
"commander": "^12.1.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^22.10.0",
|
|
24
|
+
"typescript": "^5.7.2",
|
|
25
|
+
"ts-node": "^10.9.2"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# api-design
|
|
2
|
+
|
|
3
|
+
Design API contracts and interfaces.
|
|
4
|
+
|
|
5
|
+
## Arguments
|
|
6
|
+
|
|
7
|
+
`$ARGUMENTS` = `--endpoint <path>` or `--feature <name>` (required)
|
|
8
|
+
|
|
9
|
+
Optional:
|
|
10
|
+
- `--repo <path>` - Target repository
|
|
11
|
+
- `--format <openapi|typescript>` - Output format
|
|
12
|
+
|
|
13
|
+
## Process
|
|
14
|
+
|
|
15
|
+
1. **Analyze Existing APIs**
|
|
16
|
+
- Read current route structure
|
|
17
|
+
- Identify naming conventions
|
|
18
|
+
- Check authentication patterns
|
|
19
|
+
|
|
20
|
+
2. **Define Contract**
|
|
21
|
+
- Request/response schemas
|
|
22
|
+
- Error handling patterns
|
|
23
|
+
- Authentication requirements
|
|
24
|
+
|
|
25
|
+
3. **Generate Interfaces**
|
|
26
|
+
- TypeScript types
|
|
27
|
+
- OpenAPI spec (if requested)
|
|
28
|
+
- Validation schemas
|
|
29
|
+
|
|
30
|
+
4. **Present for Review**
|
|
31
|
+
- Show proposed contract
|
|
32
|
+
- Highlight breaking changes
|
|
33
|
+
- Get approval
|
|
34
|
+
|
|
35
|
+
## Output
|
|
36
|
+
|
|
37
|
+
TypeScript interface:
|
|
38
|
+
```typescript
|
|
39
|
+
// API Contract: POST /api/auth/login
|
|
40
|
+
export interface LoginRequest {
|
|
41
|
+
email: string;
|
|
42
|
+
password: string;
|
|
43
|
+
rememberMe?: boolean;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface LoginResponse {
|
|
47
|
+
user: {
|
|
48
|
+
id: string;
|
|
49
|
+
email: string;
|
|
50
|
+
name: string;
|
|
51
|
+
};
|
|
52
|
+
token: string;
|
|
53
|
+
expiresAt: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface LoginError {
|
|
57
|
+
code: 'INVALID_CREDENTIALS' | 'ACCOUNT_LOCKED' | 'RATE_LIMITED';
|
|
58
|
+
message: string;
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Example
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
node dist/index.js api-design --feature "user authentication" --repo repos/my-app
|
|
66
|
+
|
|
67
|
+
# Output:
|
|
68
|
+
# === API Design: User Authentication ===
|
|
69
|
+
#
|
|
70
|
+
# Proposed endpoints:
|
|
71
|
+
#
|
|
72
|
+
# POST /api/auth/login
|
|
73
|
+
# Request: { email, password, rememberMe? }
|
|
74
|
+
# Response: { user, token, expiresAt }
|
|
75
|
+
# Errors: INVALID_CREDENTIALS, ACCOUNT_LOCKED, RATE_LIMITED
|
|
76
|
+
#
|
|
77
|
+
# POST /api/auth/logout
|
|
78
|
+
# Request: {} (auth header required)
|
|
79
|
+
# Response: { success: true }
|
|
80
|
+
#
|
|
81
|
+
# GET /api/auth/me
|
|
82
|
+
# Request: {} (auth header required)
|
|
83
|
+
# Response: { user }
|
|
84
|
+
#
|
|
85
|
+
# Generated types:
|
|
86
|
+
# src/types/auth.ts
|
|
87
|
+
#
|
|
88
|
+
# [Approve contract? y/n/modify]
|
|
89
|
+
```
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# refactor-plan
|
|
2
|
+
|
|
3
|
+
Plan a refactoring approach for existing code.
|
|
4
|
+
|
|
5
|
+
## Arguments
|
|
6
|
+
|
|
7
|
+
`$ARGUMENTS` = `--target <file|directory|pattern>` (required)
|
|
8
|
+
|
|
9
|
+
Optional:
|
|
10
|
+
- `--repo <path>` - Target repository
|
|
11
|
+
- `--goal <description>` - Refactoring goal
|
|
12
|
+
|
|
13
|
+
## Process
|
|
14
|
+
|
|
15
|
+
1. **Analyze Current State**
|
|
16
|
+
- Read target code
|
|
17
|
+
- Identify code smells
|
|
18
|
+
- Map dependencies
|
|
19
|
+
|
|
20
|
+
2. **Define Goal State**
|
|
21
|
+
- Desired patterns
|
|
22
|
+
- Performance targets
|
|
23
|
+
- Maintainability improvements
|
|
24
|
+
|
|
25
|
+
3. **Plan Incremental Steps**
|
|
26
|
+
- Break into safe, atomic changes
|
|
27
|
+
- Order by dependency
|
|
28
|
+
- Identify test points
|
|
29
|
+
|
|
30
|
+
4. **Risk Assessment**
|
|
31
|
+
- Breaking changes
|
|
32
|
+
- Rollback strategy
|
|
33
|
+
- Test coverage gaps
|
|
34
|
+
|
|
35
|
+
5. **Present Plan**
|
|
36
|
+
- Show step-by-step approach
|
|
37
|
+
- Estimate effort
|
|
38
|
+
- Get approval
|
|
39
|
+
|
|
40
|
+
## Output
|
|
41
|
+
|
|
42
|
+
Refactoring plan:
|
|
43
|
+
```markdown
|
|
44
|
+
# Refactoring Plan: {Target}
|
|
45
|
+
|
|
46
|
+
## Current State
|
|
47
|
+
{Description of current code}
|
|
48
|
+
|
|
49
|
+
## Goal
|
|
50
|
+
{What we want to achieve}
|
|
51
|
+
|
|
52
|
+
## Steps
|
|
53
|
+
1. [ ] Step 1: {Description}
|
|
54
|
+
Files: {files}
|
|
55
|
+
Risk: Low/Medium/High
|
|
56
|
+
|
|
57
|
+
2. [ ] Step 2: {Description}
|
|
58
|
+
...
|
|
59
|
+
|
|
60
|
+
## Test Strategy
|
|
61
|
+
- Run existing tests after each step
|
|
62
|
+
- Add tests for: {gaps}
|
|
63
|
+
|
|
64
|
+
## Rollback
|
|
65
|
+
If issues arise at step N:
|
|
66
|
+
1. Revert commits N through current
|
|
67
|
+
2. {Additional steps}
|
|
68
|
+
|
|
69
|
+
## Estimated Effort
|
|
70
|
+
{N} phases, {complexity}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Example
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
node dist/index.js refactor-plan --target "src/api" --goal "convert to TypeScript strict mode"
|
|
77
|
+
|
|
78
|
+
# Output:
|
|
79
|
+
# === Refactor Plan: src/api → TypeScript Strict ===
|
|
80
|
+
#
|
|
81
|
+
# Current state:
|
|
82
|
+
# - 12 files with 'any' types
|
|
83
|
+
# - 3 files with @ts-ignore
|
|
84
|
+
# - 0 strict mode enabled
|
|
85
|
+
#
|
|
86
|
+
# Steps:
|
|
87
|
+
# 1. Add proper types to utility functions (Low risk)
|
|
88
|
+
# 2. Type API request/response objects (Medium risk)
|
|
89
|
+
# 3. Fix nullable checks (Medium risk)
|
|
90
|
+
# 4. Remove @ts-ignore comments (Low risk)
|
|
91
|
+
# 5. Enable strict mode (Low risk, after above)
|
|
92
|
+
#
|
|
93
|
+
# Estimated: 5 phases, medium complexity
|
|
94
|
+
#
|
|
95
|
+
# [Approve plan? y/n/modify]
|
|
96
|
+
```
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# system-design
|
|
2
|
+
|
|
3
|
+
Design system architecture for a feature or component.
|
|
4
|
+
|
|
5
|
+
## Arguments
|
|
6
|
+
|
|
7
|
+
`$ARGUMENTS` = `--feature <description>` (required)
|
|
8
|
+
|
|
9
|
+
Optional:
|
|
10
|
+
- `--repo <path>` - Target repository
|
|
11
|
+
- `--scope <small|medium|large>` - Scope of design
|
|
12
|
+
|
|
13
|
+
## Process
|
|
14
|
+
|
|
15
|
+
1. **Analyze Existing Architecture**
|
|
16
|
+
- Read project structure
|
|
17
|
+
- Identify patterns in use
|
|
18
|
+
- Map dependencies
|
|
19
|
+
|
|
20
|
+
2. **Understand Requirements**
|
|
21
|
+
- Parse feature description
|
|
22
|
+
- Identify components affected
|
|
23
|
+
- List integration points
|
|
24
|
+
|
|
25
|
+
3. **Design Options**
|
|
26
|
+
- Generate 2-3 approaches
|
|
27
|
+
- Evaluate trade-offs
|
|
28
|
+
- Consider future extensibility
|
|
29
|
+
|
|
30
|
+
4. **Present for Approval**
|
|
31
|
+
- Show options with pros/cons
|
|
32
|
+
- Recommend preferred approach
|
|
33
|
+
- Wait for human decision
|
|
34
|
+
|
|
35
|
+
5. **Document Decision**
|
|
36
|
+
- Create ADR (Architecture Decision Record)
|
|
37
|
+
- Define interfaces
|
|
38
|
+
- Outline implementation steps
|
|
39
|
+
|
|
40
|
+
## Output
|
|
41
|
+
|
|
42
|
+
Architecture decision record:
|
|
43
|
+
```markdown
|
|
44
|
+
# ADR: {Feature Name}
|
|
45
|
+
|
|
46
|
+
## Status
|
|
47
|
+
Proposed
|
|
48
|
+
|
|
49
|
+
## Context
|
|
50
|
+
{Why this decision is needed}
|
|
51
|
+
|
|
52
|
+
## Options Considered
|
|
53
|
+
1. Option A: {Description}
|
|
54
|
+
- Pro: ...
|
|
55
|
+
- Con: ...
|
|
56
|
+
|
|
57
|
+
2. Option B: {Description}
|
|
58
|
+
- Pro: ...
|
|
59
|
+
- Con: ...
|
|
60
|
+
|
|
61
|
+
## Decision
|
|
62
|
+
{Chosen approach and why}
|
|
63
|
+
|
|
64
|
+
## Consequences
|
|
65
|
+
- {Impact 1}
|
|
66
|
+
- {Impact 2}
|
|
67
|
+
|
|
68
|
+
## Implementation Guide
|
|
69
|
+
{Steps for other workers}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Example
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
node dist/index.js system-design --feature "user authentication with OAuth" --repo repos/my-app
|
|
76
|
+
|
|
77
|
+
# Output:
|
|
78
|
+
# === System Design: User Authentication with OAuth ===
|
|
79
|
+
#
|
|
80
|
+
# Existing patterns:
|
|
81
|
+
# - Next.js App Router
|
|
82
|
+
# - Prisma ORM
|
|
83
|
+
# - No current auth system
|
|
84
|
+
#
|
|
85
|
+
# Options:
|
|
86
|
+
#
|
|
87
|
+
# 1. NextAuth.js (Recommended)
|
|
88
|
+
# Pro: Battle-tested, supports many providers
|
|
89
|
+
# Con: Opinionated, some flexibility limits
|
|
90
|
+
#
|
|
91
|
+
# 2. Custom OAuth implementation
|
|
92
|
+
# Pro: Full control
|
|
93
|
+
# Con: More work, security risks
|
|
94
|
+
#
|
|
95
|
+
# 3. Clerk/Auth0 (managed service)
|
|
96
|
+
# Pro: Zero maintenance
|
|
97
|
+
# Con: Vendor lock-in, cost
|
|
98
|
+
#
|
|
99
|
+
# [Select approach: 1/2/3]
|
|
100
|
+
```
|