Agent skill

documentation

Automated documentation generation and management. Use for creating, updating, and maintaining project documentation including README files, API docs, and inline code comments.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/uwe-schwarz/skills/tree/main/skills/documentation

Metadata

Additional technical details for this skill

author
your-name
version
1.0.0

SKILL.md

Documentation Skill

Automated documentation generation and management guidelines.

When to Apply

Use these guidelines when:

  • Creating new documentation
  • Updating existing docs
  • Documenting APIs
  • Adding inline comments
  • Maintaining README files

Documentation Types

1. README Files

Every project should have a README.md with:

  • Project title and description
  • Installation instructions
  • Usage examples
  • Contributing guidelines
  • License information

2. API Documentation

Document all public APIs with:

  • Function signatures
  • Parameter descriptions
  • Return value types
  • Usage examples
  • Error conditions

3. Code Comments

Add comments for:

  • Complex algorithms
  • Non-obvious logic
  • Workarounds and hacks
  • TODO/FIXME items
  • Performance considerations

4. Inline Documentation

Use JSDoc/Docstring style:

javascript
/**
 * Calculate the factorial of a number
 * @param {number} n - The number to calculate factorial for
 * @returns {number} The factorial of n
 * @throws {Error} If n is negative
 */
function factorial(n) {
  if (n < 0) throw new Error('Negative input');
  if (n === 0) return 1;
  return n * factorial(n - 1);
}

Documentation Standards

Style Guidelines

  • Use clear, concise language
  • Write in present tense
  • Use active voice
  • Avoid jargon when possible
  • Include examples

Formatting

  • Use markdown for docs
  • Consistent heading levels
  • Code blocks for examples
  • Links to related resources
  • Tables for structured data

Versioning

  • Document breaking changes
  • Maintain changelog
  • Tag documentation versions
  • Reference specific versions

Automation

Use scripts in scripts/ directory to:

  • Generate API documentation
  • Validate documentation coverage
  • Check for outdated docs
  • Format documentation

Best Practices

  • Keep docs up to date with code
  • Write docs for future maintainers
  • Include both high-level and detailed info
  • Use diagrams for complex systems
  • Provide troubleshooting sections

Expand your agent's capabilities with these related and highly-rated skills.

uwe-schwarz/skills

your-skill-name

A clear description of what this skill does and when to use it. This should be comprehensive so agents understand when to activate this skill.

0 0
Explore
uwe-schwarz/skills

example-skill

An example skill demonstrating the Agent Skills format. Use this as a template for creating your own skills.

0 0
Explore
uwe-schwarz/skills

code-review

Comprehensive code review guidelines for ensuring code quality, security, and maintainability. Use when reviewing pull requests, refactoring code, or ensuring best practices.

0 0
Explore
uwe-schwarz/skills

cost-estimate

Estimate the replacement cost, engineering effort, calendar time, and market-rate value of a software project by analyzing a repository's size, architecture, complexity, and delivery maturity. Use when asked for a build-cost estimate, rebuild quote, delivery timeline, stakeholder-facing budget range, pricing sanity check, or ROI/value analysis for work produced by Claude, Codex, OpenCode, Crush, or another AI coding agent.

0 0
Explore
uwe-schwarz/skills

upgrade-dependencies-pr

Update a JavaScript, TypeScript, or Python project's dependencies to the latest published versions, remove exact pinned JS semver specs when appropriate, convert stray JS `latest` tags back to explicit semver ranges, evaluate release impact against the codebase and official release notes, identify newly introduced features and enforcement changes, apply required small upgrade fixes, open GitHub issues for larger or optional follow-up work, and finish by creating a branch, commit, push, and PR. Use when asked to upgrade dependencies, refresh packages, unpin dependency versions, or ship an end-to-end dependency maintenance PR.

0 0
Explore
uwe-schwarz/skills

github-pr-review-workflow

Complete workflow for handling GitHub PR reviews using gh pr-review extension

0 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results