mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-21 20:28:24 +08:00
refactor: use INVOKE_SKILL resolver for plan-ceo-review office-hours fallback
Replace inline skill loading prose (read file, skip sections) with
{{INVOKE_SKILL:office-hours}} in the mid-session detection path.
The BENEFITS_FROM prerequisite offer is unchanged (separate use case).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -555,12 +555,27 @@ sure," or is clearly exploring rather than reviewing — offer `/office-hours`:
|
|||||||
Options: A) Yes, run /office-hours now. B) No, keep going.
|
Options: A) Yes, run /office-hours now. B) No, keep going.
|
||||||
If they keep going, proceed normally — no guilt, no re-asking.
|
If they keep going, proceed normally — no guilt, no re-asking.
|
||||||
|
|
||||||
If they choose A: Read the office-hours skill file from disk:
|
If they choose A:
|
||||||
`~/.claude/skills/gstack/office-hours/SKILL.md`
|
|
||||||
|
|
||||||
Follow it inline, skipping these sections (already handled by parent skill):
|
Read the `/office-hours` skill file at `~/.claude/skills/gstack/office-hours/SKILL.md` using the Read tool.
|
||||||
Preamble, AskUserQuestion Format, Completeness Principle, Search Before Building,
|
|
||||||
Contributor Mode, Completion Status Protocol, Telemetry.
|
**If unreadable:** Skip with "Could not load /office-hours — skipping." and continue.
|
||||||
|
|
||||||
|
Follow its instructions from top to bottom, **skipping these sections** (already handled by the parent skill):
|
||||||
|
- Preamble (run first)
|
||||||
|
- AskUserQuestion Format
|
||||||
|
- Completeness Principle — Boil the Lake
|
||||||
|
- Search Before Building
|
||||||
|
- Contributor Mode
|
||||||
|
- Completion Status Protocol
|
||||||
|
- Telemetry (run last)
|
||||||
|
- Step 0: Detect platform and base branch
|
||||||
|
- Review Readiness Dashboard
|
||||||
|
- Plan File Review Report
|
||||||
|
- Prerequisite Skill Offer
|
||||||
|
- Plan Status Footer
|
||||||
|
|
||||||
|
Execute every other section at full depth. When the loaded skill's instructions are complete, continue with the next step below.
|
||||||
|
|
||||||
Note current Step 0A progress so you don't re-ask questions already answered.
|
Note current Step 0A progress so you don't re-ask questions already answered.
|
||||||
After completion, re-run the design doc check and resume the review.
|
After completion, re-run the design doc check and resume the review.
|
||||||
|
|||||||
@@ -143,12 +143,9 @@ sure," or is clearly exploring rather than reviewing — offer `/office-hours`:
|
|||||||
Options: A) Yes, run /office-hours now. B) No, keep going.
|
Options: A) Yes, run /office-hours now. B) No, keep going.
|
||||||
If they keep going, proceed normally — no guilt, no re-asking.
|
If they keep going, proceed normally — no guilt, no re-asking.
|
||||||
|
|
||||||
If they choose A: Read the office-hours skill file from disk:
|
If they choose A:
|
||||||
`~/.claude/skills/gstack/office-hours/SKILL.md`
|
|
||||||
|
|
||||||
Follow it inline, skipping these sections (already handled by parent skill):
|
{{INVOKE_SKILL:office-hours}}
|
||||||
Preamble, AskUserQuestion Format, Completeness Principle, Search Before Building,
|
|
||||||
Contributor Mode, Completion Status Protocol, Telemetry.
|
|
||||||
|
|
||||||
Note current Step 0A progress so you don't re-ask questions already answered.
|
Note current Step 0A progress so you don't re-ask questions already answered.
|
||||||
After completion, re-run the design doc check and resume the review.
|
After completion, re-run the design doc check and resume the review.
|
||||||
|
|||||||
Reference in New Issue
Block a user