smithery/bnomei

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.

Installation

$ npx skills add smithery/bnomei --skill kirby-debugging-and-tracing

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/bnomei · top by installs.

npx skills add smithery/bnomei

Browse all from smithery/bnomei

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,341 B
  • docs SUMMARY.md 240 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Kirby Debugging and Tracing

Quick start

  • Follow the workflow below to reproduce and trace render issues.

KB entry points

  • kirby://kb/scenarios/68-snippet-controllers
  • kirby://kb/scenarios/03-shared-controllers
  • kirby://kb/scenarios/13-custom-routes
  • kirby://kb/scenarios/02-json-content-representation-ajax-load-more
  • kirby://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 mcp_dump() in production code.
  • Debugging cached output or the wrong content type.

Workflow

  1. Ask for page id/uuid or URL path, expected vs actual output, content type, and any session/login requirements.
  2. Call kirby:kirbyinit, then ensure runtime availability with kirby:kirbyruntimestatus and kirby:kirbyruntime_install if needed.
  3. Reproduce with kirby:kirbyrenderpage(noCache=true, contentType=...) and capture traceId plus errors.
  4. Locate relevant code paths:

- kirby:kirbytemplatesindex - kirby:kirbysnippetsindex - kirby:kirbycontrollersindex - kirby:kirbymodelsindex - kirby:kirbyroutesindex when routing is involved

  1. If the issue is unclear, add targeted mcpdump() calls and read the trace with kirby:kirbydumplogtail(traceId=...).
  2. Apply the smallest fix, re-render to confirm, and remove temporary dumps.
  3. Search the KB with kirby:kirby_search (examples: "custom routes", "snippet controllers", "shared controllers", "content representations").