/dev-standards:dev-standards-update-rulesfrom dev-standards
View, add, modify, or remove project rules in `.claude/rules/`. 管理項目開發規則。 Use when: update rules, add rule, edit rule, remove rule, manage rules, add rules for new module
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/rules/ 中的開發規則。支持添加、修改、刪除規則文件,包括針對特定模塊或目錄的 glob 範圍規則。
讀取 .claude/rules/ 目錄,列出所有規則文件及其元數據。
每個文件:
paths glob 模式description frontmatter 字段向用戶呈現摘要表:
Current rules in .claude/rules/:
File Glob Scope Description
version-control.md (always loaded) Version control standards
typescript.md **/*.ts, **/*.tsx TypeScript guidelines
testing.md **/*.test.*, ... Testing standards
...
若 .claude/rules/ 不存在或為空,報告無規則已配置,詢問用戶是否先運行 /setup-project。
詢問用戶執行何操作:
待答後方繼續。
若用戶選「add」:
詢問規則涵蓋範圍。示例:
services/payments/」)依範圍建議適當的 glob 模式用於規則的 paths frontmatter。詢問用戶確認或調整。
Glob 模式指引:
**/*.ext(如 **/*.graphql、**/*.tf)path/to/module/**(如 services/payments/**)**/*.test.*、**/*.spec.*、**/*_test.*paths 字段詢問規則應編碼哪些具體標準、指南或約束。針對性問題:
在 .claude/rules/<rule-name>.md 創建規則文件,結構如下:
---
paths:
- "<glob-pattern>"
description: "<one-line description>"
---
# <Rule Title>
<Rule content organized into clear sections>
選取 kebab-case 文件名以匹配範圍(如 graphql.md、payments-service.md、logging.md)。
檢查 ${CLAUDE_PLUGIN_ROOT}/assets/templates/rules/ 中是否存在匹配模板。若有,建議用作起點。若無,依用戶答案生成。
若用戶選「modify」:
若用戶未指定規則,呈現 Step 1 的列表,詢問修改哪條。
讀取並展示所選規則文件的完整內容。
詢問用戶修改什麼。常見修改:
以用戶請求的修改編輯規則文件。除非用戶明確要求,否則保留現有結構和 frontmatter。
向用戶展示變更摘要。
若用戶選「remove」:
若用戶未指定規則,呈現 Step 1 的列表,詢問移除哪條。
展示規則的 description 和 glob 範圍。詢問用戶確認刪除。警告此操作不可撤銷(除非有版本控制)。
從 .claude/rules/ 刪除規則文件。
向用戶報告刪除結果。
完成操作後,詢問用戶是否繼續操作(添加、修改或移除另一規則),或結束。
若結束,呈現 Step 1 格式的更新後摘要表,展示所有規則的當前狀態。
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.