update-references
Skill1 starsChanged 8 months agoMITView on GitHub
Refresh the affected project reference files after code changes. This is the mandatory maintenance step that keeps references/ aligned with the real codebase so future Claude Code tasks can rely on the maps instead of re-reading the whole repo.
In this repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- create-prSkill
- delete-branchSkill
- dev-workflowSkill
- fix-planSkill
- implement-fixSkill
- implement-planSkill
- init-referencesSkill
- merge-mainSkill
- plan-featureSkill
- read-referencesSkill
- test-lintSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 12 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
If code changes but the maps do not, future tasks will:
- Distinctive: line 32
look for files that no longer exist
- Distinctive: line 39
Reference-first: Read the existing applicable maps before updating them.
- Distinctive: line 43
Update only the affected maps: Do not rewrite unrelated sections.
- Distinctive: line 46
Treat absent maps as not applicable: Do not create a mobile map for a repo that has no mobile app.
- Distinctive: line 59
If the repo uses git, use the current worktree state rather than merge-based history.
- Distinctive: line 62
If git is unavailable, use the files touched in this session or the files named in the approved plan.
- Very specific: line 67
Read the applicable existing maps in references/ before editing them.
- Very specific: line 89
If unsure, update the narrower relevant map and add [REVIEW NEEDED] rather than fabricating certainty.
- Distinctive: line 96
Update tables, columns, constraints, defaults, and relations introduced by the changed schema files.
- Distinctive: line 101
Update route flows, controllers, services, repositories, models, auth, middleware, queues, resources, and known gotchas that changed.
- Distinctive: line 106
Update routing, pages, components, hooks, stores, services, API config, and key types/interfaces that changed.
- Distinctive: line 111
Update app roots, navigation, screens, services, storage/auth behavior, platform-specific notes, Expo/native config, and build notes that …
- Distinctive: line 116
Only update when the task introduced a genuine new pattern or convention that future tasks need to follow.
- Very specific: line 121
If the changed files are docs-only, planning-only, or otherwise irrelevant to the project maps, report a no-op and do not modify …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: /update-references
Usage
/update-references
/update-references auto
/update-references laravel
/update-references react
/update-references react-native
/update-references frontend
/update-references allauto is the default and preferred mode.
Why this step matters
The files in references/ are the project's durable AI map.
If code changes but the maps do not, future tasks will:
- look for files that no longer exist
- miss newly introduced files or flows
- rely on outdated method names, props, services, routes, or tables
- waste tokens repeatedly rediscovering structure that should already be mapped
Core rules
- Reference-first. Read the existing applicable maps before updating them.
- Use the current task as the source of truth. Inspect the changed files in
the current working tree, staged set, or explicitly touched files for this
task. Do not rely on
main~1..mainassumptions. - Update only the affected maps. Do not rewrite unrelated sections.
- Inspect the changed code directly. Refresh the map from the real files, not from memory.
- Treat absent maps as not applicable. Do not create a mobile map for a repo that has no mobile app.
Update workflow
1. Discover what changed
Preferred sources, in order:
- the files changed in the current working tree
- staged files
- the files explicitly modified during the task
If the repo uses git, use the current worktree state rather than merge-based history. Include tracked and untracked files when relevant.
If git is unavailable, use the files touched in this session or the files named in the approved plan.
2. Load the existing maps first
Read the applicable existing maps in references/ before editing them.
references/schema.mdwhen database or backend changes are involvedreferences/backend_map.mdwhen Laravel/backend changes are involvedreferences/frontend_map.mdwhen React or frontend changes are involvedreferences/mobile_map.mdwhen React Native/mobile changes are involvedreferences/methodology.mdwhen the task introduced a new convention, architecture rule, or working pattern
3. Infer scope in auto mode
Map changed files to reference files conservatively:
- migrations or schema files →
references/schema.md - Laravel routes, controllers, services, models, policies, jobs, resources,
requests, middleware →
references/backend_map.md - React/frontend pages, components, hooks, stores, services, routing, shared
types →
references/frontend_map.md - React Native screens, navigation, Expo/native config, mobile services,
platform-specific files →
references/mobile_map.md - new architectural or naming patterns →
references/methodology.md
If unsure, update the narrower relevant map and add [REVIEW NEEDED] rather
than fabricating certainty.
4. Refresh each affected map
references/schema.md
Update tables, columns, constraints, defaults, and relations introduced by the changed schema files.
references/backend_map.md
Update route flows, controllers, services, repositories, models, auth, middleware, queues, resources, and known gotchas that changed.
references/frontend_map.md
Update routing, pages, components, hooks, stores, services, API config, and key types/interfaces that changed.
references/mobile_map.md
Update app roots, navigation, screens, services, storage/auth behavior, platform-specific notes, Expo/native config, and build notes that changed.
references/methodology.md
Only update when the task introduced a genuine new pattern or convention that future tasks need to follow.
5. No-op handling
If the changed files are docs-only, planning-only, or otherwise irrelevant to
the project maps, report a no-op and do not modify references/.
6. Completion report
Report exactly which files were updated.
Use this format:
REFERENCE FILES UPDATED
references/schema.md -> updated | skipped | not applicable
references/backend_map.md -> updated | skipped | not applicable
references/frontend_map.md -> updated | skipped | not applicable
references/mobile_map.md -> updated | skipped | not applicable
references/methodology.md -> updated | skipped | not applicableEnd with:
/update-references complete
references/ is now aligned with the current code changes.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

