AGENT SKILL

mdBook 文档编写与预览

documentation

构建、运行并编写 docs/ 目录下的 Wassette mdBook 文档——包括简洁、代码优先的行文风格、多版本 URL 布局,以及 SUMMARY.md 中的导航配置。适用于编辑 docs/ 页面或预览文档站点时使用。

License 许可
MIT
所属仓库
microsoft/wassette
最近更新
2026-11-13
Stars
★ 976
Forks
78

01 前言 Front Matter

name
documentation
description
Build, serve, and write Wassette's mdBook documentation under docs/ — concise, code-first prose, the multi-version URL layout, and navigation in SUMMARY.md. Use when editing docs/ pages or previewing the documentation site.
allowed-tools
Bash, Read, Write, Edit, Glob, Grep

02 资源文件 2

03 SKILL.md 正文

documentation skill

Wassette documentation lives under docs/ and is built with mdBook.

Build and serve

just docs-build    # Build static HTML to docs/book/
just docs-watch    # Serve at http://localhost:3000 with live reload
just docs-serve    # Serve and open in the browser

Or directly: cd docs && mdbook serve / mdbook build.

URL structure

Production uses a multi-version layout that mdbook serve does not reproduce locally:

  • Local: open http://localhost:3000/overview.html (or a specific page). The version picker and the root redirect only work in production.
  • Production: https://microsoft.github.io/wassette/latest/ (and /v0.3.0/ for releases).

Writing style

  • Prefer working code examples over long prose; explain details second.
  • Keep pages focused and concise; every sentence should add value.
  • Use active voice and present tense; define acronyms on first use.
  • Always set the language on code blocks; use descriptive link text.

Visual changes

Preview layout or presentation changes locally. Include screenshots when they help reviewers understand a meaningful visual difference.

Adding a page

  1. Create the markdown file in the right docs/ subdirectory.
  2. Register it in docs/SUMMARY.md so it appears in navigation.
  3. Match existing structure and formatting; test all links.
  4. Preview locally with just docs-serve.

04 同仓库更多 Skills

microsoft
microsoft/wassette

Rust 代码编写规范

rust-code-style

为 Wassette 编写地道、结构良好的 Rust 代码——遵循单一职责设计、使用 anyhow 进行错误处理、用 Arc/Mutex 管理共享状态,并按要求使用 cargo +nightly fmt、cargo clippy 和 cargo machete 进行格式化和代码检查。适用于在本仓库中新增或重构 Rust 代码时使用。

软件开发工程师Rust 开发
★ 976
microsoft
microsoft/wassette

PR 描述撰写

pull-request

为 Wassette 编写简洁、聚焦的拉取请求(PR)描述——最多三句话说明做了什么以及为什么,并明确注明任何破坏性的公共 API 变更以及用户如何适配。适用于创建或编辑 Wassette 拉取请求时使用。

软件开发工程师代码仓库协作管理
★ 976
microsoft
microsoft/wassette

MCP 服务器端到端测试

mcp-inspector-testing

通过使用 just 运行 MCP 服务器,并经 Streamable HTTP 用 MCP Inspector CLI 驱动它,来端到端验证 Wassette 的改动——包括列出工具、资源和提示词(prompts),以及调用工具。适用于提交服务器端改动前,或调试工具暴露与行为时使用。

软件开发工程师调试与故障排查
★ 976
microsoft
microsoft/wassette

Rust 文件版权头检查与添加

copyright-headers

确保 Wassette 中每个 Rust(.rs)文件都以必需的 Microsoft 版权声明开头,使用幂等的 scripts/copyright.sh 辅助脚本。当需要添加新的 Rust 文件或版权头检查失败时使用。

软件开发工程师代码实现
★ 976
microsoft
microsoft/wassette

Wassette 工作区构建与测试

build-and-test

使用 just 配方构建 Wassette 工作区并运行其测试套件——包括调试版和发布版构建、示例组件和测试组件,以及合并运行的单元测试与文档测试。当需要编译 Wassette、构建示例组件,或运行和调试测试时使用。

软件开发工程师测试与质量保障
★ 976