Update documentation pages in the pipecat-ai/docs
repository to reflect source code changes on the current branch. Analyzes the diff against
main, maps changed source files to their corresponding doc pages, and makes targeted edits.
Arguments
/update-docs [DOCS_PATH]
DOCS_PATH (optional): Path to the docs repository root. If not provided, ask the user.
Instructions
Step 1: Resolve docs path
- If
DOCS_PATH is provided as an argument, use it. Otherwise ask the user.
- Verify the path exists and contains an
api-reference/pipecat-flows/ subdirectory.
- If verification fails, stop and report the error.
Step 2: Create docs branch
Step 3: Detect changed source files
- From the pipecat-flows repo root, run:
git diff main..HEAD --name-only
- Filter results to files matching
src/pipecat_flows/*.py.
- Track only:
types.py, manager.py, actions.py, adapters.py, exceptions.py.
- Ignore:
__init__.py, __pycache__/, test files.
- If no relevant source files changed, stop and report "no doc-affecting changes."
Step 4: Map source files to doc pages
- Read
.claude/skills/update-docs/SOURCE_DOC_MAPPING.md.
- For each changed source file, look up its doc page(s) in the API Reference Pages and Guide Pages tables.
- Collect the unique set of doc pages to update.
Step 5: Analyze each source-doc pair
For each changed source file and its mapped doc page(s):
- Read the full source file.
- Read the diff:
git diff main..HEAD -- src/pipecat_flows/<file>
- Read the current doc page in full.
- Compare based on file type:
- types.py — Class fields, type signatures, type aliases vs.
<ParamField> entries and type sections in api-reference/pipecat-flows/types.mdx. Also check guide pages: nodes-and-messages.mdx, functions.mdx, context-strategies.mdx.
- manager.py —
FlowManager.__init__ parameters and methods vs. <ParamField> entries in api-reference/pipecat-flows/flow-manager.mdx. Also check state-management.mdx.
- actions.py —
register_action signature, built-in action types vs. action sections in api-reference/pipecat-flows/flow-manager.mdx and api-reference/pipecat-flows/types.mdx. Also check actions.mdx.
- adapters.py — Supported LLM providers vs. LLM Provider Support table in
api-reference/pipecat-flows/overview.mdx. Also check Cross-Provider Compatibility in nodes-and-messages.mdx.
- exceptions.py — Exception class hierarchy and docstrings vs.
api-reference/pipecat-flows/exceptions.mdx.
- Also check: class names, imports, default values, and behavioral changes noted in docstrings.
Step 6: Make targeted edits
Apply these conservative rules:
- Never remove content unless the corresponding source code was removed.
- Never rewrite accurate sections — only update what actually changed.
- Match existing formatting — use the same heading levels, list styles, and code block languages.
- Keep descriptions concise — match the voice and brevity of surrounding content.
- Preserve CardGroup, links, and examples — do not restructure page layout.
- Don't touch frontmatter unless a class or module was renamed.
Step 7: Check guide pages
- For each changed source file, collect class names, renamed parameters, and changed imports from the diff.
- Check each mapped guide page (see SOURCE_DOC_MAPPING.md Guide Pages table) for references to these identifiers.
- If a guide references a changed API: read the full guide, update the specific references.
- If the guide only references concepts generally (not the specific changed APIs): leave it alone.
- Also check
quickstart.mdx if FlowManager init, FlowsFunctionSchema, or handler return types changed.
Step 8: Output summary
Print a summary in this format:
## Documentation Updates
### Updated reference pages
- `api-reference/pipecat-flows/types.mdx` — <brief description of changes>
### Updated guide pages
- `pipecat-flows/guides/functions.mdx` — <brief description of changes>
### Skipped files
- `src/pipecat_flows/__init__.py` — re-exports only
### No changes needed
- `api-reference/pipecat-flows/exceptions.mdx` — already up to date
Guidelines
- Be conservative — only change what the diff warrants.
- Read before editing — always read the full doc page before making changes.
- Preserve voice — match the existing writing style of each page.
- One PR at a time — operate on the current branch's diff against main.
- Parallel analysis — when multiple source files map to different doc pages, analyze them in parallel.
Checklist
Before finishing, verify:
Source: pipecat-ai/pipecat-flows — distributed by TomeVault.
1---2name: update-docs-243description: Update documentation pages to match source code changes on the current branch Use when this capability is needed.4---56Update documentation pages in the [pipecat-ai/docs](https://github.com/pipecat-ai/docs)7repository to reflect source code changes on the current branch. Analyzes the diff against8main, maps changed source files to their corresponding doc pages, and makes targeted edits.910## Arguments1112`/update-docs [DOCS_PATH]`1314- `DOCS_PATH` (optional): Path to the docs repository root. If not provided, ask the user.1516## Instructions1718### Step 1: Resolve docs path1920- If `DOCS_PATH` is provided as an argument, use it. Otherwise ask the user.21- Verify the path exists and contains an `api-reference/pipecat-flows/` subdirectory.22- If verification fails, stop and report the error.2324### Step 2: Create docs branch2526- Get current pipecat-flows branch name: `git rev-parse --abbrev-ref HEAD`27- In docs repo, create and switch to a new branch:28 ```29 cd DOCS_PATH && git checkout main && git pull && git checkout -b {branch-name}-docs30 ```3132### Step 3: Detect changed source files3334- From the pipecat-flows repo root, run: `git diff main..HEAD --name-only`35- Filter results to files matching `src/pipecat_flows/*.py`.36- Track only: `types.py`, `manager.py`, `actions.py`, `adapters.py`, `exceptions.py`.37- Ignore: `__init__.py`, `__pycache__/`, test files.38- If no relevant source files changed, stop and report "no doc-affecting changes."3940### Step 4: Map source files to doc pages4142- Read `.claude/skills/update-docs/SOURCE_DOC_MAPPING.md`.43- For each changed source file, look up its doc page(s) in the API Reference Pages and Guide Pages tables.44- Collect the unique set of doc pages to update.4546### Step 5: Analyze each source-doc pair4748For each changed source file and its mapped doc page(s):49501. Read the full source file.512. Read the diff: `git diff main..HEAD -- src/pipecat_flows/<file>`523. Read the current doc page in full.534. Compare based on file type:54 - **types.py** — Class fields, type signatures, type aliases vs. `<ParamField>` entries and type sections in `api-reference/pipecat-flows/types.mdx`. Also check guide pages: `nodes-and-messages.mdx`, `functions.mdx`, `context-strategies.mdx`.55 - **manager.py** — `FlowManager.__init__` parameters and methods vs. `<ParamField>` entries in `api-reference/pipecat-flows/flow-manager.mdx`. Also check `state-management.mdx`.56 - **actions.py** — `register_action` signature, built-in action types vs. action sections in `api-reference/pipecat-flows/flow-manager.mdx` and `api-reference/pipecat-flows/types.mdx`. Also check `actions.mdx`.57 - **adapters.py** — Supported LLM providers vs. LLM Provider Support table in `api-reference/pipecat-flows/overview.mdx`. Also check Cross-Provider Compatibility in `nodes-and-messages.mdx`.58 - **exceptions.py** — Exception class hierarchy and docstrings vs. `api-reference/pipecat-flows/exceptions.mdx`.595. Also check: class names, imports, default values, and behavioral changes noted in docstrings.6061### Step 6: Make targeted edits6263Apply these conservative rules:6465- **Never remove content** unless the corresponding source code was removed.66- **Never rewrite accurate sections** — only update what actually changed.67- **Match existing formatting** — use the same heading levels, list styles, and code block languages.68- **Keep descriptions concise** — match the voice and brevity of surrounding content.69- **Preserve CardGroup, links, and examples** — do not restructure page layout.70- **Don't touch frontmatter** unless a class or module was renamed.7172### Step 7: Check guide pages7374- For each changed source file, collect class names, renamed parameters, and changed imports from the diff.75- Check each mapped guide page (see SOURCE_DOC_MAPPING.md Guide Pages table) for references to these identifiers.76- If a guide references a changed API: read the full guide, update the specific references.77- If the guide only references concepts generally (not the specific changed APIs): leave it alone.78- Also check `quickstart.mdx` if FlowManager init, FlowsFunctionSchema, or handler return types changed.7980### Step 8: Output summary8182Print a summary in this format:8384```85## Documentation Updates8687### Updated reference pages88- `api-reference/pipecat-flows/types.mdx` — <brief description of changes>8990### Updated guide pages91- `pipecat-flows/guides/functions.mdx` — <brief description of changes>9293### Skipped files94- `src/pipecat_flows/__init__.py` — re-exports only9596### No changes needed97- `api-reference/pipecat-flows/exceptions.mdx` — already up to date98```99100## Guidelines101102- **Be conservative** — only change what the diff warrants.103- **Read before editing** — always read the full doc page before making changes.104- **Preserve voice** — match the existing writing style of each page.105- **One PR at a time** — operate on the current branch's diff against main.106- **Parallel analysis** — when multiple source files map to different doc pages, analyze them in parallel.107108## Checklist109110Before finishing, verify:111112- [ ] All changed source files checked against the mapping table113- [ ] Each doc page edit matches an actual source code change (not guessed)114- [ ] No content removed unless corresponding source was removed115- [ ] New parameters have accurate types and defaults from source116- [ ] Formatting matches existing page style117- [ ] Guide pages checked and updated if they reference changed APIs118119---120> Source: [pipecat-ai/pipecat-flows](https://github.com/pipecat-ai/pipecat-flows) — distributed by [TomeVault](https://tomevault.io).121<!-- tomevault:4.0:skill_md:2026-06-18 -->