@pixelcraft-tw/spec 1.0.0 → 1.0.1
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
CHANGED
|
@@ -44,8 +44,6 @@ Initialize `.workflow/` directory and Claude Code slash commands for your projec
|
|
|
44
44
|
| Option | Description |
|
|
45
45
|
|--------|-------------|
|
|
46
46
|
| `--force` | Overwrite existing `.workflow/` / 覆蓋現有目錄 |
|
|
47
|
-
| `--arch <pattern>` | Architecture pattern: `clean` \| `hexagonal` \| `ddd` \| `layered` \| `modular` \| `custom` |
|
|
48
|
-
| `--lang <lang>` | Language-framework override (e.g. `go`, `typescript`, `go-gin`) |
|
|
49
47
|
|
|
50
48
|
### `pxs new <name>`
|
|
51
49
|
|
|
@@ -168,14 +166,14 @@ After `pxs init`, the following slash commands are available in Claude Code:
|
|
|
168
166
|
|
|
169
167
|
| Slash Command | Description |
|
|
170
168
|
|---------------|-------------|
|
|
171
|
-
| `/pxs
|
|
172
|
-
| `/pxs
|
|
173
|
-
| `/pxs
|
|
174
|
-
| `/pxs
|
|
175
|
-
| `/pxs
|
|
176
|
-
| `/pxs
|
|
177
|
-
| `/pxs
|
|
178
|
-
| `/pxs
|
|
169
|
+
| `/pxs.new` | Create a new spec / 建立規格 |
|
|
170
|
+
| `/pxs.refine` | Refine spec into plan / 拆解計畫 |
|
|
171
|
+
| `/pxs.clarify` | Clarify requirements / 釐清需求 |
|
|
172
|
+
| `/pxs.implement` | Implement task by task / 逐步實作 |
|
|
173
|
+
| `/pxs.review` | View reviews / 查看 review |
|
|
174
|
+
| `/pxs.status` | Check status / 查看狀態 |
|
|
175
|
+
| `/pxs.reset` | Reset feature phase / 重置 feature 狀態 |
|
|
176
|
+
| `/pxs.diff` | Show task progress / 查看 task 進度 |
|
|
179
177
|
|
|
180
178
|
## Project Structure / 專案結構
|
|
181
179
|
|
|
@@ -183,7 +181,6 @@ After `pxs init`, the following slash commands are available in Claude Code:
|
|
|
183
181
|
.workflow/
|
|
184
182
|
├── state.yaml # Workflow state / 工作流狀態
|
|
185
183
|
├── config.yaml # Project config / 專案設定
|
|
186
|
-
├── architecture.md # Architecture constraints (if --arch) / 架構約束
|
|
187
184
|
├── specs/ # Feature specs / 功能規格
|
|
188
185
|
├── plans/ # Implementation plans / 實作計畫
|
|
189
186
|
├── reviews/ # AI review records / AI review 紀錄
|
package/package.json
CHANGED
|
@@ -7,12 +7,24 @@ Parse $ARGUMENTS:
|
|
|
7
7
|
- @ prefixed = agent, / prefixed = skill
|
|
8
8
|
- Remaining = supplementary instructions
|
|
9
9
|
|
|
10
|
+
<HARD-GATE>
|
|
11
|
+
- This command is STRICTLY for requirement clarification
|
|
12
|
+
- DO NOT write, create, modify, or delete any source code files
|
|
13
|
+
- DO NOT implement any functionality — no application code, no tests, no config changes
|
|
14
|
+
- The ONLY files you may write to:
|
|
15
|
+
- `.workflow/specs/<name>.md` (updated spec with clarified requirements)
|
|
16
|
+
- `.workflow/state.yaml` (state updates)
|
|
17
|
+
- Implementation belongs to `/pxs.implement` — not here
|
|
18
|
+
</HARD-GATE>
|
|
19
|
+
|
|
10
20
|
Read `.workflow/specs/<name>.md`.
|
|
11
21
|
|
|
12
22
|
Analyze spec, identify requirements that can be further clarified.
|
|
13
23
|
Present as numbered questions, wait for user answers.
|
|
14
24
|
Update spec based on answers.
|
|
15
25
|
|
|
26
|
+
Remember: Do NOT write any implementation code. Only update the spec document.
|
|
27
|
+
|
|
16
28
|
{If @agent present, involve corresponding agent}
|
|
17
29
|
{If /skill present, use corresponding MCP/skill to assist}
|
|
18
30
|
{Supplementary instructions}
|
|
@@ -7,6 +7,7 @@ Create a spec based on user input.
|
|
|
7
7
|
Parse $ARGUMENTS:
|
|
8
8
|
- First word is the feature name <name> (MUST be English, kebab-case. If user provides Chinese, translate to English)
|
|
9
9
|
- If `--jira <tickets...>` present, read each ticket's content via Jira MCP (supports multiple, space-separated)
|
|
10
|
+
- If text contains Jira URLs (e.g., `https://xxx.atlassian.net/browse/PROJ-123`), extract ticket IDs and treat as `--jira`
|
|
10
11
|
- If `--desc` present, following text is the description
|
|
11
12
|
- If `-i` present, enter interactive Q&A
|
|
12
13
|
- Remaining text is treated as feature description
|
|
@@ -16,7 +17,7 @@ Steps:
|
|
|
16
17
|
2. Generate spec based on input method:
|
|
17
18
|
- No extra args: copy `.workflow/templates/spec-template.md` to `.workflow/specs/<name>.md`
|
|
18
19
|
- Has description text: expand into complete spec
|
|
19
|
-
- Has --jira: read Jira content and convert to spec
|
|
20
|
+
- Has --jira or Jira URLs: read Jira content via MCP and convert to spec
|
|
20
21
|
- Has -i: ask questions step by step to generate spec
|
|
21
22
|
3. Display generated spec content
|
|
22
|
-
4. Prompt user they can manually edit then run `/pxs
|
|
23
|
+
4. Prompt user they can manually edit then run `/pxs.refine <name>`
|
|
@@ -9,6 +9,17 @@ Parse $ARGUMENTS:
|
|
|
9
9
|
- --skip-clarify skips requirement clarification
|
|
10
10
|
- Remaining text is supplementary instructions
|
|
11
11
|
|
|
12
|
+
<HARD-GATE>
|
|
13
|
+
- This command is STRICTLY for spec refinement and plan decomposition
|
|
14
|
+
- DO NOT write, create, modify, or delete any source code files
|
|
15
|
+
- DO NOT implement any functionality — no application code, no tests, no config changes
|
|
16
|
+
- The ONLY files you may write to:
|
|
17
|
+
- `.workflow/specs/<name>.md` (refined spec)
|
|
18
|
+
- `.workflow/plans/<name>.md` (decomposed plan)
|
|
19
|
+
- `.workflow/state.yaml` (state updates)
|
|
20
|
+
- Implementation belongs to `/pxs.implement` — not here
|
|
21
|
+
</HARD-GATE>
|
|
22
|
+
|
|
12
23
|
Read `.workflow/specs/<name>.md`.
|
|
13
24
|
|
|
14
25
|
## Phase 1: Requirement Clarification
|
|
@@ -32,6 +43,8 @@ Unless --skip-clarify is present:
|
|
|
32
43
|
7. Present refined spec to user for confirmation
|
|
33
44
|
8. User approves to continue; otherwise modify based on feedback
|
|
34
45
|
|
|
46
|
+
Remember: Do NOT write any implementation code. Only update the spec document.
|
|
47
|
+
|
|
35
48
|
## Phase 3: Decompose Plan
|
|
36
49
|
1. Determine feature type (feat/fix/refactor/docs/chore)
|
|
37
50
|
2. Decompose requirements into independently completable tasks
|
|
@@ -44,4 +57,6 @@ Unless --skip-clarify is present:
|
|
|
44
57
|
7. User edit → wait for modifications
|
|
45
58
|
8. User re-split → re-decompose based on feedback
|
|
46
59
|
|
|
60
|
+
Remember: Do NOT write any implementation code. Only generate the plan document.
|
|
61
|
+
|
|
47
62
|
{Supplementary instructions: $REMAINING_TEXT}
|