Playbook ops

From d-o-hub/rust-self-learning-memory · View interactive version

Playbook ops is an AI agent skill from the GitHub repository d-o-hub/rust-self-learning-memory. Generate task playbooks and explain patterns using learned strategies from episodic memory

How to use this skill

Skill file

Playbook Operations

When to Use

CLI Commands

| Command | Purpose |

|---------|---------|

| do-memory-cli playbook recommend [TASK] | Generate playbook for a task |

| do-memory-cli playbook explain <PATTERN_ID> | Explain a pattern |

MCP Tools

| Tool | Parameters | Purpose |

|------|-----------|---------|

| recommend_playbook | task, domain, task_type, max_steps, language, framework, tags | Generate actionable playbook |

| explain_pattern | pattern_id | Human-readable pattern explanation |

| search_patterns | query, domain, limit | Find relevant patterns |

| recommend_patterns | task_type, domain, context | Get pattern recommendations |

Generating a Playbook

# Basic recommendation
do-memory-cli playbook recommend "implement rate limiting middleware"

# With context
do-memory-cli playbook recommend "add caching layer" \
  --domain "rust-backend" \
  --task-type "code_generation" \
  --language "rust" \
  --framework "axum" \
  --max-steps 7

Playbook Output Includes

Explaining Patterns

do-memory-cli playbook explain "pat-uuid-here"

Returns a natural-language explanation of:

Task Types

Valid --task-type values:

Integration

Playbooks work best when the memory system has episodes:

  1. Complete episodes with outcomes and steps
  2. System extracts patterns from successful episodes
  3. recommend_playbook uses patterns to generate actionable steps
  4. Feedback loop (via recommendation-feedback skill) improves recommendations
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.