docs: add agent skills for AI coding agents - #255
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #255 +/- ##
=======================================
Coverage 83.33% 83.33%
=======================================
Files 98 98
Lines 2557 2557
Branches 552 552
=======================================
Hits 2131 2131
Misses 314 314
Partials 112 112 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Seven skills in `skills/`, one per package: a guidance-only `SKILL.md` with conventions, choices and pitfalls, and a generated `DOCS.md` with the released documentation of the package. The `skills-docs` workspace script in `scripts/skills-docs` builds `DOCS.md` from the site sources through the MDX AST, keeps the tabs a skill prefers, drops the sections listed in `--drop`, and verifies the files with `--check` (`pnpm skills:docs`). The Getting Started section of the site gets an Agent Skills page and the README a skills list. `articles/**` are excluded from `llms-small.txt`, and the `kida` README uses the `for_` name.
dangreen
force-pushed
the
docs/agent-skills
branch
from
September 9, 2026 14:56
b6d2325 to
e9b92be
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
AI coding agents working on a Nano Kit app need the API of the released packages and the conventions around it. Pasting the documentation into the skills duplicated the site and drifted from it, and pointing agents at the
llms.txtsets pulled in the whole site with articles, anchors and images. A skill now carries only guidance, and the documentation next to it is generated from the same sources the site is built from.What
skills/nano-kit-{store,query,intl,platform-web,react,react-router,react-ssr}:SKILL.mdwith conventions, choices and pitfalls (the store skill marks the low-level APIs as territory for adapters, bindings and tests), plus a generatedDOCS.mdwith the released documentation. Installed withpnpx skills add TrigenSoftware/nano_kit --skill <name>.scripts/skills-docs: a private workspace package with theskills-docsCLI. It parses the MDX sources with remark, keeps the tabs a skill prefers (metadata.docs.tabsplus--tabs), converts the Starlight components (Tabs,Code,Aside,Steps,Card) to plain Markdown, unwraps internal links to text unless--siteis given, drops the sections named in--drop, and fails with--checkwhen aDOCS.mdis stale. The pages of a skill come frommetadata.docs.pathsin its frontmatter.pnpm skills:docsruns it with the repo settings.articles/**excluded fromllms-small.txt.packages/kida/README.md: the example uses thefor_name.pnpm-workspace.yamladdsscripts/*. The lockfile diff also carries pnpm 10.33 re-normalising peer suffixes andlinkDirectoryentries written by earlier Renovate updates.Not included: CI does not run
pnpm skills:docs --checkyet.Checks
pnpm skills:docs --checkpasses, all sevenDOCS.mdare current.oxlint scripts/skills-docspasses.pnpm install --frozen-lockfilepasses.astro buildof the website passes, 62 pages.