From grace
Ответ на вопрос о GRACE-проекте с прогрессивным раскрытием контекста. Использовать, когда у пользователя есть вопрос о кодовой базе, архитектуре, модулях или реализации — начинает с самого дешёвого уровня контекста, углубляется ТОЛЬКО при необходимости и даёт обоснованный ответ со ссылками на источники.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grace:grace-askThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Answer a question about the current GRACE project using the **smallest context that still answers
Answer a question about the current GRACE project using the smallest context that still answers correctly. Naïve loading of every XML artifact and every governed file wastes tokens and buries the answer in noise.
Load context in escalating levels. Announce the level you are loading in one line in your working
notes: "Loading Level 2 context: docs/development-plan.xml scope = Phase-1". Do not silently
escalate.
Every grace-ask invocation loads exactly this set:
AGENTS.md — conventions, keywords, stackCLAUDE.md — project-specific activation rulesgrace status --path . --brief output (if the CLI is installed) — single-screen health snapshotThis is enough to:
Load only when Level 1 does not answer the question.
docs/development-plan.xml (one phase, one module, one dataflow)docs/knowledge-graph.xml (one M-xxx plus its direct CrossLinks)grace module show M-XXX --path . --with verification (if CLI available)Rule: scope by name. If the question is about M-AUTH, load only M-AUTH plus its one-hop neighbors. Do NOT load the whole graph.
Load only when Level 2 does not answer the question.
START_BLOCK_* / END_BLOCK_* ranges, not the whole filedocs/verification-plan.xmlgrace file show <path> --path . --contracts --blocks (if CLI available)Rule: read blocks, not whole files. If a function's CONTRACT is enough, do NOT read its implementation.
Load only when Level 3 is insufficient.
docs/verification-plan.xmldocs/operational-packets.xml (canonical packet, delta, failure-handoff shapes)docs/requirements.xml (use cases, requirements)docs/technology.xml (stack, tooling, observability)grace lint --path . for structural anomalies)Rule: Level 4 is for cross-cutting or methodology questions ("how is verification organized across the project?"), not for specific-module questions.
Read AGENTS.md and CLAUDE.md. If grace CLI is installed, run grace status --brief. Announce:
"Level 1 loaded."
If the answer is about conventions, stack, or project health — stop here. Answer and cite the Level 1 sources.
If the answer requires specific modules or behavior — escalate to Level 2.
Identify the smallest set of modules that could contain the answer. Use
grace module find <query> if available — it is cheaper than reading the XML by hand. Pull the
relevant M-xxx entries from the graph and plan, plus their direct CrossLinks.
Announce: "Level 2 loaded: M-XXX, M-YYY."
If the answer is about architecture, contracts, or dependencies — stop here. Answer and cite the Level 1–2 sources.
If the answer requires specific implementation behavior — escalate to Level 3.
For each governed file in scope:
START_BLOCK_* and read ONLY that block plus the function CONTRACT that contains itAnnounce: "Level 3 loaded: path/to/file.ts::BLOCK_NAME, V-M-XXX."
Most implementation questions stop here. Escalate to Level 4 ONLY for cross-cutting or methodology questions.
Load additional artifacts only when Level 3 cannot answer. Explicitly state why: "Escalating to Level 4 because the question spans verification policy across all modules."
Provide a clear, concise answer grounded in the actual project artifacts. Cite which files /
modules / blocks your answer is based on using path:line references. Close with the context
level at which you stopped: "Answered at Level 2."
| Rationalization | Reality |
|---|---|
| "Load everything to be safe" | Loading everything buries the signal. Scope to the smallest answer-bearing slice. |
| "Level 1 is too little, skip to Level 3" | Often Level 1 is enough — you learn by trying. Skipping hides the efficient path. |
| "Announcing the level is bureaucratic" | The announcement is a cost-tracking signal. It tells the user (and future-you) why the token bill was X. |
| "One file read is cheap, skip the block scoping" | On a multi-thousand-line file, reading the block is 10x cheaper than reading the file. Do it. |
| "CLI is optional, read the XML by hand" | The CLI is 10-100x cheaper for scoped queries. Use it when available. |
| "Cite generically: 'per the plan'" | Specific citations (development-plan.xml#M-AUTH) are verifiable. Generic citations rot. |
$grace-fix, $grace-refactor, or $grace-execute.$grace-explainer.$grace-* skill.Before finalizing the answer, confirm:
"Answered at Level N")path or M-xxx (verification: no bare claims)npx claudepluginhub baho73/grace-marketplace-2 --plugin graceAnswers questions about GRACE projects by loading artifacts like AGENTS.md and knowledge-graph.xml, navigating modules, and citing code blocks for codebase, architecture, or implementation details.
Answers factual/explanatory questions about the current project's codebase, architecture, conventions, and constraints with cited file:line evidence. Use for understanding how things work or why they are structured as they are.
Answers codebase questions by reading an Agentheim project's index, READMEs, ADRs, and task boards, then verifying against source code. Use when you need a thorough, code-grounded answer that separates decisions from implementation.