Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Summary
Build a Trinity agent that reviews the codebase (on first run or after updates) and automatically maintains a product documentation website deployed on Vercel. The docs site follows the visual style of ability.ai and lives in a dedicated GitHub repo that Vercel watches for auto-deploy.
Motivation
Trinity needs living product documentation that stays in sync with the platform as it evolves — without requiring manual writing. A dedicated agent can analyze the UI, take screenshots, and generate/update human-friendly docs pages automatically.
Proposed Design
Agent Responsibilities
- Code analysis — Read Trinity source (frontend Vue components, backend routers, feature flows) to understand what features exist and how they work
- Screenshot capture — Use headless browser (Playwright) to navigate the running Trinity UI and capture screenshots of key flows
- Doc generation — Write/update MDX or Markdown documentation pages per feature (Getting Started, Agents, Schedules, Credentials, Settings, etc.)
- Git push — Commit updated docs to the dedicated docs GitHub repo
- Vercel auto-deploy — Vercel watches the docs repo and deploys on every push (zero manual steps)
Triggers
- On demand: user asks the agent to regenerate docs
- Scheduled: after each Trinity release / PR merge to main
- Diff-aware: agent detects which files changed and only regenerates affected doc pages
Docs Site
- Simple static site (Next.js or Astro) deployable to Vercel with zero config
- Visual style matching ability.ai — clean, minimal, modern
- Pages include: embedded screenshots, feature descriptions, step-by-step guides
- Hosted in a new GitHub repo (e.g.
abilityai/trinity-docs)
Acceptance Criteria
- Agent can run from scratch and produce a complete docs site for the current Trinity version
- Agent detects code/UI changes and updates only the affected doc pages
- Screenshots are automatically captured from the running Trinity instance and embedded in pages
- Docs repo has a working Vercel deployment that auto-updates on push
- Docs site visual style matches ability.ai (fonts, colors, layout)
- Agent can be triggered manually via Trinity chat or on a schedule
- Docs cover at minimum: Getting Started, Creating Agents, Agent Chat, Schedules, Credentials, Settings, Public Links
Technical Notes
- Agent needs headless browser (Playwright/Chromium) — see Add headless browser support for agents #146 for browser support in agent containers
- Docs framework: Next.js + Tailwind (or Astro) — lightweight, Vercel-native
- Screenshots stored in
/public/screenshots/in docs repo, referenced in MDX pages - Trinity backend API used to enumerate features/agents/routes for doc coverage
- Docs repo structure:
pages/,public/screenshots/,components/,styles/
Out of Scope
- Interactive API playground (future)
- Auto-translation (future)
- Versioned docs per Trinity release (future)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
vybe commentedon Apr 3, 2026
Closing — this capability has been implemented.