Skip to content

Add Claude Code documentation agents and workflow#444

Open
samgutentag wants to merge 12 commits intomainfrom
feat/claude-code-agents
Open

Add Claude Code documentation agents and workflow#444
samgutentag wants to merge 12 commits intomainfrom
feat/claude-code-agents

Conversation

@samgutentag
Copy link
Member

@samgutentag samgutentag commented Feb 17, 2026

Summary

Claude Code agent system for documentation workflows. Five agents that turn raw notes (Slack threads, engineer scribbles, Linear tickets) into polished docs with full project tracking.

Agents

Agent Model Purpose
notes-processor Opus End-to-end pipeline: notes → research → draft → branch/PR/Linear → changelog → Slack → report
doc-writer Opus Documentation drafting with structured outputs
doc-researcher Sonnet Context gathering from Linear + existing docs
changelog-writer Sonnet Changelog/release note entries
branch-manager Sonnet Git branches, PRs, Linear ticket lifecycle

Pipeline (8 phases)

  1. Parse notes → 2. Research (Linear + docs) → 3. Sources audit trail → 4. Draft docs → 5. Branch/PR/Linear → 6. Changelog → 7. Slack post → 8. HTML review report

Files

  • .claude/agents/ — 5 agent definitions + README with Mermaid diagrams
  • .claude/drafts/TEMPLATE.md — notes file template
  • .claude/tmp/ (gitignored) — all agent outputs (report.html, changelogs/, slack/, sources/)

Key conventions

  • PR titles: [TRUNK-XXXXX] Short descriptive title
  • PR bodies include clickable Linear ticket URLs
  • Linear tickets get PR links, context links, and related ticket links
  • One draft = one branch = one PR = one Linear ticket
  • All outputs consolidated under .claude/tmp/

Validated with 8 documentation PRs

Draft PR Linear
google-cloud.md #438 TRUNK-17580
atlassian-bamboo.md #436 TRUNK-17578
flaky-tests-rules-engine.md #434 TRUNK-17576
new-merge-graph-ui.md #433 TRUNK-17575
merge-queue-api-endpoints.md #439 TRUNK-17581
falky-test-cyprus.md #435 TRUNK-17577
concurrency-settings.md #437 TRUNK-17579
run-tests-private-fork.md #445 TRUNK-17582

Test plan

  • Process 7 existing drafts — updated PRs and Linear tickets
  • Process 1 new draft — created new branch, PR, and Linear ticket
  • All PR titles prefixed with [TRUNK-XXXXX]
  • All PR bodies contain Linear ticket links
  • All Linear tickets have PR link comments
  • Report.html contains review cards for all 8 drafts
  • Review each PR individually via GitBook Change Request preview

🤖 Generated with Claude Code

samgutentag and others added 12 commits February 17, 2026 10:59
Set up three subagents for accelerating Trunk docs workflows:
- doc-writer (Opus): full documentation drafting with structured outputs
- doc-researcher (Sonnet): context gathering from Linear and existing docs
- changelog-writer (Sonnet): focused changelog/release note entries

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add branch-manager agent for git branch, PR, and Linear ticket lifecycle
- Update agents README with branch-manager in the available agents table
- Add Local Development section to repo README with GitBook preview workflow

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add notes-processor agent for end-to-end pipeline: notes file in,
  branch/PR/Linear ticket out
- Add .claude/drafts/ directory with template for Slack pastes and
  engineer notes
- Update agents README with new workflow documentation
- Add .gitignore rules to keep personal drafts out of git

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Explainers enhance existing docs with examples and scenarios based on
customer questions, with guidelines to keep workflow guides clean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Agents now produce a .sources.md file alongside each notes file,
listing every Linear ticket, GitHub PR, existing doc, code snippet,
and external reference used as input. Provides a human-readable
audit trail for accuracy checks and cross-referencing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add review report generation (Phase 6) to notes-processor agent
- Add Slack link extraction and attachment to Linear tickets
- Add automatic search and linking of related engineering tickets
- Enrich PR bodies with Slack context and related ticket references
- Add Slack Links field to notes template
- Create session report at .claude/reports/2026-02-17-docs-backlog.md
- Replace Claude Squad references with sequential workflow docs
- Add "What the Agent Does" section to README explaining all 6 phases

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Agents now extract and attach all URLs from notes files — Slack, Slite,
Loom, Google Docs, Notion, and any other context links. All are attached
to Linear tickets and referenced in PR bodies. Template field renamed
from "Slack Links" to "Context Links".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Changelog entries now staged to .claude/staging/changelog/ for DatoCMS upload
- Review reports output as HTML (open in browser with clickable links and checkboxes)
- Remove old markdown report format
- Add .claude/staging/ and .claude/reports/*.html to .gitignore
- Update notes-processor with Phase 5.5 (changelog) and updated Phase 6 (HTML report)
- Broaden template "Slack Links" to "Context Links" (Slack, Slite, Loom, etc.)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Move all agent outputs to .claude/tmp/ (report.html, changelogs/, slack/, sources/)
- Add Phase 5.6: Slack post generation for internal team notification
- Remove console text summary output format
- Require clickable Linear links in all sources files
- Simplify .gitignore to single .claude/tmp/ entry
- Clean up old staging/, reports/, and drafts/*.sources.md locations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Ensure GitHub PRs and Linear tickets cross-reference each other by
requiring a Linear ticket ID prefix in PR titles and clickable Linear
URLs in PR bodies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Visual diagrams showing the 8-phase notes-processor pipeline flow
and how the 5 agents collaborate with external services.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant