Skip to content

feat: Documentation Agent — auto-generate Vercel-deployable product docs site from codebase #149

Closed

Description

@vybe

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

  1. Code analysis — Read Trinity source (frontend Vue components, backend routers, feature flows) to understand what features exist and how they work
  2. Screenshot capture — Use headless browser (Playwright) to navigate the running Trinity UI and capture screenshots of key flows
  3. Doc generation — Write/update MDX or Markdown documentation pages per feature (Getting Started, Agents, Schedules, Credentials, Settings, etc.)
  4. Git push — Commit updated docs to the dedicated docs GitHub repo
  5. 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)

Activity

  1. added
    enhancement
    on Mar 19, 2026
  2. vybe commented on Apr 3, 2026

    @vybe
    ContributorAuthor

    Closing — this capability has been implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions