document-app

Write or refresh system documentation from code, or verify existing docs against implementation.

579|76|Updated Oct 29, 2026
Ready to run
npx skills add https://github.com/phuryn/product-engineering --skill document-app-phuryn
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: document-app
Source: https://github.com/phuryn/product-engineering/tree/main/ai-shipping/skills/document-app
Command: npx skills add https://github.com/phuryn/product-engineering --skill document-app-phuryn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? AI-built applications often lack the system documentation needed for human review, security audits, and handoffs to other agents. This Skill generates authoritative documentation by reading code as the source of truth, or validates that existing documentation matches the current implementation. ## Core Features & Use Cases - Generate Core Docs: Produce architecture, flows, permissions, and variables documentation that maps system behavior to code. - Check Mode: Verify existing documentation against code without overwriting files, highlighting disagreements for the owner to resolve. - Scope Control: Document the whole repository or focus on specific areas like backend, auth, or data access. - Use Case: Before releasing a new service, document its auth flow, permission model, and config variables so your security team can audit the implementation against documented intent. ## Quick Start Ask the skill to document your app or check existing docs: say "document this app from the code" or "check our docs against the implementation."

Frequently Asked Questions about document-app

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

FAQPage Schema
How do I document my app's permission model and authorization checks?▼

The Skill reads your code to extract all permission-relevant journeys, role definitions, resource-operation-role matrices, and authorization checks (both code-enforced and database-enforced). It produces permissions.md mapping each protected step to its implementation.

What does check mode do differently than generating new docs?▼

Check mode reads existing documentation and compares each claim against the code, reporting disagreements without writing files. This lets you validate intent against implementation without overwriting hand-maintained docs.

Can I document just the backend or a specific service?▼

Yes. Specify a scope like 'supabase/functions' or 'backend' and the Skill will document only that area, prioritizing auth, data access, background jobs, and anything that exposes or moves data.

What happens if the code is unclear or undocumented?▼

The Skill reports gaps and unclear sections explicitly so you know exactly what to fix first. It describes the current state honestly rather than inventing behavior or skipping hard-to-understand areas.

Does the Skill document optional features like emails or scheduled jobs?▼

Only if they exist in the code. For capabilities like cron jobs, email notifications, or embedded automations, the Skill produces conditional documents only when found; otherwise it notes their absence in one line.

What output can I use after documentation is complete?▼

The Skill offers next steps: derive a test-coverage map to verify each documented rule, run a security audit against the documented behavior, check for performance issues, or run the ship check to produce a full shipping packet for agents.