workflows/workflows/agent-environment-setup/platforms/claude/skills/tech-doc/SKILL.md
Use when writing technical documentation including API references, operational runbooks, onboarding guides, decision logs, and changelog standards.
npx skillsauth add cubetiq/cubis-foundry tech-docInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Guide the creation of production-grade technical documentation including API references, operational runbooks, onboarding guides, decision logs, and changelog standards. Ensures documentation is accurate, maintainable, audience-appropriate, and integrated into the development workflow.
Identify the audience before writing a single line. Determine whether the reader is an API consumer, an on-call engineer, a new hire, or a stakeholder because documentation written for the wrong audience either over-explains the obvious or omits critical context.
Use a consistent template for each document type. API docs follow OpenAPI structure, runbooks follow the incident-response template, onboarding follows the progressive-disclosure pattern because inconsistent formats force readers to learn a new structure for every document.
Write API documentation from the consumer's perspective. Start with what the endpoint does and why a consumer would call it, then cover authentication, request format, response format, error codes, and rate limits because developer experience degrades when docs are organized by implementation rather than use case.
Include working request/response examples for every API endpoint. Provide curl commands or SDK snippets that can be copy-pasted and executed because abstract parameter tables without examples leave consumers guessing at correct usage.
Document error responses with the same rigor as success responses. List every error code, its meaning, common causes, and recommended resolution because undocumented errors force consumers to reverse-engineer behavior from production failures.
Write runbooks as step-by-step procedures, not prose. Each step must be a single actionable instruction with the expected outcome and what to do if the outcome differs because on-call engineers reading runbooks at 3 AM cannot parse paragraphs of context.
Include prerequisites, escalation paths, and rollback steps in every runbook. Document what access, tools, and permissions are needed before starting, who to contact if the procedure fails, and how to undo changes because missing prerequisites waste time and missing rollback steps turn incidents into outages.
Structure onboarding guides as progressive disclosure. Start with what the new hire needs on day one (access, environment setup), then week one (architecture overview, first contribution), then month one (deeper systems, on-call rotation) because front-loading everything overwhelms and back-loading critical setup blocks productivity.
Maintain a decision log with date, participants, context, and outcome. Record why a technology, pattern, or trade-off was chosen, not just what was chosen because decisions without recorded reasoning get reversed or relitigated when context is lost.
Follow a changelog standard that separates audience concerns. Use categories (Added, Changed, Deprecated, Removed, Fixed, Security) and write entries from the user's perspective because changelogs organized by commit message or file path are meaningless to consumers.
Integrate documentation into the CI/CD pipeline. Validate that API docs match the implementation (OpenAPI spec linting, contract tests), that runbooks reference existing infrastructure, and that links are not broken because documentation that drifts from reality is worse than no documentation.
Add metadata to every document. Include author, last-updated date, review cycle, and owner team because documents without ownership rot fastest, and undated documents cannot be assessed for staleness.
Write in active voice with short sentences. Prefer imperative mood for instructions ("Run the migration script") over passive voice ("The migration script should be run") because active voice is faster to read and less ambiguous under stress.
Use diagrams and tables for structured information. Replace paragraphs that describe relationships, flows, or comparisons with visual representations because a well-labeled diagram communicates structure faster than any paragraph.
Test documentation by following it literally. Have someone unfamiliar with the system execute the runbook, API guide, or onboarding doc step by step because documentation that only works when you already know the system provides no value.
Establish a review cadence and staleness policy. Flag documents not reviewed in 90 days, assign ownership for each document category, and include documentation review in sprint ceremonies because documentation without a maintenance process decays to fiction.
Provide documentation as Markdown files with consistent structure. Include:
Load on demand. Do not preload all reference files.
| File | Load when |
| --- | --- |
| references/api-documentation-patterns.md | Writing or reviewing API documentation, choosing OpenAPI/AsyncAPI structure, or setting up API doc tooling. |
| references/writing-style-guide.md | Establishing writing conventions, tone guidelines, or reviewing documentation for consistency and clarity. |
| references/documentation-tooling.md | Choosing documentation platforms, setting up CI/CD validation, or configuring linting and link checking. |
tools
Use when investigating latest vendor behavior, comparing tools or platforms, verifying claims beyond the repo, or gathering external evidence before implementation.
documentation
Use when designing database schemas, normalization strategies, indexing plans, query optimization, and migration workflows for relational, document, or hybrid data stores.
development
Use when writing, reviewing, or refactoring modern C#/.NET code, including minimal APIs, records, async streams, pattern matching, DI lifetimes, and memory-efficient performance tuning.
development
Use when conducting code reviews, building review checklists, calibrating review depth, providing structured feedback, or establishing team review practices. Covers review methodology, feedback patterns, automated checks, and batch review strategies.