prizmkit 1.1.147 → 1.1.149
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/bundled/VERSION.json +3 -3
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/app-planner/SKILL.md +48 -40
- package/bundled/skills/app-planner/references/architecture-decisions.md +5 -11
- package/bundled/skills/app-planner/references/brainstorm-guide.md +1 -1
- package/bundled/skills/app-planner/references/frontend-design-guide.md +1 -1
- package/bundled/skills/app-planner/references/generated-plan-review.md +12 -9
- package/bundled/skills/app-planner/references/infrastructure-convention-discovery.md +2 -2
- package/bundled/skills/app-planner/references/project-brief-guide.md +8 -4
- package/bundled/skills/app-planner/references/project-conventions-discovery.md +1 -1
- package/bundled/skills/app-planner/references/rules/backend/derivation-rules.md +4 -2
- package/bundled/skills/app-planner/references/rules/backend/question-bank.md +1 -1
- package/bundled/skills/app-planner/references/rules/database/derivation-rules.md +4 -2
- package/bundled/skills/app-planner/references/rules/database/question-bank.md +1 -1
- package/bundled/skills/app-planner/references/rules/frontend/derivation-rules.md +4 -4
- package/bundled/skills/app-planner/references/rules/frontend/question-bank.md +6 -6
- package/bundled/skills/app-planner/references/rules/frontend/template.md +1 -1
- package/bundled/skills/app-planner/references/rules/mobile/derivation-rules.md +4 -2
- package/bundled/skills/app-planner/references/rules/mobile/question-bank.md +1 -1
- package/bundled/skills/app-planner/references/rules-configuration.md +5 -1
- package/bundled/skills/bug-planner/SKILL.md +23 -13
- package/bundled/skills/bug-planner/references/generated-plan-review.md +10 -8
- package/bundled/skills/feature-planner/SKILL.md +22 -13
- package/bundled/skills/feature-planner/assets/planning-guide.md +5 -3
- package/bundled/skills/feature-planner/references/completeness-review.md +14 -9
- package/bundled/skills/feature-planner/references/generated-plan-review.md +10 -7
- package/bundled/skills/refactor-planner/SKILL.md +21 -11
- package/bundled/skills/refactor-planner/references/generated-plan-review.md +10 -8
- package/bundled/skills/refactor-planner/references/planning-phases.md +8 -6
- package/package.json +1 -1
package/bundled/VERSION.json
CHANGED
|
@@ -36,18 +36,18 @@ If you believe the task is better suited for a different workflow, you MUST:
|
|
|
36
36
|
**Your ONLY writable outputs are:**
|
|
37
37
|
1. `.prizmkit/plans/project-brief.md` (`.prizmkit/plans/` — accumulated project context brief)
|
|
38
38
|
2. `.prizmkit/plans/project-brief.draft.md` — working source during planning and saved draft when the user exits before completion
|
|
39
|
-
3.
|
|
40
|
-
4.
|
|
41
|
-
5. `.prizmkit/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
- `
|
|
50
|
-
-
|
|
39
|
+
3. The resolved project instruction target for the current AI host (with user consent) — only project conventions, infrastructure configuration (database conventions, deployment config, **cloud services**), frontend design direction, and architecture decisions
|
|
40
|
+
4. `.prizmkit/rules/<layer>-rules.md` — per-layer development rules generated by Rules Configuration
|
|
41
|
+
5. `.prizmkit/prizm-docs/root.prizm` — `RULES:` pointer line only (not other root.prizm content; created minimally if absent)
|
|
42
|
+
|
|
43
|
+
**Current-host project instruction target resolution**:
|
|
44
|
+
- Identify the current AI host from direct runtime/session evidence and the host's own project conventions. Installed project resources, existing project files, and `.prizmkit/manifest.json` are supporting evidence only; they are not a platform identity or path allowlist and must not override stronger current-session evidence.
|
|
45
|
+
- Resolve the host's conventional main project-level AI instruction/context file: a project-local, durable file that the current host loads or reads to guide AI work in this project.
|
|
46
|
+
- Named paths such as `AGENTS.md`, `CLAUDE.md`, `CODEBUDDY.md`, and `.pi/APPEND_SYSTEM.md` are non-exhaustive examples only. They do not define a platform-to-path mapping or a compliance condition.
|
|
47
|
+
- The target must stay inside the project, represent the current host's main user-facing project instruction context, and must not be a private or framework-protocol-only import file.
|
|
48
|
+
- If the conventional target is absent, create it only when current-host evidence establishes one unambiguous conventional project path and the user consents to the write.
|
|
49
|
+
- If no target can be identified confidently or multiple plausible targets remain, use `AskUserQuestion` to confirm the intended project instruction file before writing. Never guess, and never treat semantic detection as permission to write an arbitrary file.
|
|
50
|
+
- Resolve the target once before project-convention discovery and reuse the same resolved target for conventions, infrastructure, frontend design direction, architecture decisions, prerequisites, checkpoints, generated-plan review, and completion reporting. Do not mirror content to every installed host merely because multiple platform resources exist.
|
|
51
51
|
|
|
52
52
|
**After planning is complete**, you MUST:
|
|
53
53
|
1. Present the summary of captured project-level context (vision, conventions, architecture decisions, project brief)
|
|
@@ -60,33 +60,43 @@ If you believe the task is better suited for a different workflow, you MUST:
|
|
|
60
60
|
|
|
61
61
|
Every new or changed project brief line, convention, infrastructure decision, architecture decision, and rule must be understandable by a fresh AI session that has never seen the planning conversation. Durable app context records the actual selected product or technical decision, not the answer token used in chat.
|
|
62
62
|
|
|
63
|
+
### Artifact-Wide AI Readability
|
|
64
|
+
|
|
65
|
+
- Every generated natural-language value must be a standalone domain statement. This applies to all AI-visible fields and sections in project briefs and drafts, project instruction files, conventions, infrastructure, architecture decisions, generated layer rules, appendices, comments, brainstorm summaries, quoted evidence, and parentheticals.
|
|
66
|
+
- Machine metadata such as schema markers, stable IDs, statuses, enums, and timestamps is exempt. Natural-language metadata is not exempt.
|
|
67
|
+
- Never emit dialogue-role or chronology labels such as `user said`, `user answered`, `original request`, `this round`, `previous discussion`, `as discussed earlier`, `用户本轮回答`, or `如前面讨论`. Never emit planning question IDs, answer tokens, planning-option recommendation markers, checkpoint provenance, or raw internal answer-map entries as domain content.
|
|
68
|
+
- Internal Q&A may drive derivation, but final writers render complete product or technical meaning. Quotes are allowed only as independently intelligible source evidence, never as planning-turn provenance.
|
|
69
|
+
|
|
63
70
|
### Conversational Context Normalization
|
|
64
71
|
|
|
65
72
|
- Never persist standalone option labels such as `A`, `B`, `C`, `方案A`, or `方案B`.
|
|
66
|
-
- Expand each selected option into complete meaning
|
|
73
|
+
- Expand each selected option into complete decision meaning. Preserve substantive user rationale and constraints in durable prose at matching detail.
|
|
74
|
+
- Do not emit transcript annotations such as `(original response: "...")` in final app-planning artifacts. Bare option labels and relative shorthand are not independently intelligible and materially useful exact wording.
|
|
67
75
|
- Resolve `上面`, `这个`, `按推荐走`, `同前`, `继续这样`, `用刚才的方案`, `same as above`, or `go with your recommendation` only when there is one provable antecedent. If multiple antecedents are plausible, ask the user for clarification; never guess.
|
|
68
|
-
-
|
|
76
|
+
- Treat `所有问题都按你的推荐处理`, `全部按照推荐`, `use all recommendations`, and equivalent blanket recommendation approval as conversational authorization. Apply the concrete accepted defaults, then omit the approval; never repeat it once per accepted recommendation.
|
|
69
77
|
- Do not present rejected alternatives as active decisions. Include one only when it defines a necessary non-goal or compatibility boundary.
|
|
70
|
-
- Preserve detailed user requirements at matching detail; normalization must not simplify away substantive product, infrastructure, architecture, or development rules.
|
|
78
|
+
- Preserve detailed user requirements at matching detail; normalization must not simplify away substantive product, infrastructure, architecture, or development rules. Retain an exact excerpt only when the wording itself is independently intelligible and materially useful.
|
|
71
79
|
|
|
72
80
|
### Reference Material Handling
|
|
73
81
|
|
|
74
|
-
- Every retained
|
|
75
|
-
-
|
|
76
|
-
-
|
|
82
|
+
- Every retained stable code, configuration, machine-consumed interface, or URL reference must be purpose-tagged: say why it matters and what a downstream AI should inspect. This applies to paths and URLs in all app-planning artifacts.
|
|
83
|
+
- Do not retain non-code planning-source paths such as `.agents/brainstorm/<note>.md`, uploaded-document paths, screenshot paths, or ad-hoc log paths in durable app artifacts. Instead, copy or normalize the task-relevant content into the brief, conventions, architecture decisions, or rules; the artifact must not depend on that source file still existing.
|
|
84
|
+
- Good: `src/auth/ — inspect identity-provider and session ownership`; Bad: `.agents/brainstorm/design.md — inspect accepted architecture`. For the latter, write the accepted architecture, rationale, constraints, and risks inline and omit the path.
|
|
85
|
+
- For large materials, record purpose, preserve only task-relevant exact excerpts, and move confirmed product or technical decisions into the durable app-planning artifact. Retain a location only when it is a stable execution-time source of truth.
|
|
77
86
|
- Embed complete large materials only when future sessions cannot access the source and all content is genuinely required.
|
|
78
87
|
|
|
79
88
|
### Good and Bad Normalization Examples
|
|
80
89
|
|
|
81
90
|
- Bad: `[ ] 使用方案B`, `按推荐走`, `use option A`, `same as above`, or `go with your recommendation`.
|
|
82
|
-
-
|
|
83
|
-
- Good: `
|
|
84
|
-
-
|
|
91
|
+
- Bad: `[ ] Authentication uses organization-scoped OAuth with server-side sessions (original response: "方案B")`; the decision is complete, but the transcript annotation still requires an unseen option list.
|
|
92
|
+
- Good: `[ ] Authentication uses organization-scoped OAuth with server-side sessions`.
|
|
93
|
+
- Good: `Deployment target: managed container service with PostgreSQL in the same region`.
|
|
94
|
+
- Bad: storing or repeating `全部按照推荐` / `所有问题都按你的推荐处理` as project conventions; they are conversational authorization.
|
|
85
95
|
- Bad: attaching an entire infrastructure proposal while recording only `follow this`. Good: retain a purpose-tagged proposal section and task-relevant exact excerpts, then name the actual network, database, and deployment decisions.
|
|
86
96
|
|
|
87
97
|
## Pre-Generation Headless Context Completeness Gate
|
|
88
98
|
|
|
89
|
-
Before any final app-planning writer runs, review every new or changed brief line, convention, infrastructure decision, architecture decision, and rule as if the reviewer has never seen the planning conversation. Preserve unchanged historical content; do not bulk-rewrite it. From the proposed artifact alone, answer:
|
|
99
|
+
Before any final app-planning writer runs, review every new or changed brief line, convention, infrastructure decision, architecture decision, and rule as if the reviewer has never seen the planning conversation. Preserve unchanged historical content; do not bulk-rewrite it. First scan all AI-visible fields and sections: every generated natural-language value must be session-independent, with no dialogue-role labels, question IDs, answer tokens, planning-option recommendation markers, checkpoint provenance, raw answer-map content, or transient planning-source dependencies. From the proposed artifact alone, answer:
|
|
90
100
|
|
|
91
101
|
1. What exact product outcome or technical decision does this line record?
|
|
92
102
|
2. What exists today and what desired state or constraint applies?
|
|
@@ -120,7 +130,7 @@ Do NOT use this skill when:
|
|
|
120
130
|
- During brainstorm Phase C → also read `${SKILL_DIR}/references/red-team-checklist.md`
|
|
121
131
|
|
|
122
132
|
3. **Project conventions discovery** — after Intent Confirmation, before brainstorm or vision work:
|
|
123
|
-
→
|
|
133
|
+
→ Resolve the current host's project instruction target through **Current-host project instruction target resolution**, then read that exact target and check for a `### Project Conventions` section
|
|
124
134
|
→ If section exists and covers the project well → skip silently
|
|
125
135
|
→ If section is missing or incomplete → run the **AI-driven convention discovery** below:
|
|
126
136
|
|
|
@@ -128,18 +138,18 @@ Do NOT use this skill when:
|
|
|
128
138
|
|
|
129
139
|
→ Read `${SKILL_DIR}/references/project-conventions-discovery.md` for the full AI-driven discovery procedure (Analyze → Reason → Present via AskUserQuestion).
|
|
130
140
|
|
|
131
|
-
→
|
|
141
|
+
→ Normalize each proposed convention into a standalone domain rule, run the Pre-Generation Headless Context Completeness Gate, then save only passing convention meanings to the resolved project instruction target under `### Project Conventions` (one bullet per convention; no raw answers or planning provenance)
|
|
132
142
|
→ Output format will naturally vary per project — that is the intended behavior
|
|
133
143
|
|
|
134
144
|
**Infrastructure Convention Discovery (Database + Deployment)**
|
|
135
145
|
|
|
136
|
-
After project conventions are captured, check the project instruction
|
|
146
|
+
After project conventions are captured, check the resolved project instruction target for `### Infrastructure` section status. Read `${SKILL_DIR}/references/infrastructure-convention-discovery.md` for the full database (6 topics — table naming, field naming, migrations, primary keys, indexes, environment separation), deployment (4 topics — target refinement, existing infrastructure, AI-assisted deploy, env var management), and cloud services (2-round AskUserQuestion) inquiry procedures. Follow the inquiry flow there — use `AskUserQuestion` for each batch. Each question MUST include a "Skip — decide later" option.
|
|
137
147
|
|
|
138
|
-
After inquiry, run the Pre-Generation Headless Context Completeness Gate on every proposed infrastructure decision, then update the `### Infrastructure` section in the project instruction
|
|
148
|
+
After inquiry, run the Pre-Generation Headless Context Completeness Gate on every proposed infrastructure decision, then update the `### Infrastructure` section in the resolved project instruction target with passing content (see reference file for full output format). Items still marked "Skip — decide later" remain as `<!-- [topic]: deferred -->` for `prizmkit-deploy` to pick up later.
|
|
139
149
|
|
|
140
150
|
4. **Project brief accumulation** — throughout all interactive phases:
|
|
141
151
|
→ Read `${SKILL_DIR}/references/project-brief-guide.md` for template and rules
|
|
142
|
-
→
|
|
152
|
+
→ After each meaningful response containing business intent, constraints, or design decisions, normalize its substantive meaning into standalone domain prose before updating the in-memory or `.prizmkit/plans/project-brief.draft.md` source; never store the raw turn or answer token; do not write the final `.prizmkit/plans/project-brief.md` until the Pre-Generation Headless Context Completeness Gate passes
|
|
143
153
|
|
|
144
154
|
## Rules Configuration (after Infrastructure)
|
|
145
155
|
|
|
@@ -158,8 +168,8 @@ Proceed to Prerequisites and continue the app-planner workflow.
|
|
|
158
168
|
Before questions, check optional context files (never block if absent):
|
|
159
169
|
- `.prizmkit/prizm-docs/root.prizm` (architecture/project context)
|
|
160
170
|
- `.prizmkit/config.json` (existing stack preferences and detected tech stack)
|
|
161
|
-
-
|
|
162
|
-
-
|
|
171
|
+
- Resolved project instruction target `### Project Conventions` section (previously answered project conventions)
|
|
172
|
+
- Resolved project instruction target `### Infrastructure` section (database and deployment config from prizmkit-init or previous app-planner run)
|
|
163
173
|
|
|
164
174
|
**Tech stack auto-population from config.json:**
|
|
165
175
|
- If `.prizmkit/config.json` contains a `tech_stack` object, use it to pre-fill tech assumptions.
|
|
@@ -277,8 +287,8 @@ Checkpoints catch cascading errors early — skipping one means the next phase b
|
|
|
277
287
|
| Checkpoint | Artifact/State | Criteria | Phase |
|
|
278
288
|
|-----------|----------------|----------|-------|
|
|
279
289
|
| **CP-AP-0** | Intent Confirmed | User confirmed session goal (produce / explore) | 1 |
|
|
280
|
-
| **CP-AP-1** | Conventions Checked |
|
|
281
|
-
| **CP-AP-1.5** | Infrastructure Checked |
|
|
290
|
+
| **CP-AP-1** | Conventions Checked | Current-host project instruction target resolved; its `### Project Conventions` section is loaded or asked and up to date | 1 |
|
|
291
|
+
| **CP-AP-1.5** | Infrastructure Checked | Resolved project instruction target `### Infrastructure` section addressed — database, deployment **and cloud services** each configured or explicitly deferred | 1-2 |
|
|
282
292
|
| **CP-AP-1.6** | Rules Configured | For each detected layer (from config.json or self-detection), rules file exists in `.prizmkit/rules/` or user explicitly skipped. `root.prizm` `RULES:` pointer up-to-date. | 2 |
|
|
283
293
|
| **CP-AP-2** | Vision Summary | Goal/users/differentiators confirmed by user. For brownfield: existing purpose confirmed or refined. | 1-2 |
|
|
284
294
|
| **CP-AP-3** | Frontend Design Evaluated | For frontend projects: checked for existing UI/UX design system; user was asked if missing. **Auto-pass** for backend-only or non-UI projects. | 2 |
|
|
@@ -289,15 +299,13 @@ Checkpoints catch cascading errors early — skipping one means the next phase b
|
|
|
289
299
|
|
|
290
300
|
## Generated App-Plan Review Gate
|
|
291
301
|
|
|
292
|
-
User requirement preserved verbatim: `Add generated-plan review in app-planner also .`
|
|
293
|
-
|
|
294
302
|
Run this gate before any final handoff whenever the current `app-planner` session wrote or rewrote final app-level planning content. In full produce mode this runs after CP-AP-5.5 and the passing content's final writes; in Quick Context Mode it runs after the confirmed `.prizmkit/plans/project-brief.md` write; in conventions, infrastructure, architecture-decision, or rules-only final-write flows it runs after those writes and before the completion summary. This gate reviews generated planning artifacts directly, not implementation diffs.
|
|
295
303
|
|
|
296
304
|
1. **Load the local reference**: read `${SKILL_DIR}/references/generated-plan-review.md` and follow it as the source of truth for app-planner generated content review.
|
|
297
|
-
2. **Read actual planning artifacts directly**: inspect current-session final outputs such as `.prizmkit/plans/project-brief.md`,
|
|
305
|
+
2. **Read actual planning artifacts directly**: inspect current-session final outputs such as `.prizmkit/plans/project-brief.md`, changed sections in the resolved project instruction target, `.prizmkit/rules/<layer>-rules.md`, and `.prizmkit/prizm-docs/root.prizm` `RULES:` pointer line. Do not rely on `git status`, `git diff`, or `git diff --cached`, because `.prizmkit` planning artifacts are often gitignored or untracked.
|
|
298
306
|
3. **Scope to new/changed app-planning content**: compare against pre-session snapshots or in-memory drafts when available. Preserve unchanged historical brief items, instruction-file sections, rules files, and Prizm doc content. For explore-only sessions, draft-save exits, or flows with no new final planning content, report: `Local generated-plan review: not applicable — no new final planning content written.`
|
|
299
307
|
4. **Run the local checklist and fresh-session simulation** from the reference: project brief completeness, consistency of conventions/infrastructure/architecture decisions, rules pointer consistency, normalization of selected decisions, purpose-tagged references, app-planner writable-boundary compliance, and downstream `feature-planner` readiness to produce `.prizmkit/plans/feature-list.json` without guessing or seeing the original conversation.
|
|
300
|
-
5. **Apply accepted fixes through the source/writer path**: project brief fixes go through the draft/checklist source, instruction-file section fixes go through the
|
|
308
|
+
5. **Apply accepted fixes through the source/writer path**: project brief fixes go through the draft/checklist source, instruction-file section fixes go through the resolved project instruction target's section source with user confirmation when changing approved wording, rules fixes re-render from rules configuration answers/templates when available, and `root.prizm` fixes are limited to the `RULES:` pointer line.
|
|
301
309
|
6. **Recheck changed sections directly** after every accepted fix batch.
|
|
302
310
|
7. **Report CP-AP-6** in the completion summary: include local generated-plan review verdict, reviewed app-planning artifacts/sections, accepted fixes (or "none"), and final writer/validation result.
|
|
303
311
|
|
|
@@ -306,8 +314,8 @@ Run this gate before any final handoff whenever the current `app-planner` sessio
|
|
|
306
314
|
After Phase 2, if framework-shaping architecture decisions emerged during planning (tech stack, communication patterns, data model strategies — not individual feature details), read `${SKILL_DIR}/references/architecture-decisions.md` and follow the capture flow. Most sessions will NOT produce architecture decisions — only capture when genuinely impactful.
|
|
307
315
|
|
|
308
316
|
**How it works**:
|
|
309
|
-
1. If decisions are captured → run the Pre-Generation Headless Context Completeness Gate on each decision, then append passing decisions to
|
|
310
|
-
2. Downstream skills (feature-planner, prizmkit-plan, etc.) read
|
|
317
|
+
1. If decisions are captured → run the Pre-Generation Headless Context Completeness Gate on each decision, then append passing decisions to the resolved project instruction target under `### Architecture Decisions`
|
|
318
|
+
2. Downstream skills (feature-planner, prizmkit-plan, etc.) read the current host's project instruction context, so they automatically receive these decisions
|
|
311
319
|
3. Do NOT write architecture decision content directly to `.prizmkit/prizm-docs/root.prizm` — that file is maintained by `prizmkit-prizm-docs` and `prizmkit-retrospective`. (The `RULES:` pointer line is managed by Rules Configuration, not by this section.) If the project needs `.prizmkit/prizm-docs/`, recommend the user run `prizmkit-prizm-docs` init after planning.
|
|
312
320
|
|
|
313
321
|
## Project Brief Accumulation
|
|
@@ -340,10 +348,10 @@ When the session appears to be ending:
|
|
|
340
348
|
After CP-AP-6 passes or is reported not applicable, present a summary and end the session:
|
|
341
349
|
|
|
342
350
|
1. **Summary** (as text): List all project-level artifacts produced:
|
|
343
|
-
- Project conventions →
|
|
344
|
-
- Infrastructure config →
|
|
351
|
+
- Project conventions → resolved project instruction target `### Project Conventions`
|
|
352
|
+
- Infrastructure config → resolved project instruction target `### Infrastructure` (database conventions + deployment config)
|
|
345
353
|
- Tech stack assumptions → captured in `.prizmkit/plans/project-brief.md` and reused from `.prizmkit/config.json` when it already exists
|
|
346
|
-
- Architecture decisions (if any) →
|
|
354
|
+
- Architecture decisions (if any) → resolved project instruction target `### Architecture Decisions`
|
|
347
355
|
- Dev rules (if configured) → `.prizmkit/rules/<layer>-rules.md` (with `root.prizm` `RULES:` pointer)
|
|
348
356
|
- Project brief → `.prizmkit/plans/project-brief.md`
|
|
349
357
|
- Local generated-plan review → verdict, reviewed app-planning artifacts/sections, accepted fixes (or "none"), and final writer/validation result
|
|
@@ -24,15 +24,9 @@ After Phase 2 (Confirm constraints and tech assumptions), before Phase 3 (Captur
|
|
|
24
24
|
|
|
25
25
|
## How to Capture
|
|
26
26
|
|
|
27
|
-
1. **
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- `claude` → append to `CLAUDE.md`
|
|
31
|
-
- `codebuddy` → append to `CODEBUDDY.md`
|
|
32
|
-
- `all` → append to all three files.
|
|
33
|
-
- If no platform can be determined, skip (no project instruction file).
|
|
34
|
-
|
|
35
|
-
2. **Check for existing section** — read the target file and look for `### Architecture Decisions` heading:
|
|
27
|
+
1. **Use the resolved project instruction target** — consume the exact current-host target already selected by `SKILL.md` before project-convention discovery. Do not redetect the host, reinterpret manifest identity, or choose from named platform files inside this reference. If the target was not resolved, return to the parent Skill's current-host resolution rule; ask the user when evidence is missing or ambiguous rather than guessing or silently skipping.
|
|
28
|
+
|
|
29
|
+
2. **Check for existing section** — read the resolved target and look for `### Architecture Decisions` heading:
|
|
36
30
|
- If heading exists → append new entries below it (avoid duplicates with existing entries)
|
|
37
31
|
- If heading does not exist → create it at the end of the file
|
|
38
32
|
|
|
@@ -44,7 +38,7 @@ After Phase 2 (Confirm constraints and tech assumptions), before Phase 3 (Captur
|
|
|
44
38
|
- Monorepo structure: shared types between frontend and backend
|
|
45
39
|
```
|
|
46
40
|
|
|
47
|
-
4. **User confirmation** — before writing, show the collected decisions and ask:
|
|
48
|
-
> "These architecture decisions were identified during planning. Record them
|
|
41
|
+
4. **User confirmation** — before writing, show the collected decisions and the exact resolved target path, then ask:
|
|
42
|
+
> "These architecture decisions were identified during planning. Record them in `<resolved-project-instruction-target>`? (Y/n)"
|
|
49
43
|
|
|
50
44
|
If user declines, skip without further prompting.
|
|
@@ -75,7 +75,7 @@ Produce a structured summary:
|
|
|
75
75
|
[2-3 approaches with pros/cons/effort]
|
|
76
76
|
|
|
77
77
|
## Selected Approach
|
|
78
|
-
[
|
|
78
|
+
[Complete selected approach and rationale, written as standalone design context without answer tokens or dialogue provenance]
|
|
79
79
|
|
|
80
80
|
## Assumptions
|
|
81
81
|
[All assumptions explicitly listed]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Create distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics.
|
|
4
4
|
|
|
5
|
-
**app-planner context**: In the planning phase, use this guide to establish **design direction decisions** (aesthetic tone, typography approach, color strategy, layout philosophy). Do NOT produce CSS, code, or implementation artifacts — capture the design direction
|
|
5
|
+
**app-planner context**: In the planning phase, use this guide to establish **design direction decisions** (aesthetic tone, typography approach, color strategy, layout philosophy). Do NOT produce CSS, code, or implementation artifacts — capture the design direction in the current session's resolved project instruction target selected by `SKILL.md`. Do not redetect a platform or choose a named file in this reference. Downstream implementation skills will consume these decisions when building features.
|
|
6
6
|
|
|
7
7
|
Load this guide **only when the feature involves frontend/UI work**. Skip for backend-only or infrastructure features.
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ Planning artifacts may be gitignored, untracked, or absent from staged and unsta
|
|
|
14
14
|
|
|
15
15
|
- Project brief: `.prizmkit/plans/project-brief.md`
|
|
16
16
|
- Draft brief when present: `.prizmkit/plans/project-brief.draft.md`
|
|
17
|
-
-
|
|
17
|
+
- The exact project instruction target selected for the current session, limited to sections written or changed by app-planner
|
|
18
18
|
- Generated rule files: `.prizmkit/rules/<layer>-rules.md`
|
|
19
19
|
- Prizm docs root pointer: `.prizmkit/prizm-docs/root.prizm` `RULES:` line only
|
|
20
20
|
- In-memory answers, draft brief data, rules configuration answers, or section snapshots captured before writes
|
|
@@ -32,7 +32,7 @@ Do not rely on `git status`, `git diff`, or `git diff --cached` to decide whethe
|
|
|
32
32
|
## Source-of-Truth Map
|
|
33
33
|
|
|
34
34
|
- `project-brief.md` fixes go through the draft/checklist project brief source representation described in `project-brief-guide.md`, then rewrite the final brief through the existing project brief writer path.
|
|
35
|
-
- Project conventions, infrastructure, and architecture decisions are source sections in
|
|
35
|
+
- Project conventions, infrastructure, frontend design direction, and architecture decisions are source sections in the exact project instruction target selected for the current session. If a fix changes user-approved wording or meaning, ask for user confirmation before rewriting.
|
|
36
36
|
- `.prizmkit/rules/<layer>-rules.md` fixes should re-render from the rules configuration answers and template inputs when available. If no structured source remains, update the source rule section explicitly and report that source path.
|
|
37
37
|
- `root.prizm` fixes are limited to correcting or adding the `RULES:` pointer line; do not rewrite unrelated root content.
|
|
38
38
|
|
|
@@ -44,16 +44,17 @@ For every reviewed app-planning artifact or section, check:
|
|
|
44
44
|
- Consistency among conventions, infrastructure, architecture decisions, and project brief content
|
|
45
45
|
- Infrastructure completeness or explicit deferral for database, deployment, and cloud services topics when those flows ran
|
|
46
46
|
- Rules pointer consistency: generated `.prizmkit/rules/<layer>-rules.md` files are referenced by the `root.prizm` `RULES:` line when rules were configured
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
47
|
+
- Substantive user meaning and detail preservation at matching detail after conversational normalization in project brief ideas, conventions, infrastructure notes, architecture decisions, and rules
|
|
48
|
+
- Artifact-wide readability: every generated natural-language value across all AI-visible fields and sections—including briefs/drafts, instruction sections, generated rules, appendices, comments, brainstorm summaries, quoted evidence, and parentheticals—is a standalone domain statement without dialogue-role labels, question IDs, answer tokens, planning-option recommendation markers, raw answer-map content, or planning provenance
|
|
49
|
+
- Every selected product or technical decision is expressed by complete meaning rather than `A`, `B`, `C`, `方案A`, `方案B`, or another unseen option label; substantive rationale remains durable, while opaque transcript provenance is absent
|
|
50
|
+
- Purpose-tagged stable code, configuration, machine-consumed interface, and URL references; non-code planning/evidence source paths are replaced by inline task-relevant decisions and excerpts, and large materials are bounded rather than injected in full
|
|
50
51
|
- Conversational authorization is excluded when it controls planning but does not constrain implementation; rejected alternatives appear only as necessary non-goals
|
|
51
52
|
- Downstream readiness: `feature-planner` has enough context to produce `.prizmkit/plans/feature-list.json` without guessing core app purpose, stack, constraints, or implementation conventions
|
|
52
53
|
- No implementation/scaffolding actions are introduced by the app plan; outputs stay within app-planner's writable boundary
|
|
53
54
|
|
|
54
55
|
## Headless Context Completeness Gate
|
|
55
56
|
|
|
56
|
-
Repeat the pre-generation simulation for every reviewed new or changed app-planning line or section as if the reviewer has never seen the planning conversation. From the artifact alone, answer:
|
|
57
|
+
Repeat the pre-generation simulation for every reviewed new or changed app-planning line or section as if the reviewer has never seen the planning conversation. First scan all AI-visible fields and sections; machine metadata is exempt, but every generated natural-language value must be session-independent. From the artifact alone, answer:
|
|
57
58
|
|
|
58
59
|
1. What exact product outcome or technical decision does this content record?
|
|
59
60
|
2. What exists today and what desired state or constraint applies?
|
|
@@ -64,20 +65,22 @@ Repeat the pre-generation simulation for every reviewed new or changed app-plann
|
|
|
64
65
|
7. Does any phrase require an unseen earlier question, recommendation, or option list?
|
|
65
66
|
8. Do quoted source materials agree with the final task decision?
|
|
66
67
|
|
|
67
|
-
Return `NEEDS_FIXES` if any answer is missing, ambiguous, or dependent on shorthand such as `方案B`, `按推荐走`, `use option A`, `same as above`, or `go with your recommendation`.
|
|
68
|
+
Return `NEEDS_FIXES` if any answer is missing, ambiguous, or dependent on shorthand such as `方案B`, `按推荐走`, `use option A`, `same as above`, or `go with your recommendation`. Parenthetical notes are part of the artifact and must pass the same fresh-session test. Do not emit transcript annotations such as `(original response: "...")`; raw shorthand is not independently intelligible and materially useful. Ask the user for clarification when there is not one provable antecedent. Treat `所有问题都按你的推荐处理`, `全部按照推荐`, `use all recommendations`, and equivalent blanket recommendation approval as conversational authorization: write the concrete accepted decisions, omit the raw approval, and never repeat it once per accepted recommendation. Do not retain non-code planning-source paths such as `.agents/brainstorm/<note>.md`; copy or normalize the task-relevant content into the durable artifact, which must not depend on that source file still existing.
|
|
68
69
|
|
|
69
70
|
Apply this stricter gate prospectively to new or changed content and preserve unchanged historical app-planning content.
|
|
70
71
|
|
|
71
72
|
### Good and Bad Review Examples
|
|
72
73
|
|
|
73
|
-
- Bad: `[ ] 使用方案B
|
|
74
|
+
- Bad: `[ ] 使用方案B` or `[ ] Authentication uses organization-scoped OAuth with server-side sessions (original response: "方案B")`; Good: `[ ] Authentication uses organization-scoped OAuth with server-side sessions`.
|
|
75
|
+
- Bad: repeating `(original response: "全部按照推荐")` after each convention; Good: omit the blanket approval after normalizing every accepted convention into concrete meaning.
|
|
74
76
|
- Bad: a bare architecture URL; Good: `Architecture RFC §5 — inspect identity ownership and session boundaries`, plus only task-relevant exact excerpts.
|
|
77
|
+
- Bad: `.agents/brainstorm/design.md — inspect accepted risks` in a final brief; Good: write the accepted risks and resulting constraints inline, then omit the transient planning path.
|
|
75
78
|
- Bad: a rejected serverless alternative listed as an active infrastructure decision; Good: include it only as a non-goal when preserving the selected container deployment boundary requires that fact.
|
|
76
79
|
|
|
77
80
|
## Fix Loop
|
|
78
81
|
|
|
79
82
|
1. Present findings with artifact path, section name, severity, evidence, and suggested source change.
|
|
80
|
-
2. Accept only findings that improve planner correctness, consistency,
|
|
83
|
+
2. Accept only findings that improve planner correctness, consistency, substantive meaning preservation, or downstream feature-planner readiness.
|
|
81
84
|
3. Apply accepted fixes to the source representation first: brief draft/checklist, instruction-file section source, rules answer/template source, or `root.prizm` `RULES:` pointer source.
|
|
82
85
|
4. Regenerate or rewrite final artifacts through the same writer path used by app-planner. Do not hand-patch final artifacts as a shortcut when a draft/source representation exists.
|
|
83
86
|
5. Re-read the changed final artifacts directly and repeat the Headless Context Completeness Gate only for changed sections.
|
|
@@ -4,7 +4,7 @@ Detailed Q&A flows for database, deployment, and cloud services conventions duri
|
|
|
4
4
|
|
|
5
5
|
## Infrastructure Section Check
|
|
6
6
|
|
|
7
|
-
Check
|
|
7
|
+
Check the current session's resolved project instruction target for a `### Infrastructure` section. Consume the exact target selected by `SKILL.md`; do not redetect a platform or choose a named file in this reference:
|
|
8
8
|
|
|
9
9
|
- If `### Infrastructure` section does not exist → this project was not initialized with prizmkit-init's Phase 4.6. Treat as if both database and deployment are undecided — run full inquiry below.
|
|
10
10
|
- If `<!-- infrastructure: deferred -->` → user explicitly skipped at init time. Ask: "During project init you deferred infrastructure decisions. Would you like to configure them now?" (options: "Yes — configure now (Recommended)", "Skip — decide later")
|
|
@@ -105,4 +105,4 @@ After infrastructure inquiry, update the `### Infrastructure` section in the pro
|
|
|
105
105
|
<!-- If user picked "None" in Round 1, replace this block with: cloud-services: none -->
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
Items still marked "Skip — decide later" remain as `<!-- [topic]: deferred -->` in the
|
|
108
|
+
Items still marked "Skip — decide later" remain as `<!-- [topic]: deferred -->` in the resolved project instruction target for `prizmkit-deploy` to pick up later.
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
- Bad: `[x] User authentication -> src/auth/, src/middleware/auth.ts` because neither the selected behavior nor path purpose is clear
|
|
34
34
|
- This lets future AI sessions locate the implementation without guessing or broad rescanning
|
|
35
35
|
7. **Complete decision meaning**: Every line names the actual product or technical decision. Never write only `A`, `B`, `C`, `方案A`, `方案B`, `按推荐走`, `use option A`, `same as above`, or `go with your recommendation`.
|
|
36
|
-
8. **
|
|
36
|
+
8. **Artifact-safe normalization**: Every natural-language line, comment, quote, and parenthetical is written for an AI with no planning-session access. Preserve substantive rationale and constraints in durable prose. Do not emit transcript annotations, dialogue-role/chronology labels, question IDs, answer tokens, planning-option recommendation markers, or raw answer-map content; bare selection tokens are not independently intelligible and materially useful exact wording.
|
|
37
37
|
9. **Ambiguous references**: Resolve shorthand only with one provable antecedent. Otherwise ask the user for clarification; never guess.
|
|
38
|
-
10. **Conversational authorization**:
|
|
39
|
-
11. **References**:
|
|
38
|
+
10. **Conversational authorization**: Treat `所有问题都按你的推荐处理`, `全部按照推荐`, `use all recommendations`, and equivalent blanket recommendation approval as dialogue control. Write each concrete accepted default, omit the raw approval, and never repeat it once per accepted recommendation.
|
|
39
|
+
11. **References**: Purpose-tag stable code, configuration, machine-consumed interface, and URL references. Do not retain non-code planning-source paths such as `.agents/brainstorm/<note>.md`, uploads, screenshots, or ad-hoc logs in the brief; copy or normalize the task-relevant content inline so the brief must not depend on that source file still existing. For large materials, retain purpose and task-relevant exact excerpts rather than complete source content, and retain a location only when it is a stable execution-time source of truth.
|
|
40
40
|
12. **Alternatives**: Do not present rejected alternatives as active brief items; include them only as necessary non-goals.
|
|
41
41
|
|
|
42
42
|
## Brownfield Init
|
|
@@ -93,9 +93,13 @@ Once all criteria are met:
|
|
|
93
93
|
### Good and Bad Brief Examples
|
|
94
94
|
|
|
95
95
|
- Bad: `[ ] 使用方案B`.
|
|
96
|
-
-
|
|
96
|
+
- Bad: `[ ] Authentication uses organization-scoped OAuth with server-side sessions (original response: "方案B")`; the parenthetical still depends on an unseen option list.
|
|
97
|
+
- Good: `[ ] Authentication uses organization-scoped OAuth with server-side sessions`.
|
|
98
|
+
- Bad: repeating `(original response: "全部按照推荐")` on accepted conventions; omit the blanket approval after writing each convention's concrete meaning.
|
|
97
99
|
- Bad: `[ ] same as above` when several prior decisions exist.
|
|
98
100
|
- Good: ask the user which decision applies, then record its complete meaning.
|
|
99
101
|
- Bad: `[ ] Follow https://example.test/platform-rfc`.
|
|
100
102
|
- Good: `[ ] Deployment uses a managed container service with regional PostgreSQL; Platform RFC §3 — inspect region and failover constraints`.
|
|
103
|
+
- Bad: `[ ] 首期采用通用电商方图;.agents/brainstorm/design.md — inspect accepted risks` because the brief breaks when the planning note is deleted.
|
|
104
|
+
- Good: state the accepted dimensions, deferred platform templates, and accepted risks directly in the brief, with no brainstorm-file path.
|
|
101
105
|
|
|
@@ -55,5 +55,5 @@ Then ask in text: "Anything I missed that you'd like to standardize?" — if the
|
|
|
55
55
|
|
|
56
56
|
## After Discovery
|
|
57
57
|
|
|
58
|
-
→ Save
|
|
58
|
+
→ Save resolved convention meanings to the current session's resolved project instruction target under `### Project Conventions` (one standalone domain rule per bullet). Consume the target selected by `SKILL.md`; do not redetect a platform or choose a named file in this reference. Do not copy raw answers, option labels, recommendation markers, question IDs, or dialogue provenance.
|
|
59
59
|
→ Output format will naturally vary per project — that is the intended behavior
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## Table of Contents
|
|
8
8
|
|
|
9
|
-
- [Phase 2
|
|
9
|
+
- [Phase 2 Normalized Semantic Fill Table](#phase-2-normalized-semantic-fill-table)
|
|
10
10
|
- [Trigger Map](#trigger-map)
|
|
11
11
|
- [Rule Block Definitions](#rule-block-definitions)
|
|
12
12
|
- [Template Placeholder Coverage Self-Check](#template-placeholder-coverage-self-check)
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
## Phase 2
|
|
17
|
+
## Phase 2 Normalized Semantic Fill Table
|
|
18
|
+
|
|
19
|
+
Resolve each selected option or custom reply into the complete semantic value shown by the examples. Never copy raw answer tokens, recommendation markers, question IDs, dialogue labels, or planning chronology into placeholders. The Source column is internal derivation metadata only and never appears in generated rules.
|
|
18
20
|
|
|
19
21
|
| Template Placeholder | Source | Example Fill |
|
|
20
22
|
|---------------------|--------|-------------|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> This file is read on demand by SKILL.md in Phase 2. The AI must strictly follow the group order defined in this file, asking **one group at a time (1–3 questions)**, never dumping all questions at once.
|
|
4
4
|
> For every question, show the user: question number, question text, options, **recommended choice (marked "Recommended")**, and a one-line description.
|
|
5
|
-
> After each
|
|
5
|
+
> After each response, resolve it to the complete option or custom meaning and record that internal-only semantic choice in `answers[Qx]`. Never store raw answer tokens, and never render question IDs or answer-map entries into generated artifacts.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -6,14 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
## Table of Contents
|
|
8
8
|
|
|
9
|
-
- [Phase 2
|
|
9
|
+
- [Phase 2 Normalized Semantic Fill Table](#phase-2-normalized-semantic-fill-table)
|
|
10
10
|
- [Trigger Map](#trigger-map)
|
|
11
11
|
- [Rule Block Definitions](#rule-block-definitions)
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
## Phase 2
|
|
16
|
+
## Phase 2 Normalized Semantic Fill Table
|
|
17
|
+
|
|
18
|
+
Resolve each selected option or custom reply into the complete semantic value shown by the examples. Never copy raw answer tokens, recommendation markers, question IDs, dialogue labels, or planning chronology into placeholders. The Source column is internal derivation metadata only and never appears in generated rules.
|
|
17
19
|
|
|
18
20
|
| Template Placeholder | Source | Example Fill |
|
|
19
21
|
|---------------------|--------|-------------|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> This file is read on demand by SKILL.md in Phase 2. The AI must strictly follow the group order defined in this file, asking **one group at a time (1–3 questions)**, never dumping all questions at once.
|
|
4
4
|
> For every question, show the user: question number, question text, options, **recommended choice (marked "Recommended")**, and a one-line description.
|
|
5
|
-
> After each
|
|
5
|
+
> After each response, resolve it to the complete option or custom meaning and record that internal-only semantic choice in `answers[Qx]`. Never store raw answer tokens, and never render question IDs or answer-map entries into generated artifacts.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
10
10
|
|
|
11
|
-
- [Phase 2
|
|
11
|
+
- [Phase 2 Normalized Semantic Fill Table](#phase-2-normalized-semantic-fill-table)
|
|
12
12
|
- [Trigger Map](#trigger-map)
|
|
13
13
|
- [Rule Block Definitions](#rule-block-definitions)
|
|
14
14
|
- [Template Placeholder Coverage Self-Check Table (Mandatory Check Before Phase 4 Rendering)](#template-placeholder-coverage-self-check-table-mandatory-check-before-phase-4-rendering)
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
## Phase 2
|
|
19
|
+
## Phase 2 Normalized Semantic Fill Table
|
|
20
20
|
|
|
21
|
-
> These placeholders **don't need rule blocks**.
|
|
21
|
+
> These placeholders **don't need rule blocks**. Resolve the selected option or custom reply into the complete semantic value shown by the examples. Never copy raw answer tokens, recommendation markers, question IDs, dialogue labels, or planning chronology into placeholders. The Source column is internal derivation metadata only and never appears in generated rules.
|
|
22
22
|
|
|
23
23
|
| Template Placeholder | Source | Example Fill |
|
|
24
24
|
|---------------------|--------|-------------|
|
|
25
25
|
| `{{ project_name }}` | Phase 0 auto-read from `package.json` `name` field; if unavailable, ask the user | `robot-svc` |
|
|
26
26
|
| `{{ generated_at }}` | Phase 4, AI writes current ISO date | `2026-05-18` |
|
|
27
27
|
| `{{ project_scope }}` | Phase 0 ask user ("Which directories/subprojects does this spec apply to?") | `apps/web, apps/admin` |
|
|
28
|
-
| `{{ design_source }}` | Q8 answer | `
|
|
28
|
+
| `{{ design_source }}` | Q8 answer | `Responsive layout, token, and component constraints extracted into this rules document; transient planning source omitted` |
|
|
29
29
|
| `{{ framework }}` | Q1 answer | `React 18+` |
|
|
30
30
|
| `{{ meta_framework }}` | Q2 answer | `Next.js (App Router)` |
|
|
31
31
|
| `{{ package_manager }}` | Q3 answer | `pnpm` |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> This file is read on demand by SKILL.md in Phase 2. The AI must strictly follow the group order defined in this file, asking **one group at a time (1–5 questions)**, never dumping all questions at once.
|
|
4
4
|
> For every question, show the user: question number, question text, options, **recommended choice (marked "Recommended")**, and a one-line description.
|
|
5
|
-
> After each
|
|
5
|
+
> After each response, resolve it to the complete option or custom meaning and record that internal-only semantic choice in `answers[Qx]`. Never store raw answer tokens, and never render question IDs or answer-map entries into generated artifacts.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -153,13 +153,13 @@ Total: 25 questions.
|
|
|
153
153
|
|
|
154
154
|
## G4 — Design System
|
|
155
155
|
|
|
156
|
-
### Q8. Primary Design/Mockup
|
|
156
|
+
### Q8. Primary Design/Mockup Basis
|
|
157
157
|
- **Options**:
|
|
158
|
-
- A) Existing HTML prototype
|
|
159
|
-
- B) Existing Figma
|
|
160
|
-
- C) Other
|
|
158
|
+
- A) Existing HTML prototype committed as a stable project artifact
|
|
159
|
+
- B) Existing Figma design with a stable accessible URL
|
|
160
|
+
- C) Other stable execution-time design source
|
|
161
161
|
- D) None, starting from scratch
|
|
162
|
-
- **Note**: If
|
|
162
|
+
- **Note**: If a source is transient—such as a brainstorm note, upload path, screenshot path, or temporary directory—extract its relevant layout, token, component, and interaction constraints into the generated rules and omit the path. Retain only purpose-tagged stable code/interface paths or URLs that the execution AI must inspect. D triggers a "recommend doing a style direction first" hint.
|
|
163
163
|
- **Maps to**: `{{ design_source }}` (document header metadata)
|
|
164
164
|
|
|
165
165
|
### Q9. Token Naming Layers
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> This document was generated by the `frontend-rules` skill on {{ generated_at }}
|
|
4
4
|
> Scope: {{ project_scope }}
|
|
5
|
-
> Design
|
|
5
|
+
> Design basis: {{ design_source }}
|
|
6
6
|
> Audience: All human developers + all AI coding assistants on this project
|
|
7
7
|
>
|
|
8
8
|
> **Usage**:
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## Table of Contents
|
|
8
8
|
|
|
9
|
-
- [Phase 2
|
|
9
|
+
- [Phase 2 Normalized Semantic Fill Table](#phase-2-normalized-semantic-fill-table)
|
|
10
10
|
- [Trigger Map](#trigger-map)
|
|
11
11
|
- [Rule Block Definitions](#rule-block-definitions)
|
|
12
12
|
- [Template Placeholder Coverage Self-Check](#template-placeholder-coverage-self-check)
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
## Phase 2
|
|
17
|
+
## Phase 2 Normalized Semantic Fill Table
|
|
18
|
+
|
|
19
|
+
Resolve each selected option or custom reply into the complete semantic value shown by the examples. Never copy raw answer tokens, recommendation markers, question IDs, dialogue labels, or planning chronology into placeholders. The Source column is internal derivation metadata only and never appears in generated rules.
|
|
18
20
|
|
|
19
21
|
| Template Placeholder | Source | Example Fill |
|
|
20
22
|
|---------------------|--------|-------------|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> This file is read on demand by SKILL.md in Phase 2. The AI must strictly follow the group order defined in this file, asking **one group at a time (1–3 questions)**, never dumping all questions at once.
|
|
4
4
|
> For every question, show the user: question number, question text, options, **recommended choice (marked "Recommended")**, and a one-line description.
|
|
5
|
-
> After each
|
|
5
|
+
> After each response, resolve it to the complete option or custom meaning and record that internal-only semantic choice in `answers[Qx]`. Never store raw answer tokens, and never render question IDs or answer-map entries into generated artifacts.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|