quantix-mcp 0.3.7 → 0.4.3

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.
Files changed (113) hide show
  1. package/.claude/settings.local.json +2 -1
  2. package/.github/agents/copilot-instructions.md +32 -32
  3. package/.github/copilot-instructions.md +17 -17
  4. package/.github/workflows/publish.yaml +28 -28
  5. package/.opencode/command/speckit.analyze.md +184 -184
  6. package/.opencode/command/speckit.checklist.md +294 -294
  7. package/.opencode/command/speckit.clarify.md +181 -181
  8. package/.opencode/command/speckit.constitution.md +84 -84
  9. package/.opencode/command/speckit.implement.md +135 -135
  10. package/.opencode/command/speckit.plan.md +89 -89
  11. package/.opencode/command/speckit.specify.md +258 -258
  12. package/.opencode/command/speckit.tasks.md +137 -137
  13. package/.opencode/command/speckit.taskstoissues.md +30 -30
  14. package/.specify/memory/constitution.md +58 -58
  15. package/.specify/templates/constitution-template.md +50 -50
  16. package/.vscode/launch.json +14 -14
  17. package/CLAUDE.md +70 -64
  18. package/GEMINI.md +58 -0
  19. package/README.md +176 -176
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +14 -3
  22. package/dist/index.js.map +1 -1
  23. package/dist/tools/accounts.d.ts.map +1 -1
  24. package/dist/tools/accounts.js +55 -34
  25. package/dist/tools/accounts.js.map +1 -1
  26. package/dist/tools/categories.d.ts.map +1 -1
  27. package/dist/tools/categories.js +46 -20
  28. package/dist/tools/categories.js.map +1 -1
  29. package/dist/tools/credit-cards.d.ts.map +1 -1
  30. package/dist/tools/credit-cards.js +104 -33
  31. package/dist/tools/credit-cards.js.map +1 -1
  32. package/dist/tools/data.d.ts.map +1 -1
  33. package/dist/tools/data.js +19 -8
  34. package/dist/tools/data.js.map +1 -1
  35. package/dist/tools/settings.d.ts.map +1 -1
  36. package/dist/tools/settings.js +28 -12
  37. package/dist/tools/settings.js.map +1 -1
  38. package/dist/tools/subscriptions.d.ts +3 -0
  39. package/dist/tools/subscriptions.d.ts.map +1 -0
  40. package/dist/tools/subscriptions.js +128 -0
  41. package/dist/tools/subscriptions.js.map +1 -0
  42. package/dist/tools/summary.d.ts.map +1 -1
  43. package/dist/tools/summary.js +17 -11
  44. package/dist/tools/summary.js.map +1 -1
  45. package/dist/tools/transactions.d.ts.map +1 -1
  46. package/dist/tools/transactions.js +85 -50
  47. package/dist/tools/transactions.js.map +1 -1
  48. package/dist/tools/transfers.d.ts +3 -0
  49. package/dist/tools/transfers.d.ts.map +1 -0
  50. package/dist/tools/transfers.js +107 -0
  51. package/dist/tools/transfers.js.map +1 -0
  52. package/dist/types/schemas.d.ts +65 -0
  53. package/dist/types/schemas.d.ts.map +1 -1
  54. package/dist/types/schemas.js +69 -3
  55. package/dist/types/schemas.js.map +1 -1
  56. package/dist/utils/toolHelpers.d.ts +7 -0
  57. package/dist/utils/toolHelpers.d.ts.map +1 -0
  58. package/dist/utils/toolHelpers.js +11 -0
  59. package/dist/utils/toolHelpers.js.map +1 -0
  60. package/openapi.yaml +2279 -1828
  61. package/package.json +41 -41
  62. package/specs/001-mcp-api-integration/checklists/requirements.md +34 -34
  63. package/specs/001-mcp-api-integration/contracts/openapi.yaml +635 -635
  64. package/specs/001-mcp-api-integration/data-model.md +106 -106
  65. package/specs/001-mcp-api-integration/plan.md +73 -73
  66. package/specs/001-mcp-api-integration/quickstart.md +74 -74
  67. package/specs/001-mcp-api-integration/research.md +58 -58
  68. package/specs/001-mcp-api-integration/spec.md +119 -119
  69. package/specs/001-mcp-api-integration/tasks.md +64 -64
  70. package/src/config.ts +36 -36
  71. package/src/index.ts +60 -47
  72. package/src/services/apiClient.ts +49 -49
  73. package/src/tools/accounts.ts +122 -111
  74. package/src/tools/categories.ts +102 -81
  75. package/src/tools/credit-cards.ts +203 -147
  76. package/src/tools/data.ts +45 -36
  77. package/src/tools/settings.ts +64 -51
  78. package/src/tools/subscriptions.ts +159 -0
  79. package/src/tools/summary.ts +29 -24
  80. package/src/tools/transactions.ts +156 -128
  81. package/src/tools/transfers.ts +122 -0
  82. package/src/types/schemas.ts +304 -235
  83. package/src/utils/toolHelpers.ts +11 -0
  84. package/tests/benchmark.test.d.ts +1 -1
  85. package/tests/benchmark.test.js +32 -32
  86. package/tests/benchmark.test.ts +38 -38
  87. package/tests/server.test.d.ts +1 -1
  88. package/tests/server.test.js +12 -12
  89. package/tests/server.test.ts +14 -14
  90. package/tests/setup.d.ts +3 -3
  91. package/tests/setup.js +16 -16
  92. package/tests/setup.ts +20 -20
  93. package/tests/tools/accounts.test.ts +159 -118
  94. package/tests/tools/categories.test.d.ts +1 -1
  95. package/tests/tools/categories.test.js +62 -62
  96. package/tests/tools/categories.test.ts +120 -78
  97. package/tests/tools/credit-cards.test.d.ts +1 -1
  98. package/tests/tools/credit-cards.test.js +70 -70
  99. package/tests/tools/credit-cards.test.ts +131 -89
  100. package/tests/tools/data.test.ts +100 -0
  101. package/tests/tools/settings.test.ts +116 -0
  102. package/tests/tools/subscriptions.test.ts +173 -0
  103. package/tests/tools/summary.test.d.ts +1 -1
  104. package/tests/tools/summary.test.js +35 -35
  105. package/tests/tools/summary.test.ts +63 -42
  106. package/tests/tools/transactions.test.d.ts +1 -1
  107. package/tests/tools/transactions.test.js +66 -66
  108. package/tests/tools/transactions.test.ts +133 -82
  109. package/tests/tools/transfers.test.ts +141 -0
  110. package/tsconfig.json +52 -52
  111. package/vitest.config.d.ts +2 -2
  112. package/vitest.config.js +13 -13
  113. package/vitest.config.ts +14 -14
