skills/beam/beam-tools/demo-documentation-generation-agent/SKILL.md
Generate comprehensive, fully-detailed documentation for Beam AI agents from graph.json files. Load when user says "document beam agent", "create agent documentation", "generate agent docs", "document this agent", "demo documentation", or provides a Beam agent graph file. Analyzes graph structure, extracts workflow, tools, integrations, descriptions, and generates complete documentation with NO placeholders.
npx skillsauth add beam-ai-team/beam-next-skills demo-documentation-generation-agentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automatically generate fully-detailed, comprehensive documentation for Beam AI agents from their graph definitions - no placeholders, just complete information.
This skill is read-only for Beam state, but it writes local documentation and can optionally update Notion. Before fetching graphs, writing files, or publishing to Notion, show the workspace ID, agent ID or graph file, output directory, Notion page ID when used, and whether customer-sensitive graph details will be included. Require explicit user approval in the current turn before writing files or updating Notion. Do not create, update, publish, or run Beam agents from this skill.
This skill automates the entire process of creating professional documentation for Beam AI agents with automatic detailed content generation:
Time saved: ~45-60 minutes of manual documentation work per agent Quality: Production-ready documentation on first generation
.env:
BEAM_API_KEY=<beam-api-key>
BEAM_WORKSPACE_ID=your_workspace_id
.env:
NOTION_API_KEY=<notion-api-key>
Dependencies: requests, python-dotenv (already installed)
# Fetch agent graph from Beam AI and generate docs
python 03-skills/beam-document-agent/scripts/document_agent.py \
--workspace-id 505d2090-2b5d-4e45-b0f4-cc3a0b299aa8 \
--agent-id 162e7c30-0d95-49ab-af99-7eef872a2d0d \
--output-dir 04-workspace/beam-agents
# Generate docs from existing graph.json file
python 03-skills/beam-document-agent/scripts/document_agent.py \
--graph-file 04-workspace/beam-agents/agent-graph-162e7c30.json \
--output-dir 04-workspace/beam-agents
# Generate docs and update Notion page (requires page access)
python 03-skills/beam-document-agent/scripts/document_agent.py \
--workspace-id 505d2090-2b5d-4e45-b0f4-cc3a0b299aa8 \
--agent-id 162e7c30-0d95-49ab-af99-7eef872a2d0d \
--notion-page-id 2df2cadf-bbbc-80e5-bbda-ffaf9e724ff2 \
--output-dir 04-workspace/beam-agents
The skill generates multiple files in the specified output directory:
agent-graph-{agent-id}.json - Raw agent graph from Beam AIagent-analysis-{agent-id}.json - Parsed analysis with extracted metadata{agent-name}-documentation.md - Complete markdown documentation{agent-name}-notion-blocks.json - Notion API blocks (if --notion flag used)The generated documentation follows this comprehensive structure:
Each scenario uses H3 toggle format: ### ▶ Scenario X – Title
| Parameter | Required | Description |
|-----------|----------|-------------|
| --workspace-id | Yes* | Beam workspace ID (UUID format) |
| --agent-id | Yes* | Beam agent ID (UUID format) |
| --graph-file | Yes* | Path to existing graph.json file |
| --output-dir | No | Output directory (default: 04-workspace/beam-agents) |
| --notion-page-id | No | Notion page ID to update with documentation |
| --format | No | Output format: markdown, notion, or both (default: both) |
| --agent-name | No | Override agent name (auto-detected from graph) |
* Either --workspace-id + --agent-id OR --graph-file is required
python 03-skills/beam-document-agent/scripts/document_agent.py \
--workspace-id 505d2090-2b5d-4e45-b0f4-cc3a0b299aa8 \
--agent-id 162e7c30-0d95-49ab-af99-7eef872a2d0d \
--agent-name "Candidate Screening Agent (Greenhouse)" \
--output-dir 04-workspace/beam-agents
# Output:
# ✅ Fetched agent graph
# ✅ Analyzed 11 nodes, 6 inputs, 6 outputs
# ✅ Identified integrations: Airtable, Workable
# ✅ Generated documentation: candidate-screening-agent-documentation.md
python 03-skills/beam-document-agent/scripts/document_agent.py \
--graph-file 04-workspace/beam-agents/my-agent-graph.json \
--format markdown
# Output:
# ✅ Loaded graph from file
# ✅ Analyzed 8 nodes
# ✅ Generated: my-agent-documentation.md
python 03-skills/beam-document-agent/scripts/document_agent.py \
--workspace-id 505d2090-2b5d-4e45-b0f4-cc3a0b299aa8 \
--agent-id 162e7c30-0d95-49ab-af99-7eef872a2d0d \
--notion-page-id 2df2cadf-bbbc-80e5-bbda-ffaf9e724ff2
# Output:
# ✅ Fetched agent graph
# ✅ Generated documentation
# ⚠️ Notion page not accessible - grant integration access
# ℹ️ Documentation saved to markdown for manual import
--workspace-id and --agent-id provided:
--graph-file provided:
--notion-page-id provided and page is accessible:
Automatically detects:
| Issue | Behavior | |-------|----------| | Invalid workspace/agent ID | Error message with ID format guidance | | API authentication failure | Check .env credentials guidance | | Graph file not found | File path validation error | | Notion page not accessible | Save to file + provide access instructions | | Missing required parameters | Parameter validation with examples | | API rate limit | Automatic retry with backoff |
04-workspace/beam-agents/
├── candidate-screening/
│ ├── agent-graph.json
│ ├── documentation.md
│ └── analysis.json
├── invoice-processing/
│ ├── agent-graph.json
│ └── documentation.md
└── README.md
Finding Workspace & Agent IDs:
https://app.beam.ai/{workspace-id}/{agent-id}Customizing Documentation:
Notion Integration:
Batch Processing:
# List all agents in workspace
python skills/beam/beam/beam-master/scripts/list_agents.py
# Document each one
for agent_id in agent_ids; do
python 03-skills/beam-document-agent/scripts/document_agent.py \
--workspace-id $WORKSPACE_ID \
--agent-id $agent_id \
--output-dir 04-workspace/beam-agents/$agent_id
done
# Generate docs for all agents
python 03-skills/beam-document-agent/scripts/batch_document.py \
--workspace-id 505d2090-2b5d-4e45-b0f4-cc3a0b299aa8 \
--output-dir 04-workspace/beam-agents \
--create-index
templates/documentation_template.md--template flag to specify custom template"Agent graph not found"
"Notion page not accessible"
"Invalid graph structure"
"Missing integrations in output"
beam-document-agent to demo-documentation-generation-agent### ▶ Scenario X – TitleparamDescription fieldstoolConfiguration added to node breakdownVersion: 1.2 Updated: 2026-01-06 Status: Production Ready
tools
Build a Palantir-shape, PDF-native use-case proposal document for a sophisticated enterprise account: research-grounded use cases (each with description, challenge, impact, value), an operating-graph ontology page, a recommended PoC with a week-by-week plan, and a closing page that asks for one decision. Load when a client asks us to 'propose high-impact use cases', requests a use-case presentation/catalog for a function (finance, HR, ops), or when a technical evaluation team will review candidates to pick a PoC. NOT for single-account cold outreach (use prospect-brief), full process diagnostics (use operating-diagnostic), or priced proposals (use proposal-creation).
development
Convert Beam Figma slide designs into high-fidelity, editable HTML presentation decks. Use when Codex is asked to audit Figma slides, extract slide templates, rebuild Beam slides as HTML decks, decide whether Figma imagery should be exported or rebuilt in HTML/CSS, create Beam/Prism-compatible deck templates, or improve fidelity of existing Beam HTML slide rebuilds.
development
Use the Beam AI reusable slide library: individual HTML slide templates extracted from Beam Figma rebuilds, kept separate from deck themes and full deck templates. Load when the user asks for a slide library, specific Beam slide patterns, reusable Figma-inspired slides, Prism slide-library items, or slide-level HTML templates.
development
Use Beam AI deck and report design packs, HTML templates, and curated examples to create sales decks, customer intro decks, RPO decks, and DIN A4 use-case proposal reports. Load when the user asks for Beam-branded presentation templates, Prism-compatible deck templates, Beam report templates, customer intro decks, commercial proposals, or reusable HTML deck/report examples.