quantix-mcp 0.5.0 → 0.5.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.
- package/README.md +12 -1
- package/dist/tools/subscriptions.d.ts.map +1 -1
- package/dist/tools/subscriptions.js +46 -1
- package/dist/tools/subscriptions.js.map +1 -1
- package/dist/tools/transactions.d.ts.map +1 -1
- package/dist/tools/transactions.js +5 -5
- package/dist/tools/transactions.js.map +1 -1
- package/dist/types/schemas.d.ts +17 -0
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +21 -4
- package/dist/types/schemas.js.map +1 -1
- package/package.json +9 -4
- package/.claude/commands/opsx/apply.md +0 -152
- package/.claude/commands/opsx/archive.md +0 -157
- package/.claude/commands/opsx/bulk-archive.md +0 -242
- package/.claude/commands/opsx/continue.md +0 -114
- package/.claude/commands/opsx/explore.md +0 -174
- package/.claude/commands/opsx/ff.md +0 -94
- package/.claude/commands/opsx/new.md +0 -69
- package/.claude/commands/opsx/onboard.md +0 -525
- package/.claude/commands/opsx/sync.md +0 -134
- package/.claude/commands/opsx/verify.md +0 -164
- package/.claude/settings.local.json +0 -9
- package/.claude/skills/openspec-apply-change/SKILL.md +0 -156
- package/.claude/skills/openspec-archive-change/SKILL.md +0 -114
- package/.claude/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.claude/skills/openspec-continue-change/SKILL.md +0 -118
- package/.claude/skills/openspec-explore/SKILL.md +0 -290
- package/.claude/skills/openspec-ff-change/SKILL.md +0 -101
- package/.claude/skills/openspec-new-change/SKILL.md +0 -74
- package/.claude/skills/openspec-onboard/SKILL.md +0 -529
- package/.claude/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.claude/skills/openspec-verify-change/SKILL.md +0 -168
- package/.dockerignore +0 -8
- package/.gemini/commands/opsx/apply.toml +0 -149
- package/.gemini/commands/opsx/archive.toml +0 -154
- package/.gemini/commands/opsx/bulk-archive.toml +0 -239
- package/.gemini/commands/opsx/continue.toml +0 -111
- package/.gemini/commands/opsx/explore.toml +0 -171
- package/.gemini/commands/opsx/ff.toml +0 -91
- package/.gemini/commands/opsx/new.toml +0 -66
- package/.gemini/commands/opsx/onboard.toml +0 -522
- package/.gemini/commands/opsx/sync.toml +0 -131
- package/.gemini/commands/opsx/verify.toml +0 -161
- package/.gemini/skills/openspec-apply-change/SKILL.md +0 -156
- package/.gemini/skills/openspec-archive-change/SKILL.md +0 -114
- package/.gemini/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.gemini/skills/openspec-continue-change/SKILL.md +0 -118
- package/.gemini/skills/openspec-explore/SKILL.md +0 -290
- package/.gemini/skills/openspec-ff-change/SKILL.md +0 -101
- package/.gemini/skills/openspec-new-change/SKILL.md +0 -74
- package/.gemini/skills/openspec-onboard/SKILL.md +0 -529
- package/.gemini/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.gemini/skills/openspec-verify-change/SKILL.md +0 -168
- package/.github/agents/copilot-instructions.md +0 -32
- package/.github/agents/speckit.analyze.agent.md +0 -184
- package/.github/agents/speckit.checklist.agent.md +0 -294
- package/.github/agents/speckit.clarify.agent.md +0 -181
- package/.github/agents/speckit.constitution.agent.md +0 -82
- package/.github/agents/speckit.implement.agent.md +0 -135
- package/.github/agents/speckit.plan.agent.md +0 -89
- package/.github/agents/speckit.specify.agent.md +0 -258
- package/.github/agents/speckit.tasks.agent.md +0 -137
- package/.github/agents/speckit.taskstoissues.agent.md +0 -30
- package/.github/copilot-instructions.md +0 -17
- package/.github/prompts/speckit.analyze.prompt.md +0 -3
- package/.github/prompts/speckit.checklist.prompt.md +0 -3
- package/.github/prompts/speckit.clarify.prompt.md +0 -3
- package/.github/prompts/speckit.constitution.prompt.md +0 -3
- package/.github/prompts/speckit.implement.prompt.md +0 -3
- package/.github/prompts/speckit.plan.prompt.md +0 -3
- package/.github/prompts/speckit.specify.prompt.md +0 -3
- package/.github/prompts/speckit.tasks.prompt.md +0 -3
- package/.github/prompts/speckit.taskstoissues.prompt.md +0 -3
- package/.github/workflows/publish.yaml +0 -29
- package/.opencode/command/speckit.analyze.md +0 -184
- package/.opencode/command/speckit.checklist.md +0 -294
- package/.opencode/command/speckit.clarify.md +0 -181
- package/.opencode/command/speckit.constitution.md +0 -84
- package/.opencode/command/speckit.implement.md +0 -135
- package/.opencode/command/speckit.plan.md +0 -89
- package/.opencode/command/speckit.specify.md +0 -258
- package/.opencode/command/speckit.tasks.md +0 -137
- package/.opencode/command/speckit.taskstoissues.md +0 -30
- package/.qwen/commands/opsx-apply.toml +0 -149
- package/.qwen/commands/opsx-archive.toml +0 -154
- package/.qwen/commands/opsx-bulk-archive.toml +0 -239
- package/.qwen/commands/opsx-continue.toml +0 -111
- package/.qwen/commands/opsx-explore.toml +0 -171
- package/.qwen/commands/opsx-ff.toml +0 -91
- package/.qwen/commands/opsx-new.toml +0 -66
- package/.qwen/commands/opsx-onboard.toml +0 -522
- package/.qwen/commands/opsx-sync.toml +0 -131
- package/.qwen/commands/opsx-verify.toml +0 -161
- package/.qwen/skills/openspec-apply-change/SKILL.md +0 -156
- package/.qwen/skills/openspec-archive-change/SKILL.md +0 -114
- package/.qwen/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.qwen/skills/openspec-continue-change/SKILL.md +0 -118
- package/.qwen/skills/openspec-explore/SKILL.md +0 -290
- package/.qwen/skills/openspec-ff-change/SKILL.md +0 -101
- package/.qwen/skills/openspec-new-change/SKILL.md +0 -74
- package/.qwen/skills/openspec-onboard/SKILL.md +0 -529
- package/.qwen/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.qwen/skills/openspec-verify-change/SKILL.md +0 -168
- package/.specify/memory/constitution.md +0 -58
- package/.specify/scripts/powershell/check-prerequisites.ps1 +0 -148
- package/.specify/scripts/powershell/common.ps1 +0 -137
- package/.specify/scripts/powershell/create-new-feature.ps1 +0 -283
- package/.specify/scripts/powershell/setup-plan.ps1 +0 -61
- package/.specify/scripts/powershell/update-agent-context.ps1 +0 -448
- package/.specify/templates/agent-file-template.md +0 -28
- package/.specify/templates/checklist-template.md +0 -40
- package/.specify/templates/constitution-template.md +0 -50
- package/.specify/templates/plan-template.md +0 -104
- package/.specify/templates/spec-template.md +0 -115
- package/.specify/templates/tasks-template.md +0 -251
- package/.vscode/launch.json +0 -14
- package/.vscode/settings.json +0 -14
- package/.vscode/tasks.json +0 -15
- package/AGENTS.md +0 -117
- package/CLAUDE.md +0 -70
- package/Dockerfile +0 -30
- package/GEMINI.md +0 -117
- package/QWEN.md +0 -117
- package/docker-compose.yml +0 -17
- package/openapi.yaml +0 -3127
- package/openspec/README.md +0 -33
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/.openspec.yaml +0 -2
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/design.md +0 -60
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/proposal.md +0 -25
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/credit-card-transactions/spec.md +0 -46
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/transactions/spec.md +0 -42
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/tasks.md +0 -22
- package/openspec/config.yaml +0 -20
- package/openspec/specs/accounts/spec.md +0 -86
- package/openspec/specs/categories/spec.md +0 -78
- package/openspec/specs/credit-card-transactions/spec.md +0 -64
- package/openspec/specs/credit-cards/spec.md +0 -109
- package/openspec/specs/data/spec.md +0 -49
- package/openspec/specs/settings/spec.md +0 -48
- package/openspec/specs/subscriptions/spec.md +0 -85
- package/openspec/specs/summary/spec.md +0 -49
- package/openspec/specs/transactions/spec.md +0 -113
- package/openspec/specs/transfers/spec.md +0 -74
- package/specs/001-mcp-api-integration/checklists/requirements.md +0 -34
- package/specs/001-mcp-api-integration/contracts/openapi.yaml +0 -636
- package/specs/001-mcp-api-integration/data-model.md +0 -106
- package/specs/001-mcp-api-integration/plan.md +0 -73
- package/specs/001-mcp-api-integration/quickstart.md +0 -74
- package/specs/001-mcp-api-integration/research.md +0 -58
- package/specs/001-mcp-api-integration/spec.md +0 -119
- package/specs/001-mcp-api-integration/tasks.md +0 -64
- package/src/config.ts +0 -39
- package/src/index.ts +0 -116
- package/src/services/apiClient.ts +0 -55
- package/src/services/requestContext.ts +0 -11
- package/src/tools/accounts.ts +0 -122
- package/src/tools/categories.ts +0 -102
- package/src/tools/credit-cards.ts +0 -203
- package/src/tools/data.ts +0 -45
- package/src/tools/settings.ts +0 -64
- package/src/tools/subscriptions.ts +0 -159
- package/src/tools/summary.ts +0 -29
- package/src/tools/transactions.ts +0 -200
- package/src/tools/transfers.ts +0 -122
- package/src/types/schemas.ts +0 -333
- package/src/utils/toolHelpers.ts +0 -11
- package/tests/benchmark.test.d.ts +0 -2
- package/tests/benchmark.test.d.ts.map +0 -1
- package/tests/benchmark.test.js +0 -33
- package/tests/benchmark.test.js.map +0 -1
- package/tests/benchmark.test.ts +0 -38
- package/tests/server.test.d.ts +0 -2
- package/tests/server.test.d.ts.map +0 -1
- package/tests/server.test.js +0 -13
- package/tests/server.test.js.map +0 -1
- package/tests/server.test.ts +0 -14
- package/tests/setup.d.ts +0 -4
- package/tests/setup.d.ts.map +0 -1
- package/tests/setup.js +0 -17
- package/tests/setup.js.map +0 -1
- package/tests/setup.ts +0 -20
- package/tests/tools/accounts.test.ts +0 -159
- package/tests/tools/categories.test.d.ts +0 -2
- package/tests/tools/categories.test.d.ts.map +0 -1
- package/tests/tools/categories.test.js +0 -63
- package/tests/tools/categories.test.js.map +0 -1
- package/tests/tools/categories.test.ts +0 -120
- package/tests/tools/credit-cards.test.d.ts +0 -2
- package/tests/tools/credit-cards.test.d.ts.map +0 -1
- package/tests/tools/credit-cards.test.js +0 -71
- package/tests/tools/credit-cards.test.js.map +0 -1
- package/tests/tools/credit-cards.test.ts +0 -131
- package/tests/tools/data.test.ts +0 -100
- package/tests/tools/settings.test.ts +0 -116
- package/tests/tools/subscriptions.test.ts +0 -173
- package/tests/tools/summary.test.d.ts +0 -2
- package/tests/tools/summary.test.d.ts.map +0 -1
- package/tests/tools/summary.test.js +0 -36
- package/tests/tools/summary.test.js.map +0 -1
- package/tests/tools/summary.test.ts +0 -63
- package/tests/tools/transactions.test.d.ts +0 -2
- package/tests/tools/transactions.test.d.ts.map +0 -1
- package/tests/tools/transactions.test.js +0 -67
- package/tests/tools/transactions.test.js.map +0 -1
- package/tests/tools/transactions.test.ts +0 -133
- package/tests/tools/transfers.test.ts +0 -141
- package/tsconfig.json +0 -52
- package/vitest.config.d.ts +0 -3
- package/vitest.config.d.ts.map +0 -1
- package/vitest.config.js +0 -14
- package/vitest.config.js.map +0 -1
- package/vitest.config.ts +0 -14
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
|
|
3
|
-
handoffs:
|
|
4
|
-
- label: Analyze For Consistency
|
|
5
|
-
agent: speckit.analyze
|
|
6
|
-
prompt: Run a project analysis for consistency
|
|
7
|
-
send: true
|
|
8
|
-
- label: Implement Project
|
|
9
|
-
agent: speckit.implement
|
|
10
|
-
prompt: Start the implementation in phases
|
|
11
|
-
send: true
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## User Input
|
|
15
|
-
|
|
16
|
-
```text
|
|
17
|
-
$ARGUMENTS
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
You **MUST** consider the user input before proceeding (if not empty).
|
|
21
|
-
|
|
22
|
-
## Outline
|
|
23
|
-
|
|
24
|
-
1. **Setup**: Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json` 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").
|
|
25
|
-
|
|
26
|
-
2. **Load design documents**: Read from FEATURE_DIR:
|
|
27
|
-
- **Required**: plan.md (tech stack, libraries, structure), spec.md (user stories with priorities)
|
|
28
|
-
- **Optional**: data-model.md (entities), contracts/ (API endpoints), research.md (decisions), quickstart.md (test scenarios)
|
|
29
|
-
- Note: Not all projects have all documents. Generate tasks based on what's available.
|
|
30
|
-
|
|
31
|
-
3. **Execute task generation workflow**:
|
|
32
|
-
- Load plan.md and extract tech stack, libraries, project structure
|
|
33
|
-
- Load spec.md and extract user stories with their priorities (P1, P2, P3, etc.)
|
|
34
|
-
- If data-model.md exists: Extract entities and map to user stories
|
|
35
|
-
- If contracts/ exists: Map endpoints to user stories
|
|
36
|
-
- If research.md exists: Extract decisions for setup tasks
|
|
37
|
-
- Generate tasks organized by user story (see Task Generation Rules below)
|
|
38
|
-
- Generate dependency graph showing user story completion order
|
|
39
|
-
- Create parallel execution examples per user story
|
|
40
|
-
- Validate task completeness (each user story has all needed tasks, independently testable)
|
|
41
|
-
|
|
42
|
-
4. **Generate tasks.md**: Use `.specify/templates/tasks-template.md` as structure, fill with:
|
|
43
|
-
- Correct feature name from plan.md
|
|
44
|
-
- Phase 1: Setup tasks (project initialization)
|
|
45
|
-
- Phase 2: Foundational tasks (blocking prerequisites for all user stories)
|
|
46
|
-
- Phase 3+: One phase per user story (in priority order from spec.md)
|
|
47
|
-
- Each phase includes: story goal, independent test criteria, tests (if requested), implementation tasks
|
|
48
|
-
- Final Phase: Polish & cross-cutting concerns
|
|
49
|
-
- All tasks must follow the strict checklist format (see Task Generation Rules below)
|
|
50
|
-
- Clear file paths for each task
|
|
51
|
-
- Dependencies section showing story completion order
|
|
52
|
-
- Parallel execution examples per story
|
|
53
|
-
- Implementation strategy section (MVP first, incremental delivery)
|
|
54
|
-
|
|
55
|
-
5. **Report**: Output path to generated tasks.md and summary:
|
|
56
|
-
- Total task count
|
|
57
|
-
- Task count per user story
|
|
58
|
-
- Parallel opportunities identified
|
|
59
|
-
- Independent test criteria for each story
|
|
60
|
-
- Suggested MVP scope (typically just User Story 1)
|
|
61
|
-
- Format validation: Confirm ALL tasks follow the checklist format (checkbox, ID, labels, file paths)
|
|
62
|
-
|
|
63
|
-
Context for task generation: $ARGUMENTS
|
|
64
|
-
|
|
65
|
-
The tasks.md should be immediately executable - each task must be specific enough that an LLM can complete it without additional context.
|
|
66
|
-
|
|
67
|
-
## Task Generation Rules
|
|
68
|
-
|
|
69
|
-
**CRITICAL**: Tasks MUST be organized by user story to enable independent implementation and testing.
|
|
70
|
-
|
|
71
|
-
**Tests are OPTIONAL**: Only generate test tasks if explicitly requested in the feature specification or if user requests TDD approach.
|
|
72
|
-
|
|
73
|
-
### Checklist Format (REQUIRED)
|
|
74
|
-
|
|
75
|
-
Every task MUST strictly follow this format:
|
|
76
|
-
|
|
77
|
-
```text
|
|
78
|
-
- [ ] [TaskID] [P?] [Story?] Description with file path
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
**Format Components**:
|
|
82
|
-
|
|
83
|
-
1. **Checkbox**: ALWAYS start with `- [ ]` (markdown checkbox)
|
|
84
|
-
2. **Task ID**: Sequential number (T001, T002, T003...) in execution order
|
|
85
|
-
3. **[P] marker**: Include ONLY if task is parallelizable (different files, no dependencies on incomplete tasks)
|
|
86
|
-
4. **[Story] label**: REQUIRED for user story phase tasks only
|
|
87
|
-
- Format: [US1], [US2], [US3], etc. (maps to user stories from spec.md)
|
|
88
|
-
- Setup phase: NO story label
|
|
89
|
-
- Foundational phase: NO story label
|
|
90
|
-
- User Story phases: MUST have story label
|
|
91
|
-
- Polish phase: NO story label
|
|
92
|
-
5. **Description**: Clear action with exact file path
|
|
93
|
-
|
|
94
|
-
**Examples**:
|
|
95
|
-
|
|
96
|
-
- ✅ CORRECT: `- [ ] T001 Create project structure per implementation plan`
|
|
97
|
-
- ✅ CORRECT: `- [ ] T005 [P] Implement authentication middleware in src/middleware/auth.py`
|
|
98
|
-
- ✅ CORRECT: `- [ ] T012 [P] [US1] Create User model in src/models/user.py`
|
|
99
|
-
- ✅ CORRECT: `- [ ] T014 [US1] Implement UserService in src/services/user_service.py`
|
|
100
|
-
- ❌ WRONG: `- [ ] Create User model` (missing ID and Story label)
|
|
101
|
-
- ❌ WRONG: `T001 [US1] Create model` (missing checkbox)
|
|
102
|
-
- ❌ WRONG: `- [ ] [US1] Create User model` (missing Task ID)
|
|
103
|
-
- ❌ WRONG: `- [ ] T001 [US1] Create model` (missing file path)
|
|
104
|
-
|
|
105
|
-
### Task Organization
|
|
106
|
-
|
|
107
|
-
1. **From User Stories (spec.md)** - PRIMARY ORGANIZATION:
|
|
108
|
-
- Each user story (P1, P2, P3...) gets its own phase
|
|
109
|
-
- Map all related components to their story:
|
|
110
|
-
- Models needed for that story
|
|
111
|
-
- Services needed for that story
|
|
112
|
-
- Endpoints/UI needed for that story
|
|
113
|
-
- If tests requested: Tests specific to that story
|
|
114
|
-
- Mark story dependencies (most stories should be independent)
|
|
115
|
-
|
|
116
|
-
2. **From Contracts**:
|
|
117
|
-
- Map each contract/endpoint → to the user story it serves
|
|
118
|
-
- If tests requested: Each contract → contract test task [P] before implementation in that story's phase
|
|
119
|
-
|
|
120
|
-
3. **From Data Model**:
|
|
121
|
-
- Map each entity to the user story(ies) that need it
|
|
122
|
-
- If entity serves multiple stories: Put in earliest story or Setup phase
|
|
123
|
-
- Relationships → service layer tasks in appropriate story phase
|
|
124
|
-
|
|
125
|
-
4. **From Setup/Infrastructure**:
|
|
126
|
-
- Shared infrastructure → Setup phase (Phase 1)
|
|
127
|
-
- Foundational/blocking tasks → Foundational phase (Phase 2)
|
|
128
|
-
- Story-specific setup → within that story's phase
|
|
129
|
-
|
|
130
|
-
### Phase Structure
|
|
131
|
-
|
|
132
|
-
- **Phase 1**: Setup (project initialization)
|
|
133
|
-
- **Phase 2**: Foundational (blocking prerequisites - MUST complete before user stories)
|
|
134
|
-
- **Phase 3+**: User Stories in priority order (P1, P2, P3...)
|
|
135
|
-
- Within each story: Tests (if requested) → Models → Services → Endpoints → Integration
|
|
136
|
-
- Each phase should be a complete, independently testable increment
|
|
137
|
-
- **Final Phase**: Polish & Cross-Cutting Concerns
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.
|
|
3
|
-
tools: ['github/github-mcp-server/issue_write']
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## User Input
|
|
7
|
-
|
|
8
|
-
```text
|
|
9
|
-
$ARGUMENTS
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
You **MUST** consider the user input before proceeding (if not empty).
|
|
13
|
-
|
|
14
|
-
## Outline
|
|
15
|
-
|
|
16
|
-
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").
|
|
17
|
-
1. From the executed script, extract the path to **tasks**.
|
|
18
|
-
1. Get the Git remote by running:
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
git config --get remote.origin.url
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
> [!CAUTION]
|
|
25
|
-
> ONLY PROCEED TO NEXT STEPS IF THE REMOTE IS A GITHUB URL
|
|
26
|
-
|
|
27
|
-
1. For each task in the list, use the GitHub MCP server to create a new issue in the repository that is representative of the Git remote.
|
|
28
|
-
|
|
29
|
-
> [!CAUTION]
|
|
30
|
-
> UNDER NO CIRCUMSTANCES EVER CREATE ISSUES IN REPOSITORIES THAT DO NOT MATCH THE REMOTE URL
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
description = "Implement tasks from an OpenSpec change (Experimental)"
|
|
2
|
-
|
|
3
|
-
prompt = """
|
|
4
|
-
Implement tasks from an OpenSpec change.
|
|
5
|
-
|
|
6
|
-
**Input**: Optionally specify a change name (e.g., `/opsx:apply add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
7
|
-
|
|
8
|
-
**Steps**
|
|
9
|
-
|
|
10
|
-
1. **Select the change**
|
|
11
|
-
|
|
12
|
-
If a name is provided, use it. Otherwise:
|
|
13
|
-
- Infer from conversation context if the user mentioned a change
|
|
14
|
-
- Auto-select if only one active change exists
|
|
15
|
-
- If ambiguous, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select
|
|
16
|
-
|
|
17
|
-
Always announce: "Using change: <name>" and how to override (e.g., `/opsx:apply <other>`).
|
|
18
|
-
|
|
19
|
-
2. **Check status to understand the schema**
|
|
20
|
-
```bash
|
|
21
|
-
openspec status --change "<name>" --json
|
|
22
|
-
```
|
|
23
|
-
Parse the JSON to understand:
|
|
24
|
-
- `schemaName`: The workflow being used (e.g., "spec-driven")
|
|
25
|
-
- Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
|
|
26
|
-
|
|
27
|
-
3. **Get apply instructions**
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
openspec instructions apply --change "<name>" --json
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
This returns:
|
|
34
|
-
- Context file paths (varies by schema)
|
|
35
|
-
- Progress (total, complete, remaining)
|
|
36
|
-
- Task list with status
|
|
37
|
-
- Dynamic instruction based on current state
|
|
38
|
-
|
|
39
|
-
**Handle states:**
|
|
40
|
-
- If `state: "blocked"` (missing artifacts): show message, suggest using `/opsx:continue`
|
|
41
|
-
- If `state: "all_done"`: congratulate, suggest archive
|
|
42
|
-
- Otherwise: proceed to implementation
|
|
43
|
-
|
|
44
|
-
4. **Read context files**
|
|
45
|
-
|
|
46
|
-
Read the files listed in `contextFiles` from the apply instructions output.
|
|
47
|
-
The files depend on the schema being used:
|
|
48
|
-
- **spec-driven**: proposal, specs, design, tasks
|
|
49
|
-
- Other schemas: follow the contextFiles from CLI output
|
|
50
|
-
|
|
51
|
-
5. **Show current progress**
|
|
52
|
-
|
|
53
|
-
Display:
|
|
54
|
-
- Schema being used
|
|
55
|
-
- Progress: "N/M tasks complete"
|
|
56
|
-
- Remaining tasks overview
|
|
57
|
-
- Dynamic instruction from CLI
|
|
58
|
-
|
|
59
|
-
6. **Implement tasks (loop until done or blocked)**
|
|
60
|
-
|
|
61
|
-
For each pending task:
|
|
62
|
-
- Show which task is being worked on
|
|
63
|
-
- Make the code changes required
|
|
64
|
-
- Keep changes minimal and focused
|
|
65
|
-
- Mark task complete in the tasks file: `- [ ]` → `- [x]`
|
|
66
|
-
- Continue to next task
|
|
67
|
-
|
|
68
|
-
**Pause if:**
|
|
69
|
-
- Task is unclear → ask for clarification
|
|
70
|
-
- Implementation reveals a design issue → suggest updating artifacts
|
|
71
|
-
- Error or blocker encountered → report and wait for guidance
|
|
72
|
-
- User interrupts
|
|
73
|
-
|
|
74
|
-
7. **On completion or pause, show status**
|
|
75
|
-
|
|
76
|
-
Display:
|
|
77
|
-
- Tasks completed this session
|
|
78
|
-
- Overall progress: "N/M tasks complete"
|
|
79
|
-
- If all done: suggest archive
|
|
80
|
-
- If paused: explain why and wait for guidance
|
|
81
|
-
|
|
82
|
-
**Output During Implementation**
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
## Implementing: <change-name> (schema: <schema-name>)
|
|
86
|
-
|
|
87
|
-
Working on task 3/7: <task description>
|
|
88
|
-
[...implementation happening...]
|
|
89
|
-
✓ Task complete
|
|
90
|
-
|
|
91
|
-
Working on task 4/7: <task description>
|
|
92
|
-
[...implementation happening...]
|
|
93
|
-
✓ Task complete
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
**Output On Completion**
|
|
97
|
-
|
|
98
|
-
```
|
|
99
|
-
## Implementation Complete
|
|
100
|
-
|
|
101
|
-
**Change:** <change-name>
|
|
102
|
-
**Schema:** <schema-name>
|
|
103
|
-
**Progress:** 7/7 tasks complete ✓
|
|
104
|
-
|
|
105
|
-
### Completed This Session
|
|
106
|
-
- [x] Task 1
|
|
107
|
-
- [x] Task 2
|
|
108
|
-
...
|
|
109
|
-
|
|
110
|
-
All tasks complete! You can archive this change with `/opsx:archive`.
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
**Output On Pause (Issue Encountered)**
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
## Implementation Paused
|
|
117
|
-
|
|
118
|
-
**Change:** <change-name>
|
|
119
|
-
**Schema:** <schema-name>
|
|
120
|
-
**Progress:** 4/7 tasks complete
|
|
121
|
-
|
|
122
|
-
### Issue Encountered
|
|
123
|
-
<description of the issue>
|
|
124
|
-
|
|
125
|
-
**Options:**
|
|
126
|
-
1. <option 1>
|
|
127
|
-
2. <option 2>
|
|
128
|
-
3. Other approach
|
|
129
|
-
|
|
130
|
-
What would you like to do?
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
**Guardrails**
|
|
134
|
-
- Keep going through tasks until done or blocked
|
|
135
|
-
- Always read context files before starting (from the apply instructions output)
|
|
136
|
-
- If task is ambiguous, pause and ask before implementing
|
|
137
|
-
- If implementation reveals issues, pause and suggest artifact updates
|
|
138
|
-
- Keep code changes minimal and scoped to each task
|
|
139
|
-
- Update task checkbox immediately after completing each task
|
|
140
|
-
- Pause on errors, blockers, or unclear requirements - don't guess
|
|
141
|
-
- Use contextFiles from CLI output, don't assume specific file names
|
|
142
|
-
|
|
143
|
-
**Fluid Workflow Integration**
|
|
144
|
-
|
|
145
|
-
This skill supports the "actions on a change" model:
|
|
146
|
-
|
|
147
|
-
- **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
|
|
148
|
-
- **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
|
|
149
|
-
"""
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
description = "Archive a completed change in the experimental workflow"
|
|
2
|
-
|
|
3
|
-
prompt = """
|
|
4
|
-
Archive a completed change in the experimental workflow.
|
|
5
|
-
|
|
6
|
-
**Input**: Optionally specify a change name after `/opsx:archive` (e.g., `/opsx:archive add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
7
|
-
|
|
8
|
-
**Steps**
|
|
9
|
-
|
|
10
|
-
1. **If no change name provided, prompt for selection**
|
|
11
|
-
|
|
12
|
-
Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
|
|
13
|
-
|
|
14
|
-
Show only active changes (not already archived).
|
|
15
|
-
Include the schema used for each change if available.
|
|
16
|
-
|
|
17
|
-
**IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
|
|
18
|
-
|
|
19
|
-
2. **Check artifact completion status**
|
|
20
|
-
|
|
21
|
-
Run `openspec status --change "<name>" --json` to check artifact completion.
|
|
22
|
-
|
|
23
|
-
Parse the JSON to understand:
|
|
24
|
-
- `schemaName`: The workflow being used
|
|
25
|
-
- `artifacts`: List of artifacts with their status (`done` or other)
|
|
26
|
-
|
|
27
|
-
**If any artifacts are not `done`:**
|
|
28
|
-
- Display warning listing incomplete artifacts
|
|
29
|
-
- Prompt user for confirmation to continue
|
|
30
|
-
- Proceed if user confirms
|
|
31
|
-
|
|
32
|
-
3. **Check task completion status**
|
|
33
|
-
|
|
34
|
-
Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
|
|
35
|
-
|
|
36
|
-
Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
|
|
37
|
-
|
|
38
|
-
**If incomplete tasks found:**
|
|
39
|
-
- Display warning showing count of incomplete tasks
|
|
40
|
-
- Prompt user for confirmation to continue
|
|
41
|
-
- Proceed if user confirms
|
|
42
|
-
|
|
43
|
-
**If no tasks file exists:** Proceed without task-related warning.
|
|
44
|
-
|
|
45
|
-
4. **Assess delta spec sync state**
|
|
46
|
-
|
|
47
|
-
Check for delta specs at `openspec/changes/<name>/specs/`. If none exist, proceed without sync prompt.
|
|
48
|
-
|
|
49
|
-
**If delta specs exist:**
|
|
50
|
-
- Compare each delta spec with its corresponding main spec at `openspec/specs/<capability>/spec.md`
|
|
51
|
-
- Determine what changes would be applied (adds, modifications, removals, renames)
|
|
52
|
-
- Show a combined summary before prompting
|
|
53
|
-
|
|
54
|
-
**Prompt options:**
|
|
55
|
-
- If changes needed: "Sync now (recommended)", "Archive without syncing"
|
|
56
|
-
- If already synced: "Archive now", "Sync anyway", "Cancel"
|
|
57
|
-
|
|
58
|
-
If user chooses sync, execute `/opsx:sync` logic. Proceed to archive regardless of choice.
|
|
59
|
-
|
|
60
|
-
5. **Perform the archive**
|
|
61
|
-
|
|
62
|
-
Create the archive directory if it doesn't exist:
|
|
63
|
-
```bash
|
|
64
|
-
mkdir -p openspec/changes/archive
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
Generate target name using current date: `YYYY-MM-DD-<change-name>`
|
|
68
|
-
|
|
69
|
-
**Check if target already exists:**
|
|
70
|
-
- If yes: Fail with error, suggest renaming existing archive or using different date
|
|
71
|
-
- If no: Move the change directory to archive
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
6. **Display summary**
|
|
78
|
-
|
|
79
|
-
Show archive completion summary including:
|
|
80
|
-
- Change name
|
|
81
|
-
- Schema that was used
|
|
82
|
-
- Archive location
|
|
83
|
-
- Spec sync status (synced / sync skipped / no delta specs)
|
|
84
|
-
- Note about any warnings (incomplete artifacts/tasks)
|
|
85
|
-
|
|
86
|
-
**Output On Success**
|
|
87
|
-
|
|
88
|
-
```
|
|
89
|
-
## Archive Complete
|
|
90
|
-
|
|
91
|
-
**Change:** <change-name>
|
|
92
|
-
**Schema:** <schema-name>
|
|
93
|
-
**Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
94
|
-
**Specs:** ✓ Synced to main specs
|
|
95
|
-
|
|
96
|
-
All artifacts complete. All tasks complete.
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
**Output On Success (No Delta Specs)**
|
|
100
|
-
|
|
101
|
-
```
|
|
102
|
-
## Archive Complete
|
|
103
|
-
|
|
104
|
-
**Change:** <change-name>
|
|
105
|
-
**Schema:** <schema-name>
|
|
106
|
-
**Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
107
|
-
**Specs:** No delta specs
|
|
108
|
-
|
|
109
|
-
All artifacts complete. All tasks complete.
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
**Output On Success With Warnings**
|
|
113
|
-
|
|
114
|
-
```
|
|
115
|
-
## Archive Complete (with warnings)
|
|
116
|
-
|
|
117
|
-
**Change:** <change-name>
|
|
118
|
-
**Schema:** <schema-name>
|
|
119
|
-
**Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
120
|
-
**Specs:** Sync skipped (user chose to skip)
|
|
121
|
-
|
|
122
|
-
**Warnings:**
|
|
123
|
-
- Archived with 2 incomplete artifacts
|
|
124
|
-
- Archived with 3 incomplete tasks
|
|
125
|
-
- Delta spec sync was skipped (user chose to skip)
|
|
126
|
-
|
|
127
|
-
Review the archive if this was not intentional.
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
**Output On Error (Archive Exists)**
|
|
131
|
-
|
|
132
|
-
```
|
|
133
|
-
## Archive Failed
|
|
134
|
-
|
|
135
|
-
**Change:** <change-name>
|
|
136
|
-
**Target:** openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
137
|
-
|
|
138
|
-
Target archive directory already exists.
|
|
139
|
-
|
|
140
|
-
**Options:**
|
|
141
|
-
1. Rename the existing archive
|
|
142
|
-
2. Delete the existing archive if it's a duplicate
|
|
143
|
-
3. Wait until a different date to archive
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
**Guardrails**
|
|
147
|
-
- Always prompt for change selection if not provided
|
|
148
|
-
- Use artifact graph (openspec status --json) for completion checking
|
|
149
|
-
- Don't block archive on warnings - just inform and confirm
|
|
150
|
-
- Preserve .openspec.yaml when moving to archive (it moves with the directory)
|
|
151
|
-
- Show clear summary of what happened
|
|
152
|
-
- If sync is requested, use /opsx:sync approach (agent-driven)
|
|
153
|
-
- If delta specs exist, always run the sync assessment and show the combined summary before prompting
|
|
154
|
-
"""
|