Code quality

From static-web-server/static-web-server · View interactive version

Code quality is an AI agent skill from the GitHub repository static-web-server/static-web-server. Review or self-check a change to the Static Web Server (SWS) project before it is called done — correctness, invariants, API design, concurrency, maintainability, and an SWS-specific review checklist. Use when reviewing a PR or diff, finishing an implementation, or refactoring.

How to use this skill

Skill file

Code Quality and Review

The principles in AGENTS.md (correctness first, every change has a test, explicit invariants, own regressions, evidence over assumptions) become review criteria here. Build and verification mechanics: rust-conventions/SKILL.md. Readability and naming: coding-style/SKILL.md. Reviewing a GitHub PR end to end: pr-review/SKILL.md.

When to load: reviewing a diff, finishing a change before reporting it done, or planning a refactor.

Definition of Done

Verified by running, not by inspection:

  1. cargo fmt --all -- --check tests/*.rs passes
  2. cargo clippy -- -D warnings passes for --features all and --no-default-features, with and without --tests
  3. cargo test --features all and cargo test --no-default-features pass
  4. The new or changed test fails without the change and passes with it
  5. Public items have doc comments (#![deny(missing_docs)])
  6. User-visible changes note the static-web-server/docs follow-up in the PR. CHANGELOG.md is written by the maintainer, not in the PR
  7. Commit messages follow docs/COMMITS.md; no AI attribution (prose/SKILL.md)

If a step was skipped or fails, say so with the output.

Principles

Correctness and invariants

Explicitness

Concurrency

Maintainability

SWS Review Checklist

Pipeline and HTTP

Configuration

Features and Build

Security and Performance

Readability (coding-style/SKILL.md)

Tests and Docs

Writing Review Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.