Skill: match-repo-style
When to use
You are editing an unfamiliar area of src/ or introducing a new file next to existing ones.
Steps
- List the target directory; open one to three neighboring
.ts/.tsxfiles (and any colocated__tests__or*.test.tsx). - Copy import order (external →
@/→ relative), hook style, and component structure—not necessarily line-by-line, but the same conventions. - For Redux work, read an adjacent
*.epics.tsand*.reducers.tspair and mirror error handling, action naming, and selector layout. - For UI, note Tailwind class order and EPAM DIAL UI imports used nearby.
- Run
npm run linton the touched paths before concluding.
Done when
The change reads as if the same author wrote the surrounding module: no new stray patterns, no conflicting state style, no import-sort violations.