원클릭으로
domain-extract
Extract domain knowledge from existing project sources and generate domain rules. Also handles vault sync and domain listing.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Extract domain knowledge from existing project sources and generate domain rules. Also handles vault sync and domain listing.
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 | domain-extract |
| description | Extract domain knowledge from existing project sources and generate domain rules. Also handles vault sync and domain listing. |
| context | fork |
Analyze existing project sources to propose domain knowledge rules for approval.
Based on $ARGUMENTS after "domain":
domain extract → Step 1-5 (full extraction)domain list → Step 6 (list only)domain sync-vault → Step 7 (vault sync only)Read these project sources (skip any that don't exist):
<!-- forge:custom --> (user-written content)~/.claude/projects/-<path-with-dashes>/memory/.claude/agent-memory/implementer/*.md and .claude/agent-memory/architect/*.md
.claude/rules/*.md. Identify files that mix domain + technical contentgit log --oneline -50 to identify domain-related commits (keywords: fix, deploy, API, auth, config)For each piece of domain knowledge found, classify:
.claude/rules/domain/*.md content?Discard:
Group findings by category. For each group, propose a domain rule file:
═══ DOMAIN EXTRACT ═══
Project: {{project_name}}
Sources analyzed: {{count}}
Existing domain rules: {{count in .claude/rules/domain/}}
── PROPOSED DOMAIN RULES ──
{{number}}. {{filename}}.md (from: {{sources}})
globs: {{suggested glob patterns}}
Content preview:
"{{3-5 line summary of what the rule will contain}}"
→ Create? (y/n/edit)
Also propose a Role section if CLAUDE.md doesn't have ## Role yet:
── ROLE SECTION ──
Detected role from project context:
"{{proposed role description}}"
→ Add to CLAUDE.md ## Role? (y/n/edit)
And a Domain section if CLAUDE.md doesn't have ## Domain yet:
── DOMAIN SECTION ──
Detected domain context:
"{{proposed domain summary}}"
→ Add to CLAUDE.md ## Domain? (y/n/edit)
STOP and WAIT for the user to respond to each proposal (y/n/edit).
If the user says "edit", ask what to change and regenerate that specific proposal. If the user says "all", approve all proposals.
For each approved domain rule:
.claude/rules/domain/ directory if not exists---
globs: "{{patterns}}"
description: "{{one-line description}}"
domain: {{category}}
last_verified: {{today YYYY-MM-DD}}
---
For approved Role/Domain sections:
## Role marker exists, replace content. If not, add section before ## Arquitectura## Domain marker exists, replace content. If not, add section after ## RoleShow summary:
═══ DOMAIN EXTRACT — DONE ═══
Created: {{N}} domain rules in .claude/rules/domain/
Updated: CLAUDE.md (Role: ✓/✗, Domain: ✓/✗)
Total domain knowledge: {{N}} files
/forge domain list)List all files in .claude/rules/domain/ with metadata:
═══ DOMAIN RULES ═══
File Domain Globs Last Verified Status
─────────────────────────────────────────────────────────────────────────────────
ratios.md trading **/*ratio*,**/*price* 2026-03-15 ⚠ stale (>90d)
deploy-vps.md infra **/*deploy*,docker-compose* 2026-03-25 ✓ current
jira-api.md jira **/*jira*,**/*issue* 2026-03-20 ✓ current
Status rules:
✓ current — last_verified within 90 days⚠ stale — last_verified older than 90 days✗ no date — missing last_verified fieldIf no .claude/rules/domain/ exists: "No domain rules found. Run /forge domain extract to generate from existing sources."
/forge domain sync-vault)For each file in .claude/rules/domain/ that has domain_source: vault://... in frontmatter:
vault:// with ~/vault/══ VAULT SYNC ══
File: ratios.md
Source: vault://decisions/ratio-engine.md
Changes detected:
+ New: "ONs use factor 0.001 for sub-peso bonds"
~ Changed: exit ratio now uses mid-price, not ask
→ Update domain rule? (y/n/edit)
last_verified to todayIf no files have domain_source: "No vault-linked domain rules found. Add domain_source: vault://path to a domain rule frontmatter to enable sync."
.claude/rules/domain/, never in .claude/rules/ root