一键导入
update-practices
Process the practices inbox, evaluate, incorporate into dotforge, and suggest propagation to projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Process the practices inbox, evaluate, incorporate into dotforge, and suggest propagation to projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Audits the Claude Code configuration of a project against the dotforge template. Generates a report with score and gaps.
Sync all GitHub-backed git repos on this machine with origin. Pulls behind repos, pushes ahead repos, reports dirty/non-main/conflict cases for Claude to resolve.
Generate a Claude Code plugin package from the current project's dotforge configuration, ready for marketplace submission.
Fetch official Anthropic/Claude Code docs, detect changes relevant to dotforge, report deltas.
Restore a project's .claude/ directory to the dotforge template from scratch, with backup and rollback option.
Quick-start Claude Code configuration. Auto-detects stack, asks 4 questions to understand the project, generates complete config.
基于 SOC 职业分类
| name | update-practices |
| description | Process the practices inbox, evaluate, incorporate into dotforge, and suggest propagation to projects. |
3-phase pipeline to keep dotforge up to date with discovered practices.
Practice sources:
detect-claude-changes.sh) → automatic/forge capture) → user/forge capture with the findingsRead all files in $DOTFORGE_DIR/practices/inbox/.
For each practice:
practices/active/error_type and error description for tracking in metrics.ymlpractices/evaluating/, note proposed concrete changeneeds-more-infoShow summary:
═══ INBOX EVALUATION ═══
{{N}} practices in inbox
✅ ACCEPT: {{title}} → {{proposed change}}
❌ REJECT: {{title}} → {{reason}}
⏸️ DEFER: {{title}} → {{what is missing}}
Proceed with accepted? (yes/no/select)
For each accepted practice in evaluating/:
| Change type | Affected files | Version bump |
|---|---|---|
| New/modified rule | template/rules/, stacks/*/rules/ | minor |
| New/modified hook | template/hooks/, stacks/*/hooks/ | minor |
| Documentation | docs/*.md | patch |
| Modified template | template/*.tmpl | minor |
| Security fix | any | patch |
.md file in template/rules/ or stacks/*/rules/ with proper globs: (eager) or paths: + alwaysApply: false (lazy) frontmatter. Only create a rule if the practice is a repeatable constraint (not a one-time fix). Use existing rules as format reference.evaluating/ to active/ with incorporated_in: updatedeffectiveness: monitoring (or informational if no error targeted — informational is excluded from the validation rate metric), error_type matching CLAUDE_ERRORS.md types$DOTFORGE_DIR/practices/metrics.yml:
error_targeted: description of the error this practice prevents (null if not error-targeted)error_type: syntax | logic | integration | config | security | nullactivated: today's datestatus: monitoring (or informational — for general-knowledge practices, never validated)recurrence_checks: 0recurrence_target: 5docs/changelog.mdVERSION according to type$DOTFORGE_DIR/registry/projects.yml═══ SUGGESTED PROPAGATION ═══
project-a (last sync: {{date or "never"}})
→ {{N}} rules updated
project-b (last sync: {{date or "never"}})
→ {{N}} rules updated
To propagate: run /forge sync in each project.
DO NOT propagate automatically. Inform only.
For each entry in $DOTFORGE_DIR/practices/metrics.yml where status: monitoring:
CLAUDE_ERRORS.md from each project in registry where the practice is appliederror_type + error_targeted description was logged AFTER the activated daterecurrence_checks by 1, update last_checked to todayrecurred: true, status: failedrecurrence_checks >= recurrence_target and recurred: false: set status: validatedeffectiveness field in the practice's frontmatter file to matchReport:
═══ EFFECTIVENESS CHECK ═══
{{practice title}} — {{status}} ({{recurrence_checks}}/{{recurrence_target}} checks)
{{if failed: "⚠ Error recurred — practice needs revision"}}
{{if validated: "✅ No recurrence after {{N}} checks"}}
{{if monitoring: "🔍 {{remaining}} checks remaining"}}
Skip practices with status: informational or status: validated. Informational practices are general-knowledge captures — they don't target an error, so recurrence is undefined and they never enter the validation rate.
═══ UPDATE REPORT ═══
Date: {{YYYY-MM-DD}}
Evaluated: {{N}} ({{accepted}} accepted, {{rejected}} rejected, {{deferred}} deferred)
Incorporated: {{N}} into dotforge
Propagation suggested: {{N}} projects
── EFFECTIVENESS ──
Monitoring: {{N}} practices
Validated: {{N}} (no recurrence after {{target}} checks)
Failed: {{N}} (need revision)
VERSION: {{old}} → {{new}}