/grace:grace-bootstrapfrom grace
Bootstraps GRACE protocol at conversation start: detects GRACE-managed repos, loads minimal project context, and routes requests to the appropriate grace-* skill before any actions.
Ships in grace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
grace file show <path> — this shows you the
MODULE_CONTRACT, MODULE_MAP, and CHANGE_SUMMARY 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:
.grace/ exists (the GRACE 4 durable model: context/, graph/, verification/, changes/)docs/knowledge-graph.xml, docs/development-plan.xml,
docs/verification-plan.xml — still GRACE, but route to grace-migrate before any editsAGENTS.md contains GRACE keywords (.grace, knowledge-graph, MODULE_CONTRACT, V-M-*)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 . --format json
JSON output gives machine-readable fields (health, active changes, next recommended action)
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-spec (change spec) → grace-plan → grace-execute (sequential or parallel-safe) |
Legacy GRACE 3 docs/*.xml layout detected | grace-migrate |
| 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 --format text 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..grace/verification/.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 --format json output OR equivalent manual scan of .grace/ artifacts has been read (verification: state current active change 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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
grace, project-bootstrap, activation-protocol, knowledge-graph
npx claudepluginhub baho73/grace-marketplace-2 --plugin grace19 skills in this plugin
/grace-afkАвтономный режим работы, когда пользователь AFK. Использовать, когда пользователь вводит `/afk [часы] [бюджет%] [--checkpoint <мин>]` или просит агента продолжать работу самостоятельно. CLI контролирует лимит времени — агент опрашивает `grace afk tick` между шагами и завершает работу, когда CLI это разрешит. Необратимые решения эскалируются в Telegram через `grace afk ask`; всё остальное выполняется, откладывается или откатывается согласно матрице автономии./grace-askОтвечает на вопросы о GRACE 4-проекте, навигируя по артефактам текущего состояния `.grace` и файловой семантической разметке. Использовать для вопросов об архитектуре, модулях и поведении проекта./grace-ask-humanКороткая эскалация в Telegram во время автономных сессий. Использовать ТОЛЬКО изнутри grace-afk, когда необратимое решение должно быть подтверждено человеком. Формирует сообщение ≤10 строк, отправляет через grace afk ask и опрашивает grace afk check с экспоненциальным backoff. Блокирует до получения ответа, тайм-аута или истечения сессии.Other plugins' skills for the same job