.codex/skills/update-codebase/SKILL.md
Update CODEBASE.md with working knowledge gained during task execution. User manually trigger, do not auto invoke this.
npx skillsauth add Hoang604/get-thing-done update-codebaseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When to use this:
Flow: Recall → Verify → Target → Update </objective>
<context> **Current Codebase Map:**./.gtd/CODEBASE.md./.gtd/codebase/architecture.md./.gtd/codebase/entrypoints.md./.gtd/codebase/patterns.md./.gtd/codebase/open-questions.md./.gtd/codebase/domains/*.md./.gtd/codebase/infra/*.md
</context>
No Guessing. Only add what you verified during this session.
Cite Evidence Inline. Every changed claim must include Evidence: path:line.
Admit Gaps. If you partially understand something, add or preserve an item in open-questions.md.
This is an incremental update. Modify the smallest correct set of files.
Do not dump new knowledge into CODEBASE.md unless the index itself needs updating.
List the knowledge gained in this session.
Format findings like:
LEARNED:
- [What changed or was clarified] — [Evidence: file:line]
Examples:
OrderProcessor.handlePayment() calls PaymentGateway.charge() before LedgerService.record() — Evidence: src/order/processor.ts:44, src/ledger/service.ts:18utils/cache.ts is a Redis write-through adapter, not in-memory cache — Evidence: src/utils/cache.ts:12withTransaction() wrapper — Evidence: src/http/create-order.ts:9, src/http/refund-order.ts:11Use the smallest correct target set.
| Knowledge Type | Target File |
| -------------- | ----------- |
| Repo-wide structure clarified | architecture.md |
| Entry point or startup flow found | entrypoints.md |
| Cross-cutting convention verified | patterns.md |
| Question answered or newly discovered gap | open-questions.md |
| Domain behavior clarified | domains/<name>.md |
| Infrastructure behavior clarified | infra/<name>.md |
| New domain or infra slice discovered | create new file and add link in CODEBASE.md |
Only update CODEBASE.md when:
For each learned fact:
Last UpdatedLast Verified for every file you rechecked during this updateIf the fact does not fit any existing file:
domains/ or infra/CODEBASE.md to link to itIf a prior claim is stale:
CODEBASE.mdarchitecture.mdentrypoints.mdpatterns.mdopen-questions.mddomains/*.md and infra/*.md<output_format>
After updating, confirm:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GTD ► CODEBASE DOCS UPDATED ✓
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
| File | Change |
|------|--------|
| {path} | {what changed} |
─────────────────────────────────────────────────────
</output_format>
<forced_stop> STOP. The workflow is complete. Do NOT automatically run the next command. Wait for the user. </forced_stop>
testing
manual trigger by user, do not auto invoke
tools
manual trigger by user, do not auto invoke
development
Trace execution paths and document how code actually behaves. Use when you need to understand how features work, walk through code flows, explain component behavior, trace where data comes from, understand relationships between components, or audit for orphaned events and dead code.
testing
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.