Help us improve
Share bugs, ideas, or general feedback.
From flow
Generates systematic documentation for code files or modules via file-by-file analysis, progress tracking, and completeness checks using structured templates. Use for API docs, READMEs, or reference guides.
npx claudepluginhub cofin/flow --plugin flowHow this skill is triggered — by the user, by Claude, or both
Slash command
/flow:docgenThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Systematic documentation generation with progress tracking and completeness guarantees. Analyzes code file-by-file, ensures nothing is skipped, and produces structured output per component.
Generates function-level JSDoc/docstrings, module-level READMEs, and API references matching existing project doc style. Skips trivial functions restating signatures.
Creates or updates .meridian/docs/ knowledge files for modules or directories. Generates concise reference docs with frontmatter summaries and read_when keywords for agent context routing.
Generates API docs, architecture diagrams, user guides, and technical references from code using AI-powered analysis and best practices. Useful for documentation pipelines and repo standardization.
Share bugs, ideas, or general feedback.
Systematic documentation generation with progress tracking and completeness guarantees. Analyzes code file-by-file, ensures nothing is skipped, and produces structured output per component.
Docgen complements flow-docs — it provides the systematic analysis engine for flow-docs' five-phase workflow. It can also be used standalone for ad-hoc documentation tasks when you need structured, complete documentation without a full flow-docs run.
The core guarantee: every file in scope gets documented. Progress is tracked explicitly ([3/12 files documented]) so you always know what's been covered and what remains.
Identify what needs documenting: single file, directory, module, or entire package. Be specific — "the auth module" means every file in that directory.
Enumerate every file to document with its path. This is the completeness checklist — no file gets dropped silently. Count them: this is your denominator.
For each file in the manifest:
references/component-template.md:
[3/12 files documented]After all files are documented:
Produce the final documentation:
// increments counter by 1 on counter++ adds no value. Explain the reason behind the logic.Before declaring documentation complete, verify:
Documenting src/auth/:
Manifest: 4 files — middleware.ts, session.ts, guards.ts, index.ts
[1/4] middleware.ts — Authentication middleware. Extracts JWT from Authorization header, validates with session.verify(), attaches user to request context. Exports: authMiddleware().
[2/4] session.ts — Session management. Creates/verifies JWTs using jsonwebtoken. Token lifetime: 24h. Exports: createSession(), verify().
[3/4] guards.ts — Route guards. requireAdmin() checks user.role === 'admin'. requireAuth() checks session exists. Both use authMiddleware output.
[4/4] index.ts — Re-exports: authMiddleware, requireAdmin, requireAuth, createSession.
Cross-reference: guards.ts depends on middleware.ts output. middleware.ts depends on session.ts. index.ts is the public API surface.