kirby-security-and-auth

kirby-security-and-auth is a skill for Claude Code, Codex from bnomei/kirby-mcp. It costs 38 tokens per session (787 once invoked), scanned A, original, MIT.

A Kirby CMS security guide for restricting pages, data, routes, and downloads based on user login status and roles. Kirby is a system for managing website content.

In plain words
What is it for?
Use it to add login and logout flows, role-based permissions, protected downloads, access checks, redirects, and security tests for Kirby sites.
Why use it?
It helps prevent private content from being exposed through templates or public routes. It also covers safe login redirects, request protection, and unauthorized-access responses.

Skill for Claude CodeCodex

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

Good fit Use it to add login and logout flows, role-based permissions, protected downloads, access checks, redirects, and security tests for Kirby sites.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bnomei/kirby-mcp/kirby-security-and-auth
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-security-and-auth
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-security-and-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/bnomei/kirby-mcp/kirby-security-and-auth/github.svg)](https://agentmods.dev/skills/bnomei/kirby-mcp/kirby-security-and-auth)
Your own site
<a href="https://agentmods.dev/skills/bnomei/kirby-mcp/kirby-security-and-auth"><img src="https://agentmods.dev/badge/skills/bnomei/kirby-mcp/kirby-security-and-auth/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-security-and-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/bnomei/kirby-mcp/kirby-security-and-auth"><img src="https://agentmods.dev/badge/skills/bnomei/kirby-mcp/kirby-security-and-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 787 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.00038 $0.00787
Opus 5.5 $0.00015 $0.00315
Sonnet 5.5 $0.00008 $0.00157
Haiku 4.5 $0.00004 $0.00079

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

Security

Grade A, and why

kirby-security-and-auth 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 1mo 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-security-and-auth/SKILL.md · 73 lines

How it starts

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

Kirby Security and Auth

Use Kirby 6 conventions for new work. For existing authentication integrations, consult kirby://kb/scenarios/83-migrate-kirby-5-to-6 before changing login or session handling.

Kirby 6 authorization and login

  • Model guards (isAvailable, ensureExecutable) replace deprecated model permissions checks. Role permissions and blueprint options remain separate: do not mechanically replace $role->permissions().
  • Use authenticate() and handle Kirby\Auth\Status / State::Pending; grant access only after successful challenge completion. login2fa() is legacy; password-only login() cannot complete 2FA.
  • Users may opt into 2FA even if not globally required. Basic Auth cannot complete it; use appropriately scoped API accounts instead of weakening editor accounts.
  • Old cookies are invalidated on upgrade. Test fresh login, logout, expiry and recovery. Passkeys are host-bound and require HTTPS outside localhost.
  • Custom challenges extend Kirby\Auth\Challenge; hash secret pending data yourself. Never expose credentials in UI props, logs or migration reports.

KB entry points

  • kirby://kb/scenarios/62-access-restriction-login
  • kirby://kb/scenarios/43-user-registration-and-login
  • kirby://kb/scenarios/63-files-firewall-protected-downloads
  • kirby://kb/scenarios/64-permission-tricks-role-based
  • kirby://kb/scenarios/67-indieauth-rel-me

Required inputs

  • Protected pages/data and required roles.
  • Login/logout flow and redirect rules.
  • Download protection or route constraints.

Role matrix template

Role Pages Actions Downloads
admin all all all
editor edit publish limited

Default guard pattern

  • Check $kirby->user() and required role/permission before returning content.
  • Redirect or return a 403 for unauthorized requests.
  • Enforce CSRF and validation on auth-related forms.

Login redirect rule

  • Store intended URL in the session and redirect after successful login.
  • Fall back to the home page when no intent is stored.

Read the full file on GitHub · 73 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. 1mo ago Changed · +10 lines ed531844918f
  2. 3mo ago First seen · 63 lines · 38 tokens per session scan A 2de831c41875

Subscribe to this mod's changes

kirby-security-and-auth is a skill published in the GitHub repository bnomei/kirby-mcp (74 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 787 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.

Related

kirby-security-and-auth compared with skills from other repositories

kirby-security-and-auth next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kirby-security-and-authbnomei/kirby-mcpSkill74yesterdayMITA38Claude Code, Codex
hipson-workflowHipson47/HipsonSkill46d agoApache-2.0A41Claude Code, Codex
yolo-detectorHipson47/HipsonSkill46d agoApache-2.0A32Claude Code, Codex
hipson-hyperframes-videoHipson47/HipsonSkill46d agoApache-2.0A39Claude Code, Codex
hipson-visual-experience-directorHipson47/HipsonSkill46d agoApache-2.0A38Claude Code, Codex
hipson-premium-ui-uxHipson47/HipsonSkill46d agoApache-2.0A45Claude Code, Codex
hipson-readme-craftHipson47/HipsonSkill46d agoApache-2.0A41Codex