SKILL.md
唯讀
名稱
claude-code-guide
描述
提供完整的參考指南,協助您設定並發揮 Claude Code(代理型程式編碼工具)的最大潛能。本 Skill 彙整了最佳實踐、設定範本與進階使用模式。
Claude Code 指南
目的
提供完整的參考指南,協助您設定並發揮 Claude Code(代理型程式編碼工具)的最大潛能。本 Skill 彙整了最佳實踐、設定範本與進階使用模式。
設定檔 (CLAUDE.md)
開始新專案時,請在根目錄建立 CLAUDE.md 檔案來引導 Agent。
範本(通用)
# Project Guidelines
## Commands
- Run app: `npm run dev`
- Test: `npm test`
- Build: `npm run build`
## Code Style
- Use TypeScript for all new code.
- Functional components with Hooks for React.
- Tailwind CSS for styling.
- Early returns for error handling.
## Workflow
- Read `README.md` first to understand project context.
- Before editing, read the file content.
- After editing, run tests to verify.
進階功能
思考關鍵字
在提示詞中使用以下關鍵字,可觸發 Agent 進行更深入的推理:
- "Think step-by-step"
- "Analyze the root cause"
- "Plan before executing"
- "Verify your assumptions"
除錯(Debugging)
若 Agent 卡住或行為不符合預期:
- 清除 Context:若 Agent 產生混淆,請開啟新會話或要求 Agent "forget previous instructions"(忘記先前指令)。
- 明確的指令:對檔案路徑、檔名及預期結果保持極高的具體性。
- 日誌(Logs):要求 Agent "check the logs"(檢查日誌)或 "run the command with verbose output"(使用詳細輸出執行指令)。
最佳實踐
- 保持小規模 Context:切勿將整個程式碼庫一次塞入 Context 中。請先使用
grep或find找出相關檔案。 - 疊代式開發:每次請求微小的變更,驗證無誤後再繼續推進。
- 回饋機制:若 Agent 犯錯,請立即更正,並要求它將教訓記錄到記憶中(若支援)或寫入
CLAUDE.md。
參考資料
基於 Claude Code Guide by zebbern。
何時使用
當需要執行概述中描述的工作流程或動作時,適用本 Skill。
限制事項
- 僅在任務明確符合上述範圍時使用本 Skill。
- 請勿將輸出結果視為替代特定環境驗證、測試或專家審查的工具。
- 若缺少必要的輸入、權限、安全邊界或成功標準,請停止執行並要求提供進一步說明。




