Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/spinspire/pocketbase-sveltekit-starternpx agentmods add skills/spinspire/pocketbase-sveltekit-starter/pb-extendWrote 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/spinspire/pocketbase-sveltekit-starter/pb-extend)<a href="https://agentmods.dev/skills/spinspire/pocketbase-sveltekit-starter/pb-extend"><img src="https://agentmods.dev/badge/skills/spinspire/pocketbase-sveltekit-starter/pb-extend/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/spinspire/pocketbase-sveltekit-starter/pb-extend"><img src="https://agentmods.dev/badge/skills/spinspire/pocketbase-sveltekit-starter/pb-extend.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.00711 |
| Opus 5 | $0.00019 | $0.00356 |
| Sonnet 5 | $0.00008 | $0.00142 |
| Haiku 4.5 | $0.00004 | $0.00071 |
Grade A, and why
pb-extend 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 12d 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 — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PocketBase Extending
Reference: https://pocketbase.io/docs/js-overview/ | https://pocketbase.io/docs/go-overview/
Extend PocketBase with custom hooks and routes in JS or Go.
JS Hooks (pb_hooks/)
Drop *.pb.js files in pb_hooks/:
// pb_hooks/myhook.pb.js
/// <reference path="../pb_data/types.d.ts" />
router.api.post('/custom-route', async (e) => {
const body = e.request.body
// ... process
return e.json({ result: 'ok' })
})
// On record create
onRecordCreateRequest((e) => {
if (!e.record.get('email').endsWith('@company.com')) {
return e.badRequest('Use company email')
}
return e.next()
})
Rules:
- Always call
e.next()/e.Next()in hooks - Variables outside handlers are undefined at runtime
- Use
require()for shared config (CJS only, no ESM)
Go Hooks (migrations/)
Versioned migrations in migrations/:
package migrations
import (
"github.com/pocketbase/pocketbase/migrations"
"github.com/pocketbase/pocketbase/tools/types"
)
func init() {
migrations.Register(func(app *pocketbase.App) error {
// Custom logic
return nil
}, func(app *pocketbase.App) error {
// Rollback logic
return nil
})
}
Custom Routes
// Add to pb_hooks
router.api.post('/api/myapp/send-email', async (e) => {
const data = await e.request.json()
await sendEmail(data.to, data.subject)
return e.json({ sent: true })
}, middleware.RequireAuth())
Key Hook Events
| Event | Purpose |
|---|---|
onRecordCreateRequest |
Before record creation |
onRecordUpdateRequest |
Before record update |
onRecordDeleteRequest |
Before record deletion |
OnRecordEnrich |
Shape response (incl. realtime) |
OnRecordRequest |
HTTP-only response shaping |
OnBeforeServe |
Modify router before serving |
Migrations
System fields: Collections created via migration files must include created and updated system fields.
Auto-migrate: Collections changed via Admin UI auto-generate migrations in pb_migrations/
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.
- 12d ago First seen · 118 lines · 38 tokens per session scan A cd501f11d81b
pb-extend is a skill published in the GitHub repository spinspire/pocketbase-sveltekit-starter (507 stars, last pushed 20d ago), licensed MIT. It adds 38 tokens to every session and 711 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
verify
Build/launch/drive recipe for verifying apps/docs changes at runtime (demos, docs pages, llms.txt).
mobile-web-app
Add router-agnostic, native app-like page transitions to mobile web apps with SSGOI. Explore live drill, sheet, slide, and zoom demos at https://ssgoi.dev. Use when building or improving a mobile web app's routed page structure, layouts, or transitions, or when a project uses SSGOI or an @ssgoi package.
backend-conventions
Backend convention reference (.NET 10 / C# 13). Auto-injected into backend-aware agents - not user-invocable.
add-background-job
Add a Hangfire background job (recurring or one-time).
manage-file-storage
Swap or remove the file storage provider (S3/MinIO).
new-entity
Create a backend entity with EF Core configuration and migration.