一键导入
capture-practice
Captures an insight or practice discovered during work and registers it in the dotforge practices/inbox.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Captures an insight or practice discovered during work and registers it in the dotforge practices/inbox.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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.
Process the practices inbox, evaluate, incorporate into dotforge, and suggest propagation to projects.
Restore a project's .claude/ directory to the dotforge template from scratch, with backup and rollback option.
| name | capture-practice |
| description | Captures an insight or practice discovered during work and registers it in the dotforge practices/inbox. |
Register an insight, pattern, or lesson learned in the dotforge inbox.
If $ARGUMENTS is empty → auto-detect mode (Step 0). If $ARGUMENTS has content → skip to Step 1.
Analyze the recent conversation to identify the most generalizable insight from this session.
.claude/rules/ or CLAUDE.md that would have prevented the problemRespond: "No generalizable insight detected in this session. If you have something specific in mind, run /cap \"description\"."
Stop — do not create a file.
Show the proposed insight and ask for confirmation before proceeding:
Proposed practice:
"{{one-line insight}}"
Tags: {{inferred tags}}
Project: {{current project name}}
Save this? [Y/n/edit]
From $ARGUMENTS (provided or confirmed from Step 0), extract:
Before creating, check for existing similar practices:
$DOTFORGE_DIR/practices/active/ by title or similar tags$DOTFORGE_DIR/practices/inbox/ by similar titleCreate file in $DOTFORGE_DIR/practices/inbox/ with format:
---
id: practice-{{YYYY-MM-DD}}-{{slug}}
title: {{short title}}
source: "own experience"
source_type: experience
discovered: {{YYYY-MM-DD}}
status: inbox
tags: [{{tags}}]
tested_in: {{current project or null}}
incorporated_in: []
replaced_by: null
---
## Description
{{what the practice states}}
## Evidence
{{why it works, discovery context}}
## Impact on dotforge
{{which files would need to change}}
## Decision
Pending
File name: {{YYYY-MM-DD}}-{{slug}}.md
Show:
Practice captured: {{title}}
File: practices/inbox/{{file}}
Tags: {{tags}}
Next step: /forge update evaluates pending practices from inbox.