Skip to content

Commit 6b23928

Browse files
📝 docs: document skills.md and llms.txt like peer libraries
1 parent 5295979 commit 6b23928

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

‎README.md‎

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ LobeHub's documentation toolkit and `lobedocs` CLI. Write MDX next to your React
3737
- [🚀 Getting Started](#-getting-started)
3838
- [📝 Writing Docs](#-writing-docs)
3939
- [⌨️ lobedocs CLI](#️-lobedocs-cli)
40-
- [🤖 For AI Agents](#-for-ai-agents)
40+
- [🤖 AI-Powered Development](#-ai-powered-development)
4141
- [🛠️ Local Development](#️-local-development)
4242
- [🤝 Contributing](#-contributing)
4343
- [🩷 Sponsor](#-sponsor)
@@ -56,7 +56,7 @@ Docs Kit is the documentation stack behind [ui.lobehub.com](https://ui.lobehub.c
5656
- **API tables from TypeScript**: `<Api name="Button" />` reads props, JSDoc and `@default` from your types, and the build fails when a default drifts from runtime.
5757
- **Static and fast**: every page is prerendered, with Pagefind search, a sitemap and Open Graph tags built in.
5858
- **Audited builds**: broken links, missing demos and wrong API defaults fail `lobedocs build` instead of reaching readers.
59-
- **AI-native**: `skills.md` and `llms.txt` are generated from the same MDX, so coding agents read the docs your users read.
59+
- **AI-native docs**: coding agents read every page through [skills.md][skills-md-link] and [llms.txt][llms-txt-link], generated from the same MDX your users read.
6060

6161
<div align="right">
6262

@@ -158,22 +158,25 @@ Extra arguments are forwarded to React Router, e.g. `lobedocs dev --port 3000`.
158158

159159
</div>
160160

161-
## 🤖 For AI Agents
161+
## 🤖 AI-Powered Development
162162

163-
Every Docs Kit site serves files for coding agents, generated from the same MDX as the pages. `lobedocs dev` serves them live, and `lobedocs build` writes them into `dist/`:
163+
Docs Kit's docs are generated for coding agents as well as people. `lobedocs dev` serves them live, and `lobedocs build` writes them into `dist/`:
164164

165-
| File | What it contains |
166-
| ------------------- | -------------------------------------------------------------------------------------------------- |
167-
| `/skills.md` | Agent skill entry point: site config, folder architecture and the prose of every page |
168-
| `/skills/<page>.md` | One Markdown reference per page, e.g. `/skills/components/button.md` |
169-
| `/llms.txt` | [llms.txt](https://llmstxt.org) index with each page's description, category, outline and docs URL |
165+
| Resource | What it does |
166+
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
167+
| [skills.md][skills-md-link] | Agent skill entry point: site config, folder architecture and a Markdown reference for every page |
168+
| [llms.txt][llms-txt-link] | Page index with outlines for [llms.txt](https://llmstxt.org)-aware tools |
169+
| [Button skill](https://docs-kit.lobehub.com/skills/components/button.md) | Example per-page Markdown reference (`/skills/<page>.md`), with usage, demos and props |
170+
| [Introduction skill](https://docs-kit.lobehub.com/skills/getting-started/introduction.md) | Example guide-page skill for getting started |
170171

171-
Point an agent at the `skills.md` of the library you use, for example:
172+
Paste this into Cursor, Claude Code, Codex or any other coding agent:
172173

173174
```text
174-
Read https://ui.lobehub.com/skills.md, then build a settings page with @lobehub/ui. Only use components, props and imports documented there.
175+
Read https://docs-kit.lobehub.com/skills.md, then use @lobehub/docs-kit to set up a documentation site for my React component library. Follow the installation, docs.config.ts and component-page conventions documented there.
175176
```
176177

178+
Works with Cursor, Claude Code, Windsurf, GitHub Copilot and other llms.txt-aware tools.
179+
177180
Working on this repository with an agent? Start from [AGENTS.md](./AGENTS.md).
178181

179182
<div align="right">
@@ -300,4 +303,6 @@ This project is [MIT](./LICENSE) licensed.
300303
[pnpm-shield]: https://img.shields.io/badge/-pnpm-F69220?logo=pnpm&style=for-the-badge
301304
[pr-welcome-link]: https://github.com/lobehub/docs-kit/pulls
302305
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
306+
[llms-txt-link]: https://docs-kit.lobehub.com/llms.txt
303307
[profile-link]: https://github.com/lobehub
308+
[skills-md-link]: https://docs-kit.lobehub.com/skills.md

0 commit comments

Comments
 (0)