Skip to content
Development
Skill

/grace-refactor

Refactor GRACE 4 governed code while keeping .grace graph, verification, change scopes, and file-local anchors synchronized.

From plugin
grace-marketplace
23330 skills
Install
$ npx -y skills add osovv/grace-marketplace --skill grace-refactor --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/grace-refactor

Context preview

The summary Claude sees to decide when to auto-load this skill.

Refactor GRACE 4 governed code while keeping .grace graph, verification, change scopes, and file-local anchors synchronized.

SKILL.md

grace-refactor.SKILL.md
name: grace-refactor
description: Refactor GRACE 4 governed code while keeping .grace graph, verification, change scopes, and file-local anchors synchronized.

<skill> <scope> Use this for rename, move, split, merge, extraction, or boundary cleanup work. Greenfield feature work should go through `grace-spec`, `grace-plan`, and `grace-execute`. </scope>

<must_do>

  • Resolve affected `M-*`, `DF-*`, and `V-M-*` anchors through `.grace/graph/index.xml` and `.grace/verification/index.xml`.
  • Check active `.grace/changes` for scope overlap before editing.
  • Preserve or update file-local `LINKS:`, module contracts, function contracts, and semantic blocks.
  • Update durable graph and verification artifacts only when the refactor intentionally changes boundaries, paths, or evidence.
  • Run targeted tests and `grace lint --path <project-root>` when available.

</must_do> </skill>

Ships withgrace-marketplace

GRACE means Graph-RAG Anchored Code Engineering: a contract-first AI engineering methodology built around semantic markup, .grace XML artifacts, knowledge-graph navigation, assertions, scopes, and log-driven verification.

Get the whole plugin
Stats
233
Stars
51
Forks
Active
Maintenance
TypeScript
Language
MIT
License
14d ago
Last commit
5mo ago
Created

Repo: osovv/grace-marketplace