vbw-debug-target
Skill88 starsChanged 2 months agoMITView on GitHub
Use when the user reports VBW misbehavior (pasted Claude Code session output, a command behaving wrongly, unexpected .vbw state). Resolves the contributor's local debug target repo first, never a guessed path, and names where Claude Code keeps the session, subagent, hook and debug logs to replay what happened.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- swt-labs/vibe-better-with-claude-code-vbwword for word, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 1
- swt-labs/vibe-better-with-claude-code-vbw★ 88100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- vbw-fix-issueSkill
- vbw-qa-investigatorSkill
- vbw-review-contributor-prSkill
- vbw-releaseSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When the user reports VBW misbehavior — pasting Claude Code session output, describing incorrect command behavior, or showing unexpected …
- Distinctive: line 48
If none are configured, ask the user for the target repo path — do not guess.
- Distinctive: line 50
Use the shared resolver when debugging:
- Distinctive: line 59
If the resolver exits non-zero, stop guessing and ask the user to configure a debug target.
- Very specific: line 65
After resolving the target repo, derive the encoded Claude project path by replacing / with - in the absolute target-repo path.
- Distinctive: line 73
When debugging, search these directories for evidence of what actually happened:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Debugging VBW behavior
When the user reports VBW misbehavior — pasting Claude Code session output, describing incorrect command behavior, or showing unexpected file state — first resolve the contributor's local debug target repo instead of guessing a maintainer-specific path.
Local debug target configuration (private, not committed)
Preferred setup in the VBW clone's shared Git common dir:
$(git rev-parse --git-common-dir)/info/vbw-debug-target.txtIn a standard non-worktree clone, this usually resolves to:
.git/info/vbw-debug-target.txtThe first non-empty, non-comment line must be the absolute path to the contributor's primary VBW consumer/test repo. Relative paths are rejected so the resolver produces the same result regardless of the caller's current working directory.
Example local file content:
/absolute/path/to/your-test-repoThis file lives under the clone's shared Git metadata, so it stays private and all worktrees created from that clone can read it automatically.
Legacy fallback for a single checkout only:
.claude/vbw-debug-target.txtThat legacy file remains supported and gitignored, but it is scoped to one checkout/worktree and will not be copied into new worktrees.
Resolution order:
VBW_DEBUG_TARGET_REPOenv var (one-off override, absolute path only)$(git rev-parse --git-common-dir)/info/vbw-debug-target.txtin the current clone (preferred persistent local config, shared across worktrees)./.claude/vbw-debug-target.txtin the current checkout/worktree (legacy fallback, absolute path only)<claude-config-dir>/vbw/debug-target.txt(user-global fallback, absolute path only;<claude-config-dir>is resolved bytools/resolve-claude-dir.sh:CLAUDE_CONFIG_DIRif set, else$HOME/.config/claude-codewhen that directory exists, else$HOME/.claude)- If none are configured, ask the user for the target repo path — do not guess.
Use the shared resolver when debugging:
TARGET_REPO=$(bash tools/resolve-debug-target.sh repo)
TARGET_PLANNING=$(bash tools/resolve-debug-target.sh planning-dir)
ENCODED_PATH=$(bash tools/resolve-debug-target.sh encoded-path)
CLAUDE_PROJECT_DIR=$(bash tools/resolve-debug-target.sh claude-project-dir)If the resolver exits non-zero, stop guessing and ask the user to configure a debug target.
Claude Code Log Locations (canonical Claude config root)
In the paths below, <claude-config-dir> means the same Claude config root resolved by tools/resolve-claude-dir.sh: CLAUDE_CONFIG_DIR if set, else $HOME/.config/claude-code when that directory exists, else $HOME/.claude.
After resolving the target repo, derive the encoded Claude project path by replacing / with - in the absolute target-repo path. For an absolute path, the result begins with -.
Example rule:
/absolute/path/to/project -> -absolute-path-to-projectWhen debugging, search these directories for evidence of what actually happened:
| Path | Contents | Use When |
<target-repo>/.vbw/ | Project state: spec.md, record.json (inspect with vbw status / vbw show) | Ground the investigation in actual workflow state |
<claude-config-dir>/projects/{encoded-path}/*.jsonl | Session transcripts | Replaying what the LLM said/did in a session |
<claude-config-dir>/projects/{encoded-path}/{session-id}/subagents/agent-*.jsonl | Subagent transcripts | Checking what VBW agent team members did |
<claude-config-dir>/projects/{encoded-path}/{session-id}/tool-results/ | Tool output snapshots | Seeing exact tool outputs from a session |
<claude-config-dir>/debug/{session-id}.txt | Debug logs ([DEBUG]/[WARN]) | Startup issues, plugin loading, hook execution failures |
<claude-config-dir>/sessions/{pid}.json | Active session metadata | Mapping a PID to a session ID |
<claude-config-dir>/session-env/{session-id}/ | Hook-exported env vars | Verifying CLAUDE_SESSION_ID and other env vars |
<claude-config-dir>/tasks/{session-id}/ | Task/subagent lock files | Checking for stuck or concurrent task issues |
<claude-config-dir>/settings.json | User-level Claude Code settings and hooks | Verifying hook definitions, permissions, MCP config |
Common search patterns
TARGET_REPO=$(bash tools/resolve-debug-target.sh repo)
CLAUDE_PROJECT_DIR=$(bash tools/resolve-debug-target.sh claude-project-dir)
CLAUDE_CONFIG_ROOT="$(dirname "$(dirname "$CLAUDE_PROJECT_DIR")")"
# Find sessions for the configured target repo
ls "$CLAUDE_PROJECT_DIR"/*.jsonl
# Search session transcripts for a VBW hook or command
grep -l 'vbw' "$CLAUDE_PROJECT_DIR"/*.jsonl
# Find hook errors in debug logs
grep -El 'hook.*error|hook.*fail' "$CLAUDE_CONFIG_ROOT"/debug/*.txt
# Search for a specific tool invocation across sessions
grep -Erl 'vbw (next|apply|prove|run start)' "$CLAUDE_PROJECT_DIR"/*.jsonl
# Check what a subagent did in a specific session
cat "$CLAUDE_PROJECT_DIR"/<session-id>/subagents/agent-*.jsonlDoes 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.

