Resolver
How to find and prefer instructions. Keep this short. Imported content still uses context — do not turn this into a dump of repo facts.
Playbook
Before large changes:
- Find the repository root (
git rev-parse --show-toplevelwhen in a git work tree). - Load project instructions in order when present:
AGENTS.mdCLAUDE.mdCLAUDE.local.md(personal, gitignored)- nested guides near the files you edit (package/app
AGENTS.md,ROUTER.md,docs/)
- Prefer project facts over these personal defaults when they conflict.
- Prefer deeper, nearer guides over higher, broader ones.
- Prefer the explicit user task over defaults.
- Work under
.worktrees/still follows that repo’s root guides. - Before editing, name which instruction files and domain rules apply.
Domain signals
| Signal | Prefer |
|---|---|
UI, *.tsx / *.jsx, Next App Router | Frontend project guide; shared UI packages; lint/typecheck |
| APIs, Rails, Python/FastAPI, DB, workers | Backend project guide; tenant/auth boundaries; focused tests; lint/format |
*.ts shared packages | Nearest package AGENTS.md / README |
| dbt / ClickHouse / Athena | Directory AGENTS.md + ROUTER.md first |
| Infra / Terraform / CI | Ask before production changes |
Repos under ~/code
Hints only — always open that repo’s own AGENTS.md:
| Path pattern | Notes |
|---|---|
~/code/kamek-ai | Root + app/package guides |
~/code/spoint/* | Repo AGENTS.md / .agents router |
~/code/techinmuebles114/* | Docs-first scaffolds |
~/code/benoror/* | Personal; prefer each repo guide |
~/code/procevi/* | Commit cadence when the user asks for commits |
~/code/trivelta/* | In-repo Engineering Standards (branches, PR size, lint, flags, tests) |
Do not copy team standards into the personal hub.