com um clique
create-playbook
// Create a new skill or playbook. Guides through requirements gathering and generates the appropriate template based on complexity.
// Create a new skill or playbook. Guides through requirements gathering and generates the appropriate template based on complexity.
Add a memory system to an agent — file awareness, knowledge graph, structured state, or multi-session tracking
Modify an existing playbook based on conversation context or explicit instructions. Use when user wants to update, fix, extend, or refine a playbook they already have.
Create an executive chief of staff agent — asks about your tools, team, and priorities, then scaffolds a Trinity-compatible agent for daily briefings, meeting prep, and decision tracking
Scaffold a new Trinity-compatible Claude Code agent from scratch on any topic. Creates directory, CLAUDE.md, skills, and Trinity files — ready for development.
Create a content writer agent — asks about your brand voice, platforms, and topics, then scaffolds a Trinity-compatible ghostwriter agent that writes in your voice
Create a knowledge-base agent — asks a structured 6-question interview about the domain's ontology, then scaffolds a Cornelius-shaped Trinity-compatible KB agent with a typed graph, 7-layer vault, subagents, and scheduled coherence jobs
| name | create-playbook |
| description | Create a new skill or playbook. Guides through requirements gathering and generates the appropriate template based on complexity. |
| disable-model-invocation | false |
| user-invocable | true |
| argument-hint | [skill-name] |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion |
| metadata | {"version":"2.5","created":"2025-02-10T00:00:00.000Z","updated":"2026-05-16T00:00:00.000Z","author":"Ability.ai","changelog":["2.5: Add when_to_use/arguments/shell/effort/substitution-vars to frontmatter; fix hot-reload advice; add supporting-files step; add Routines note","2.4: Add Single-Task Rule — scheduled skills must be scoped to one task type per invocation","2.3: Note project-specific vs official frontmatter; list newer official fields (model, context, paths, hooks) for Tier 3","2.2: Add No-Gates Rule — autonomous playbooks cannot have approval gates (breaks execution)","2.1: Add 45-minute rule to Design Constraints — autonomous playbooks must complete within this limit"]} |
Create a new skill. Determines the right complexity tier and generates from the appropriate template.
For concepts and patterns, see the README. For template details, see templates/.
ls -d .claude/skills/*/ 2>/dev/null | head -10
ls -d ~/.claude/skills/*/ 2>/dev/null | head -10
If similar skill exists, ask: update it, create variant, or proceed with new?
Ask or extract from context:
Ask these questions to classify:
Q1: Does this skill read or write any files, APIs, or external state?
Q2: Will this run unattended, on a schedule, or need reliability guarantees?
Q3: What automation level?
autonomousgatedmanual⚠️ Critical: If user says "autonomous" but also mentions approval/review steps, clarify:
"Autonomous playbooks cannot have approval gates — they run unattended and would hang waiting for approval that never comes. Should this be
gatedinstead?"
→ Tier 3: Full Playbook
For Tier 1 (Simple Skill):
For Tier 2 (Stateful Skill):
For Tier 3 (Full Playbook):
Ask: Does this skill need supporting files (templates, example outputs, helper scripts)?
scripts/, examples/, or reference.md alongside SKILL.md, referenced from the main file so Claude knows when to load them. Keep SKILL.md under 500 lines — move large reference material to separate files.Ask the user:
Should this skill be self-improving?
Self-improving skills include a checklist at the end to consider tactical improvements after each run—things like clearer steps, better error handling, or more efficient flow. The skill's core purpose stays the same; only execution can improve.
If in a git repo, improvements are committed for version control.
If user confirms YES, include the Self-Improvement Checklist (see below) at the end of the generated skill.
If this skill involves complex multi-step logic or architectural decisions, add ultrathink anywhere in the skill body to request deeper reasoning when it runs.
| Scope | Location | Use When |
|---|---|---|
| Personal | ~/.claude/skills/[name]/ | Only you use it |
| Project | .claude/skills/[name]/ | Team shares it |
| Plugin | plugins/[plugin]/skills/[name]/ | Distribute widely |
Default to project scope unless specified.
Use the appropriate template:
| Tier | Template |
|---|---|
| 1 | templates/simple-skill.md |
| 2 | templates/stateful-skill.md |
| 3 (autonomous) | templates/autonomous-template.md |
| 3 (gated) | templates/gated-template.md |
| 3 (manual) | templates/manual-template.md |
Fill in the template with gathered requirements.
Present summary before creating:
## New Skill: [name]
**Tier**: [1/2/3] ([Simple/Stateful/Full Playbook])
**Automation**: [autonomous/gated/manual/n/a]
**Location**: [path]
**Self-Improving**: [yes/no]
**State Dependencies**: [list or "none"]
**Process**: [N] steps
**Approval Gates**: [count or "none"]
Create this skill?
After confirmation:
mkdir -p [path]cat [path]/SKILL.md | head -20
Edits to existing skill files hot-reload without restart. A restart is only needed if the top-level skills directory (~/.claude/skills/ or .claude/skills/) didn't exist before this session.
Tier 1 - Simple Skill:
---
name: skill-name
description: What it does
allowed-tools: [tools]
user-invocable: true
---
# Skill Name
## Purpose
## Process
## Outputs
Tier 2 - Stateful Skill:
---
name: skill-name
description: What it does
allowed-tools: [tools]
user-invocable: true
---
# Skill Name
## Purpose
## State Dependencies
| Source | Location | Read | Write |
## Process
## Outputs
Tier 3 - Full Playbook:
---
name: playbook-name
description: What it does
automation: gated # project convention (see note below)
schedule: "0 9 * * 1" # project convention, optional
allowed-tools: [tools]
effort: high # optional: low/medium/high/xhigh/max
user-invocable: true
---
# Playbook Name
## Purpose
## State Dependencies
## Prerequisites
## Process
### Step 1: Read Current State
### Step N: [Work]
### Final Step: Write Updated State
## Completion Checklist
## Error Recovery
Skills here use a mix of official Claude Code frontmatter and project-specific fields.
Official Claude Code fields (https://code.claude.com/docs/en/skills.md):
name, description, allowed-tools, argument-hintuser-invocable, disable-model-invocationwhen_to_use — additional trigger context; combined with description, capped at 1,536 chars in skill listingarguments — named positional args: arguments: [issue, branch] → $issue, $branch in contentmodel, effort — override model/effort level (low/medium/high/xhigh/max)shell — bash (default) or powershell for ! command blockscontext: fork + agent: — run the skill in a subagentpaths: — glob patterns to scope auto-activationhooks: — skill-scoped lifecycle hooksString substitutions available in skill content:
$ARGUMENTS — full argument string; $ARGUMENTS[N] / $N — positional (0-based)$name — named arg from arguments: frontmatter${CLAUDE_SESSION_ID} — current session ID${CLAUDE_EFFORT} — active effort level${CLAUDE_SKILL_DIR} — absolute path to the skill's directory (use for bundled scripts)Project-specific (not official Claude Code):
metadata: block with version, changelog, authorautomation: autonomous | gated | manualschedule: "<cron>"The project fields are load-bearing for the agent-dev plugin's playbook model. They work locally but won't be recognized by tooling that only reads official Claude Code frontmatter. Anthropic's official path for cloud-hosted scheduled execution is Routines — create one with /schedule in the CLI or at claude.ai/code/routines. Routines run on Anthropic infrastructure without a local machine.
When generating Tier 3 playbooks, keep the project fields (the rest of the plugin depends on them) and optionally add official fields like model:, context: fork, or paths: when they fit.
When user opts into self-improving skills, append this section to the generated skill:
## Self-Improvement
After completing this skill's primary task, consider tactical improvements:
- [ ] **Review execution**: Were there friction points, unclear steps, or inefficiencies?
- [ ] **Identify improvements**: Could error handling, step ordering, or instructions be clearer?
- [ ] **Scope check**: Only tactical/execution changes—NOT changes to core purpose or goals
- [ ] **Apply improvement** (if identified):
- [ ] Edit this SKILL.md with the specific improvement
- [ ] Keep changes minimal and focused
- [ ] **Version control** (if in a git repository):
- [ ] Stage: `git add <skill-path>/SKILL.md`
- [ ] Commit: `git commit -m "refactor(<skill-name>): <brief improvement description>"`
The 45-Minute Rule: Agent reliability degrades exponentially after ~45 minutes of continuous execution. Design playbooks accordingly:
When gathering requirements for Tier 3 playbooks, ask: "Can this complete in under 45 minutes? If not, how should we chunk it?"
The No-Gates Rule for Autonomous Playbooks: Autonomous playbooks run unattended on a schedule — there is no human to approve gates. An [APPROVAL GATE] in an autonomous playbook will cause execution to hang indefinitely, breaking the scheduled run.
[APPROVAL GATE] markersgated or manual, not autonomousThe Single-Task Rule for Scheduled Skills: Autonomous playbooks execute in a single context window. Iterating over multiple different tasks (e.g., "process all backlog items") fills that window with context from each prior item, adding noise to every subsequent step.
Before generating any autonomous playbook, verify:
[APPROVAL GATE] — must return zero matchesIf any check fails, the playbook cannot be autonomous. Recommend gated instead.
| Skill | Purpose |
|---|---|
| adjust-playbook | Modify existing skills |
| playbook-architect | Audit and improve agent skills |