This folder contains Agent Skills (conforming to the Agent Skills specification) for @farming-labs/docs — an MDX-based documentation framework for Next.js, TanStack Start, SvelteKit, Astro, and Nuxt.
Each skill is a separate directory with a SKILL.md file. Use the skill that matches the task
(getting started, CLI, creating themes, Ask AI, page actions, or configuration, including search
adapters, changelog setup, human page feedback, agent.compact, agent discovery/spec routes,
skill.md, agent feedback endpoints, API reference, MCP, llms.txt, and machine-readable markdown
routes with embedded Agent blocks, generated or hand-written agent.md overrides, or
Accept: text/markdown negotiation).
The repo also includes a runnable Next example for testing MCP, external search providers, and page-level agent compaction:
pnpm --dir examples/next devUseful routes:
- Agent discovery spec:
http://127.0.0.1:3000/api/docs/agent/spec - Site skill:
http://127.0.0.1:3000/skill.mdorhttp://127.0.0.1:3000/.well-known/skill.md - MCP:
http://127.0.0.1:3000/mcporhttp://127.0.0.1:3000/.well-known/mcp - Search API:
http://127.0.0.1:3000/api/docs?query=session - Docs API markdown:
http://127.0.0.1:3000/api/docs?format=markdown&path=quickstart - Agent feedback schema:
http://127.0.0.1:3000/api/docs/agent/feedback/schema - Public markdown page with embedded
Agentblock (Next.js):http://127.0.0.1:3000/docs/quickstart.md - Header-negotiated markdown page (Next.js):
curl http://127.0.0.1:3000/docs/quickstart -H "Accept: text/markdown" - Agent override example (Next.js):
http://127.0.0.1:3000/docs/getting-started/agent-ready-docs.md
Useful command:
pnpm --dir examples/next exec docs agent compact installation --config docs.config.tsxThe agent discovery spec also advertises the root skill.md route, this Skills pack through
npx skills add farming-labs/docs, and recommends the getting-started skill for first-run setup.
| Skill | Path | When to use |
|---|---|---|
| Getting started | getting-started | Setting up docs, init, manual install, theme CSS, docs.config, packages by framework, generated changelog pages in Next.js, machine-readable markdown routes with Agent blocks or agent.md overrides, and API reference wiring from local routes or a hosted OpenAPI JSON. |
| CLI | cli | Scaffolding and commands: init flow (existing vs fresh), Create your own theme, optional defaults (Enter to accept), init / upgrade / agent compact / mcp, --template, --name, --theme, --entry, --api-reference, --framework, --config, package manager commands. |
| Creating themes | creating-themes | Building a custom theme with createTheme(), extendTheme(), ui.components defaults like HoverLink, publishing as npm, CSS overrides. |
| Ask AI | ask-ai | Enabling and configuring the RAG-powered AI chat: mode, floatingStyle, providers, models, suggestedQuestions, apiKey. |
| Page actions | page-actions | Copy Markdown and Open in LLM buttons: copyMarkdown, openDocs, providers, urlTemplate, {url}.md markdown route patterns, position, alignment, and provider defaults. |
| Configuration | configuration | docs.config.ts options: entry, theme, staticExport, sidebar, breadcrumb, github, components, search, changelog, agent.compact, human page feedback, agent feedback endpoints, metadata, og, mcp, built-in markdown routes with Agent blocks or agent.md, and apiReference including remote specUrl support. |
From the Agent Skills Directory, add skills from this repo and pick your preferred skill(s) when prompted.
Install (use your preferred package manager):
# npm
npx skills add farming-labs/docs
# pnpm
pnpm dlx skills add farming-labs/docs
# yarn
yarn dlx skills add farming-labs/docs
# bun
bunx skills add farming-labs/docsThe CLI will list skills under skills/farming-labs/. Choose the one(s) you need (e.g. getting-started, cli, creating-themes, ask-ai, page-actions, configuration). You can install multiple skills or add more later.
Install a specific skill by path (if your CLI supports it):
pnpm dlx skills add farming-labs/docs/skills/farming-labs/getting-started
pnpm dlx skills add farming-labs/docs/skills/farming-labs/cli
pnpm dlx skills add farming-labs/docs/skills/farming-labs/creating-themes
pnpm dlx skills add farming-labs/docs/skills/farming-labs/ask-ai
pnpm dlx skills add farming-labs/docs/skills/farming-labs/page-actions
pnpm dlx skills add farming-labs/docs/skills/farming-labs/configurationCopy the skill(s) you need into your project:
mkdir -p .cursor/skills
cp -r skills/farming-labs/getting-started .cursor/skills/
cp -r skills/farming-labs/cli .cursor/skills/
# ... repeat for creating-themes, ask-ai, page-actions, configurationOr copy the whole farming-labs folder and let the agent use any of the skills:
mkdir -p .cursor/skills
cp -r skills/farming-labs/* .cursor/skills/Skills follow the Agent Skills specification: each SKILL.md has required frontmatter (name, description) with name matching the parent directory. You can validate with skills-ref:
skills-ref validate ./skills/farming-labs/getting-started- Docs site: docs.farming-labs.dev
- Repo: github.com/farming-labs/docs
- Skills spec: agentskills.io/specification