@haposoft/cafekit 0.7.18 → 0.7.20
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haposoft/cafekit",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.20",
|
|
4
4
|
"description": "Spec-Driven Development workflow for AI coding assistants. Supports Claude Code and Antigravity with spec-first workflows plus Claude Code hapo: skills.",
|
|
5
5
|
"author": "Haposoft <nghialt@haposoft.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: hapo:specs
|
|
3
3
|
description: "Structured specification workflow — from vague idea to actionable task list. Includes init, requirements, design, task breakdown, review, and archiving."
|
|
4
4
|
version: 2.0.0
|
|
5
|
-
argument-hint: "<feature-description> | status | resume |
|
|
5
|
+
argument-hint: "<feature-description> | status | resume | --validate | archive"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Specs (SDD — Specification-Driven Development)
|
|
@@ -67,7 +67,7 @@ Display selection menu via `AskUserQuestion`:
|
|
|
67
67
|
{ "label": "Create new spec", "description": "Initialize spec from a feature description" },
|
|
68
68
|
{ "label": "status", "description": "View status of all specs in specs/" },
|
|
69
69
|
{ "label": "resume", "description": "Continue an in-progress spec" },
|
|
70
|
-
{ "label": "
|
|
70
|
+
{ "label": "--validate", "description": "Review spec (auto-decides: red team or validation)" },
|
|
71
71
|
{ "label": "archive", "description": "Archive completed specs + write journal" }
|
|
72
72
|
],
|
|
73
73
|
"multiSelect": false
|
|
@@ -82,12 +82,17 @@ System auto-analyzes the description:
|
|
|
82
82
|
- If task is simple (small bugfix, config change) → suggest "A spec may not be needed for this. Continue anyway?"
|
|
83
83
|
- If task is complex (multi-module, security/migration related) → auto-activate deep research, ask user 3 scope questions
|
|
84
84
|
|
|
85
|
+
### When called WITH `--validate` argument
|
|
86
|
+
|
|
87
|
+
System IMMEDIATELY jumps to **Step 9: Validation Review**.
|
|
88
|
+
The system MUST NOT execute Steps 1-8. Instead, load `references/review.md`, adopt Red Team personas, and read the entire `specs/` directory to hunt for flaws before interviewing the user.
|
|
89
|
+
|
|
85
90
|
## Workflow Diagram
|
|
86
91
|
|
|
87
92
|
```mermaid
|
|
88
93
|
flowchart TD
|
|
89
94
|
A["Call /hapo:specs"] --> B{Has description?}
|
|
90
|
-
B -->|No| C["Menu: init / status / resume /
|
|
95
|
+
B -->|No| C["Menu: init / status / resume / --validate / archive"]
|
|
91
96
|
B -->|Yes| D["Step 1: Analyze description"]
|
|
92
97
|
D --> E{Clear enough?}
|
|
93
98
|
E -->|No| F["Ask user 1-2 clarifying questions"]
|
|
@@ -257,7 +262,7 @@ Load: `references/task-hydration.md`
|
|
|
257
262
|
- If TaskCreate tool unavailable → fallback to `TodoWrite`
|
|
258
263
|
- Task files are the single source of truth — hydration is just a convenience
|
|
259
264
|
|
|
260
|
-
### Step 9: Review (Optional)
|
|
265
|
+
### Step 9: Validation Review (Optional)
|
|
261
266
|
Load: `references/review.md` + `rules/design-review.md`
|
|
262
267
|
- System auto-evaluates spec complexity and decides review depth:
|
|
263
268
|
- **< 3 task files, no security concerns** → Validate only (lightweight interview)
|
|
@@ -342,7 +347,7 @@ specs/
|
|
|
342
347
|
|---|---|---|
|
|
343
348
|
| `/hapo:specs status` | View status of all specs | — |
|
|
344
349
|
| `/hapo:specs resume <feature>` | Continue an in-progress spec | — |
|
|
345
|
-
| `/hapo:specs
|
|
350
|
+
| `/hapo:specs --validate <feature>` | Validate spec (auto: red team + validate based on complexity) | `references/review.md` |
|
|
346
351
|
| `/hapo:specs archive` | Archive completed specs + write journal | `references/archive-workflow.md` |
|
|
347
352
|
|
|
348
353
|
## Quality Standards
|