deciduous

imrellx's avatarfrom imrellx

Plan, implement, track, and reflect on your work goals and decisions.

⭐1stars🔀0forks📁View on GitHub🕐Updated Jan 2, 2026

When & Why to Use This Skill

Deciduous is a sophisticated Claude skill designed for decision graph logging and persistent memory management. It enables AI agents to systematically plan, implement, and track work goals, decisions, and outcomes. By creating a structured graph of actions and observations, it ensures that critical project context is preserved even when the conversation exceeds context limits, significantly improving the reliability of long-term agentic workflows.

Use Cases

  • Complex Software Engineering: Track architectural decisions, link them to specific git commits, and maintain a clear history of implementation steps to prevent context loss during long coding sessions.
  • Strategic Project Management: Document high-level goals and break them down into actionable nodes, allowing the agent to maintain a persistent 'source of truth' for project progress.
  • Systematic Debugging and Troubleshooting: Log observations and failed experiments in a decision graph to avoid redundant work and build a logical path toward a solution.
  • Decision Auditing and Reflection: Record the reasoning behind specific choices and link them to final outcomes, providing a transparent audit trail for future review and optimization.
namedeciduous
descriptionPlan, implement, track, and reflect on your work goals and decisions.

Planning & Decision Graph Logging

Track every goal, decision, and outcome in the decision graph. This creates persistent memory that survives context loss.

  • ALWAYS LOG BEFORE YOU CODE, NOT AFTER.
  • Log at the granularity of TODOs or task items.
  • When drafting a plan create the GOAL node.
  • User Decisions should be tracked

When to Log (Automatic Triggers)

Situation Node Type Example
In plan mode goal "Add user authentication"
TODO / Task Item action "Implementing JWT auth middleware"
User requests new feature goal "Add user authentication"
Choosing between approaches decision "Choose between JWT vs sessions"
Considering an option option "Use JWT with refresh tokens"
About to write/edit code action "Implementing JWT auth middleware"
Work completed or failed outcome "JWT auth working" or "JWT approach failed"
Important observation observation "Existing code uses cookie-based sessions"

Commands

# Create nodes (always include confidence -c)
deciduous add goal "Title" -c 90 -p "User's exact request"
deciduous add decision "Title" -c 75
deciduous add action "Title" -c 85
deciduous add outcome "Title" -c 90
deciduous add observation "Title" -c 80

# CRITICAL: Link nodes immediately after creation
deciduous link <parent_id> <child_id> -r "Reason for connection"

# After git commits, link to the graph
deciduous add action "Committed feature X" -c 90 --commit HEAD

# View the graph
deciduous nodes
deciduous edges

Rules

  1. Log BEFORE acting - Create the action node before writing code
  2. Link IMMEDIATELY - Every node except root goals must have a parent
  3. Capture verbatim prompts - Use -p with the user's exact words for goals
  4. Include confidence - Always use -c flag (0-100)
  5. Log outcomes - Both successes AND failures get logged

Confidence Guidelines

  • 90-100: Certain, verified, tested
  • 75-89: High confidence, likely correct
  • 50-74: Moderate confidence, some uncertainty
  • Below 50: Experimental, speculative

The Memory Loop

User Request → Log goal with -p
    ↓
Choose Approach → Log decision + options
    ↓
Start Coding → Log action FIRST
    ↓
Complete Work → Log outcome, link to parent
    ↓
Git Commit → Log with --commit HEAD

Remember: The decision graph is your persistent memory. Log as you work, not after.