capture-practice
Skill8 starsChanged 7 months agoMITView on GitHub
Captures an insight or practice discovered during work and registers it in the dotforge practices/inbox.
In this repository20 other files it gives its agents.
- .claude/rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audit-projectSkill
- bootstrap-projectSkill
- diff-projectSkill
- domain-extractSkill
- export-configSkill
- forge-behaviorSkill
- init-projectSkill
- learn-projectSkill
- mcp-addSkill
- plugin-generatorSkill
- reset-projectSkill
- rule-effectivenessSkill
- scout-reposSkill
- session-insightsSkill
- sync-all-reposSkill
- sync-templateSkill
- update-practicesSkill
- watch-upstreamSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Keep it to 1-2 sentences max
- Distinctive: line 39
Stop — do not create a file.
- Distinctive: line 55
If Y or user confirms → continue to Step 1 with the proposed text as $ARGUMENTS
- Distinctive: line 56
If n → stop, no file created
- Distinctive: line 57
If edit or user rewrites → use the rewritten text as $ARGUMENTS, continue to Step 1
- Distinctive: line 71
Before creating, check for existing similar practices:
- Very specific: line 72
Search $DOTFORGE_DIR/practices/active/ by title or similar tags
- Very specific: line 73
Search $DOTFORGE_DIR/practices/inbox/ by similar title
- Distinctive: line 74
If duplicate found → inform the user and ask: update existing or create new?
- Very specific: line 78
Create file in $DOTFORGE_DIR/practices/inbox/ with format:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Capture Practice
Register an insight, pattern, or lesson learned in the dotforge inbox.
Input routing
If $ARGUMENTS is empty → auto-detect mode (Step 0). If $ARGUMENTS has content → skip to Step 1.
Step 0: Auto-detect (only when $ARGUMENTS is empty)
Analyze the recent conversation to identify the most generalizable insight from this session.
Detection signals (in priority order)
- Workaround discovered — the obvious approach failed and an alternative was used
- Multi-attempt bug — a fix required more than one attempt or root cause was non-obvious
- Architectural decision with trade-offs — two+ alternatives were considered, one chosen with reasoning
- Non-obvious tool/API/flag behavior — a parameter, edge case, or behavior was surprising
- Missing rule — the session revealed a gap in
.claude/rules/orCLAUDE.mdthat would have prevented the problem
Extraction rules
- Extract the single most generalizable insight — not session notes, not a summary of everything done
- Formulate it as a reusable principle: "When X, do Y because Z" or "Never do X — use Y instead"
- Keep it to 1-2 sentences max
- Ignore: trivial tasks, first-attempt successes, routine edits
If no signal is present
Respond: "No generalizable insight detected in this session. If you have something specific in mind, run /cap \"description\"."
Stop — do not create a file.
Propose and confirm
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]- If Y or user confirms → continue to Step 1 with the proposed text as $ARGUMENTS
- If n → stop, no file created
- If edit or user rewrites → use the rewritten text as $ARGUMENTS, continue to Step 1
Step 1: Parse the insight
From $ARGUMENTS (provided or confirmed from Step 0), extract:
- What: the practice or pattern
- Why: evidence or context (current project, error that motivated it)
- Impact: which dotforge files could change
- Tags: categorization (hooks, rules, prompting, security, stack-specific, etc.)
Step 2: Validate duplicates
Before creating, check for existing similar practices:
- Search
$DOTFORGE_DIR/practices/active/by title or similar tags - Search
$DOTFORGE_DIR/practices/inbox/by similar title - If duplicate found → inform the user and ask: update existing or create new?
Step 3: Generate file
Create 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
PendingFile name: {{YYYY-MM-DD}}-{{slug}}.md
Step 4: Confirm
Show:
Practice captured: {{title}}
File: practices/inbox/{{file}}
Tags: {{tags}}
Next step: /forge update evaluates pending practices from inbox.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

