/tendril-skills:tendril-debug-planfrom tendril-skills
Debugs Tendril plan executions by analyzing logs, session JSONL, verification results, and infrastructure. Produces actionable bugfix and improvement recommendations for failed or unexpected plan behavior.
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 one that is the executable one. |
costs.csv | Token/cost breakdown per promptware (if available) |
verification/*.md | Verification reports (PreExecution, IvyFrameworkVerification, 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:
Use the Analyze-SessionJsonl.ps1 tool if available at:
$REPOS_HOME/Ivy-Tendril/src/Ivy.Tendril.TeamIvyConfig/Promptwares/PlanEvaluator/Tools/Analyze-SessionJsonl.ps1
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 (JobService):
VerifyCreatePlanResult find the plan folder or the identified as duplicate: marker?CheckDependencies correctly evaluate dependency plan states?TryBlockForDependencies transition appropriately?Cross-reference each finding with:
Promptwares/{Type}/Program.md - could instructions prevent this?Promptwares/{Type}/Memory/ - is knowledge missing or ignored?Services/JobService.cs - job lifecycle issuesServices/PlanReaderService.cs - plan state/repair issuesIvy.Tendril/Assets/Plans.md - plan schema/CLI reference (embedded in assembly, injected into firmware)Write 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's 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 |
|-------------|----------|--------|----------|-------|
| Build | Pass | Pass | Yes | - |
| IvyFramework | Pass | Pass | No | Should have caught X |
### Completion Verification
{How JobService 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 |
|---|---|
Services/JobService.cs | Job lifecycle, dependency checking, completion verification |
Services/JobLauncher.cs | Job launch, CLI shim generation, firmware value population |
Services/JobCompletionHandler.cs | Post-completion: logs, raw output, plan state, telemetry |
Services/PlanReaderService.cs | Plan state transitions, repair logic, stuck plan recovery |
Services/GitService.cs | Worktree creation/cleanup, commit operations |
Services/Agents/FirmwareCompiler.cs | Prompt compilation, log file allocation |
Promptwares/ExecutePlan/Program.md | Main execution flow, all verification steps |
Promptwares/CreatePlan/Program.md | Plan creation, folder setup |
Ivy.Tendril/Assets/Plans.md | Plan schema, CLI commands, state lifecycle (embedded resource) |
Promptwares/{Type}/Memory/ | Agent knowledge base per promptware |
Models/PlanModels.cs | Plan deserialization model |
Helpers/PlanContentHelpers.cs | Commit row building, plan content rendering |
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 --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-extensionManage, build, test, package, install, and debug the Ivy Tendril extension in Antigravity IDE and VS Code. Use when the user asks to install, link, update, build, test, or package the Ivy Tendril extension for Antigravity 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>.Other plugins' skills for the same job