document-generate

Generate structured documentation for features, modules, or projects using the Diataxis framework.

Updated Aug 9, 2026
One-click install
npx skills add https://github.com/raghavbadhwar/rstack --skill document-generate-raghavbadhwar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: document-generate
Source: https://github.com/raghavbadhwar/rstack/tree/main/document-generate
Command: npx skills add https://github.com/raghavbadhwar/rstack --skill document-generate-raghavbadhwar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing documentation from scratch is time-consuming and often skipped, leaving features, modules, and entire projects undocumented. This Skill produces complete, structured documentation on demand so coverage gaps get filled without manual drafting. ## Core Features & Use Cases - Diataxis-Structured Output: Produces documentation organized by the Diataxis framework — tutorials, how-to guides, reference material, and explanations — matched to the audience's need. - Flexible Scope: Documents a single feature, a module, or an entire project, and can be invoked standalone or called by /document-release when it detects coverage gaps. - Use Case: After shipping a new API module with no docs, ask the agent to document the module and receive a complete tutorial plus reference documentation grounded in the actual code. ## Quick Start Ask the agent to generate documentation for a specific feature or module, for example by saying "write docs for the authentication module".

Frequently Asked Questions about document-generate

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

FAQPage Schema
How do I generate documentation for a feature automatically?

Invoke the skill with a request like "document this feature" or "write docs for this module". It analyzes the code and produces structured documentation using the Diataxis framework, covering tutorials, how-tos, reference, and explanation as appropriate.

What is the Diataxis framework for documentation?

Diataxis is a documentation structure that splits content into four types: tutorials for learning, how-to guides for tasks, reference for technical facts, and explanation for understanding. This skill uses it to pick the right format for each documentation need.

Can I generate docs for an entire project at once?

Yes, the skill accepts project-wide scope in addition to single features or modules. It can also be called by the /document-release workflow when that process finds documentation coverage gaps.

Does this skill work in headless or CI environments?

The skill detects the session kind (interactive, spawned, or headless) during its preamble. In headless sessions it blocks on unavailable interactive prompts rather than auto-deciding, while spawned sessions auto-choose recommended options.

When should I not use automated documentation generation?

Avoid it when documentation requires product strategy context, legal review, or audience research that is not present in the codebase. Generated docs reflect the code as written and still benefit from human editorial review.