generate-guidelines

generate-guidelines is a command for coding agents from anthropics/knowledge-work-plugins. It costs 15 tokens per session (506 once invoked), scanned A, original, Apache-2.0.

A guideline-generation command that turns brand documents, conversation transcripts, discovery reports, or direct instructions into structured brand voice rules.

In plain words
What is it for?
Building a reusable style guide from company materials and recorded conversations.
Why use it?
It makes informal or scattered brand knowledge easier to apply consistently when creating content.

Command

Part of the brand-voice plugin — 3 skills, 3 commands, 5 agents shipped together

About the project

Knowledge Work Plugins is an open-source collection of Claude extensions organized around roles such as productivity, sales, and customer support. Each plugin combines role-specific guidance, connectors, commands, and sub-agents so knowledge workers can use Claude with their team’s tools and processes. The catalogue entries are examples of, or workflows from, this plugin collection.

anthropics/knowledge-work-plugins · 23,849 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/anthropics/knowledge-work-plugins/generate-guidelines
Clone the repo
git clone --depth 1 https://github.com/anthropics/knowledge-work-plugins

Or install brand-voice, the plugin that ships this one along with the rest of its 3 skills, 3 commands, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-guidelines

README.md
[![agentmods](https://agentmods.dev/badge/commands/anthropics/knowledge-work-plugins/generate-guidelines.svg)](https://agentmods.dev/commands/anthropics/knowledge-work-plugins/generate-guidelines)
Your own site
<a href="https://agentmods.dev/commands/anthropics/knowledge-work-plugins/generate-guidelines"><img src="https://agentmods.dev/badge/commands/anthropics/knowledge-work-plugins/generate-guidelines.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 506 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.00506
Opus 5 $0.00008 $0.00253
Sonnet 5 $0.00003 $0.00101
Haiku 4.5 $0.00002 $0.00051

Measured yesterday against content hash 86bd7b41be99, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

generate-guidelines scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

partner-built/brand-voice/commands/generate-guidelines.md · 29 lines

What it actually says

MANDATORY FIRST STEP — do this before anything else, including reading sources or processing arguments. Check whether the user has a working folder selected for this session. You must verify this before starting any guideline generation work. If there is no working folder, stop and warn the user: "You don't have a working folder selected. Without one, I can't save guidelines to a file — they'll only exist in this conversation and won't persist to future sessions. Please select a working folder and re-run this command. If you'd like to proceed anyway, let me know." Wait for the user to confirm before continuing.

Generate comprehensive, LLM-ready brand voice guidelines from whatever sources the user provides — brand documents, conversation transcripts, a discovery report from /brand-voice:discover-brand, or direct input.

Process the sources specified in $ARGUMENTS. If none specified, check:

  1. Whether a discovery report was generated in this session
  2. .claude/brand-voice.local.md for known brand material locations
  3. Connected platforms (Notion, Confluence, Google Drive, Box, SharePoint, Gong) for existing materials
  4. If nothing is available, suggest running /brand-voice:discover-brand first

Follow the guideline-generation skill instructions to:

  1. Identify and classify all available sources (discovery report, documents, transcripts)
  2. Delegate to document-analysis and conversation-analysis agents as needed
  3. Synthesize findings into unified guidelines with "We Are / We Are Not" table and tone-by-context matrix
  4. Assign confidence scores per section
  5. Surface open questions with agent recommendations for any ambiguity
  6. Present key findings and offer next steps
  7. Save guidelines to .claude/brand-voice-guidelines.md inside the user's working folder (archiving any existing file first). Do NOT use a relative path from the agent's current working directory — in Cowork, the agent runs from a plugin cache directory, not the user's project.

After generation, guidelines are saved locally so /brand-voice:enforce-voice can automatically find them in future sessions.

Supported document formats: PDF, PowerPoint, Word, Markdown, plain text. Supported transcript sources: Gong (MCP), Granola (MCP), Notion meeting notes, manual uploads.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 29 lines · 15 tokens per session scan A 86bd7b41be99

Subscribe to this mod's changes

generate-guidelines is a command published in the GitHub repository anthropics/knowledge-work-plugins (23,849 stars, last pushed 2d ago), licensed Apache-2.0. It adds 15 tokens to every session and 506 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.