/tendril-skills:tendril-debug-planfrom tendril-skills
Debug a Tendril plan by analyzing its execution logs, session JSONL, verification results, and checking infrastructure. Produces actionable bugfix and improvement recommendations. Use when the user wants to investigate why a plan failed, behaved unexpectedly, or to audit plan execution quality.
Ships in tendril-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Debug and analyze Tendril plan executions end-to-end - from plan creation through checking/verification - and produce a set of concrete bugfix and improvement recommendations.
/tendril-debug-plan <planid> <note>
03451)plan.yaml, revisions, logs, costs, verification reports, session JSONLResolve paths from environment:
TENDRIL_HOME - base config/data directoryTENDRIL_PLANS - plans directory (defaults to $TENDRIL_HOME/Plans)REPOS_HOME - for locating Tendril source codeRead these files from the plan folder ($TENDRIL_PLANS/{planid}-*/):
| File | Purpose |
|---|---|
plan.yaml | Plan metadata: state, repos, commits, PRs, verifications, dependsOn |
revisions/*.md | Plan scope, acceptance criteria, verification checkboxes. Last one is the executable revision. |
costs.csv | Token/cost breakdown per promptware (if available) |
verification/*.md | Verification reports (PreExecution, NpmTest, RustTest, CheckResult, etc.) |
worktrees/ | Check if worktrees were created/cleaned up |
The plan folder holds no logs. Every job that ran against the plan wrote its artifacts flat into
$TENDRIL_HOME/Jobs/, named {jobId}-{planId}-{promptware}. Find them all for a plan with:
ls "$TENDRIL_HOME/Jobs/"*"-{planid}-"*
| File | Purpose |
|---|---|
{stem}.md | Job Log - status, timings, cost, CLI command, final output, agent ## Agent Log narrative |
{stem}.prompt.md | Job Prompt - the exact prompt handed to the agent |
{stem}.raw.jsonl | Job Raw Log - full unparsed CLI session data |
{stem}.eventwire.jsonl | Job Eventwire Log - Tendril's parsed event stream |
Note that the CreatePlan job that created the plan is named {jobId}-CreatePlan with no plan id,
so it will not appear in the glob above. Use /tendril-debug-job to drill into any single job.
Each Job Log contains a SessionId. The raw Claude session data lives at:
~/.claude/projects/*/{SessionId}.jsonl
Use find ~/.claude/projects -name "{SessionId}.jsonl" to locate each file.
For each JSONL session, extract:
Token Usage:
input_tokens, output_tokens, cache_read_input_tokens, cache_creation_input_tokens from type: "assistant" messagescache_read / (cache_read + cache_creation + input)input_tokens (context bloat)Tool Call Patterns:
Error Patterns:
error, failed, exception, timeout in tool resultsTime Analysis:
This is the core debugging focus. Examine:
Pre-execution checks (ExecutePlan Step 1.5-1.8):
dependsOn plans completed, PRs merged)**Current implementation** blocks) match reality?Verification execution (ExecutePlan Step 7):
verification/ correctly?tendril plan set-verification?Post-verification (ExecutePlan Step 7.5-8):
CheckResult / completion verification (Job Manager):
verify_create_plan_result find the plan folder or the identified as duplicate: marker?check_dependencies correctly evaluate dependency plan states?Cross-reference each finding with:
src/promptwares/{Type}/Program.md - could instructions prevent this?src/promptwares/{Type}/Memory/ - is knowledge missing or ignored?src/crates/tendril-core/src/jobs/manager.rs - job lifecycle and verificationsrc/crates/tendril-core/src/plans/models.rs - plan state and schemasrc/crates/tendril-core/src/git/worktree.rs - worktree managementWrite the report to $TENDRIL_PLANS/{planid}-*/debug-report.md (alongside the plan).
Use this format:
# Debug Report: {PlanId} - {Title}
- **Analyzed:** {current timestamp}
- **Plan State:** {state}
- **User Note:** {the note argument}
- **Promptwares Run:** {list}
- **Total Tokens:** {sum}
- **Wall-Clock Time:** {duration}
## Executive Summary
{3-5 sentences: what happened, what went wrong, what is the root cause}
## Timeline
| # | Step | Promptware | Status | Duration | Tokens | Notes |
|---|------|------------|--------|----------|--------|-------|
| 1 | CreatePlan | CreatePlan | Completed | 2m30s | 45k | - |
| 2 | Execute | ExecutePlan | Failed | 15m | 280k | build loop |
| ... | | | | | | |
## Checking & Verification Analysis
### Pre-Execution Checks
{What passed, what failed, what was missed}
### Verification Results
| Verification | Expected | Actual | Correct? | Notes |
|-------------|----------|--------|----------|-------|
| NpmBuild | Pass | Pass | Yes | - |
| RustClippy | Pass | Pass | Yes | - |
### Completion Verification
{How JobManager verified the result, any gaps}
## Findings
### {Finding Title}
- **Category:** {Token Waste | Error Loop | Missing Knowledge | Instruction Gap | Environmental | Architectural | Verification Gap}
- **Severity:** {Low | Medium | High | Critical}
- **Promptware:** {which one}
- **Evidence:** {specific log lines, timestamps, tool call IDs}
{Description with specific evidence.}
**Root Cause:** {why this happened}
**Recommendation:** {concrete fix - which file to change, what to change, why}
---
{Repeat for each finding}
## Concrete Fixes
Priority-ordered list of specific changes:
1. **[High] {file path}**: {what to change and why}
2. **[Medium] {file path}**: {what to change and why}
3. ...
## Skill Self-Improvement Notes
{If this analysis revealed patterns or techniques that would make future debugging faster,
note them here. These will be incorporated into the skill's references/ directory.}
These are the files most likely to contain the root cause of issues:
| File | What It Controls |
|---|---|
src/crates/tendril-core/src/jobs/manager.rs | Job lifecycle, dependency checking, completion verification |
src/crates/tendril-core/src/jobs/logger.rs | Job logging, raw outputs, eventwire writing |
src/crates/tendril-core/src/jobs/firmware_values.rs | Firmware values, template interpolation |
src/crates/tendril-core/src/jobs/recovery.rs | Stuck job and plan recovery |
src/crates/tendril-core/src/git/worktree.rs | Worktree creation, cleanup, commit operations |
src/crates/tendril-core/src/agents/runner.rs | Agent CLI spawning, timeout control, JSON streaming |
src/crates/tendril-core/src/promptware/mod.rs | Prompt compilation, firmware embedding |
src/crates/tendril-core/src/plans/models.rs | Plan serialization/deserialization model |
src/promptwares/ExecutePlan/Program.md | Main execution flow, all verification steps |
src/promptwares/CreatePlan/Program.md | Plan creation, folder setup |
src/promptwares/{Type}/Memory/ | Agent knowledge base per promptware |
This skill is designed to improve over time. After producing a report:
references/{topic}.mdThe references/ directory accumulates knowledge from past debugging sessions.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ivy-interactive/ivy-tendril-v2 --plugin tendril-skills6 skills in this plugin
/tendril-debug-jobAnalyze a Tendril job's execution artifacts to identify issues and improvement opportunities in Tendril, promptware instructions, memory, or tools./tendril-extensionBuild, test, package, install, verify, and debug the Ivy Tendril extension across the VS Code family: VS Code, VS Code Insiders, VSCodium, Cursor, Windsurf, Antigravity IDE, Trae, Positron, Kiro and friends. Use when the user asks to install, link, update, build, test, package, or troubleshoot the Ivy Tendril extension in any VS Code-based IDE./tendrillableFind "Tendrillable" GitHub issues - open, recent, code-requiring issues that an agent can plan and one-shot WITHOUT asking clarifying questions, with high probability of success. Classifies a repo's open issues against the Tendrillable rubric and prints a ranked list of issue URLs. Use when asked to find tendrillable issues, source candidates for Tendril, or triage a repo's backlog for one-shottable work. Usage: tendrillable <githubUrl> <amount>.