@@ -1,135 +1,135 @@
1
- ---
2
- description: Execute the implementation plan by processing and executing all tasks defined in tasks.md
3
- ---
4
-
5
- ## User Input
6
-
7
- ```text
8
- $ARGUMENTS
9
- ```
10
-
11
- You **MUST** consider the user input before proceeding (if not empty).
12
-
13
- ## Outline
14
-
15
- 1. Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
16
-
17
- 2. **Check checklists status** (if FEATURE_DIR/checklists/ exists):
18
- - Scan all checklist files in the checklists/ directory
19
- - For each checklist, count:
20
- - Total items: All lines matching `- [ ]` or `- [X]` or `- [x]`
21
- - Completed items: Lines matching `- [X]` or `- [x]`
22
- - Incomplete items: Lines matching `- [ ]`
23
- - Create a status table:
24
-
25
- ```text
26
- | Checklist | Total | Completed | Incomplete | Status |
27
- |-----------|-------|-----------|------------|--------|
28
- | ux.md | 12 | 12 | 0 | ✓ PASS |
29
- | test.md | 8 | 5 | 3 | ✗ FAIL |
30
- | security.md | 6 | 6 | 0 | ✓ PASS |
31
- ```
32
-
33
- - Calculate overall status:
34
- - **PASS**: All checklists have 0 incomplete items
35
- - **FAIL**: One or more checklists have incomplete items
36
-
37
- - **If any checklist is incomplete**:
38
- - Display the table with incomplete item counts
39
- - **STOP** and ask: "Some checklists are incomplete. Do you want to proceed with implementation anyway? (yes/no)"
40
- - Wait for user response before continuing
41
- - If user says "no" or "wait" or "stop", halt execution
42
- - If user says "yes" or "proceed" or "continue", proceed to step 3
43
-
44
- - **If all checklists are complete**:
45
- - Display the table showing all checklists passed
46
- - Automatically proceed to step 3
47
-
48
- 3. Load and analyze the implementation context:
49
- - **REQUIRED**: Read tasks.md for the complete task list and execution plan
50
- - **REQUIRED**: Read plan.md for tech stack, architecture, and file structure
51
- - **IF EXISTS**: Read data-model.md for entities and relationships
52
- - **IF EXISTS**: Read contracts/ for API specifications and test requirements
53
- - **IF EXISTS**: Read research.md for technical decisions and constraints
54
- - **IF EXISTS**: Read quickstart.md for integration scenarios
55
-
56
- 4. **Project Setup Verification**:
57
- - **REQUIRED**: Create/verify ignore files based on actual project setup:
58
-
59
- **Detection & Creation Logic**:
60
- - Check if the following command succeeds to determine if the repository is a git repo (create/verify .gitignore if so):
61
-
62
- ```sh
63
- git rev-parse --git-dir 2>/dev/null
64
- ```
65
-
66
- - Check if Dockerfile* exists or Docker in plan.md → create/verify .dockerignore
67
- - Check if .eslintrc* exists → create/verify .eslintignore
68
- - Check if eslint.config.* exists → ensure the config's `ignores` entries cover required patterns
69
- - Check if .prettierrc* exists → create/verify .prettierignore
70
- - Check if .npmrc or package.json exists → create/verify .npmignore (if publishing)
71
- - Check if terraform files (*.tf) exist → create/verify .terraformignore
72
- - Check if .helmignore needed (helm charts present) → create/verify .helmignore
73
-
74
- **If ignore file already exists**: Verify it contains essential patterns, append missing critical patterns only
75
- **If ignore file missing**: Create with full pattern set for detected technology
76
-
77
- **Common Patterns by Technology** (from plan.md tech stack):
78
- - **Node.js/JavaScript/TypeScript**: `node_modules/`, `dist/`, `build/`, `*.log`, `.env*`
79
- - **Python**: `__pycache__/`, `*.pyc`, `.venv/`, `venv/`, `dist/`, `*.egg-info/`
80
- - **Java**: `target/`, `*.class`, `*.jar`, `.gradle/`, `build/`
81
- - **C#/.NET**: `bin/`, `obj/`, `*.user`, `*.suo`, `packages/`
82
- - **Go**: `*.exe`, `*.test`, `vendor/`, `*.out`
83
- - **Ruby**: `.bundle/`, `log/`, `tmp/`, `*.gem`, `vendor/bundle/`
84
- - **PHP**: `vendor/`, `*.log`, `*.cache`, `*.env`
85
- - **Rust**: `target/`, `debug/`, `release/`, `*.rs.bk`, `*.rlib`, `*.prof*`, `.idea/`, `*.log`, `.env*`
86
- - **Kotlin**: `build/`, `out/`, `.gradle/`, `.idea/`, `*.class`, `*.jar`, `*.iml`, `*.log`, `.env*`
87
- - **C++**: `build/`, `bin/`, `obj/`, `out/`, `*.o`, `*.so`, `*.a`, `*.exe`, `*.dll`, `.idea/`, `*.log`, `.env*`
88
- - **C**: `build/`, `bin/`, `obj/`, `out/`, `*.o`, `*.a`, `*.so`, `*.exe`, `Makefile`, `config.log`, `.idea/`, `*.log`, `.env*`
89
- - **Swift**: `.build/`, `DerivedData/`, `*.swiftpm/`, `Packages/`
90
- - **R**: `.Rproj.user/`, `.Rhistory`, `.RData`, `.Ruserdata`, `*.Rproj`, `packrat/`, `renv/`
91
- - **Universal**: `.DS_Store`, `Thumbs.db`, `*.tmp`, `*.swp`, `.vscode/`, `.idea/`
92
-
93
- **Tool-Specific Patterns**:
94
- - **Docker**: `node_modules/`, `.git/`, `Dockerfile*`, `.dockerignore`, `*.log*`, `.env*`, `coverage/`
95
- - **ESLint**: `node_modules/`, `dist/`, `build/`, `coverage/`, `*.min.js`
96
- - **Prettier**: `node_modules/`, `dist/`, `build/`, `coverage/`, `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`
97
- - **Terraform**: `.terraform/`, `*.tfstate*`, `*.tfvars`, `.terraform.lock.hcl`
98
- - **Kubernetes/k8s**: `*.secret.yaml`, `secrets/`, `.kube/`, `kubeconfig*`, `*.key`, `*.crt`
99
-
100
- 5. Parse tasks.md structure and extract:
101
- - **Task phases**: Setup, Tests, Core, Integration, Polish
102
- - **Task dependencies**: Sequential vs parallel execution rules
103
- - **Task details**: ID, description, file paths, parallel markers [P]
104
- - **Execution flow**: Order and dependency requirements
105
-
106
- 6. Execute implementation following the task plan:
107
- - **Phase-by-phase execution**: Complete each phase before moving to the next
108
- - **Respect dependencies**: Run sequential tasks in order, parallel tasks [P] can run together
109
- - **Follow TDD approach**: Execute test tasks before their corresponding implementation tasks
110
- - **File-based coordination**: Tasks affecting the same files must run sequentially
111
- - **Validation checkpoints**: Verify each phase completion before proceeding
112
-
113
- 7. Implementation execution rules:
114
- - **Setup first**: Initialize project structure, dependencies, configuration
115
- - **Tests before code**: If you need to write tests for contracts, entities, and integration scenarios
116
- - **Core development**: Implement models, services, CLI commands, endpoints
117
- - **Integration work**: Database connections, middleware, logging, external services
118
- - **Polish and validation**: Unit tests, performance optimization, documentation
119
-
120
- 8. Progress tracking and error handling:
121
- - Report progress after each completed task
122
- - Halt execution if any non-parallel task fails
123
- - For parallel tasks [P], continue with successful tasks, report failed ones
124
- - Provide clear error messages with context for debugging
125
- - Suggest next steps if implementation cannot proceed
126
- - **IMPORTANT** For completed tasks, make sure to mark the task off as [X] in the tasks file.
127
-
128
- 9. Completion validation:
129
- - Verify all required tasks are completed
130
- - Check that implemented features match the original specification
131
- - Validate that tests pass and coverage meets requirements
132
- - Confirm the implementation follows the technical plan
133
- - Report final status with summary of completed work
134
-
135
- Note: This command assumes a complete task breakdown exists in tasks.md. If tasks are incomplete or missing, suggest running `/speckit.tasks` first to regenerate the task list.
1
+ ---
2
+ description: Execute the implementation plan by processing and executing all tasks defined in tasks.md
3
+ ---
4
+
5
+ ## User Input
6
+
7
+ ```text
8
+ $ARGUMENTS
9
+ ```
10
+
11
+ You **MUST** consider the user input before proceeding (if not empty).
12
+
13
+ ## Outline
14
+
15
+ 1. Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
16
+
17
+ 2. **Check checklists status** (if FEATURE_DIR/checklists/ exists):
18
+ - Scan all checklist files in the checklists/ directory
19
+ - For each checklist, count:
20
+ - Total items: All lines matching `- [ ]` or `- [X]` or `- [x]`
21
+ - Completed items: Lines matching `- [X]` or `- [x]`
22
+ - Incomplete items: Lines matching `- [ ]`
23
+ - Create a status table:
24
+
25
+ ```text
26
+ | Checklist | Total | Completed | Incomplete | Status |
27
+ |-----------|-------|-----------|------------|--------|
28
+ | ux.md | 12 | 12 | 0 | ✓ PASS |
29
+ | test.md | 8 | 5 | 3 | ✗ FAIL |
30
+ | security.md | 6 | 6 | 0 | ✓ PASS |
31
+ ```
32
+
33
+ - Calculate overall status:
34
+ - **PASS**: All checklists have 0 incomplete items
35
+ - **FAIL**: One or more checklists have incomplete items
36
+
37
+ - **If any checklist is incomplete**:
38
+ - Display the table with incomplete item counts
39
+ - **STOP** and ask: "Some checklists are incomplete. Do you want to proceed with implementation anyway? (yes/no)"
40
+ - Wait for user response before continuing
41
+ - If user says "no" or "wait" or "stop", halt execution
42
+ - If user says "yes" or "proceed" or "continue", proceed to step 3
43
+
44
+ - **If all checklists are complete**:
45
+ - Display the table showing all checklists passed
46
+ - Automatically proceed to step 3
47
+
48
+ 3. Load and analyze the implementation context:
49
+ - **REQUIRED**: Read tasks.md for the complete task list and execution plan
50
+ - **REQUIRED**: Read plan.md for tech stack, architecture, and file structure
51
+ - **IF EXISTS**: Read data-model.md for entities and relationships
52
+ - **IF EXISTS**: Read contracts/ for API specifications and test requirements
53
+ - **IF EXISTS**: Read research.md for technical decisions and constraints
54
+ - **IF EXISTS**: Read quickstart.md for integration scenarios
55
+
56
+ 4. **Project Setup Verification**:
57
+ - **REQUIRED**: Create/verify ignore files based on actual project setup:
58
+
59
+ **Detection & Creation Logic**:
60
+ - Check if the following command succeeds to determine if the repository is a git repo (create/verify .gitignore if so):
61
+
62
+ ```sh
63
+ git rev-parse --git-dir 2>/dev/null
64
+ ```
65
+
66
+ - Check if Dockerfile* exists or Docker in plan.md → create/verify .dockerignore
67
+ - Check if .eslintrc* exists → create/verify .eslintignore
68
+ - Check if eslint.config.* exists → ensure the config's `ignores` entries cover required patterns
69
+ - Check if .prettierrc* exists → create/verify .prettierignore
70
+ - Check if .npmrc or package.json exists → create/verify .npmignore (if publishing)
71
+ - Check if terraform files (*.tf) exist → create/verify .terraformignore
72
+ - Check if .helmignore needed (helm charts present) → create/verify .helmignore
73
+
74
+ **If ignore file already exists**: Verify it contains essential patterns, append missing critical patterns only
75
+ **If ignore file missing**: Create with full pattern set for detected technology
76
+
77
+ **Common Patterns by Technology** (from plan.md tech stack):
78
+ - **Node.js/JavaScript/TypeScript**: `node_modules/`, `dist/`, `build/`, `*.log`, `.env*`
79
+ - **Python**: `__pycache__/`, `*.pyc`, `.venv/`, `venv/`, `dist/`, `*.egg-info/`
80
+ - **Java**: `target/`, `*.class`, `*.jar`, `.gradle/`, `build/`
81
+ - **C#/.NET**: `bin/`, `obj/`, `*.user`, `*.suo`, `packages/`
82
+ - **Go**: `*.exe`, `*.test`, `vendor/`, `*.out`
83
+ - **Ruby**: `.bundle/`, `log/`, `tmp/`, `*.gem`, `vendor/bundle/`
84
+ - **PHP**: `vendor/`, `*.log`, `*.cache`, `*.env`
85
+ - **Rust**: `target/`, `debug/`, `release/`, `*.rs.bk`, `*.rlib`, `*.prof*`, `.idea/`, `*.log`, `.env*`
86
+ - **Kotlin**: `build/`, `out/`, `.gradle/`, `.idea/`, `*.class`, `*.jar`, `*.iml`, `*.log`, `.env*`
87
+ - **C++**: `build/`, `bin/`, `obj/`, `out/`, `*.o`, `*.so`, `*.a`, `*.exe`, `*.dll`, `.idea/`, `*.log`, `.env*`
88
+ - **C**: `build/`, `bin/`, `obj/`, `out/`, `*.o`, `*.a`, `*.so`, `*.exe`, `Makefile`, `config.log`, `.idea/`, `*.log`, `.env*`
89
+ - **Swift**: `.build/`, `DerivedData/`, `*.swiftpm/`, `Packages/`
90
+ - **R**: `.Rproj.user/`, `.Rhistory`, `.RData`, `.Ruserdata`, `*.Rproj`, `packrat/`, `renv/`
91
+ - **Universal**: `.DS_Store`, `Thumbs.db`, `*.tmp`, `*.swp`, `.vscode/`, `.idea/`
92
+
93
+ **Tool-Specific Patterns**:
94
+ - **Docker**: `node_modules/`, `.git/`, `Dockerfile*`, `.dockerignore`, `*.log*`, `.env*`, `coverage/`
95
+ - **ESLint**: `node_modules/`, `dist/`, `build/`, `coverage/`, `*.min.js`
96
+ - **Prettier**: `node_modules/`, `dist/`, `build/`, `coverage/`, `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`
97
+ - **Terraform**: `.terraform/`, `*.tfstate*`, `*.tfvars`, `.terraform.lock.hcl`
98
+ - **Kubernetes/k8s**: `*.secret.yaml`, `secrets/`, `.kube/`, `kubeconfig*`, `*.key`, `*.crt`
99
+
100
+ 5. Parse tasks.md structure and extract:
101
+ - **Task phases**: Setup, Tests, Core, Integration, Polish
102
+ - **Task dependencies**: Sequential vs parallel execution rules
103
+ - **Task details**: ID, description, file paths, parallel markers [P]
104
+ - **Execution flow**: Order and dependency requirements
105
+
106
+ 6. Execute implementation following the task plan:
107
+ - **Phase-by-phase execution**: Complete each phase before moving to the next
108
+ - **Respect dependencies**: Run sequential tasks in order, parallel tasks [P] can run together
109
+ - **Follow TDD approach**: Execute test tasks before their corresponding implementation tasks
110
+ - **File-based coordination**: Tasks affecting the same files must run sequentially
111
+ - **Validation checkpoints**: Verify each phase completion before proceeding
112
+
113
+ 7. Implementation execution rules:
114
+ - **Setup first**: Initialize project structure, dependencies, configuration
115
+ - **Tests before code**: If you need to write tests for contracts, entities, and integration scenarios
116
+ - **Core development**: Implement models, services, CLI commands, endpoints
117
+ - **Integration work**: Database connections, middleware, logging, external services
118
+ - **Polish and validation**: Unit tests, performance optimization, documentation
119
+
120
+ 8. Progress tracking and error handling:
121
+ - Report progress after each completed task
122
+ - Halt execution if any non-parallel task fails
123
+ - For parallel tasks [P], continue with successful tasks, report failed ones
124
+ - Provide clear error messages with context for debugging
125
+ - Suggest next steps if implementation cannot proceed
126
+ - **IMPORTANT** For completed tasks, make sure to mark the task off as [X] in the tasks file.
127
+
128
+ 9. Completion validation:
129
+ - Verify all required tasks are completed
130
+ - Check that implemented features match the original specification
131
+ - Validate that tests pass and coverage meets requirements
132
+ - Confirm the implementation follows the technical plan
133
+ - Report final status with summary of completed work
134
+
135
+ Note: This command assumes a complete task breakdown exists in tasks.md. If tasks are incomplete or missing, suggest running `/speckit.tasks` first to regenerate the task list.
@@ -1,89 +1,89 @@
1
- ---
2
- description: Execute the implementation planning workflow using the plan template to generate design artifacts.
3
- handoffs:
4
- - label: Create Tasks
5
- agent: speckit.tasks
6
- prompt: Break the plan into tasks
7
- send: true
8
- - label: Create Checklist
9
- agent: speckit.checklist
10
- prompt: Create a checklist for the following domain...
11
- ---
12
-
13
- ## User Input
14
-
15
- ```text
16
- $ARGUMENTS
17
- ```
18
-
19
- You **MUST** consider the user input before proceeding (if not empty).
20
-
21
- ## Outline
22
-
23
- 1. **Setup**: Run `.specify/scripts/powershell/setup-plan.ps1 -Json` from repo root and parse JSON for FEATURE_SPEC, IMPL_PLAN, SPECS_DIR, BRANCH. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
24
-
25
- 2. **Load context**: Read FEATURE_SPEC and `.specify/memory/constitution.md`. Load IMPL_PLAN template (already copied).
26
-
27
- 3. **Execute plan workflow**: Follow the structure in IMPL_PLAN template to:
28
- - Fill Technical Context (mark unknowns as "NEEDS CLARIFICATION")
29
- - Fill Constitution Check section from constitution
30
- - Evaluate gates (ERROR if violations unjustified)
31
- - Phase 0: Generate research.md (resolve all NEEDS CLARIFICATION)
32
- - Phase 1: Generate data-model.md, contracts/, quickstart.md
33
- - Phase 1: Update agent context by running the agent script
34
- - Re-evaluate Constitution Check post-design
35
-
36
- 4. **Stop and report**: Command ends after Phase 2 planning. Report branch, IMPL_PLAN path, and generated artifacts.
37
-
38
- ## Phases
39
-
40
- ### Phase 0: Outline & Research
41
-
42
- 1. **Extract unknowns from Technical Context** above:
43
- - For each NEEDS CLARIFICATION → research task
44
- - For each dependency → best practices task
45
- - For each integration → patterns task
46
-
47
- 2. **Generate and dispatch research agents**:
48
-
49
- ```text
50
- For each unknown in Technical Context:
51
- Task: "Research {unknown} for {feature context}"
52
- For each technology choice:
53
- Task: "Find best practices for {tech} in {domain}"
54
- ```
55
-
56
- 3. **Consolidate findings** in `research.md` using format:
57
- - Decision: [what was chosen]
58
- - Rationale: [why chosen]
59
- - Alternatives considered: [what else evaluated]
60
-
61
- **Output**: research.md with all NEEDS CLARIFICATION resolved
62
-
63
- ### Phase 1: Design & Contracts
64
-
65
- **Prerequisites:** `research.md` complete
66
-
67
- 1. **Extract entities from feature spec** → `data-model.md`:
68
- - Entity name, fields, relationships
69
- - Validation rules from requirements
70
- - State transitions if applicable
71
-
72
- 2. **Generate API contracts** from functional requirements:
73
- - For each user action → endpoint
74
- - Use standard REST/GraphQL patterns
75
- - Output OpenAPI/GraphQL schema to `/contracts/`
76
-
77
- 3. **Agent context update**:
78
- - Run `.specify/scripts/powershell/update-agent-context.ps1 -AgentType opencode`
79
- - These scripts detect which AI agent is in use
80
- - Update the appropriate agent-specific context file
81
- - Add only new technology from current plan
82
- - Preserve manual additions between markers
83
-
84
- **Output**: data-model.md, /contracts/*, quickstart.md, agent-specific file
85
-
86
- ## Key rules
87
-
88
- - Use absolute paths
89
- - ERROR on gate failures or unresolved clarifications
1
+ ---
2
+ description: Execute the implementation planning workflow using the plan template to generate design artifacts.
3
+ handoffs:
4
+ - label: Create Tasks
5
+ agent: speckit.tasks
6
+ prompt: Break the plan into tasks
7
+ send: true
8
+ - label: Create Checklist
9
+ agent: speckit.checklist
10
+ prompt: Create a checklist for the following domain...
11
+ ---
12
+
13
+ ## User Input
14
+
15
+ ```text
16
+ $ARGUMENTS
17
+ ```
18
+
19
+ You **MUST** consider the user input before proceeding (if not empty).
20
+
21
+ ## Outline
22
+
23
+ 1. **Setup**: Run `.specify/scripts/powershell/setup-plan.ps1 -Json` from repo root and parse JSON for FEATURE_SPEC, IMPL_PLAN, SPECS_DIR, BRANCH. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
24
+
25
+ 2. **Load context**: Read FEATURE_SPEC and `.specify/memory/constitution.md`. Load IMPL_PLAN template (already copied).
26
+
27
+ 3. **Execute plan workflow**: Follow the structure in IMPL_PLAN template to:
28
+ - Fill Technical Context (mark unknowns as "NEEDS CLARIFICATION")
29
+ - Fill Constitution Check section from constitution
30
+ - Evaluate gates (ERROR if violations unjustified)
31
+ - Phase 0: Generate research.md (resolve all NEEDS CLARIFICATION)
32
+ - Phase 1: Generate data-model.md, contracts/, quickstart.md
33
+ - Phase 1: Update agent context by running the agent script
34
+ - Re-evaluate Constitution Check post-design
35
+
36
+ 4. **Stop and report**: Command ends after Phase 2 planning. Report branch, IMPL_PLAN path, and generated artifacts.
37
+
38
+ ## Phases
39
+
40
+ ### Phase 0: Outline & Research
41
+
42
+ 1. **Extract unknowns from Technical Context** above:
43
+ - For each NEEDS CLARIFICATION → research task
44
+ - For each dependency → best practices task
45
+ - For each integration → patterns task
46
+
47
+ 2. **Generate and dispatch research agents**:
48
+
49
+ ```text
50
+ For each unknown in Technical Context:
51
+ Task: "Research {unknown} for {feature context}"
52
+ For each technology choice:
53
+ Task: "Find best practices for {tech} in {domain}"
54
+ ```
55
+
56
+ 3. **Consolidate findings** in `research.md` using format:
57
+ - Decision: [what was chosen]
58
+ - Rationale: [why chosen]
59
+ - Alternatives considered: [what else evaluated]
60
+
61
+ **Output**: research.md with all NEEDS CLARIFICATION resolved
62
+
63
+ ### Phase 1: Design & Contracts
64
+
65
+ **Prerequisites:** `research.md` complete
66
+
67
+ 1. **Extract entities from feature spec** → `data-model.md`:
68
+ - Entity name, fields, relationships
69
+ - Validation rules from requirements
70
+ - State transitions if applicable
71
+
72
+ 2. **Generate API contracts** from functional requirements:
73
+ - For each user action → endpoint
74
+ - Use standard REST/GraphQL patterns
75
+ - Output OpenAPI/GraphQL schema to `/contracts/`
76
+
77
+ 3. **Agent context update**:
78
+ - Run `.specify/scripts/powershell/update-agent-context.ps1 -AgentType opencode`
79
+ - These scripts detect which AI agent is in use
80
+ - Update the appropriate agent-specific context file
81
+ - Add only new technology from current plan
82
+ - Preserve manual additions between markers
83
+
84
+ **Output**: data-model.md, /contracts/*, quickstart.md, agent-specific file
85
+
86
+ ## Key rules
87
+
88
+ - Use absolute paths
89
+ - ERROR on gate failures or unresolved clarifications