You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -10348,6 +10348,8 @@ If no explicit mode is specified, infer the intent from the user's prompt:
10348
10348
| "Log technical debt", "We need to fix this later", "Track shortcuts" | Tech Debt | `draft tech-debt` |
10349
10349
| "How does this work?", "Walk me through the codebase", "Onboard me" | System Tour | `draft tour` |
10350
10350
10351
+
**Ambiguous phrasing** (e.g., "document our testing approach" could match `documentation` or `testing-strategy`): do not guess. Ask the user one clarifying question — "Do you want (a) prose docs describing the existing tests, or (b) a test plan defining what to test next?" — then route.
10352
+
10351
10353
## Step 2: Bare Parent Command Fallback
10352
10354
10353
10355
If the user runs a bare `draft docs` without clear intent, present a small documentation menu with a recommended default path based on the current context:
@@ -12595,6 +12597,11 @@ Save to:
12595
12597
12596
12598
Create `draft/docs/` directory if needed.
12597
12599
12600
+
**Pre-save validation:**
12601
+
- Every file path referenced in the doc resolves to a real file (broken links are a common LLM failure mode here).
12602
+
- Every relative link in the doc resolves under the project root.
12603
+
- Code blocks copied from sources match the current commit (no stale snippets).
12604
+
12598
12605
Present generated doc to user for review before final save.
12599
12606
12600
12607
## Cross-Skill Dispatch
@@ -14064,6 +14071,9 @@ Provide an interactive codebase walk-through based on existing architecture and
14064
14071
2. **Interactive Cadence:** Ask the developer if they are familiar with the tech stack constraints found in `draft/tech-stack.md`.
14065
14072
3. **Module Introduction:** Instead of listing all modules, introduce the "Entry Point" module first.
14066
14073
4. **Active Challenge:** After explaining a module's responsibility, challenge the developer: "Based on our *Context-Driven Development* rules, how do you think we handle data persistence here?" Wait for their answer before revealing the architecture strategy.
14074
+
- If the answer is correct, confirm briefly and cite the supporting line in `architecture.md` / `guardrails.md`.
14075
+
- If the answer is partially right, name what they got right, then ask a narrower follow-up (e.g., "Right that we cache reads — what's the invalidation trigger?") before revealing the rest.
14076
+
- If the answer is wrong, do not just hand them the answer. Quote the specific guardrail or HLD section that contradicts it, then re-prompt with a hint scoped to that section.
14067
14077
5. **Traceability:** Highlight `draft/.state/facts.json` showing how module constraints have evolved.
14068
14078
6. **Track Lifecycle Walk:** Show the full feature lifecycle and who owns each gate:
Copy file name to clipboardExpand all lines: skills/docs/SKILL.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,8 @@ If no explicit mode is specified, infer the intent from the user's prompt:
40
40
| "Log technical debt", "We need to fix this later", "Track shortcuts" | Tech Debt |`/draft:tech-debt`|
41
41
| "How does this work?", "Walk me through the codebase", "Onboard me" | System Tour |`/draft:tour`|
42
42
43
+
**Ambiguous phrasing** (e.g., "document our testing approach" could match `documentation` or `testing-strategy`): do not guess. Ask the user one clarifying question — "Do you want (a) prose docs describing the existing tests, or (b) a test plan defining what to test next?" — then route.
44
+
43
45
## Step 2: Bare Parent Command Fallback
44
46
45
47
If the user runs a bare `/draft:docs` without clear intent, present a small documentation menu with a recommended default path based on the current context:
0 commit comments