一键导入
writing-great-skills
高品質 skill 撰寫與改寫參考,聚焦 predictable triggering、information hierarchy、progressive disclosure、pruning 與降低 no-op 指令。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
高品質 skill 撰寫與改寫參考,聚焦 predictable triggering、information hierarchy、progressive disclosure、pruning 與降低 no-op 指令。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
React-only Zustand state management skill for React SPA Vite and Next.js projects. Use when adding, configuring, bootstrapping, or refactoring Zustand stores, typed selectors, vanilla stores, client providers, persistence boundaries, or migration from ad hoc React state to Zustand. Do not use for Vue, Nuxt, Svelte, Angular, Remix, React Native, or non-React state libraries.
Vue-only Pinia state management skill for Nuxt 3/4 and Vue SPA Vite projects. Use when adding, configuring, bootstrapping, or refactoring Pinia stores, @pinia/nuxt modules, createPinia app registration, typed stores, storeToRefs usage, SSR-safe Nuxt state, store actions, getters, persistence boundaries, or migration from ad hoc Vue state to Pinia. Do not use for React, Next.js, Svelte, Angular, or non-Vue state libraries.
建立與維護 FastAPI 後端專案架構、feature 模組、router、Pydantic schema、service layer、app factory 與 app router 註冊。使用者提到 FastAPI endpoint、backend project architecture、backend feature、router、schema、service、request/response DTO、health endpoint 或 FastAPI greenfield backend 時使用。
Nuxt 4 通用專案建立、啟動、驗證與維護。首次建立新專案時 scaffold Nuxt app 與 section composition 架構:共用 components 組成 page-specific content sections,多個 content sections 組成 route pages。當需要建立或初始化 Nuxt 4 專案、建立 app/server/shared 目錄架構、加入 pages、app/content、components、composables、plugins、stores、server routes,或處理路由、SEO/meta、runtime config、Nuxt plugin warnings、模組與部署前驗證時使用。
Framework-agnostic Playwright E2E testing skill for frontend web apps. Use when a project needs end-to-end tests, browser workflow tests, cross-browser checks, form/auth flows, route smoke tests, visual regression, CI E2E setup, Playwright config, or flaky E2E debugging across React, Vue, Nuxt, Next.js, SvelteKit, Astro, Angular, Vite, static sites, or any browser-rendered frontend.
React + Vite feature-based frontend scaffold and maintenance skill. Use when creating or updating React/Vite projects with src/app, src/features, src/shared, routing, pages, components, hooks, types, assets, and feature-oriented refactors.
| name | writing-great-skills |
| description | 高品質 skill 撰寫與改寫參考,聚焦 predictable triggering、information hierarchy、progressive disclosure、pruning 與降低 no-op 指令。 |
| metadata | {"disable-model-invocation":"true"} |
skill 的目的,是讓 stochastic system 產生可預期的流程行為。這裡的 Predictability 指每次都採用相同品質的工作方法,而不是每次輸出完全相同內容。
粗體術語在 GLOSSARY.md 有完整定義;需要細節時再讀,避免把 glossary 全部塞進主流程。
skill 有兩種 invocation 形態,各自花費不同成本:
description,讓 agent 可以自動觸發,也讓其他 skill 能引用。代價是每一輪都會增加 context load。disable-model-invocation: true,由使用者手動呼叫。優點是零 context load,代價是使用者要記得它存在,也就是 cognitive load。只有當 agent 必須自己發現這個 skill,或其他 skill 需要自動連到它時,才做成 model-invoked。若只會被人手動叫用,保持 user-invoked。
當 user-invoked skills 多到使用者難以記住時,用一個 router skill 整理「何時用哪個 skill」。
model-invoked 的 description 同時負責兩件事:說明 skill 是什麼,以及列出哪些情境要觸發。
規則:
skill 內容分三層:
SKILL.md 中的有序動作。每一步都要有可檢查的 completion criterion。SKILL.md 中所有分支都常用的規則、範例或定義。.md 檔,用清楚 pointer 引導 agent 需要時再讀。不要把所有知識都塞進 SKILL.md。主檔應保留 agent 馬上要執行的流程與不可跳過的規則;細節用 progressive disclosure 放到 reference。
每個步驟應結束在可檢查條件,而不是模糊狀態。
弱條件:
- 理解需求後繼續。
- 產出合理計畫。
強條件:
- 每個 acceptance criterion 都已映射到至少一個 task。
- 每個 task 都有 owned files、scope boundary、verification command。
completion criterion 越清楚,越能防止 premature completion。
只在拆分能降低風險或負擔時拆分。
不要為了「看起來 modular」而拆;每個新 skill 都會增加 context load 或 cognitive load。
維護 skill 時逐句檢查:
保持 single source of truth:同一個行為規則只能有一個權威位置。
leading word 是 agent 會用來思考的緊湊概念,例如 tracer bullet、seam、frontier、red-green-refactor。
好 leading word 可以同時改善 execution 與 invocation:
把三句重複的形容收斂成一個強 leading word,通常比加更多規則有效。
name 是否穩定、短、lowercase-hyphenated。description 是否包含明確 trigger phrases。