跳到正文
cccskills
免费在 GitHub 公开

design

Prepare Toasty design documents under `docs/dev/design/` using the required template, audience, and concise writing conventions. The skill guides document structure and illustrative Rust examples, and outlines the proposal and roadmap steps for non-trivial features.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Always use this skill before authoring or editing a Toasty design document under docs/dev/design/

tokio-rs/toasty星标 3,269(GitHub 3,269 + cccskills 0)

实测评分 未实测

查看安装方法

适用场景

  • Drafting a Toasty feature design document
  • Editing an existing design proposal
  • Explaining a feature to users and driver implementors

包含的文件(1)

  • SKILL.md2.7 KB

SKILL.md(原文)

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

Authoring Toasty Design Documents

Load this skill before writing or editing a design document in docs/dev/design/.

Format and layout

Always read docs/dev/design/_template.md before writing. It is the authoritative source for section order, section purposes, and the framing the doc should adopt. Copy the template to docs/dev/design/<feature-name>.md and fill it in. Keep the section order; if a section genuinely does not apply, delete it and explain why in one line rather than leaving it empty.

Writing style

Follow the conventions from the prose skill: be fact-focused, direct, and concrete. No buzzwords, no fluff, no dramatic terms.

Be succinct

Readers already know Toasty and Rust. Lead with the problem and the proposal so a maintainer can grasp the important bits quickly. Cut restated background, obvious explanations, and throat-clearing. Length is not a virtue; clarity is.

Rust examples

Rust code blocks in design docs are illustrative. They do not need to compile and are not run through rustdoc or any other test.

Do not add #-prefixed hidden boilerplate — no # use … imports, no # async fn __example(…) { … } wrappers, no # fn main, nothing hidden to satisfy a compiler. Show only the lines that matter to the reader, even if the snippet would not compile on its own.

This overrides the doctest-preamble instruction in _template.md's User-facing API section: that preamble is for the user guide, where examples are tested. Design docs are not.

Framing

A design doc is guide-level, not implementation-level. Write it for the two audiences the template names:

  • Toasty users — Rust developers writing models and queries.
  • Driver implementors — anyone implementing the Driver trait.

Describe what those audiences will see, call, and have to do. Omit internal module layouts and implementation choices that have no observable effect on either audience. The User-facing API section should read like a chapter of the user guide — prose with worked examples, not an API catalog. The examples are still illustrative only (see Rust examples above) — do not add doctest boilerplate to them.

Workflow

Non-trivial features follow the path in CONTRIBUTING.md: open a feature-proposal issue first, then land a roadmap entry in docs/dev/roadmap/ and the design doc in the same PR. The implementation lands as a follow-up PR once the design is accepted.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

commit

免费

Prepare concise Git commit messages for the Toasty project by first checking its authoritative commit guide. The skill focuses on describing what changed and why, using the project's required format, types, scopes, and breaking-change notation.

中文简介正在准备中。当前显示英语简介。

  • Writing a commit subject and body
  • Checking allowed commit types and scopes
  • Marking a breaking change correctly
tokio-rs/toasty32692026年10月26日 更新

issue

免费

Write clear Toasty issues by choosing the right template for a bug report or feature proposal and filling in its required fields. It helps describe observed behavior, reproduction steps, proposed APIs, and alternatives in concise, factual language.

中文简介正在准备中。当前显示英语简介。

  • Reporting a bug with steps and a reproducer
  • Proposing a feature or public API change
  • Choosing and completing an issue template
tokio-rs/toasty32692026年10月26日 更新

pr

免费

Prepare a Toasty pull request by reviewing the full change against its base branch and drafting a concise title and body from the net diff. It also covers the required template, rendered links for major Markdown changes, and label handling.

中文简介正在准备中。当前显示英语简介。

  • Drafting a pull request title and body
  • Summarizing changes across several commits
  • Preparing a pull request for a Markdown document
tokio-rs/toasty32692026年10月26日 更新

prose

免费

Write or edit Toasty documentation, design notes, READMEs, pull request descriptions, issues, and commit bodies using the project's prose conventions. It favors direct, factual language, concrete examples, active voice, and descriptions of current behavior.

中文简介正在准备中。当前显示英语简介。

  • Editing a README or project documentation
  • Writing an issue or pull request description
  • Making design notes more direct and concrete
tokio-rs/toasty32692026年10月26日 更新

查看 tokio-rs 的全部技能

报告此技能的问题