zoolutions/dash/write-docs-page
Claude Code and agent skill by zoolutions/dash
- community
Checking that the SKILL.md file is still in the repository.
Write, add, or update a documentation page in this docs-kit site. Use when asked to document a feature, endpoint, class, or workflow, or to add or edit a page under app/views/docs/pages/. Scaffolds with `rails g docs_kit:page`, writes Markdown-first content, and runs the verification gates.
Install
npx vskill@latest install zoolutions/dash/write-docs-pageSKILL.md
Write a docs page
This is a docs-kit site (Docs). Every page is a DocsUI::Page subclass; the shell, sidebar, "On this page" TOC, search, and the .md twin all come free. Your job is to scaffold a page and write its #content — never hand-write HTML or daisyUI markup.
The full authoring contract is in the repo's AGENTS.md. This is the recipe.
1. Gather the subject
Identify exactly what to document (the code, endpoint, or workflow) and where it belongs in the sidebar (the --group). Read the relevant source first — do not invent behavior. If the subject is an HTTP endpoint, prefer DocsUI::RequestExample / DocsUI::FieldTable; if it's a Ruby API, prefer DocsUI::PropTable. If the site has c.openapi set (an OpenAPI 3.x spec), a single operation "operationId" renders the whole endpoint (badge + tables + request tabs + response) from the spec — no hand-restatement; reach for it before hand-authoring.
2. Scaffold (one command)
This writes app/views/docs/pages/<slug>.rb and injects the required page "…" registry line into app/models/doc.rb. Overrides: --slug, --view, --eyebrow, --registry. If it reports a legacy entries [...] registry, add the printed line by hand.
3. Write #content — Markdown first
- Set
title,eyebrow, and a one-sentencelead. - One
DocsUI::Section("…")per part of the page — **Sections own structure and
the TOC.** Never use a Markdown ## for page structure.
- Prose is
md <<~'MD' … MD— a single-quoted heredoc (no escaping, no
interpolation; Phlex escapes author text). Markdown ### is only for sub-headings inside a Section.
- Reference material:
DocsUI::PropTable,DocsUI::FieldTable,
DocsUI::RequestExample, DocsUI::Code(source, filename:, lexer:), DocsUI::Callout(:note | :tip | :warning).
- Always pass `lexer:` for non-Ruby sources (
lexer: :yaml,:shell).
filename: only labels the title bar — without lexer: the block is highlighted as Ruby, and spec/requests/docs_spec.rb fails on a .yml block lexed as anything but YAML.
- OpenAPI-backed endpoints (when
c.openapiis set):operation "createInvoice"
renders one operation as a full endpoint reference; append prose with a block — operation "createInvoice" do |op| op.md("…") end — and filter tabs with clients: %i[curl ruby].
4. Self-review against the checklist
- [ ] The
page "…"registry line exists (the generator adds it). - [ ] Structure is
DocsUI::Sections, not Markdown##headings. - [ ] Prose uses
md <<~'MD'(single-quoted); nohtml_safe, noraw. - [ ] No hand-written HTML/daisyUI markup, no per-feature Stimulus controller.
- [ ] Reads correctly with JavaScript off (the server renders it fully).
- [ ] Any new theme is in both
c.themesand the Tailwind@pluginblock. - [ ] No inline
rubocop:disableto force layout.
5. Run the gates
Then render locally (bin/dev, open /docs/<slug>) and confirm it reads well. For depth on any idiom, read the live Authoring pages doc.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdocs/.claude/skills/write-docs-page/SKILL.md
Popularity
- Repository stars
- 5
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zoolutions/dash/write-docs-page)