design-docs
Skill0 starsChanged 12 days agoMITView on GitHub
Set up, deploy or maintain a repo's design-docs site (design-docs-kit) — Markdown pages with embedded HTML visuals in docs/, published as a VitePress site on Cloudflare Pages behind Cloudflare Access, read by agents through AGENTS.md and the design-docs MCP server. Use when the user wants design docs kept in the repo instead of Notion or a wiki, asks to set up, deploy or publish the docs site, to restrict who can read it, to migrate docs into it, or when you need to record or change a design decision in a repo that has a .design-docs.json.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- reddygopalkrishna/developer-agent-skillstheir own version, first seen Nov 8, 2026
- neko3cs/skillstheir own version, first seen Nov 6, 2026
- GoncaloPrata/ClaudeSkillstheir own version, first seen Nov 1, 2026
- ZaxbyHub/opencode-swarmtheir own version, first seen Oct 30, 2026
- zaxbysauce/opencode-swarmtheir own version, first seen Oct 8, 2026
- noir-lang/noirtheir own version, first seen Oct 8, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- noir-lang/noir★ 1.4ksame name
- zaxbysauce/opencode-swarm★ 519same name
- ZaxbyHub/opencode-swarm★ 518same name
- reddygopalkrishna/developer-agent-skills★ 8same name
- CaliLuke/skills★ 7same name
- alexjuda/alexjuda-skills★ 0same name
- GoncaloPrata/ClaudeSkills★ 0same name
- neko3cs/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Ask the user only what you cannot infer: the site language (zh-CN, ja or en) and the site title.
- Distinctive: line 15
Run from the repo root:
- Very specific: line 21
If the npm package is not available, use npx -y github:OHNope/design-docs-kit init ...
- Distinctive: line 25
If the user has existing docs (Notion, Google Docs, a wiki), migrate them page by page into Markdown, keeping the text verbatim.
- Very specific: line 26
Run npm --prefix docs run check and npm --prefix docs run build.
- Very specific: line 27
Commit. To publish the site, continue with Deploying.
- Distinctive: line 36
Already deployed: only the missing steps show up (often Access or the recorded address).
- Distinctive: line 40
After the first successful run the site is public until Access is set up, so do the Access step straight away, and ask the user which …
- Very specific: line 41
Run deploy once more: it records siteUrl and refreshes the AGENTS.md section.
- Very specific: line 47
Read AGENTS.md → "Design docs" and docs/guide/01-maintaining.md before editing.
- Very specific: line 49
After editing: npm --prefix docs run check, then commit and push.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Design docs (design-docs-kit)
Is the repo set up?
A repo is set up when .design-docs.json exists at its root. If it does, skip to Deploying or Maintaining.
Setting up
- Ask the user only what you cannot infer: the site language (
zh-CN,jaoren) and the site title. The docs folder defaults todocs; the branch defaults to the repo's default branch. Run from the repo root:
npx -y design-docs-kit@latest init --lang <lang> --title "<title>"If the npm package is not available, use
npx -y github:OHNope/design-docs-kit init ...instead.It writes
docs/(VitePress site, guide pages, vendored checker and MCP server),.design-docs.json, the "Design docs" section ofAGENTS.md(and@AGENTS.mdinCLAUDE.md), a SessionStart hook in.claude/settings.jsonthat pulls the default branch, thedesign-docsserver in.mcp.json, and.gitignoreentries; then runsnpm installin the docs folder. It never overwrites pages that already exist.--dry-runlists what it would do.- Fill in the "What goes where" table in
docs/guide/01-maintaining.mdfor this project's folders. This table is how future agents decide which page to update, so make it concrete. - If the user has existing docs (Notion, Google Docs, a wiki), migrate them page by page into Markdown, keeping the text verbatim. HTML visuals go to
docs/public/embeds/and are embedded with<Embed src="/embeds/<name>.html" title="..." />— never flattened into text. - Run
npm --prefix docs run checkandnpm --prefix docs run build; fix every error. - Commit. To publish the site, continue with Deploying. GitHub MCP for clients without a checkout needs the user's own token: point them to
docs/guide/02-mcp.md.
Deploying
GitHub Actions builds the site and uploads it to Cloudflare Pages; Cloudflare Access lets only listed emails in. docs/guide/03-deploy.md is the reference for every step.
- Run
npx -y design-docs-kit@latest deploy status(or call thedocs_deploy_statusMCP tool). It checks each step — account, workflow, secret, latest run, Access, recorded address — and says what is next and who does it. Work through the steps it markstodo, in order; skip what isdone. The same command covers all three starting points:- No Cloudflare account: the user signs up at dash.cloudflare.com/sign-up.
- Has an account: the user signs in.
- Already deployed: only the missing steps show up (often Access or the recorded address).
- Steps marked
youare the user's alone: signing up or in, passkeys and 2FA, payment cards (Zero Trust's Free plan asks for one), clicking Create token, and putting the token into the repository secret. Ask for each one and wait. Never type, read back or screenshot passwords or tokens, and never ask the user to paste a token into the chat: they rungh secret set CLOUDFLARE_API_TOKEN --repo <owner/repo>themselves. - Steps marked
agent+youyou can do in a browser the user has signed in to (a built-in browser or their own): fill in the API-token form up to its review page, create the Access policy and the self-hosted application. If you have no browser, give the user the clicks from the guide page. - Once the user is signed in, read the account id from the dashboard address (
dash.cloudflare.com/<32 hex>/…) and runnpx -y design-docs-kit@latest deploy --account-id <id>. Commit and push.github/workflows/docs-site.ymland.design-docs.json. - After the first successful run the site is public until Access is set up, so do the Access step straight away, and ask the user which emails to allow if they have not said.
- Run
deployonce more: it recordssiteUrland refreshes the AGENTS.md section. Commit and push.
Repositories owned by a GitHub organization need nothing extra: setting a repository secret needs only admin rights on the repository, unlike Cloudflare's "Connect to Git", which needs an organization owner to approve its GitHub App.
Maintaining
- Read
AGENTS.md→ "Design docs" anddocs/guide/01-maintaining.mdbefore editing. - A decision changed → update the page that owns it, in the same change as the code.
- After editing:
npm --prefix docs run check, then commit and push. - To let someone in or out, edit the emails in the Cloudflare Access policy; nothing in the repo changes.
npx design-docs-kit@latest initagain upgrades the vendored kit files (docs/.vitepress/kit/) and re-syncs the AGENTS.md section; pages are left alone.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

