prose

GitHub

用于撰写和编辑 Static Web Server (SWS) 项目的各类文本文档,包括文档、设计稿、README、PR 描述等。遵循严格的项目写作规范,强调事实导向、避免模糊字符和空洞词汇,确保内容直接、具体且符合技术文档标准。

.agents/skills/prose/SKILL.md static-web-server/static-web-server

Trigger Scenarios

编写或编辑 docs/ 目录下的文件 撰写 commit message body 起草 PR description 或 issue body 生成任何面向用户的技术 Markdown 文本

Install

npx skills add static-web-server/static-web-server --skill prose -g -y
More Options

Non-standard path

npx skills add https://github.com/static-web-server/static-web-server/tree/master/.agents/skills/prose -g -y

Use without installing

npx skills use static-web-server/static-web-server@prose

指定 Agent (Claude Code)

npx skills add static-web-server/static-web-server --skill prose -a claude-code -g -y

安装 repo 全部 skill

npx skills add static-web-server/static-web-server --all -g -y

预览 repo 内 skill

npx skills add static-web-server/static-web-server --list

SKILL.md

Frontmatter
{
    "name": "prose",
    "description": "Author or edit any prose for the Static Web Server (SWS) project — documentation, design docs, READMEs, PR descriptions, issue bodies, commit message bodies, or other human-readable text — following project writing conventions"
}

Writing SWS Prose

Load this skill whenever writing or editing prose for this project: documentation in docs/, READMEs, design docs, PR descriptions, issue bodies, commit message bodies, or any other human-readable markdown.

When to load: editing any file under docs/, writing a commit message body, drafting a PR description or issue body, or producing any user-facing markdown for the SWS project.

Writing Style

  • Avoid ambiguous characters: Do not use ambiguous Unicode characters, homoglyphs, and confusables in identifiers, code, code comments/docs or user input as they can lead to security issues.
  • Be fact-focused: State what things are and what they do
  • Avoid buzzwords: No "leverage", "synergy", "paradigm", etc.
  • Avoid fluff: Every sentence should convey information
  • Avoid weasel words: No "very", "really", "quite", "somewhat"
  • Avoid dramatic terms: No "critical", "crucial", "vital", "essential" unless something will actually break
  • Avoid figurative metaphors: Pick the literal word for the thing, not the analogy. "Blazing fast" → "sub-millisecond latency" or "serves files at line rate". "Battle-tested" → "used in production since 2019". Other recurring offenders: "under the hood" (just describe what's there), "out of the box" (just say "by default"), "first-class" (say what's actually supported). If you can't replace the metaphor with a literal noun or verb without losing meaning, you probably don't know what you mean yet.
  • Be direct: Say what you mean without hedging
  • Use concrete examples: Show, don't tell. Include CLI invocations and HTTP response snippets
  • Use active voice: "SWS appends security headers to the response" not "Security headers are appended by SWS"
  • Use present tense: Describe how the system works now, not how it was designed or how it will work
  • Document current behavior only: Omit historical decisions, deprecated approaches, and planned future work

Examples

Bad: "This feature is critical for ensuring optimal web server performance."

Good: "Static compression serves pre-compressed .br files from disk with zero CPU overhead, avoiding on-the-fly compression."

Bad: "SWS leverages advanced algorithms to enhance delivery."

Good: "SWS uses accept-encoding header negotiation to select the best compression algorithm (zstd, brotli, gzip, deflate) supported by the client."

Bad: "## Features that work out of the box"

Good: "## Enabled by default"

Document Structure

  • Start with what the thing is
  • Explain why it exists (what problem it solves)
  • Explain what it does
  • Show how to use it (if applicable)
  • Provide examples (CLI invocations, config snippets, HTTP headers)

Feature Documentation

When documenting an SWS feature in docs/content/features/:

  1. One sentence summary at the top of what the feature does
  2. Default state: Whether enabled by default, and the flag to toggle it
  3. CLI example: A static-web-server invocation with the relevant flags
  4. Behavior: What happens when enabled vs disabled
  5. Related features: Cross-link to features that interact (e.g., compression-static → compression)

Terminology

  • SWS: Static Web Server (the project). Use "SWS" after the first mention
  • Pre-compressed / static compression: Serving .br/.gz/.zst files from disk
  • On-the-fly / dynamic compression: Compressing responses in real-time
  • Root directory: The --root directory from which files are served
  • Base path: The canonicalized root directory used for path containment checks

Version History

  • 21dc11b Current 2026-08-20 17:42

Same Skill Collection

.agents/skills/code-quality/SKILL.md
.agents/skills/design/SKILL.md
.agents/skills/issue-tracking/SKILL.md
.agents/skills/performance/SKILL.md
.agents/skills/rust-backend/SKILL.md
.agents/skills/security/SKILL.md
.agents/skills/static-file-serving/SKILL.md
.agents/skills/testing/SKILL.md

Metadata

Files
0
Version
4ec71ce
Hash
8df337c0
Indexed
2026-08-20 17:42

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-31 01:14
浙ICP备14020137号-1 $Carte des visiteurs$