원클릭으로
update-docs
Compare the docs in DOCS_DIR/ with the current code and update the ones whose source changed.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Compare the docs in DOCS_DIR/ with the current code and update the ones whose source changed.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Capture reproducible UI screenshots with Playwright (against the Firebase emulators) for use in the docs. Usage: /capture-screenshots <area or shot id>
Generate documentation for a part of the system, derived from the code, in DOCS_DIR/. Usage: /generate-docs <area name>
| name | update-docs |
| description | Compare the docs in DOCS_DIR/ with the current code and update the ones whose source changed. |
| user_invocable | true |
| model | sonnet |
Compare the documents in docs/ with the current code and update the ones that have fallen
behind. This is the skill the Stop hook runs automatically.
Fill in
docsand*.ts, *.tsx, *.jsbefore first use. Language is English.
Work incrementally from the git diff, not by scanning everything. This keeps it fast enough to run on every change.
BASE=$(git merge-base origin/main HEAD) (fall back to origin/master).git diff --name-only "$BASE"...HEAD + uncommitted
(git diff --name-only and git diff --cached --name-only).*.ts, *.tsx, *.js, e.g. *.ts, *.kt, *.py, *.sql). Ignore
docs/ itself.payments → payments.md).If nothing source-related changed: report that everything is up to date and stop.
Only when asked (/update-docs --full), or when no docs exist yet: go through every
docs/*.md (skip README.md and CHANGELOG.md) using each doc's "Related code" section as
the source list. If no docs exist yet, point to /generate-docs.
For each affected document: read the doc, read its source files (via "Related code"), and note new fields, removed fields, type changes, validation changes, new entities, removed entities, behaviour changes.
## payments.md
⚠️ 2 changes:
- NEW FIELD: Payment.refundedAt (timestamp) — undocumented
- CHANGED TYPE: Payment.amount was Int, now Decimal
## customers.md
✅ Up to date
If everything is up to date, say so and stop.
If there are changes:
docs/html/<area>.html so the stakeholder
view stays in sync. Apply the same edit (add/remove a table <tr>, edit a cell, add a section,
update a <pre class="mermaid">), following the Markdown→HTML mapping in /generate-docs
Step 5. If the HTML twin doesn't exist yet, generate it per that step. Don't touch the script
tags or assets/.docs/README.md (and add a card to docs/html/index.html) if documents
were added.docs/assets/screenshots/, generated by the capture-screenshots
skill from e2e/screenshots/manifest.ts), re-run that skill (npm run screenshots) so the
images match the current UI.Verify before you remove. A field removed in one file may still exist in a related one. Read all sources in the doc's "Related code" section before deleting anything; only remove what no longer appears in any source.
Append the changes to docs/CHANGELOG.md, newest first:
## YYYY-MM-DD
### payments.md
- **New field:** `Payment.refundedAt` (`timestamp`) — when the payment was refunded
- **Changed type:** `Payment.amount`: `Int` → `Decimal`
Group by date (today) and document; add new entries at the top; use the current date. Create the file with a header if it doesn't exist. If there are no changes, add nothing.