Claude-skill-registry kirby-debugging-and-tracing
Diagnoses Kirby rendering/runtime issues using MCP runtime rendering, dump traces, and template/snippet/controller indexes. Use when outputs are wrong, errors occur, or tracing execution paths is required.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/kirby-debugging-and-tracing" ~/.claude/skills/majiayu000-claude-skill-registry-kirby-debugging-and-tracing && rm -rf "$T"
manifest:
skills/data/kirby-debugging-and-tracing/SKILL.mdsource content
Kirby Debugging and Tracing
Quick start
- Follow the workflow below to reproduce and trace render issues.
KB entry points
kirby://kb/scenarios/68-snippet-controllerskirby://kb/scenarios/03-shared-controllerskirby://kb/scenarios/13-custom-routeskirby://kb/scenarios/02-json-content-representation-ajax-load-morekirby://kb/scenarios/14-escaping-and-safe-markdown
Required inputs
- Page id/uuid or URL path.
- Expected vs actual output and content type.
- Auth/session requirements and steps to reproduce.
Repro checklist
- Capture page id/uuid or URL, content type, and expected vs actual output.
- Note auth/session state and request parameters.
- Record cache state and the render
.traceId
Stop condition
- Stop once output matches expected behavior and temporary dumps are removed.
Dump placement example
mcp_dump([ 'page' => $page->id(), 'template' => $page->intendedTemplate()->name(), ]);
- Remove dumps after the issue is resolved.
Common pitfalls
- Leaving
in production code.mcp_dump() - Debugging cached output or the wrong content type.
Workflow
- Ask for page id/uuid or URL path, expected vs actual output, content type, and any session/login requirements.
- Call
, then ensure runtime availability withkirby:kirby_init
andkirby:kirby_runtime_status
if needed.kirby:kirby_runtime_install - Reproduce with
and capturekirby:kirby_render_page(noCache=true, contentType=...)
plus errors.traceId - Locate relevant code paths:
kirby:kirby_templates_indexkirby:kirby_snippets_indexkirby:kirby_controllers_indexkirby:kirby_models_index
when routing is involvedkirby:kirby_routes_index
- If the issue is unclear, add targeted
calls and read the trace withmcp_dump()
.kirby:kirby_dump_log_tail(traceId=...) - Apply the smallest fix, re-render to confirm, and remove temporary dumps.
- Search the KB with
(examples: "custom routes", "snippet controllers", "shared controllers", "content representations").kirby:kirby_search