Index of every page on this site: llms.txt
All skills
redis avatar

/add-agent-playbooks

@74708da official
by redisredis/agent-skills178 stars
36
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/redis/agent-skills/add-agent-playbooks

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesintegration.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Integrate Playbooks with the agent

Read this when adding or checking runtime discovery, procedure loading, and proposal submission. Use the choices from the main skill.

Create the Playbook once at startup, with the environment loaded by the application's launcher. from_env() reads process variables, not iris.toml or dotenv files by itself. A working CLI profile does not configure the application's SDK:

from redis_iris import AgentPlaybooks

playbook = AgentPlaybooks.from_env()
audience = None  # e.g. "support" only when the content has that attribute
propose_uncovered = False  # use the decision from the main skill

Create one of these objects with those same choices:

# Progressive disclosure: the model chooses which procedure to load.
context = playbook.disclosure(audience=audience, propose_uncovered=propose_uncovered)

Register all three tools from context.tools(): load_skill, read_skill_resource, and discover_playbook. Adapt their name, description, JSON-schema parameters, and sync/async call to the framework's tool interface. Give the same tools to the model and its tool executor. Instruct the model to load a Skill using the key and version shown in the menu before following it.

# Score-based hooks: the top matching procedure is loaded automatically.
context = playbook.hooks(
    audience=audience,
    propose_uncovered=propose_uncovered,
    load_skills_above=0.75,
)

Tune that threshold against observed scores. These hooks load one Skill's instructions; they do not register resource-loading tools. Procedures needing attached files require explicit resource reads or progressive disclosure.

For either mode, insert the context before the model and submit the accepted final answer afterward:

system_prompt = f"{BASE_SYSTEM}\n\n{context.before(question)}"
# Run the existing agent with this prompt, its response policy, and its tools.
context.after(question, answer)

Build from the base prompt afresh each turn to avoid accumulating old content. Async equivalents are abefore and aafter.

Preserve the application's response/authorization rules in BASE_SYSTEM and its acceptance path. Define how it asks for clarification or escalates insufficient content. Playbook failures raise by default; implement the agreed outage behavior using the application's existing error handling. Use the SDK's optional fail_open only when continuing without Playbook guidance fits that policy.

Framework Placement
LangGraph attach(context, graph) from redis_iris.integrations.langgraph, before compile(). For disclosure, add langchain_tools(context) to both bind_tools and ToolNode. Use answer_from= if the accepted answer lives outside the last message.
Google ADK attach(context, agent) from redis_iris.integrations.adk. Register adapted disclosure tools separately.
OpenAI Agents SDK Add context through dynamic instructions; call after on the final answer after Runner.run.
Pydantic AI Add context through a dynamic system prompt; call after after agent.run.
CrewAI Add context to task/agent inputs before execution; use the final accepted task output for after.
Plain loop Assemble context before the model call; call after after the final answer.

Use the configured context object throughout. Passing playbook to attach constructs fresh default hooks and loses the choices above.

propose_uncovered=True files the final answer unchanged as an FAQ proposal only when discovery is empty and neither truncation flag is set. It has no source or evidence. If submission needs a judge, normalization, provenance, or evidence, leave automatic proposals off and call playbook.propose_faq(...) behind the application's existing gate. An identical candidate resolves to an existing proposal; a different answer can create another.

For direct retrieval, custom filters, version-frozen turns, FAQ/Skill proposal APIs, and package submission, inspect the installed redis_iris.agent_playbooks source. If sessions are also recorded in Agent Memory, read memory extraction before enabling a second proposal path.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts20d3 checks · Risk SAFE
  • Gen Agent Trust Hub20d

    This skill facilitates the integration of Redis Iris Agent Playbooks into AI agents, allowing them to use approved FAQs and procedural Skills. It follows security best practices regarding credential management and environment separation. While it introduces an indirect prompt injection surface by ingesting external content, this is inherent to its functionality and is managed through publication workflows and content versioning.

  • Socket20d

    No alerts

  • Snyk20d

    Risk: LOW · No issues

Signed by skilld at 74708da. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 weeks ago
metadata
{
  "author": "redis",
  "version": "1.0.0"
}

README badge

README badge for redis/agent-skills/add-agent-playbooks