docgen

Generate or update READMEs, API references, architecture overviews, and changelogs from codebases.

9|2|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/harnessprotocol/harness-kit --skill docgen-harnessprotocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docgen
Source: https://github.com/harnessprotocol/harness-kit/tree/main/plugins/docgen/skills/docgen
Command: npx skills add https://github.com/harnessprotocol/harness-kit --skill docgen-harnessprotocol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing and keeping documentation up to date is slow and error-prone, especially as code changes over time.

Core Features & Use Cases

  • Generate or update project docs: Produces READMEs, API references, architecture overviews, and changelogs directly from the codebase and git history.
  • Safe, review-first behavior: Outputs to the conversation first and asks for confirmation before writing to disk, while preserving manually written sections when they already exist.
  • Readable, maintainable changelogs: Groups commits by type and avoids dumping raw git logs.

Quick Start

Use the docgen skill to generate an updated README for the current project.

Frequently Asked Questions about docgen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate documentation from my codebase automatically?

To generate documentation from a codebase, this skill parses file structures and git history to produce READMEs, API references, architecture overviews, and changelogs. It outputs the proposed content in the conversation first for your review before writing anything to disk.

Can I generate a changelog from git history without raw commit logs?

Yes, you can generate a readable changelog from git history. This skill analyzes version-range commit history, groups commits logically by type, and avoids dumping raw git logs into the final documentation output.

How do I update existing READMEs without losing manually written content?

To update READMEs while preserving manual content, this skill scans existing file structures and retains manually written sections that already exist. It generates new documentation sections and integrates them without overwriting your custom additions.

Does generating API references require confirming changes before writing to disk?

Yes, generating API references requires confirmation before writing to disk. This skill enforces a mandatory review-first behavior by outputting the parsed API surface documentation to the conversation, ensuring you approve all file modifications before they occur.

What is the best way to create architecture overviews for specific directories?

The best way to create architecture overviews for specific directories is using doc-type-specific parsing. This skill analyzes targeted directory structures and codebase relationships to produce accurate architectural summaries without scanning unrelated project areas.

Are there limitations when maintaining documentation for rapidly changing API surface areas?

A key limitation when maintaining documentation for rapidly changing API surface areas is the required confirmation step before writing to disk. While this preserves manual content and ensures accuracy, it requires manual approval for every documentation update generated from the codebase.