Reverse-engineer an AI-built codebase into the system documents reviewers and auditors need — a core set (architecture, flows, permissions, variables) plus cond
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-pm-skills-6bfc613b35b4 ,按照其中的说明把「document-app」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Produce the durable documentation an AI-built app is missing: an honest map of what the system is, who can do what, and where the risk lives. These docs are the foundation every later audit compares the code against.
/document-app
/document-app supabase/functions
/document-app the backend
Audit $ARGUMENTS. If empty, document the whole repository, prioritizing backend code, auth, data access, background jobs, and anything that sends, schedules, or exposes data.
Apply the shipping-artifacts skill. Reading the code as the source of truth, produce the applicable documents in documentation/ at the repo root. For large scopes, fan out with parallel subagents — one per core document, each reading the code slice its doc describes — then reconcile the cross-references yourself.
Core (always):
architecture.md — system overview, stack, auth flow, trust boundariesflows.md — the permission-relevant journeys: each protected step's authz check, the trust-boundary crossings, and the side effects each flow causespermissions.md — roles, scope derivation, resource × operation × role matrix, RLS vs. code-enforced checksvariables.md — config & secrets mapped to risk and rotationConditional (only if the capability exists — otherwise note its absence in one line):
emails.md — notification path, templates, retry/backoff, failure visibilitycron.md — scheduled-work inventory, idempotency, internal-call authseo.md — SPA preview approach, route coverage, metadata sanitizationautomation.md — embedded agents/automations: trigger, tool surface, steering vs. hard guardrails, output contract, app-owned side effects, approval gatesBe brutally honest about the current state without being paranoid. Skip any conditional document that doesn't apply and say so. Add a "Related Documents" reference in architecture.md for each doc produced. (The test-coverage map, tests.md, is produced separately by /derive-tests.)
Summarize what was created or updated, what was skipped and why, and any gaps where the code was too unclear to document confidently (those are the first things to fix).
/derive-tests) so each documented rule has a verification plan?"/ship-check to wire agent context and produce a full shipping packet?"CLAUDE.md / AGENTS.md) is produced separately at the /ship-check handoff step — it's instructions derived from these docs, not system documentation.