Skip to content

docs: add /docs/agents/ section and in-flow callouts for the LLM kit#24

Open
omermorad wants to merge 1 commit into
masterfrom
docs/agents-section
Open

docs: add /docs/agents/ section and in-flow callouts for the LLM kit#24
omermorad wants to merge 1 commit into
masterfrom
docs/agents-section

Conversation

@omermorad
Copy link
Copy Markdown
Contributor

Summary

  • New single-page guide at /docs/agents/ (~106 lines) documents the bundled LLM kit shipped inside @suites/unit: copy-paste AGENTS.md + CLAUDE.md snippets, directory-tree map, versioning notes, troubleshooting links.
  • Inline pointers on installation.mdx, why-suites.md, sociable.md, and from-automock.md route funnel readers into the new section.
  • static/llms.txt gains a "For AI coding agents" stanza directing crawlers at node_modules/@suites/unit/dist/llm/knowledge/.
  • Sidebar slot: position 2 (between Get Started and Guides); renumbers guides (2→3) and api-reference (3→4) to fit.

Follows the Vercel next@16.2 pattern (see nextjs.org/docs/app/guides/ai-agents): source of truth lives in the @suites/unit npm package, the website is the human bridge to the bundled docs.

What's in /docs/agents/index.mdx

Single MDX page, ~106 lines, six H2 sections:

  1. How it works — 4-step redirect chain (AGENTS.mdnode_modules/@suites/unit/dist/llm/knowledge/index.md → task-specific file → write test).
  2. Install — Step 1 (AGENTS.md tab + marker-block contract note), Step 2 (CLAUDE.md tab), Verify (3 bullets).
  3. Understanding the bundle — directory tree at node_modules/@suites/unit/dist/llm/ plus a paragraph per subdirectory.
  4. Versioning — v3 API surface, v4 expectations, Vercel evals reference.
  5. Supported agents — one paragraph.
  6. Troubleshooting — one paragraph + 5 agent-docs links (Codex, Cursor, Claude Code, Copilot, Gemini CLI).

The literal AGENTS.md block embedded in the page is byte-identical to /Users/omer/projects/suites/suites/packages/unit/llm/templates/agents-block.md in the kit monorepo.

Test plan

  • yarn build succeeds (Docusaurus has onBrokenLinks: "throw" so broken internal links would fail the build).
  • yarn start → visit /docs/agents/; sidebar shows "AI Agents" at position 2 between "Get Started" and "Testing Guides"; both <Tabs> blocks render; directory tree renders as a fenced text block.
  • /docs/get-started/installation/ — the AI-agent paragraph sits between the package list and :::info Why reflect-metadata?. Total admonition count on the page = 4.
  • /docs/get-started/why-suites/:::tip Set this up for your AI agent appears before the ## In Summary heading.
  • /docs/guides/sociable/ — "AI agent setup" bullet appears in the Next Steps list.
  • /docs/migration-guides/from-automock/:::tip appears between Step 1 and Step 2.
  • Click any callout link and verify it jumps to the ## Install anchor on the new page.
  • Sidebar order: get-started (1) → AI Agents (2) → Guides (3) → API Reference (4) → Migration Guides (5) → Changelog (6). No duplicate positions.
  • https://suites.dev/llms.txt includes the new "For AI coding agents" stanza after the Netlify deploy.

Out of scope

  • Mirror script: the kit content lives in the Suites monorepo at packages/unit/llm/. This PR does NOT bundle it into the website; the page references it via node_modules/@suites/unit/dist/llm/. A build-time mirror is a separate effort.
  • Homepage AI install panel (the highest-leverage move per the codex synthesis, deferred).
  • Standalone writing-unit-tests-typescript skill repo for skills.sh.
  • NestJS docs PR to update docs.nestjs.com/recipes/suites (external coordination).

New single-page guide at /docs/agents/ documents the bundled LLM kit
shipped inside @suites/unit: AGENTS.md + CLAUDE.md install snippets,
directory-tree map, versioning, troubleshooting. Slots into the
sidebar at position 2 (renumber pushes guides and api-reference down
by one).

Inline pointers on installation.mdx, why-suites.md, sociable.md, and
from-automock.md route readers in the funnel into the new section.
static/llms.txt gets a "For AI coding agents" stanza directing
crawlers at node_modules/@suites/unit/dist/llm/knowledge/.

Follows the Vercel next@16.2 pattern: source of truth lives in the
@suites/unit npm package; the website is the human bridge to the
bundled docs.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 26, 2026

Deploy Preview for suites-dev ready!

Name Link
🔨 Latest commit 3f9ca57
🔍 Latest deploy log https://app.netlify.com/projects/suites-dev/deploys/6a153d0cc61ac20008f008b3
😎 Deploy Preview https://deploy-preview-24--suites-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant