Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.
日本語の概要は準備中です。原文の説明を表示しています。
Diagnose and recover broken Git state and worktree metadata with a staged, low-risk recovery flow. Use when Git reports detached or contradictory HEAD state, phantom worktree locks, orphaned worktree entries, missing refs, 0000000000000000000000000000000000000000 hashes, or branch operations fail with errors like already checked out, unknown revision, not a valid object name, or cannot lock ref.
日本語の概要は準備中です。原文の説明を表示しています。
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
Recover a repository without making the blast radius worse.
.agents/state/<task-slug>/ directory..git is a directory.This skill owns Git repair and broken-state recovery behavior. Public maintenance docs can point here, but recovery agents should load this skill before touching Git metadata, index files, worktree metadata, or refs.
ls-git-merge-rebase for healthy advanced Git operations.Set the explicit private output boundary once:
TASK_STATE_DIR="$PWD/.agents/state/<controller-task-slug>"
python scripts/snapshot_git_state.py . --output-dir "$TASK_STATE_DIR"
references/symptom-map.md.python scripts/guided_repair_plan.py --repo . --output-dir "$TASK_STATE_DIR"
references/recovery-checklist.md verification gate.For an existing snapshot or explicit routing:
python scripts/guided_repair_plan.py --snapshot "$TASK_STATE_DIR/git-state-snapshots/<stamp>"
python scripts/guided_repair_plan.py --list
python scripts/guided_repair_plan.py --symptom phantom-branch-lock
snapshot_git_state.py records:
HEADHEAD^{commit} probesnapshot.json, binding the emitted snapshot path to the explicit task output directoryA detached-HEAD diagnosis requires all three signals: # branch.head (detached), an empty git symbolic-ref -q HEAD result, and a resolvable HEAD^{commit}. One signal alone is not enough.
Use disposable simulations before changing script logic:
python scripts/regression_harness.py
python scripts/regression_harness.py --scenario detached-head
The harness creates temporary repositories and never runs force, reset, prune, metadata-edit, or deletion commands against a user repository.
Symptoms:
git worktree list shows a path that no longer exists.Start non-destructively:
git worktree list --porcelain
git worktree prune -v
git worktree list --porcelain
If stale entries remain, resolve the shared metadata root:
git rev-parse --path-format=absolute --git-common-dir
Create a verified backup with scripts/backup_git_metadata.py. Then require explicit confirmation naming the exact stale path before removing anything beneath the resolved common Git directory.
Symptoms:
git branch -d or git branch -D fails with "already used by worktree".git worktree list disagrees with observed branch ownership.git worktree list --porcelain
Find the worktree using that branch, switch that worktree to another branch or intentionally detach it, then retry the branch operation in the main repository. Treat stale ownership metadata as Playbook A; do not guess a .git/worktrees/... path.
For corroborated detached HEAD, preserve the current commit before switching:
git reflog --date=iso -n 20 HEAD
git branch rescue/$(date +%Y%m%d-%H%M%S) HEAD
git switch <known-good-branch>
For contradictory branch and symbolic-ref evidence, run the guided planner with --repo and --output-dir. It automatically creates and verifies a metadata archive before showing manual repair commands.
Symptoms: unknown revision, not a valid object name, or cannot lock ref.
Inspect and preserve local history first:
git reflog --date=iso -n 50 HEAD
git show <local-only-tip>
git branch rescue/$(date +%Y%m%d-%H%M%S) <local-only-tip>
git show-ref --verify refs/heads/rescue/<timestamp>
Then fetch and verify the exact remote target:
git fetch --all --prune
git show-ref --verify refs/remotes/origin/<branch>
git rev-parse --verify refs/remotes/origin/<branch>^{commit}
git branch -f moves a branch pointer. Immediately before it, obtain explicit point-of-risk confirmation naming the repository, local branch, verified remote ref, and resolved commit. Only that confirmation authorizes:
git branch -f <branch> refs/remotes/origin/<branch>
git switch <branch>
Resolve both metadata roots; linked worktrees have distinct values:
git rev-parse --path-format=absolute --git-dir
git rev-parse --path-format=absolute --git-common-dir
Create and verify the backup automatically:
python scripts/backup_git_metadata.py . --output-dir "$TASK_STATE_DIR"
The command archives the actual metadata directory or directories, verifies the required HEAD members, hashes the archive, and writes a JSON receipt. A failed or missing receipt blocks repair.
After checking the expected branch ref, obtain explicit point-of-risk confirmation naming the repository, expected branch, resolved ref, and backup receipt. Prefer:
git show-ref --verify refs/heads/<branch>
git symbolic-ref HEAD refs/heads/<branch>
If symbolic-ref cannot be used, obtain a second confirmation for the exact resolved per-worktree HEAD path. Use the fallback printed by guided_repair_plan.py; never write to a guessed .git/HEAD path. Immediately run the verification gate.
Run references/recovery-checklist.md. Minimum bar:
git status exits cleanly with no fatal errors.HEAD matches the intended branch, or detached state is intentional and corroborated.git worktree list --porcelain has no missing paths and no unexplained zero hashes.git fsck --no-reflogs --full has no new critical errors.scripts/backup_git_metadata.py.Worktree tooling must enforce:
references/symptom-map.mdreferences/recovery-checklist.mdscripts/snapshot_git_state.pyscripts/backup_git_metadata.pyscripts/guided_repair_plan.pyscripts/regression_harness.pyまだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.
日本語の概要は準備中です。原文の説明を表示しています。
Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.
日本語の概要は準備中です。原文の説明を表示しています。
Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.
日本語の概要は準備中です。原文の説明を表示しています。
Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.
日本語の概要は準備中です。原文の説明を表示しています。
Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.
日本語の概要は準備中です。原文の説明を表示しています。
Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.
日本語の概要は準備中です。原文の説明を表示しています。