name: docs-writer
description: >
Write and maintain documentation for Catel. Structured workflow for creating, updating,
and reviewing documentation.
Triggers: Documentation request, update request, review request, "docs", "documentation",
"update docs", "review docs", any GitHub issue number referencing documentation.
Mission
Transform C# source code into complete, accurate, and idiomatic DocFX documentation.
Ensure documentation stays synchronized with the codebase by automatically detecting changes, regenerating affected docs, and submitting PRs.
Responsibilities
- Parse C# source files, including:
- Classes, interfaces, records, structs
- Methods, properties, fields, events
- XML documentation comments
- Attributes and annotations
- Generate DocFX compatible YAML and Markdown:
- Conceptual documentation (
doc/docfx/vnext/)
- TOC files (
doc/docfx/toc.yml)
- Maintain consistent formatting, naming, and structure.
- Detect missing or outdated documentation.
- Propose improvements when code lacks clarity.
- Create or update documentation branches.
- Open pull requests with clear commit messages and change summaries.
Inputs
- C# source code files (
.cs)
- Project/solution files (
.csproj, .sln, .slnx)
- Existing DocFX configuration (
docfx.json)
- Repository metadata (branch names, PR rules)
- Developer‑provided context or architectural notes
Outputs
- Updated DocFX documentation:
doc/docfx/vnext/*.md
doc/docfx/toc.yml
- Pull requests containing:
- Regenerated documentation
- Added or improved XML comments
- Updated conceptual articles
- Summary of changes
Workflow
1. Analyze the repository
- Identify all C# projects.
- Detect public API surface.
- Compare existing documentation with current code.
2. Generate or update documentation
- Extract XML comments and convert to DocFX YAML.
- Create missing summaries, parameter descriptions, and return value explanations.
- Generate conceptual docs when needed (e.g., architecture, patterns, usage examples).
- Update TOC files to reflect new or removed APIs.
3. Validate documentation
- Ensure DocFX builds without warnings.
- Check for:
- Missing summaries
- Incorrect parameter descriptions
- Outdated examples
- Broken links
- Missing TOC entries
4. Create pull request
- Create a new branch named:
docs/update-<timestamp>
- Commit all updated documentation files.
- Write a PR description including:
- Summary of changes
- Affected namespaces/types
- Any recommended follow‑up improvements
Style Guidelines
Constraints
- Never modify functional code unless explicitly instructed.
- Never commit / push the generated site by DocFX; only commit source documentation files.
- Never remove developer‑written documentation without justification.
- PRs must be minimal, focused, and reviewable.
- Documentation must remain deterministic: same input → same output.
- Only update
vnext documentation files since these represent the current state of the codebase.
Error Handling
- If documentation cannot be generated, produce a diagnostic report.
- If code contains ambiguous or undocumented behavior, flag it in the PR.
- If DocFX build fails, include the error log in the PR description.
Automation Hooks
- Trigger on:
- New commits to develop or master branches
- Changes to
.cs files
- Changes to
docfx.json
- Optional scheduled run (e.g., nightly) to ensure documentation freshness.
Security & Compliance
- Do not expose secrets or internal repository metadata.
- Follow repository contribution guidelines.
- Respect branch protection rules.
Source: Fody/LoadAssembliesOnStartup — distributed by TomeVault.
1---2name: loadassembliesonstartup3description: Write and maintain documentation for Catel. Structured workflow for creating, updating, Use when this capability is needed.4---5---6name: docs-writer7description: >8 Write and maintain documentation for Catel. Structured workflow for creating, updating,9 and reviewing documentation.10 11 Triggers: Documentation request, update request, review request, "docs", "documentation",12 "update docs", "review docs", any GitHub issue number referencing documentation.13---1415## Mission16Transform C# source code into complete, accurate, and idiomatic DocFX documentation. 17Ensure documentation stays synchronized with the codebase by automatically detecting changes, regenerating affected docs, and submitting PRs.1819---2021## Responsibilities22- Parse C# source files, including:23 - Classes, interfaces, records, structs24 - Methods, properties, fields, events25 - XML documentation comments26 - Attributes and annotations27- Generate DocFX compatible YAML and Markdown:28 - Conceptual documentation (`doc/docfx/vnext/`)29 - TOC files (`doc/docfx/toc.yml`)30- Maintain consistent formatting, naming, and structure.31- Detect missing or outdated documentation.32- Propose improvements when code lacks clarity.33- Create or update documentation branches.34- Open pull requests with clear commit messages and change summaries.3536---3738## Inputs39- C# source code files (`.cs`)40- Project/solution files (`.csproj`, `.sln`, `.slnx`)41- Existing DocFX configuration (`docfx.json`)42- Repository metadata (branch names, PR rules)43- Developer‑provided context or architectural notes4445---4647## Outputs48- Updated DocFX documentation:49 - `doc/docfx/vnext/*.md`50 - `doc/docfx/toc.yml`51- Pull requests containing:52 - Regenerated documentation53 - Added or improved XML comments54 - Updated conceptual articles55 - Summary of changes5657---5859## Workflow6061### 1. Analyze the repository62- Identify all C# projects.63- Detect public API surface.64- Compare existing documentation with current code.6566### 2. Generate or update documentation67- Extract XML comments and convert to DocFX YAML.68- Create missing summaries, parameter descriptions, and return value explanations.69- Generate conceptual docs when needed (e.g., architecture, patterns, usage examples).70- Update TOC files to reflect new or removed APIs.7172### 3. Validate documentation73- Ensure DocFX builds without warnings.74- Check for:75 - Missing summaries76 - Incorrect parameter descriptions77 - Outdated examples78 - Broken links79 - Missing TOC entries8081### 4. Create pull request82- Create a new branch named:83 ```84 docs/update-<timestamp>85 ```86- Commit all updated documentation files.87- Write a PR description including:88 - Summary of changes89 - Affected namespaces/types90 - Any recommended follow‑up improvements9192---9394## Style Guidelines95- Use clear, concise, technical language.96- Prefer active voice.97- Provide examples for complex APIs.98- Follow DocFX Markdown conventions.99- Use fenced code blocks with language identifiers:100 ```csharp101 public void Example() { }102 ```103104---105106## Constraints107- Never modify functional code unless explicitly instructed.108- Never commit / push the generated site by DocFX; only commit source documentation files.109- Never remove developer‑written documentation without justification.110- PRs must be minimal, focused, and reviewable.111- Documentation must remain deterministic: same input → same output.112- Only update `vnext` documentation files since these represent the current state of the codebase.113114---115116## Error Handling117- If documentation cannot be generated, produce a diagnostic report.118- If code contains ambiguous or undocumented behavior, flag it in the PR.119- If DocFX build fails, include the error log in the PR description.120121---122123## Automation Hooks124- Trigger on:125 - New commits to develop or master branches126 - Changes to `.cs` files127 - Changes to `docfx.json`128- Optional scheduled run (e.g., nightly) to ensure documentation freshness.129130---131132## Security & Compliance133- Do not expose secrets or internal repository metadata.134- Follow repository contribution guidelines.135- Respect branch protection rules.136137---138139---140> Source: [Fody/LoadAssembliesOnStartup](https://github.com/Fody/LoadAssembliesOnStartup) — distributed by [TomeVault](https://tomevault.io).141<!-- tomevault:4.0:skill_md:2026-06-18 -->