kirby-routing-and-representations

kirby-routing-and-representations is a skill for Claude Code, Codex from bnomei/kirby-mcp. It costs 50 tokens per session (699 once invoked), scanned A, original, MIT.

Kirby routing tools define how website URLs resolve and how pages return formats such as JSON, XML, or RSS. They also cover redirects, sitemap addresses, and filtering which URLs match.

In plain words
What is it for?
Use them to build custom endpoints, redirect old or trailing-slash URLs, create sitemap XML routes, and serve page content in machine-readable formats.
Why use it?
They help avoid conflicting URL rules, broken redirects, and routes that hide page data formats such as .json or .rss.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use them to build custom endpoints, redirect old or trailing-slash URLs, create sitemap XML routes, and serve page content in machine-readable formats.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bnomei/kirby-mcp/kirby-routing-and-representations
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bnomei/kirby-mcp --skill kirby-routing-and-representations
Clone the repo
git clone --depth 1 https://github.com/bnomei/kirby-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kirby-routing-and-representations

README.md
[![agentmods](https://agentmods.dev/badge/skills/bnomei/kirby-mcp/kirby-routing-and-representations/github.svg)](https://agentmods.dev/skills/bnomei/kirby-mcp/kirby-routing-and-representations)
Your own site
<a href="https://agentmods.dev/skills/bnomei/kirby-mcp/kirby-routing-and-representations"><img src="https://agentmods.dev/badge/skills/bnomei/kirby-mcp/kirby-routing-and-representations/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kirby-routing-and-representations

Your own site · 80×15
<a href="https://agentmods.dev/skills/bnomei/kirby-mcp/kirby-routing-and-representations"><img src="https://agentmods.dev/badge/skills/bnomei/kirby-mcp/kirby-routing-and-representations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 699 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.00699
Opus 5.5 $0.00020 $0.00280
Sonnet 5.5 $0.00010 $0.00140
Haiku 4.5 $0.00005 $0.00070

Measured 11d ago against content hash ff4f7a14eeca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kirby-routing-and-representations scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kirby-routing-and-representations/SKILL.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kirby Routing and Representations

Use Kirby 6 conventions for new work. Reserve template data names $slot/$slots and helper names push()/endpush()/stack() for Kirby's template system.

KB entry points

  • kirby://kb/scenarios/13-custom-routes
  • kirby://kb/scenarios/21-filtering-via-routes
  • kirby://kb/scenarios/49-sitemap-xml-route
  • kirby://kb/scenarios/78-trailing-slash-and-canonical-urls
  • kirby://kb/scenarios/02-json-content-representation-ajax-load-more

Required inputs

  • URL pattern and HTTP methods.
  • Response type and content language behavior.
  • Redirect or canonicalization rules.

Decision guide

  • Use content representations for page-backed JSON/XML/RSS.
  • Existing representations also support HTTP Accept negotiation. Test ordinary URLs, explicit extensions, Content-Type and cache separation; see kirby://glossary/content-representation.
  • Use routes for non-page endpoints, redirects, or custom logic.
  • Avoid greedy patterns that shadow representations.

Pattern hint

  • Put specific routes before catch-alls; avoid top-level (:all) when using representations.

Canonical redirect example

[
  'pattern' => '(:any)/',
  'action' => function ($path) {
    return go('/' . trim($path, '/'), 301);
  }
]

Common pitfalls

  • Route patterns that shadow .json or .rss representations.
  • Expecting kirby:kirby_render_page to execute route logic.

Workflow

  1. Clarify the URL pattern, HTTP methods, response type, and language behavior.
  2. Call kirby:kirby_init and read kirby://roots to locate config and template roots.
  3. Read kirby://config/routes to understand current route configuration.
  4. If runtime is available, call kirby:kirby_routes_index to see registered patterns; otherwise run kirby:kirby_runtime_status and kirby:kirby_runtime_install first.
  5. Inspect existing templates/controllers to avoid collisions:
    • kirby:kirby_templates_index
    • kirby:kirby_controllers_index
  6. For content representations, add site/templates/<template>.<type>.php and optional site/controllers/<template>.<type>.php.
  7. For routes, add or adjust routes in site/config/config.php or a plugin. Avoid greedy patterns that shadow .json/.rss representations.
  8. Validate output:
    • use kirby:kirby_render_page(contentType: json|xml|rss) for representations
    • manually hit route URLs for router behavior (render does not execute the router)
  9. Search the KB with kirby:kirby_search (examples: "custom routes", "json content representation", "filtering via routes", "sitemap.xml", "trailing slash").

Read the full file on GitHub · 66 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · +3 lines ff4f7a14eeca
  2. 1mo ago First seen · 63 lines · 50 tokens per session scan A cf769ce0ea20

Subscribe to this mod's changes

kirby-routing-and-representations is a skill published in the GitHub repository bnomei/kirby-mcp (67 stars, last pushed 7d ago), licensed MIT. It adds 50 tokens to every session and 699 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.