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.
npx skills add bnomei/kirby-mcp --skill kirby-security-and-authgit clone --depth 1 https://github.com/bnomei/kirby-mcpWrote 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.
[](https://agentmods.dev/skills/bnomei/kirby-mcp/kirby-security-and-auth)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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 handleKirby\Auth\Status/State::Pending; grant access only after successful challenge completion.login2fa()is legacy; password-onlylogin()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-loginkirby://kb/scenarios/43-user-registration-and-loginkirby://kb/scenarios/63-files-firewall-protected-downloadskirby://kb/scenarios/64-permission-tricks-role-basedkirby://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.
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.
- 1mo ago Changed · +10 lines ed531844918f
- 3mo ago First seen · 63 lines · 38 tokens per session scan A 2de831c41875
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.
kirby-security-and-auth compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kirby-security-and-authbnomei/kirby-mcp | Skill | 74 | yesterday | MIT | A | 38 | Claude Code, Codex |
| hipson-workflowHipson47/Hipson | Skill | 4 | 6d ago | Apache-2.0 | A | 41 | Claude Code, Codex |
| yolo-detectorHipson47/Hipson | Skill | 4 | 6d ago | Apache-2.0 | A | 32 | Claude Code, Codex |
| hipson-hyperframes-videoHipson47/Hipson | Skill | 4 | 6d ago | Apache-2.0 | A | 39 | Claude Code, Codex |
| hipson-visual-experience-directorHipson47/Hipson | Skill | 4 | 6d ago | Apache-2.0 | A | 38 | Claude Code, Codex |
| hipson-premium-ui-uxHipson47/Hipson | Skill | 4 | 6d ago | Apache-2.0 | A | 45 | Claude Code, Codex |
| hipson-readme-craftHipson47/Hipson | Skill | 4 | 6d ago | Apache-2.0 | A | 41 | Codex |