From grace
Использовать в начале любого разговора в репозитории, который может управляться GRACE. Устанавливает протокол активации: если GRACE-артефакты существуют, загружает минимальный контекст проекта и направляет запрос в подходящий grace-* скилл ДО любых действий (включая уточняющие вопросы, чтение файлов и правки кода).
How this skill is triggered — by the user, by Claude, or both
Slash command
/grace:grace-bootstrapThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<SUBAGENT-FAST-TRACK>
grace file show <path> --contracts --blocks (or
grace-cli file show) — this shows you the MODULE_CONTRACT, MODULE_MAP, semantic blocks,
and function contracts you must preserve.START_BLOCK_* / END_BLOCK_* marker. If your task requires
changing the block's shape, flag it in your return packet and stop — the parent agent must
invoke grace-refactor.requires-parent-graph-update so the parent can run grace-refresh.Subagents are never exempt from GRACE. They are exempt from the full activation cycle.
If a repository is managed by GRACE and you skip the activation protocol below, you WILL produce drift: edits without knowledge-graph updates, fixes without verification-plan entries, refactors without CrossLink maintenance. This is the #1 cause of GRACE projects degrading into "LLM forgot we had a graph" state.IF YOU SEE GRACE ARTIFACTS, YOU MUST ACTIVATE THE PROTOCOL. THIS IS NOT OPTIONAL.
GRACE (Graph-RAG Anchored Code Engineering) is a contract-first methodology. Every module has a
written contract (PCAM: Purpose, Constraints, Autonomy, Metrics), every change updates the
knowledge graph, and every module has a verification entry with explicit log/trace markers.
The grace-* skills are the ONLY way to modify a GRACE project correctly.
Invoke this skill at the start of ANY conversation where you might read, edit, or answer questions about code. Check for GRACE activation markers:
docs/knowledge-graph.xml existsdocs/development-plan.xml existsdocs/verification-plan.xml existsAGENTS.md contains GRACE keywords (knowledge-graph, MODULE_CONTRACT, verification-plan)Presence of any of these means: project is under GRACE governance → run protocol.
docs/ with GRACE XML files AND no GRACE markers in AGENTS.md — this is
not a GRACE project, proceed normally.digraph grace_activation {
"Conversation start" [shape=doublecircle];
"GRACE artifacts present?" [shape=diamond];
"Load Level 1 context" [shape=box];
"Classify user intent" [shape=diamond];
"Route to skill" [shape=box];
"Proceed normally" [shape=doublecircle];
"Execute via grace-* skill" [shape=doublecircle];
"Conversation start" -> "GRACE artifacts present?";
"GRACE artifacts present?" -> "Proceed normally" [label="no"];
"GRACE artifacts present?" -> "Load Level 1 context" [label="yes"];
"Load Level 1 context" -> "Classify user intent";
"Classify user intent" -> "Route to skill";
"Route to skill" -> "Execute via grace-* skill";
}
Read at minimum:
AGENTS.md (conventions, keywords, stack)CLAUDE.md if present (additional project rules)If the optional grace CLI is installed, prefer:
grace status --path . --brief --format json
JSON output gives deterministic fields (moduleCount, coveredModules, pendingSteps, nextAction,
missingActivation) that are easier for you to parse than prose. The text format is for humans.
Map the incoming request to ONE of the categories below. Announce the routing decision to the user in one sentence ("Routing to grace-fix because you described a runtime error").
| User intent | Route to |
|---|---|
| Question about the project, module, architecture, or behavior | grace-ask |
| Bug report, runtime error, unexpected behavior | grace-fix |
| New feature, architectural change, module addition | grace-plan (design) → grace-execute / grace-multiagent-execute (build) |
| Rename / move / split / merge existing code | grace-refactor |
| "Something feels stale / out of sync" | grace-refresh |
| Project health check, status, next steps | grace-status |
| "Is the code correct? Review the changes" | grace-reviewer |
| "How does GRACE work?" / methodology question | grace-explainer |
| Test / trace / log-marker design | grace-verification |
| "I'm going AFK, keep working on the plan" | grace-afk |
| Optimize architecture / choose between approaches | grace-evolve (when available) |
| Need CLI commands (lint, module find, file show) | grace-cli |
If intent is ambiguous, ask ONE clarifying question — but ONLY after Step 1 context is loaded. Never ask clarifying questions with zero project context.
Invoke the routed grace-* skill via the Skill tool (or the host equivalent). Do NOT attempt to
perform the operation with ad-hoc reads and edits: you will miss the graph / verification / contract
updates that the grace-* skills enforce.
Thoughts that mean STOP — you are about to skip GRACE activation and cause drift.
| Rationalization | Reality |
|---|---|
| "This is just a simple question, I'll answer from memory" | Questions are tasks. Without Level 1 context you will hallucinate module names. Run grace status --brief first. |
| "Let me read a file quickly to see what's here" | Files do not tell you the contract, the dependencies, or the verification story. The graph does. Read AGENTS.md first. |
| "The fix is a one-liner, skill overhead isn't worth it" | One-liners without CHANGE_SUMMARY and without verification-plan updates are how GRACE projects rot. Use grace-fix. |
| "I'll update the graph at the end" | You won't. By the time you finish, the graph deltas are no longer visible to you. Update in the same step. |
| "User just wants X, they don't care about GRACE overhead" | The user chose GRACE precisely to prevent this shortcut. If they truly want a bypass they will say so explicitly. |
| "I don't remember this skill, I'll freestyle" | Skills evolve. Read the current grace-* SKILL.md — do not rely on memory. |
| "I'm a subagent, skip everything" | Subagents use the fast-track block above — they are never exempt from preserving markup on the files they touch. |
Stop immediately if any of these appear:
START_BLOCK_* markers without updating the graph.docs/verification-plan.xml.grace-plan.AGENTS.md.Any of the above → return to Step 1.
Before you exit this skill and hand off to a concrete grace-* skill, confirm:
AGENTS.md is loaded into your working context (verification: state one concrete convention from it)grace status --brief output OR equivalent manual scan of docs/*.xml has been read (verification: state current module count or next recommended action)grace-* skill's SKILL.md has been invoked (verification: its prerequisites checklist has started)If any box is unchecked, you have not yet activated GRACE and must not proceed to edits.
This skill overrides default "answer fast" behavior in GRACE-managed repositories. The user's
explicit instructions always win over this skill. If CLAUDE.md says "do not use GRACE for this
task" or the user types #no-grace, honor that, but log the exception in your response.
npx claudepluginhub baho73/grace-marketplace-2 --plugin graceПолный справочник по методологии GRACE. Использовать при объяснении GRACE пользователям, онбординге новых проектов или когда нужно самому разобраться во фреймворке — принципах, семантической разметке, графах знаний, контрактах, тестировании и конвенциях уникальных тегов.
Mandatory workflow router invoked before any code edits, debugging, planning, or review. Runs entry sequence including token efficiency and routes to the correct skill for the task.
Initializes or audits a project with guardrails for agentic coding: planning, decision-completeness, and evidence-backed changes.