跳到正文
cccskills
免费在 GitHub 公开

technical-docs

Write, rewrite, and review pages under docs/ in the QDash repository. Use whenever a task creates or edits documentation: a user-guide procedure, a developer-guide page, a reference table, the docs sidebar, or a review of an existing page. Applies the repository's two-reader policy (docs/developer-guide/docs-guidelines.md), the Google Developer Documentation Style Guide, and Diataxis.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md6.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Technical Documentation

docs/developer-guide/docs-guidelines.md is the rulebook: readers, sections, layout, what every page must and must not contain. Read it first and do not restate it here. This skill is the working method: how to choose the page type, how to write the sentences, how to check them against the code, and how to review before finishing.

Pick the reader and the type

Decide both before writing a line, and keep one page to one type.

Reader's goalDiataxis typeQDash sectionShape
Get a job done in the applicationHow-todocs/user-guide/When to use it, then numbered steps; names of pages and buttons in bold; no internals
Set up or operate a deployment for the first timeTutorialdocs/user-guide/setup.md, operations.mdA path that works end to end; commands the reader can paste
Understand how a part works or why it is built this wayExplanationdocs/developer-guide/Responsibility boundary, mechanism, invariants with reasons, how to extend and test, file list
Look up a factReferencedocs/reference/Flat, exhaustive tables; no narrative

A topic that needs both a procedure and a mechanism gets two pages, one per section, linked in one line each way (How this works: [...] on the user page). When a page mixes types, move the foreign paragraphs to the page of the other type rather than smoothing them in place.

Write

Google style, applied to this repository:

  • Lead with the answer. The first sentence of a page or section carries its main fact. No "This document describes", no history of how the feature came to be.
  • One idea per sentence, active voice, present tense. "The API derives the reference on every read", not "the reference will be derived by the API".
  • Define before use. Introduce a term (record, run, reference, planner) with its meaning the first time; afterwards use exactly that word. Do not rotate synonyms for the same thing.
  • Concrete over abstract. A rule shown on one real input (Short T1 (<20 μs) to SHORT_T1) beats a paragraph of generalities. Code and command samples must be runnable or taken verbatim from the code.
  • Name what the reader will open. Developer pages name files and symbols in backticks; user pages name what the application shows in bold and nothing from the code.
  • Say it once. A fact lives on one page; other pages link to it. Within a page, do not restate in a later section what an earlier one established.
  • Cut hedges and filler. "Note that", "it is important to", "basically", "simply", "you might want to" go. State the rule or the fact.
  • Caveats next to the feature, in a sentence, not in a separate Notes or Limitations section.
  • Tables for parallel structured items (settings, questions, files, triggers), prose for argument. A table cell holds a phrase, not a paragraph; if cells grow past two lines, the content wants prose or its own section.
  • Diagrams for relationships that prose hides. Use a small Mermaid flowchart, sequence diagram, state diagram, or class diagram when the reader must track at least three components, branches, transitions, or parallel and sequential phases. For dense architecture and lifecycle views that need deliberate layout, add a theme-aware SVG under docs/diagrams/ and embed it as <Diagram name="..." caption="..." />; follow the accessibility and styling rules in docs/developer-guide/docs-guidelines.md. Keep labels concrete, explain the consequence in nearby prose, and make the surrounding text sufficient for readers who cannot see the diagram. Do not diagram a list, a single linear action, or the same information already clear in a table.
  • Keep markdown compact. Tables use | --- | separators without column padding; docs are not run through a formatter in CI, so match the surrounding file.

Verify against the code

A documentation claim is a claim about the code. Before a page is done:

  1. Open every file and symbol the page names and confirm they exist with that name and role.
  2. Check every stated behaviour (default values, limits, orderings, fallbacks, error handling) against the implementation or its tests, not against memory or an older page.
  3. For a user page, confirm page and button labels against the UI components.
  4. Resolve every relative link; a renamed or moved page needs its old path in docs/.vitepress/theme/redirects.ts.
  5. A new page gets a sidebar entry in docs/.vitepress/config.mts, in reading order, and a one-line link from the page a reader would arrive from.
  6. Run bun run docs:build in docs/ when links or the sidebar changed; it fails on a dead internal link.

When a check fails, fix the page, not the code, unless the task is about the code.

Review

Read the page once as its reader, with these questions, and rewrite until every answer is yes:

  • Does the first screen tell the reader whether this is the page they need?
  • Can the reader find a specific answer (a setting, a file, a step) without reading from the top? Headings and the first sentence of each paragraph must make that possible.
  • Does each paragraph add one thing the page did not already say?
  • Is the order the order the reader needs: what it is, how it behaves, how to change it, where the code is?
  • Would a compact diagram make a multi-component relationship, branch, state change, or execution order faster to understand than the current prose? If so, add one and remove duplicated prose.
  • Would every example run, and does every path, symbol and label exist?
  • Can any sentence be deleted without losing a fact or a reason? Delete it.
  • Is the page still under about 400 lines? Past that, split by topic and link.

Report what was verified against the code and what could not be verified.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

daisyui

免费

Official daisyUI component-library skill for Tailwind CSS. When you write HTML or JSX code, you must use it. Even if the user does not request it, use it.

中文简介正在准备中。当前显示原文说明。

oqtopus-team/qdash542026年10月21日 更新

Color rules that you must use with daisyUI 5

中文简介正在准备中。当前显示原文说明。

oqtopus-team/qdash542026年10月21日 更新

Configuration options for daisyUI 5

中文简介正在准备中。当前显示原文说明。

oqtopus-team/qdash542026年10月21日 更新

Installation instructions for daisyUI 5

中文简介正在准备中。当前显示原文说明。

oqtopus-team/qdash542026年10月21日 更新

Usage rules that you must use with daisyUI 5

中文简介正在准备中。当前显示原文说明。

oqtopus-team/qdash542026年10月21日 更新

Audit a QDash branch, pull request, commit, or working-tree diff for documentation impact. Use when checking whether source changes require documentation updates or before finishing user-visible, API, configuration, deployment, or extension changes. Reports stale content, missing coverage, and broken examples; applies focused fixes only when requested. Do not use for a docs-only writing task, which belongs to the technical-docs skill.

中文简介正在准备中。当前显示原文说明。

oqtopus-team/qdash542026年10月21日 更新

查看 oqtopus-team 的全部技能

报告此技能的问题