Skip to content
Skills Library
AI & agents · Building & coding

playbook

/playbook

Author lionagi playbooks — reusable YAML workflow templates that define parametric agent tasks. Playbooks live at ~/.lionagi/playbooks/ and run via the `play.submit` MCP verb (or `li play <name>` from a lionagi checkout). Use when: creating reusable workflows, parameterizing agent tasks, or setting up repeatable pipelines.

Repository
lionagi ↗
Licence
Apache-2.0
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Author lionagi playbooks — reusable YAML workflow templates that define parametric agent tasks. Playbooks live at ~/.lionagi/playbooks/ and run via the `play.submit` MCP verb (or `li play <name>` from a lionagi checkout). Use when: creating reusable workflows, parameterizing agent tasks, or setting up repeatable pipelines.

Original author description

Author lionagi playbooks — reusable YAML workflow templates that define parametric agent tasks. Playbooks live at ~/.lionagi/playbooks/ and run via the `play.submit` MCP verb (or `li play <name>` from a lionagi checkout). Use when: creating reusable workflows, parameterizing agent tasks, or setting up repeatable pipelines.

How it works

  1. Minimum Viable Playbook
  2. Authoring Checklist
  3. Companion Files
Original SKILL.md headings · 88 lines, 582 words
SKILL.md preview
---
name: playbook
description: >
  Author lionagi playbooks — reusable YAML workflow templates that define parametric
  agent tasks. Playbooks live at ~/.lionagi/playbooks/ and run via the `play.submit`
  MCP verb (or `li play <name>` from a lionagi checkout).
  Use when: creating reusable workflows, parameterizing agent tasks, or setting up
  repeatable pipelines.
allowed-tools: [Bash, Read, Write, Glob, Grep]
---

# Authoring Lionagi Playbooks

A playbook is a `.playbook.yaml` file that defines a reusable, parametric agent
workflow. Install it in `~/.lionagi/playbooks/` on the machine the MCP server runs
on — that filesystem step is the same whichever interface runs the playbook.

To run it, call the `mcp__plugin_orchestrate_lion__request` tool with `play.submit`. Ask for
the fingerprint first, naming the playbook — `play.submit`'s schema depends on which playbook
you name, because a playbook's own declared arguments are resolved into it:

```json
{"help": {"verb": "play.submit", "playbook": "hello"}}
```

```json
{"ops": [{"op": "play.submit", "args": {"playbook": "hello", "prompt": "what is a monad?"}, "schema_fingerprint": "<from the help call above>"}]}
```

The fingerprint is a **sibling of `args`**, never a key inside it. Omit it and the op is
refused with `stale_schema` and no run starts; nest it inside `args` and it is not read, so
the same refusal repeats and the failure reads as idempotent.

If you're working inside a lionagi checkout, the CLI equivalent is
`li play <name> "<prompt>"`, which expands to `li o flow -p <name> "<prompt>"`.

---

## Minimum Viable Playbook

```yaml
name: hello
description: Greet and answer a question.
model: claude-code/sonnet-4-6

prompt: |
  You are a patient teacher. Explain the following topic in plain language,
  with one concrete example.
```

Run it with `play.submit`:

```json
{"ops": [{"op": "play.submit", "args": {"playbook": "hello", "prompt": "what is a monad?"}, "schema_fingerprint": "<from help={\"verb\": \"play.submit\", \"playbook\": \"hello\"}>"}]}
```

Inside a lionagi checkout: `li play hello "what is a monad?"`

The positional text is appended to the prompt with a blank line because the
template contains no `{input}` placeholder. That is the only behaviour difference
from a template that declares `{input}` explicitly.

---

## Authoring Checklist

- [ ] Filename: `<name>.playbook.yaml`
- [ ] Location: `~/.lionagi/playbooks/`
- [ ] `name:` equals the filename stem — nothing validates the two against each other, and the
      CLI resolves by filename, so a mismatch is silent rather than an error
- [ ] `description:` is one clear sentence
- [ ] Choose routing deliberately: `model:` and `agent:` are optional; when both are omitted,
      flow uses its default orchestrator configuration. If `agent:` is set, verify that profile
      exists on the machine running the MCP server
- [ ] `prompt:` references only declared `args` keys and optional `{input}`
- [ ] Every `args` entry declares `type`, `default`, and `help`. A supplied `type` is validated;
      omitting these fields yields `str`, null, and a generated help line respectively
- [ ] No dashed keys inside `args:`
- [ ] `team_mode` and `team_attach` are not both set
- [ ] `workers` is 1–32 if set; `max_ops` is 0–50 if set
- [ ] If reactive follow-ups are enabled with a nonzero `max_ops`, leave room below the cap;
      the initial plan and spawned assignments share the same budget
- [ ] Dry-run check: `play.submit` with `dry_run: true` plans without executing (call
      `help=true` first to confirm the argument name for your published server version)
- [ ] Help check (lionagi checkout only): `li play <name> --help` always lists fields from
      `args:`; `argument-hint` controls the usage line and can define fallback flags when no
      `args:` block exists. Over MCP, qualified playbook help resolves the custom arguments

---

## Companion Files

| File | Contents |
|---|---|
| `field-reference.md` | Complete field table, args schema, template interpolation rules, team semantics, reserved names, pitfalls, source code reference |
| `examples.md` | Three annotated example playbooks (minimal, audit, pr-review) plus the examples directory index |
| `patterns.md` | Orchestration patterns and advanced composition strategies |
Files in this package (4)
  • SKILL.md 4 KB
  • examples.md 12 KB
  • field-reference.md 13 KB
  • patterns.md 4 KB

Versions

RepositoryScoreLicence
This page · ohdearquant/lionagi100Apache-2.0
ttilabs11-byte/claude-code-playbook100MIT
erayozenn/BigHead-2ndBrain100MIT
mikeheid/overture100MIT
ThilinaTLM/agent-skills100MIT
antoniarco/agentic-coding-swarm-protocol90MIT

Database snapshot: 13.11.2026 · package version 7c99d8fd7b9c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100play
    Run an existing lionagi playbook through the orchestration MCP server and retrieve its background result. Use when a saved `.playbook.yaml` workflow should be executed with concrete input or declared arguments.
  • 100orchestrate
    Plan and execute multi-agent workflows through lionagi's orchestration MCP tool: flow.submit (DAG pipelines), fanout.submit (parallel workers), agent.submit (one agent), and play.submit (saved playbooks). Use when a task needs multiple agents working in parallel or staged phases.
  • 100add-agent-playbooks
    Add Redis Iris Agent Playbooks to an existing agent. Use when approved answers or repeatable procedures live in prompts, document retrieval, or a semantic response cache. Connect or provision a Playbook, publish FAQs and Skills, and verify the first application turn with optional review proposals.
  • 100playbooks
    This skill should be used when the user asks "which playbooks apply", "list the plays", "add a play", "capture this as a rule", "add this to the playbook", "show my playbook", or when completion offers a note as a play and the person says yes. It lists the plays from the…
  • 100tasks
    Claude Code task framework for reusable workflows. Use when user asks about "/task:run", "/task:list", "/task:new", "create a task", "global tasks", "local tasks", or needs to run structured multi-step workflows. Triggers on task-related questions or when creating reusable automation.
  • 100write-template-playbooks
    Write a template playbook for the build-an-agent skill: a 1-2 KB per-use-case file that teaches the builder agent to configure one kind of Agenta agent (changelog writer, issue triager, support router, and so on). Use when the ask is "write a template playbook", "add an agent…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.