optave/ops-codegraph-tool/titan-reset

Claude Code and agent skill by optave/ops-codegraph-tool

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Clean up all Titan Paradigm artifacts and snapshots, restoring the codebase to pre-Titan state

Install

npx vskill@latest install optave/ops-codegraph-tool/titan-reset

SKILL.md

Titan RESET — Pipeline Cleanup

You are resetting the Titan Paradigm pipeline, removing all artifacts and restoring the codebase to its pre-Titan state.


Step 1 — Restore baseline snapshot (if available)

bash
codegraph snapshot restore titan-baseline 2>/dev/null && echo "Baseline restored" || echo "No baseline snapshot found"

This restores the graph database to its pre-GAUNTLET state.


Step 2 — Delete all Titan snapshots

bash
codegraph snapshot delete titan-baseline 2>/dev/null

Delete the grind baseline snapshot (if it exists):

bash
codegraph snapshot delete titan-grind-baseline 2>/dev/null

Also delete any batch snapshots dynamically:

bash
for name in $(codegraph snapshot list --json 2>/dev/null | node -e "let d='';process.stdin.on('data',c=>d+=c).on('end',()=>{try{JSON.parse(d).filter(s=>s.name.startsWith('titan-batch-')).forEach(s=>console.log(s.name))}catch(e){}})"); do
codegraph snapshot delete "$name" 2>/dev/null
done

Step 3 — Remove all Titan artifacts

bash
rm -rf .codegraph/titan/

This removes:

  • titan-state.json — session state
  • GLOBAL_ARCH.md — architecture document
  • gauntlet.ndjson — audit results
  • gauntlet-summary.json — aggregated results
  • sync.json — execution plan
  • gate-log.ndjson — gate audit trail
  • issues.ndjson — cross-phase issue tracker
  • close-summary.json — close phase summary
  • drift-report.json — staleness detection across phases
  • grind-targets.ndjson — grind phase adoption targets and outcomes
  • arch-snapshot.json — pre-forge architectural snapshot

Step 4 — Delete titan working branches

Delete all local titan working branches. These accumulate across runs and leave orphaned commits that never reach main. The actual PR content lives on focused PR branches created by /titan-close — the working branches are safe to remove.

Capture the branch names once, before any deletion — querying git branch --list again after the local delete would find nothing, silently turning the remote cleanup below into a no-op:

bash
REFACTOR_BRANCHES=$(git branch --list 'refactor/titan-*' | sed 's/^[* ]*//')
DOCS_BRANCHES=$(git branch --list 'docs/titan-*' | sed 's/^[* ]*//')
bash
echo "$REFACTOR_BRANCHES" | xargs -r -I{} git branch -D {} || true
echo "$DOCS_BRANCHES" | xargs -r -I{} git branch -D {} || true
Note: -I{} ensures each branch is deleted individually so a failure on one (e.g. the currently checked-out worktree branch, which git refuses to delete in-place) is skipped rather than aborting the entire pipeline. The current worktree branch is cleaned up when the worktree itself is torn down.

Delete from remote, reusing the names captured above (best-effort — failures are non-fatal):

bash
echo "$REFACTOR_BRANCHES" | xargs -r git push origin --delete 2>/dev/null || true
echo "$DOCS_BRANCHES" | xargs -r git push origin --delete 2>/dev/null || true

Print how many branches were removed.


Step 5 — Rebuild graph (unless --keep-graph)

If $ARGUMENTS does NOT contain --keep-graph:

bash
codegraph build

This ensures the graph reflects the current state of the codebase without any Titan-era corruption.

If $ARGUMENTS contains --keep-graph, skip this step.


Step 6 — Report

Titan pipeline reset complete.
- Baseline snapshot: restored and deleted
- Grind snapshot: deleted
- Batch snapshots: deleted
- Artifacts: removed (.codegraph/titan/)
- Titan branches deleted: N local, N remote
- Graph: rebuilt (clean state)
To start a fresh Titan pipeline, run /titan-recon

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/optave/ops-codegraph-tool/titan-reset/badge)](https://verified-skill.com/skills/optave/ops-codegraph-tool/titan-reset)

Something wrong with this skill or its page? Tell us.