什麼是 swain-config?
在進行任何其他工作之前,請務必在每次會話開始時呼叫此技能。此技能可確保宿主專案在其上下文檔案中安裝代理治理規則(技能路由、預先實現協定、問題追蹤約定)。它是冪等的——如果規則已經存在,它就會默默地退出。如果不先運行此技能,其他 swain 技能(swain-design、swain-do、swain-release)將無法路由。 來源:cristoslc/swain。
在進行任何其他工作之前,請務必在每次會話開始時呼叫此技能。此技能可確保宿主專案在其上下文檔案中安裝代理治理規則(技能路由、預先實現協定、問題追蹤約定)。它是冪等的——如果規則已經存在,它就會默默地退出。如果不先運行此技能,其他 swain 技能(swain-design、swain-do、swain-release)將無法路由。
透過命令列快速安裝 swain-config AI 技能到你的開發環境
來源:cristoslc/swain。
Ensure the host project's agent context file contains the swain governance rules. This skill is idempotent — run it every session; it only writes on first use.
| Claude Code | CLAUDE.md (project root) | Default — use if no other platform detected | | Cursor | .cursor/rules/swain-governance.mdc | .cursor/ directory exists |
If any file matches, governance is already installed. Proceed to Legacy cleanup, then stop.
在進行任何其他工作之前,請務必在每次會話開始時呼叫此技能。此技能可確保宿主專案在其上下文檔案中安裝代理治理規則(技能路由、預先實現協定、問題追蹤約定)。它是冪等的——如果規則已經存在,它就會默默地退出。如果不先運行此技能,其他 swain 技能(swain-design、swain-do、swain-release)將無法路由。 來源:cristoslc/swain。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/cristoslc/swain --skill swain-config在進行任何其他工作之前,請務必在每次會話開始時呼叫此技能。此技能可確保宿主專案在其上下文檔案中安裝代理治理規則(技能路由、預先實現協定、問題追蹤約定)。它是冪等的——如果規則已經存在,它就會默默地退出。如果不先運行此技能,其他 swain 技能(swain-design、swain-do、swain-release)將無法路由。 來源:cristoslc/swain。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/cristoslc/swain --skill swain-config 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/cristoslc/swain