agentleFS
insapption-projectsinsapption-projects/claude-agent-team-starter/.claude/skills/update-references/SKILL.md

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.

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
  1. Distinctive:

    If code changes but the maps do not, future tasks will:

    line 30
  2. Distinctive:

    look for files that no longer exist

    line 32
  3. Distinctive:

    Reference-first: Read the existing applicable maps before updating them.

    line 39
  4. Distinctive:

    Update only the affected maps: Do not rewrite unrelated sections.

    line 43
  5. Distinctive:

    Treat absent maps as not applicable: Do not create a mobile map for a repo that has no mobile app.

    line 46
  6. Distinctive:

    If the repo uses git, use the current worktree state rather than merge-based history.

    line 59
  7. Distinctive:

    If git is unavailable, use the files touched in this session or the files named in the approved plan.

    line 62
  8. Very specific:

    Read the applicable existing maps in references/ before editing them.

    line 67
  9. Very specific:

    If unsure, update the narrower relevant map and add [REVIEW NEEDED] rather than fabricating certainty.

    line 89
  10. Distinctive:

    Update tables, columns, constraints, defaults, and relations introduced by the changed schema files.

    line 96
  11. Distinctive:

    Update route flows, controllers, services, repositories, models, auth, middleware, queues, resources, and known gotchas that changed.

    line 101
  12. Distinctive:

    Update routing, pages, components, hooks, stores, services, API config, and key types/interfaces that changed.

    line 106
  13. Distinctive:

    Update app roots, navigation, screens, services, storage/auth behavior, platform-specific notes, Expo/native config, and build notes that …

    line 111
  14. Distinctive:

    Only update when the task introduced a genuine new pattern or convention that future tasks need to follow.

    line 116
  15. Very specific:

    If the changed files are docs-only, planning-only, or otherwise irrelevant to the project maps, report a no-op and do not modify …

    line 121

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: /update-references

Usage

/update-references
/update-references auto
/update-references laravel
/update-references react
/update-references react-native
/update-references frontend
/update-references all

auto 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

  1. Reference-first. Read the existing applicable maps before updating them.
  2. 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..main assumptions.
  3. Update only the affected maps. Do not rewrite unrelated sections.
  4. Inspect the changed code directly. Refresh the map from the real files, not from memory.
  5. 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:

  1. the files changed in the current working tree
  2. staged files
  3. 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.md when database or backend changes are involved
  • references/backend_map.md when Laravel/backend changes are involved
  • references/frontend_map.md when React or frontend changes are involved
  • references/mobile_map.md when React Native/mobile changes are involved
  • references/methodology.md when 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 applicable

End with:

/update-references complete
references/ is now aligned with the current code changes.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.