/dev-standards:dev-standards-update-projectfrom dev-standards
Re-detect tech stack, compare against current config, and update rules, CLAUDE.md, and hooks. 重新檢測技術棧,更新規則、CLAUDE.md 及鉤子。 Use when: update project, refresh project settings, re-detect languages, update CLAUDE.md, refresh hooks, reconfigure dev standards
Ships in dev-standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
重新檢測項目技術棧,與現有配置比對,更新規則、CLAUDE.md 及鉤子以反映項目當前狀態。
運行與 setup-project 命令相同的檢測邏輯。掃描:
package.json, tsconfig.json, *.csproj, *.sln, go.mod, Cargo.toml, pyproject.toml, setup.py, requirements.txtnext.config.*, angular.json, vite.config.*, nuxt.config.*, svelte.config.*, astro.config.*, remix.config.*, serverless.yml, cdk.json, Dockerfile, docker-compose*.ymljest.config.*, vitest.config.*, pytest.ini, playwright.config.*, cypress.config.*, *_test.go.eslintrc*, eslint.config.*, .prettierrc*, biome.json, ruff.toml, .golangci.ymlprisma/, **/migrations/, drizzle.config.*, alembic/, Entity Framework references.claude/mcp.json or project-level MCP configuration匯總所有發現為檢測摘要。
讀取現有 .claude/rules/ 目錄與 .claude/CLAUDE.md。
構建比對報告:
Changes since last setup:
New detections (no matching rule):
+ Python detected (pyproject.toml found) -- no .claude/rules/python.md
+ Playwright detected -- testing.md does not reference it
Removed (rule exists but tech no longer detected):
- .claude/rules/go.md exists but no go.mod found
Unchanged:
= TypeScript, Next.js, Vitest (all rules up to date)
向用戶呈現此報告。
呈現可用更新操作,詢問用戶選擇哪些執行(可多選):
待用戶答覆後方繼續。
對每個缺少對應規則的新檢測語言或框架:
${CLAUDE_PLUGIN_ROOT}/assets/templates/rules/ 中是否有模板.claude/rules/ 並附上 generated-by 注釋頭.claude/rules/testing.md 以引用之添加規則後,展示創建文件的摘要。
對每個對應技術已不再被檢測到的規則文件:
移除規則後,展示刪除文件的摘要。
讀取當前 .claude/CLAUDE.md 文件。逐節呈現內容,詢問用戶需更新哪些部分:
展示當前項目描述。詢問是否需要更新。若是,詢問新描述並替換。
展示當前技術列表。依最新檢測結果更新。詢問用戶確認更新後的列表。
展示當前領域概念。詢問是否需要添加新概念或移除現有概念。
展示當前團隊慣例。詢問慣例是否已改變或需添加新慣例。
寫入更新後的 .claude/CLAUDE.md 文件。
讀取當前 MCP 配置(若存在則為 .claude/mcp.json)。
列出所有已配置 MCP 服務器及其命令和描述。
若用戶希望添加服務器,詢問:
npx、uvx、本地二進制路徑)["-y", "@package/name@latest", "mcp"])將服務器添加到 MCP 配置文件。
若用戶希望移除服務器,展示列表並詢問移除哪個。確認後刪除。
從 dev-standards 插件讀取當前鉤子配置。
將已安裝的鉤子與插件當前鉤子定義比對。若插件在安裝後已更新,展示差異並提供更新。
用戶確認後,將鉤子配置重寫以匹配最新插件版本。
呈現所有變更的最終摘要:
Project update complete:
Rules added: [list or "none"]
Rules removed: [list or "none"]
CLAUDE.md: [updated sections or "no changes"]
MCP servers: [changes or "no changes"]
Hooks: [refreshed or "no changes"]
dev-standards:update-rules — 逐條規則之增/改/刪 CRUD 委由此技藝,勿於 update-project 內重造。update-project 主司技術棧重測與整體協調,遇具體規則變更則轉調 update-rules。What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub standardbeagle/standardbeagle-tools --plugin dev-standards25 skills in this plugin
/dev-standards-add-skillCreate new project-specific skill in `.claude/skills/` to codify recurring pattern. 在項目中新建可複用技能。 Use when: add skill, create skill, new skill, codify pattern, make reusable workflow/dev-standards-ce-compound記錄已解決問題以複利機構知識。Document solved problems in docs/solutions/ with structured YAML frontmatter. Use when: non-trivial problem solved + verified, prevent re-discovery, capture institutional learning before context fades, document best practice or workflow pattern. Skip: trivial (typo), solution unverified, problem in progress, project lacks docs/solutions/ convention./dev-standards-ce-setupDiagnose + configure compound-engineering env — CLI deps, plugin version, repo-local config. Guided install for missing tools, gitignore + config bootstrap. Use when: troubleshoot missing tools, verify CE setup, onboard repo, refresh config template, /ce-setup re-check. Skip: unrelated to compound-engineering tooling.