"Use when changing a symbol's name, body, location, or structure with OntoIndex review and verification."
Recursos
1Instal·la
npx skillscat add ontograph/ontoindex/ontoindex-refactoring Instal·la des del registre de SkillsCat.
SKILL.md
Read ontoindex-navigation first.
Refactoring with OntoIndex
- Check
impact({action: 'symbol', repo: '<repo>', target: '<symbol>', direction: 'upstream'})before editing to map callers. - Run
gn_safe_edit_check({repo: '<repo>', symbol: '<symbol>', intent: 'modify-body'})before making the change; useintent: 'rename'for a rename. - For a rename, preview candidates with
refactor({action: 'rename', repo: '<repo>', target: '<symbol>', new_name: '<new>', dry_run: true}). This is preview only (applied: false). Review every candidate, then edit the files directly. Graph edits are candidates that need review; dynamic references can be missed. - For extract, move, or modify-body operations, use
gn_safe_refactorwithrepoand the matchingintent;dryRundefaults totrue. Review the preview before any apply. - After edits, call
gn_verify_diffwith explicitchangedFilesandexpectedFiles, then usegn_test_gapto inspect affected test evidence. Run the focused tests indicated by the change.
Pass repo explicitly to each OntoIndex call. When the index is stale or degraded, follow ontoindex-navigation and verify uncommitted source directly.