@nklisch/pi-agile-workflow 0.15.3 → 0.16.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.
Files changed (41) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +8 -0
  4. package/docs/ARCHITECTURE.md +117 -65
  5. package/docs/PRINCIPLES.md +84 -18
  6. package/docs/SPEC.md +70 -2
  7. package/docs/VISION.md +33 -12
  8. package/hooks/scripts/prompt-context.py +7 -1
  9. package/hooks/scripts/test_prompt_context.py +16 -0
  10. package/package.json +1 -1
  11. package/scripts/tests/convert-content-integrity.test.sh +4 -4
  12. package/scripts/tests/convert-review-weight.test.sh +61 -0
  13. package/scripts/work-view.sh +1 -1
  14. package/skills/autopilot/SKILL.md +138 -91
  15. package/skills/convert/SKILL.md +55 -11
  16. package/skills/epic-design/SKILL.md +37 -70
  17. package/skills/feature-design/SKILL.md +52 -68
  18. package/skills/fix/SKILL.md +52 -34
  19. package/skills/gate-cruft/SKILL.md +69 -24
  20. package/skills/gate-docs/SKILL.md +12 -5
  21. package/skills/gate-patterns/SKILL.md +7 -3
  22. package/skills/gate-refactor/SKILL.md +18 -6
  23. package/skills/gate-security/SKILL.md +16 -7
  24. package/skills/gate-tests/SKILL.md +86 -71
  25. package/skills/implement/SKILL.md +79 -58
  26. package/skills/implement-orchestrator/SKILL.md +274 -587
  27. package/skills/perf-design/SKILL.md +11 -12
  28. package/skills/principles/SKILL.md +175 -379
  29. package/skills/principles/references/advisory-review.md +76 -0
  30. package/skills/principles/references/code-design.md +164 -0
  31. package/skills/principles/references/models.md +42 -63
  32. package/skills/prose-author/SKILL.md +9 -4
  33. package/skills/refactor-design/SKILL.md +26 -17
  34. package/skills/review/SKILL.md +169 -64
  35. package/skills/review/references/substrate-side-effects.md +17 -10
  36. package/skills/scope/SKILL.md +20 -7
  37. package/work-view/crates/cli/.work-view-version +1 -1
  38. package/work-view/dist/aarch64-apple-darwin/work-view +0 -0
  39. package/work-view/dist/aarch64-unknown-linux-musl/work-view +0 -0
  40. package/work-view/dist/x86_64-apple-darwin/work-view +0 -0
  41. package/work-view/dist/x86_64-unknown-linux-musl/work-view +0 -0
@@ -67,8 +67,8 @@ Pick the **top 3-5** entry points most likely to dominate runtime. Heuristics:
67
67
  on critical user paths, called per-request or per-event, high call count from
68
68
  logs/tests, known historically slow, contain nested loops or I/O.
69
69
 
70
- If confidence is low about which to pick, ask via `structured question tool` (single
71
- multi-select question). Log the picks.
70
+ If confidence is low, apply `principles/SKILL.md` Part III. Candidate selection
71
+ is normally reversible: choose the best-supported paths and log the rationale.
72
72
 
73
73
  **Cap the scan.** Never profile every function in the codebase.
74
74
 
@@ -112,14 +112,13 @@ drafting features. Iterate over the target set:
112
112
 
113
113
  1. Read the feature; skip if not `[perf]`-tagged or not at `stage: drafting`
114
114
  2. Light ground (foundation docs + AGENTS.md / CLAUDE.md + existing benchmarks)
115
- 3. Surface strategic ambiguities specific to perf (e.g., "what target
116
- scenario?", "current vs desired measured throughput?", "target hardware?",
117
- "acceptable memory or layout tradeoff for speed?"). Use structured question tool.
115
+ 3. Use the structured question tool for strategic performance ambiguities such
116
+ as target scenario, success threshold, hardware, or resource trade-offs.
118
117
  4. Capture answers under `## Design decisions` in the feature body
119
118
  5. Do NOT design or advance stage
120
119
  6. Commit per feature: `perf-design --only-questions: <id>`
121
120
 
122
- Requires interactive mode; refuse to run under an active autopilot run or goal.
121
+ Requires interactive mode; refuse under autopilot. Otherwise defer question and advisory policy to `principles/SKILL.md` Parts III–IV.
123
122
 
124
123
  ## The optimization hierarchy
125
124
 
@@ -173,12 +172,12 @@ Read `.work/active/features/<id>.md`. Confirm:
173
172
  - `stage: drafting`
174
173
  - `tags` includes `perf`
175
174
 
176
- The brief should describe the perf problem and target. If it's vague:
177
- - Autopilot mode: profile the hottest identifiable path, set a "2x current"
178
- default target, log under `## Inferred targets` in the body. Halt only if
179
- there's no measurable scenario at all (no entry point matching the brief).
180
- - Otherwise: ask the user for target scenario, current measured performance,
181
- desired performance.
175
+ The brief should describe the performance problem and target. If it is vague,
176
+ apply `principles/SKILL.md` Part III: infer and log reversible benchmark details,
177
+ but use strategic questions in interactive mode when the workload or success
178
+ threshold changes product direction or an external performance contract. Under
179
+ autopilot, choose the best-supported measurable scenario; halt only when no
180
+ scenario matching the brief can be measured.
182
181
 
183
182
  ### Phase 2: Ground yourself
184
183