Skip to content

Keep Playbooks out of the agent's vocabulary: agents work Plays and schemas, and Playbooks install only from the app #3506

Closed

Description

@malibio

Overview

A Playbook is a bundle a user starts from in the app, behind the Labs "Playbooks" toggle. To an agent, what a Playbook installs is just schemas, Plays and skills like any other. Today the agent is taught the Playbook concept directly, and taught to install one by hand, which gets around the Labs toggle.

Observed: asked what a cycle is, an external agent said SKILL.md "mention[s] a Linear-style work-tracking playbook", and it described the installed setup as "the Linear-style playbook". Nothing in the user's request mentioned playbooks.

Problem Statement

The agent learns about Playbooks from four places:

  1. packages/skill/SKILL.md, the work-tracking line: "first run nodespace skill guidance \"workspace workflow\"; a <Playbook> Workspace hit means one is installed — use it, never reinstall. Else, if asked: references/linear-playbook.md, references/spec-driven-playbook.md, references/jira-playbook.md."
  2. Three generated reference files (packages/skill/references/{linear,jira,spec-driven}-playbook.md). They are the CLI-verb form of each Playbook, so an agent can rebuild one call by call, with no Labs gate. They are rendered by packages/cli/examples/gen_skill_md.rs (render_playbook_block) and embedded for PTY agents by packages/agent/src/agent_catalog/context_assembly.rs (SKILL_*_PLAYBOOK).
  3. A "Workspace" skill seeded by every Playbook ("Linear-style Workspace", "Jira-style Workspace", "Spec-driven Workspace" in packages/core/src/methodology/{linear,jira,spec_driven}.rs). It exists to tell the agent which Playbook is installed; its description reads "the Linear-style Playbook installed here".
  4. The CLI noun: nodespace playbook list|enable|disable|get-workflow-state manages Plays, not Playbooks, so even Play management teaches the agent the word.

Decisions

  • Plays are the workflows; a Playbook is only the bundle a user installs from. Agent-facing text names Plays, schemas and skills, never Playbooks.
  • Playbooks install only from the app, from the starter list in the Plays section (Add a 'Plays' navigation section: list plays with their state and open them (Labs Playbooks-gated) #3270), behind the Labs "Playbooks" toggle. No agent path installs one.
  • The Labs toggle only hides UI. Installed Plays keep running whatever it says, as AI Chats' toggle only hides chats.
  • The agent works an installed setup from what is in the graph: the task skills (for example "Creating an Issue", "Sprints and Cycles") and the schemas (issue, cycle). It does not need to know which Playbook they came from.

Proposed Solution

  • Remove the work-tracking Playbook line from SKILL.md.
  • Delete the three *-playbook.md references, their gen_skill_md.rs regions and render_playbook_block, and their embedding and writing in context_assembly.rs. Update the skill install record and any test that lists the shipped references (for example scripts/publish-skill-repo.test.ts).
  • Drop the "Workspace" skill from each Playbook's seeded skills, together with its entry in the bundle's skill_ids.
  • Reword any remaining seeded skill text that names a Playbook so it describes the types and the workflow instead.
  • Rename the CLI command nodespace playbook to nodespace play, with no alias, and update references/cli.md, SKILL.md and the in-app agent's tool and skill guidance that cites it.

Architecture Impact

This changes ADR-075 (../nodespace-docs/decisions/075-playbooknode-installable-bundle-record.md). It says a bundle may be installed "via a future onboarding flow, a settings action, or direct CLI/agent authoring", and keeps Play/schema authoring "CLI/agent-driven rather than UI-driven". The amendment: installing a Playbook is an app action behind the Labs toggle only. Agents still author individual schemas and Plays.

Companion nodespace-docs changes, required in the same change:

  • amend ADR-075 as above;
  • update architecture/playbook-system.md and architecture/prompt-skill-system.md wherever they describe agent-side Playbook install or the Workspace skill;
  • update the CLI command name wherever the docs cite nodespace playbook.

Acceptance Criteria

  • SKILL.md, references/cli.md and every shipped reference contain no Playbook guidance; a test fails if a *-playbook.md reference is shipped again
  • nodespace skill install no longer installs *-playbook.md files, and removes ones an earlier install put there
  • PTY agents no longer receive the Playbook references
  • Installing any Playbook seeds no "Workspace" skill, and its skill_ids lists none
  • No seeded skill's title, description or guidance names a Playbook
  • nodespace play list|enable|disable|get-workflow-state replaces nodespace playbook …, and the old noun is gone
  • Every agent-facing reference to the old command is updated (CLI reference, SKILL.md, in-app agent tool and skill guidance), and the prompt golden snapshot is regenerated and reviewed
  • ADR-075 and the architecture docs are updated as listed under Architecture Impact
  • Code passes bun run quality:fix
  • Tests pass (bun run test:changed)

Technical Specifications

Reference Files

  • packages/skill/SKILL.md — the work-tracking line
  • packages/skill/references/*-playbook.md — generated references to delete
  • packages/cli/examples/gen_skill_md.rs — reference regions and render_playbook_block
  • packages/agent/src/agent_catalog/context_assembly.rs — SKILL_LINEAR_PLAYBOOK, SKILL_SPEC_DRIVEN_PLAYBOOK, SKILL_JIRA_PLAYBOOK and where they are written
  • packages/core/src/methodology/{linear,jira,spec_driven}.rs — the "Workspace" skill templates and their tests
  • packages/core/src/methodology/skills.rs — seeded Playbook skill templates
  • packages/cli/src/lib.rs, packages/cli/src/commands/playbook.rs — the Playbook command
  • packages/skill/src/installer.ts — install record cleanup of removed references

Implementation Details

  • SKILL.md is checked for drift against gen_skill_md.rs; regenerate it rather than hand-editing.
  • Changing model-facing text in packages/agent fails prompt_assembly_snapshot; regenerate with UPDATE_GOLDEN=1 and review the diff.
  • The nodespace CLI input changes, so the skill guidance in SKILL.md and references/cli.md changes in the same PR.

Related Issues

Non-Goals

Activity

  1. malibio commented on Oct 4, 2026

    @malibio
    CollaboratorAuthor

    Closing as overtaken by ADR-092 (https://github.com/NodeSpaceAI/nodespace-docs/blob/main/decisions/092-spec-plan-and-decision-are-core-types.md). The installable methodologies are removed, so there is no Playbook for an agent to learn about or install: the bundle reference files, the work-tracking line in SKILL.md and the per-bundle Workspace skills all go in #3542. Nothing here remains to do separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions