원클릭으로
reset-project
Restore a project's .claude/ directory to the dotforge template from scratch, with backup and rollback option.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Restore a project's .claude/ directory to the dotforge template from scratch, with backup and rollback option.
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.
Quick-start Claude Code configuration. Auto-detects stack, asks 4 questions to understand the project, generates complete config.
| name | reset-project |
| description | Restore a project's .claude/ directory to the dotforge template from scratch, with backup and rollback option. |
Restore the current project's .claude/ directory completely to the dotforge template, from scratch.
Show warning before proceeding:
╔══════════════════════════════════════════════════╗
║ RESET: .claude/ will be fully replaced ║
║ ║
║ The following will be lost: ║
║ - Customizations in settings.json ║
║ - Custom rules ║
║ - Custom hooks ║
║ - Any manually created files in .claude/ ║
║ ║
║ The following will be preserved: ║
║ - settings.local.json (not touched) ║
║ - CLAUDE.md (regenerated from template) ║
║ - CLAUDE_ERRORS.md (preserved if it exists) ║
║ ║
║ A backup will be created at .claude.backup-YYYY-MM-DD/ ║
╚══════════════════════════════════════════════════╝
Confirm reset? (yes/no)
If the user says "no", cancel immediately. DO NOT proceed without explicit confirmation.
Use detection rules from $DOTFORGE_DIR/stacks/detect.md.
Confirm detected stacks with the user.
.claude.backup-{YYYY-MM-DD}/ in the project root.claude/ to the backup:
cp -R .claude/ .claude.backup-$(date +%Y-%m-%d)/
CLAUDE_ERRORS.md exists, copy it separately (it will be restored afterwards).claude/:
rm -rf .claude/
/bootstrap-project skill in full from scratchCLAUDE_ERRORS.md existed, restore the original file (not the empty template)Compare backup vs new .claude/:
═══ RESET COMPLETE ═══
New files (did not exist before):
+ .claude/rules/agents.md
+ .claude/agents/researcher.md
Updated files (differences from backup):
~ .claude/settings.json — 3 new permissions in allow
~ .claude/hooks/block-destructive.sh — 2 new patterns
Deleted files (were in backup, not in template):
- .claude/rules/custom-strategy.md
Preserved files:
= CLAUDE_ERRORS.md (restored from backup)
/forge reset rebuilds .claude/ but Claude Code's own state for this project lives elsewhere — transcripts, task lists, debug logs, file-edit history, prompt history, and the project entry in ~/.claude.json. After a reset, those references now point at archived/missing files.
If claude project purge is available (v2.1.126+), offer to run it after the rollback decision:
# Verify availability
claude project purge --help >/dev/null 2>&1 && {
echo "Run 'claude project purge $PWD --dry-run' to preview, then drop --dry-run to apply."
}
Do NOT run it automatically. Show the user the dry-run command first; they decide. Skip the suggestion if the CLI version doesn't support project purge.
Backup available at: .claude.backup-YYYY-MM-DD/
To restore: rm -rf .claude && mv .claude.backup-YYYY-MM-DD .claude
Delete backup? (yes/no — recommended: no, at least until verified)
If the user wants to restore, execute the rollback immediately. If the user wants to delete the backup, do it. If the user does not decide, leave the backup (it can be cleaned up manually later).
This skill is installed automatically if the symlink from skills/ already exists in ~/.claude/skills/. If not, create the symlink:
ln -sf $DOTFORGE_DIR/skills ~/.claude/skills