skills/project-init/SKILL.md
Use this skill whenever the user needs to check or set up development environment, initialize project dependencies, install required tools, or verify system compatibility. Triggers include: environment initialization, setup environment, check environment, install tools, verify dependencies, environment status, platform setup, or any mention of /project-init.
npx skillsauth add tarrragon/claude project-initInstall 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.
環境初始化工具 — 檢查和設定開發環境
禁止直接執行 Python 檔案!
project_init是 Python 套件,必須透過pyproject.toml定義的入口點執行。
# 首次安裝
(cd .claude/skills/project-init && uv tool install .)
# 之後在任何目錄執行
project-init check
project-init setup
(cd .claude/skills/project-init && uv run project-init check)
輸出版本號。
project-init --version
# 輸出: project-init 1.0.0
掃描環境狀態(唯讀檢查,不修改任何東西)。
檢查項目:
.claude/skills/*/pyproject.toml 並檢查安裝狀態project-init check
輸出範例:
============================================================
project-init check — 環境狀態報告
============================================================
[OS]
macOS 14.6
[Python]
版本: 3.14.13
路徑: /opt/homebrew/bin/python3
[UV]
版本: 0.4.5
路徑: /opt/homebrew/bin/uv
[ripgrep]
版本: 14.1.0
路徑: /opt/homebrew/bin/rg
[Hook 系統]
Hook 數量: 15
編譯狀態: 全部通過
PEP 723: [OK]
[自製套件]
ticket (1.0.0) [OK]
project-init (1.0.0) [OK]
============================================================
總結: 6/6 項目正常
============================================================
完整安裝/更新環境(檢查並執行必要的操作)。
步驟:
project-init setup
輸出範例:
============================================================
project-init setup — 環境設定
============================================================
[1/3] 檢查環境狀態...
[環境檢查輸出...]
[2/3] 處理缺失和過時工具...
[無需處理]
[3/3] 更新自製套件...
ticket (1.0.0) [OK]
project-init (1.0.0) [OK]
============================================================
設定完成: 0 項已自動修復,0 項需手動處理
============================================================
cd .claude/skills/project-init
uv tool install .
cd .claude/skills/project-init
uv tool install . --force --reinstall
重要:使用
--force --reinstall旗標確保程式碼變更生效。更多資訊見 Project Memory 中的「uv tool 重新安裝」。
project-init --version
# 輸出: project-init 1.0.0
# 檢查環境
project-init check
# 如有缺失工具,執行設定
project-init setup
# 更新 project-init 工具
cd .claude/skills/project-init
uv tool install . --force --reinstall
# 重新檢查環境
project-init check
# check 包含 Hook 編譯狀態驗證
project-init check
# 查看 Hook 系統部分的結果
project-init 僅依賴 Python 標準函式庫:
argparse — CLI 參數解析dataclasses — 資料結構pathlib — 路徑操作subprocess — 執行外部命令json — JSON 序列化無額外的第三方依賴。
references/platform-install-guide.md - 各平台詳細安裝指南references/remediation-guides.md - 各種例外情境的預建修復引導確認使用正確的執行方式:
# 正確 — 使用全局 CLI
project-init check
# 正確 — 在目錄下使用 uv run
cd .claude/skills/project-init && uv run project-init check
# 錯誤 — 直接執行 Python 檔案
python3 .claude/skills/project-init/project_init/scripts/main.py
確認已安裝:
# 檢查是否已安裝
which project-init
# 如未安裝,執行安裝
cd .claude/skills/project-init
uv tool install .
查看 check 指令的完整輸出,識別 [MISSING] 或 [ERROR] 的項目,依指示操作。
環境初始化完成後,依專案狀態選擇下一步:
| 場景 | 下一步 | 說明 |
|------|--------|------|
| 全新專案 | /doc-flow init | 初始化文件系統(worklog、todolist、CHANGELOG) |
| 既有專案重啟 | .claude/skills/doc/references/legacy-code-workflow.md | 六步驟既有專案評估流程(健康檢查 → Ticket 建立) |
| 已有文件系統 | /ticket | 直接查看待辦任務或建立新 Ticket |
Last Updated: 2026-04-01 Version: 1.1.0 - 新增後續流程銜接說明
重要:本 skill 透過
uv tool install安裝為獨立 CLI,source(本目錄)與 installed(~/.local/share/uv/tools/<package>/)是兩份獨立 Python package。修改 source 後若未 reinstall,CLI 仍使用 stale installed 版本,新增的函式會 AttributeError 或被 hasattr 包裝靜默吞掉(W11-037 根因)。
修復指令:
cd .claude/skills/<本 skill 目錄> && uv tool install . --force --reinstall
自動偵測:每次 SessionStart 由 uv-tool-staleness-check-hook 比對 source vs installed SHA256,偵測 stale 時提示修復指令。對應 ticket-skill 本身另有 ticket-reinstall-hook 自動 reinstall。
development
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
development
Claude Code release notes 框架影響評估工具。比對 last-reviewed 版本篩出新版本,逐項分類(對框架有幫助 / 需評估 / 無影響 / 不適用),對採用項引導建 ANA + WRAP + spawn 落地。Use when: 執行 /release-notes 看到新版本、定期檢查 CC 更新、評估新功能對專案框架的影響時。Triggers: release notes, release-notes, CC 更新, claude code 更新, 版本更新評估, 新功能評估, 框架影響評估。
development
Assertion design judgment framework for flaky and design-quality issues. Use when writing tests, reviewing assertions, diagnosing flaky tests, or deciding if a timing/float/cache assertion is appropriate. Do NOT use for API syntax or refactoring.
tools
Chrome Extension 實機測試與 debug 工作流,以 chrome-devtools-mcp 為核心工具。Use when: (1) 完成功能後實機驗證 / manual test / 試看看 / 跑看看 / verify feature, (2) extension debug / popup 不作動 / content script 不注入 / service worker 報錯 / background 出問題, (3) 安裝 unpacked extension / load unpacked / 載入未封裝, (4) 看 console / 看 network / 看 log / view console / inspect requests, (5) 功能更新後重新載入 extension / rebuild reload / reload extension。涵蓋 Manifest V3 service worker / content script / popup / options page 的 chrome-devtools-mcp 工具呼叫流程。不取代 Puppeteer / Playwright 自動化 E2E(CI 用),定位為開發期手動驗證與 LLM-assisted debug。