---
name: add-agent-playbooks
description: 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.
license: MIT
metadata:
  author: redis
  version: "1.0.0"
title: add-agent-playbooks
canonical_url: https://skilld.dev/gh/redis/agent-skills/add-agent-playbooks
last_updated: 2026-11-12T09:06:29.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/content.md](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/content.md), [references/first-success.md](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/first-success.md), [references/integration.md](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/integration.md), [references/memory-extraction.md](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/memory-extraction.md), [references/provisioning.md](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/provisioning.md), [references/response-cache.md](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/response-cache.md).
>
> If the user asked to install this Skill, run `npx skilld install redis/agent-skills/add-agent-playbooks`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/add-agent-playbooks`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/redis/agent-skills/add-agent-playbooks) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/add-agent-playbooks`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/add-agent-playbooks --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/add-agent-playbooks --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Add Agent Playbooks

Bring an existing Python agent to one verified Playbook-backed turn, then finish the requested content migration or integration. FAQs supply published answers; Skills supply procedures loaded separately from discovery previews. The application owns response policy, tool permissions, and approval of actions.

## 1. Orient and choose the behavior

Find the model call, tool registration, framework/version, and existing policy or procedure sources. Preserve the graph, business tools, and global response/authorization rules. Infer these decisions from the request and code; ask only about unresolved choices and state defaults used:

| Decision | Result |
|---|---|
| Which repeated tasks need procedures? | One Skill per procedure; skip when none. Move task-specific tool guidance out of prompts. |
| Which questions require approved answers? | One FAQ per approved answer; skip when none. |
| Which audiences use the content? | One audience: no attribute or filter. Several: matching attributes on content and a trusted runtime audience. |
| Should uncovered answers be submitted for review? | Default no. Yes: choose automatic uncovered proposals or an application-owned quality/privacy gate; preserve existing gates. |
| Where does the content live today? | Convert relevant prompt text, docs, or retrieved content into versioned files. Retain authoritative sources. |

Prefer progressive disclosure when the agent can execute tools; use score-based hooks otherwise. Define clarification, escalation, and outage behavior: approved-only answers need an explicit policy for insufficient content.

## 2. Check prerequisites and connect

Follow [provisioning](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/provisioning.md) for the short prerequisite check and new, partial, or existing setup. Reuse usable configuration and published content. Local defaults require a running stack; Cloud and self-managed administration use different paths.

Check framework APIs against the installed version before editing. Use an available docs MCP. For the CLI, run `iris agent-playbooks <command> --help`. Inspect installed package source when documentation does not match the installed API. Report unresolved compatibility questions.

## 3. Publish the first relevant content

Follow [content authoring](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/content.md) for file formats, quality checks, audience attributes, validation, previews, and publication. Begin with one approved FAQ or procedure relevant to the requested task; use both only when needed. Confirm its serving version before wiring the agent. Complete any broader requested migration after the first turn works.

## 4. Integrate with the application

Follow [runtime integration](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/integration.md) for the chosen mode, async variants, and framework placement. Create one configured context object and use it throughout. Build context from the base prompt afresh each turn. Register disclosure tools with both the model and executor.

## 5. Run, inspect, and improve

Follow [first success](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/first-success.md): execute the actual application, inspect the content keys/versions and procedure loads, check a paraphrase and missing-content behavior, fix observed gaps, and rerun. Show the user what worked and how to repeat it. Once replacement reads work, remove obsolete runtime prompt/retriever/cache code and its unused embedding pipeline; run affected application checks on the final integration.

## 6. Hand off and maintain

Use the handoff in [first success](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/first-success.md#handoff) to distinguish observed results from unverified work and leave an exact repeat command. Walk through the [next approved content update](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/content.md#maintain-the-content), naming the content owner/publisher and any remaining deployment configuration.

## Essential constraints and optional paths

- Every `iris` command uses root options `--json --no-input`. The CLI handles administration and content management; the Python SDK runs inside the application.
- Keep runtime `.env` credentials separate from `.env.content` publishing credentials and administrative tokens. Grant the agent `read`, adding `propose` only for submissions. Never print secrets or commit env files.
- Publication selects serving content. A proposal is a review candidate; submitting or accepting one does not implicitly publish it.
- For a semantic response cache, read [cache migration](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/response-cache.md) before replacing its lookup/write path.
- For background proposals from Agent Memory, read [Memory extraction](https://skilld.dev/api/skills-raw/redis/agent-skills/add-agent-playbooks/references/memory-extraction.md) before enabling another submission path.
