write-documentation
Structured documentation writing workflow for HypermediaEngine. Writes or updates README.md files at the repo root and in each project directory (src/, tests/, samples/, etc.) based on current implementation, ADRs, and architecture decisions.
- License 许可
- GPL-3.0
- 最近更新
- 2026-06-06
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- write-documentation
- description
- Structured documentation writing workflow for HypermediaEngine. Writes or updates README.md files at the repo root and in each project directory (src/, tests/, samples/, etc.) based on current implementation, ADRs, and architecture decisions.
03 SKILL.md 正文
Write Documentation
Writes and maintains README.md files throughout the HypermediaEngine repository. Invoked by the documentation-writer agent whenever documentation needs to be created, updated, or brought into sync with the current implementation.
Phase 0 — Context Load (silent)
- Read
.claude/CLAUDE.mdandAGENTS.md - Invoke
Skill("manage-memory", args: "documentation-writer")to load persistent memory - Read any previously identified documentation gaps or notes from memory
Phase 1 — Discover Scope
Identify which README.md files need to be created or updated:
- Glob
**/README.mdacross the repository to find existing documentation - Glob
src/**/,tests/**/,samples/**/to identify project and module directories without README.md files - Check
docs/architecture/decisions/for new or updated ADRs since last documentation pass - Check
docs/backlog/backlog.mdfor recently completed items that affect public APIs or behavior - Produce a scope list:
[create | update] <path>/README.md — <reason>
Phase 2 — Gather Context
For each README.md in scope:
- Read the relevant source files in the target directory (
.csfiles, project files,appsettings*.json) - Read all ADRs in
docs/architecture/decisions/that relate to the component - Read
docs/backlog/backlog.mdfor feature descriptions and acceptance criteria - Read existing README.md (if updating) to identify what sections need to change
- Identify public API surface: public classes, interfaces, extension methods, middleware registrations, endpoint filters
Phase 3 — Draft
Write or update each README.md following this consistent structure:
# <Component Name>
## Overview
One-paragraph description of what this component does and why it exists.
## Architecture
Describe how this component fits into the HypermediaEngine middleware pipeline. Reference relevant ADRs.
## Getting Started
Minimal setup steps: package reference, DI registration, middleware registration.
## Usage
Code examples showing the primary use cases. Use fenced C# code blocks.
## Configuration
Document all configurable options, their types, defaults, and effects.
## Contributing
Link to root CONTRIBUTING.md or describe component-specific contribution notes.
Rules:
- Use ATX headings (
#,##,###) — never Setext - Use fenced code blocks with language identifiers (
```csharp,```json, etc.) - Use relative links for cross-references within the repo
- Never expose internal implementation details not reflected in the public API
- Keep README.md files in sync with actual code structure — no aspirational documentation
Phase 4 — Validate
After drafting, verify each README.md:
- All public classes and interfaces mentioned in source files appear in the Usage or Overview section
- All middleware pipeline registration steps are documented in Getting Started
- All configurable options found in source code appear in the Configuration section
- No broken relative links
- Fenced code blocks compile against the current public API (verify method names and types match source)
- Flag any undocumented public APIs as TODOs for the documentation-writer agent memory
Phase 5 — Save Memory
Invoke Skill("manage-memory", args: "save documentation-writer ...") with:
- Which README.md files were created or updated
- Any public APIs that were flagged as undocumented
- Patterns or conventions discovered during this documentation pass
04 同仓库更多 Skills
write-tests
Test implementation skill for HypermediaEngine. Takes a confirmed test plan from design-test-cases and produces compilable, runnable xUnit tests following project conventions. Validates coverage quality through mutation testing. Invoked by the sqa-engineer agent after the test plan is approved.
write-documentation
Structured documentation writing workflow for HypermediaEngine. Writes or updates README.md files at the repo root and in each project directory (src/, tests/, samples/, etc.) based on current implementation, ADRs, and architecture decisions.
write-adr
Writes a numbered Architecture Decision Record (ADR) for a significant architectural choice in the HypermediaEngine project. Invoked by the software-architect agent whenever a consequential design decision is made or ratified. Saves the ADR to docs/architecture/decisions/.
tunit-playwright-ui-testing
Comprehensive guidance for writing coded end-to-end UI tests in C# using TUnit.Playwright. Tests inherit from PageTest — the base class manages all browser lifecycle. Covers NuGet setup, PageTest inheritance, Page Object Model, browser configuration, parallelism limiting, and CI integration. Based on the official TUnit docs at https://tunit.dev/docs/examples/playwright.
triage
Task classification, decomposition, dependency mapping, and routing skill. Invoked by the triage-agent to break any user request into discrete, independently-routable work items with assigned priorities and agent chains.
system-design
Expert system design skill. Use PROACTIVELY to design systems, review architectures, and assist software engineers in learning design principles and implementing them in the code with design patterns.