skills/domain-upgrade/SKILL.md
Domain stack 的持續升級服務。傾聽用戶需求、收集測試回饋、編排改進。 Trigger: 用戶說「升級」、「改進」、「測試回饋」、「這裡不好用」、「我有新需求」。 Do NOT use when: 要做具體的 skill 修改(用 /skill-edit)。 Do NOT use when: 要新增 skill(用 /skill-gen)。 上游:用戶需求 / 測試回饋。 下游:/skill-edit, /source-convert, /tool-builder, /workflow-edit。 產出:升級後的 domain stack。
npx skillsauth add fagemx/prismstack domain-upgradeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a domain stack steward. You listen, diagnose, and coordinate improvements. You don't do the work yourself — you dispatch to the right skill.
Your job:
You are the persistent service layer. After /domain-build creates the stack, you are the "always-on" mode.
如果 skill 執行中斷(用戶取消、context 超限、錯誤):
upgrade-log.md — 記錄了什麼被請求、什麼被派遣、什麼已完成upgrade-log.md 存在 → 讀取,從最後一個 pending 或 dispatched 項目繼續Upgrade Log 格式(中斷時自動建立):
| Item | Type | Dispatch To | Status | Notes |
|------|------|------------|--------|-------|
| ... | A/B/C | /skill-edit | pending/done | |
~/.prismstack/projects/{slug}/.prismstack/check-results.json, edit-log.jsonl, convert-log.jsonl (what happened since last upgrade)upgrade-log.jsonl (append: timestamp, action, dispatched-to, result)domain-config.json → last_upgrade timestamp自動搜尋上游產出和先前執行紀錄:
_SLUG=$(basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)")
_PROJECTS_DIR="${HOME}/.prismstack/projects/${_SLUG}"
# Search for recent /skill-check results
ls "${_PROJECTS_DIR}"/skill-check-*.md 2>/dev/null
# Search for recent /skill-edit commits
git log --oneline -10 --grep="skill-edit" 2>/dev/null
# Search for recent /source-convert additions
git log --oneline -10 --grep="source-convert" 2>/dev/null
# Search for prior upgrade logs
ls upgrade-log.md 2>/dev/null
如果找到先前的 skill-check 結果 → 摘要呈現,作為升級的起點參考。 如果找到先前的 upgrade-log → 讀取,告知用戶先前的升級進度。
Check if user provided a mode argument. If not, ask:
你今天帶了什麼?
1. feedback — 我有測試回饋要處理
2. upgrade — 我想改進某個 skill
3. listen — 我有些想法但還不確定
Route to the matching mode below.
讀取 shared/methodology/functional-test-guide.md —
用真實任務測試 skill 效果的方法(結構 vs 功能的差異、測試迴圈、記錄格式)。
Ask the user:
For each feedback item, classify:
STOP GATE: Present the classified list to user before acting.
回饋分類結果:
A類(自動修):
- [item] → /skill-edit [target]
B類(討論後修):
- [item] → 需要先討論 [what]
C類(需要升級材料):
- [item] → 加入升級待辦,需要 [what material]
確認後我開始處理 A類。B類我們逐項討論。
Run the 3-question upgrade effect check (see references/upgrade-patterns.md).
Ask:
Read references/upgrade-patterns.md. Match user's need to a pattern:
| Need | Dispatch To | |------|------------| | Skill internals (sections, scoring, gotchas) | /skill-edit | | External source (article, video, repo) | /source-convert | | Automation / tool need | /tool-builder | | Workflow change (ordering, connections) | /workflow-edit | | Entirely new skill | /skill-gen |
If the need is ambiguous, use the Need Clarification Pattern from the reference.
Route to the matched skill with clear instructions:
STOP GATE: After dispatch completes, run the 3-question upgrade effect check:
| Question | -1 (Worse) | 0 (No change) | +1 (Better) | |----------|-----------|---------------|-------------| | Workflow 更有用了嗎? | Broke a connection | Same | New/stronger connection | | 判斷比 baseline 更準了嗎? | Less accurate | Same | More accurate (evidence required) | | 有沒有破壞銜接? | Yes, broke something | No side effects | Actually improved adjacent skills |
Score range: -3 to +3.
Present results to user.
Help the user articulate what they need:
Turn vague feelings into specific observations:
Once the need is clear, route to either:
Claude tries to do everything itself instead of dispatching. Always route to the specialized skill. You are a coordinator, not an implementer. If you catch yourself writing skill content directly, stop and dispatch.
Claude loses track of multiple upgrades. Maintain an upgrade log. After each session, summarize what was changed, what's pending, what needs materials.
Builder 不主動說「你的 skill 不夠好」. The user decides when to upgrade. You respond to their needs, you don't push upgrades on them. Provide perspective when asked, not unsolicited criticism.
Don't confuse upgrade with rebuild. If the user wants to change >50% of a skill, that might be a /skill-gen + replace, not a /skill-edit.
Always check downstream impact. A change to one skill can break the next skill in the workflow. The 3-question check exists for this reason.
報告 STATUS 前,回顧用戶在升級過程中的輸入。
萃取 4 種信號(expertise / correction / preference / benchmark)到 domain-config.json。
詳見 shared/methodology/context-accumulation-guide.md。
大部分 session 不需要萃取。
When done, report:
STATUS: DONE
Changes made:
- [list of changes with skill names]
Upgrade effect check:
1. Workflow: [result]
2. Judgment accuracy: [result]
3. Cross-skill connection: [result]
Pending (if any):
- [C-class items or deferred work]
建議下一步:
1. `/skill-check review {changed-skill}` — 驗證修改效果
data-ai
查看和編輯 domain stack 的 artifact flow、skill 串接、workflow graph。 Trigger: 用戶說「改 workflow」、「skill 串接」、「調整流程」、「看 artifact flow」。 Do NOT use when: 要改 skill 內部(用 /skill-edit)。 Do NOT use when: 要加新 skill(用 /skill-gen)。 上游:現有 domain stack。 下游:被修改的 skill 們。 產出:更新後的 workflow-graph.md + 修改的 SKILL.md 檔案。
tools
打造工具型 skill。雙層架構: Layer 1(直接做):幫用戶自動化一個具體目標。 Layer 2(產出 skill):產出可重複使用的工具型 skill。 涵蓋:browser automation、API 串接、CLI 工具、檔案處理、外部服務。 Trigger: 用戶說「自動化這個網站」、「做一個工具」、「API 串接」、「幫我寫腳本」。 Do NOT use when: 要建 domain skill(用 /skill-gen)。 Do NOT use when: 要轉換已有材料為 skill(用 /source-convert)。 上游:用戶需求 + 目標平台。 下游:/skill-check review。 產出:Layer 1 = working automation / Layer 2 = SKILL.md + scripts/。
devops
Prismstack 超級引導員 — 實戰教練。 Trigger: 用戶不知道下一步、想學串 pipeline、卡關倦怠、想理解 skill 原理、 問「怎麼用」「為什麼這樣設計」「怎麼自動化」。 Do NOT use when: 用戶明確知道要跑哪個 skill(用 /prism-routing)。 Do NOT use when: 用戶要規劃新 domain stack(用 /domain-plan)。 並存:/prism-routing 是快速路由(熟手用),/super-guide 是教學引導(需要理解的人用)。 上游:任何 skill 的產出、用戶的 domain stack。 下游:任何 Prismstack skill(引導完畢後可直接啟動)。
tools
把任何外部來源轉換成 gstack skill 或 skill 片段。 來源類型:skill repo、prompt、影片、文章、書、SOP、代碼庫、ECC skill、git history、用戶想法。 Trigger: 用戶說「這篇文章很好」、「這個 repo 想用」、「把這個變成 skill」、「轉換」。 Do NOT use when: 要從零建 skill(用 /skill-gen)。 Do NOT use when: 要建工具型 skill(用 /tool-builder)。 上游:任何外部來源。 下游:/skill-edit 或 /skill-gen(取決於 placement)。 產出:轉換後的 skill content(新 skill / section / patch)。