Individual skill
pocketbase-best-practices
PocketBase development best practices covering collection design, API rules, authentication, SDK usage, query optimization, realtime subscriptions, file handling, deployment, and server-side extending (Go + JSVM). Current as of PocketBase v0.40 and JS SDK v0.28. Use when building PocketBase backends, designing schemas, implementing access control, setting up auth flows, or optimizing performance.
skills/pocketbase-best-practices/SKILL.md
Source commit 6565fa03a8356bfc3127b1e7d086787a19e71813
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- Yes
- Skill scan complete
- Yes
- Observed behavior
- Network or broad shell
- Last checked
- Nov 11, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 14
- Repository last updated
- Aug 23, 2026
- License
- MIT
Observed agent integration: codex
- agent-skills Repository topic
- ai-agents Repository topic
- best-practices Repository topic
- claude-code Repository topic
- pocketbase Repository topic
- design Derived category
- devops Derived category
- security Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
AGENTS.mddoc · 6,547 bytesSKILL.mdcore · 10,967 bytesmetadata.jsonasset · 1,539 bytesreferences/api-rules-security.mddoc · 17,320 bytesreferences/authentication.mddoc · 21,850 bytesreferences/collection-design.mddoc · 15,111 bytesreferences/file-handling.mddoc · 15,197 bytesreferences/production-deployment.mddoc · 31,621 bytesreferences/query-performance.mddoc · 28,514 bytesreferences/realtime.mddoc · 19,876 bytesreferences/sdk-usage.mddoc · 29,182 bytesreferences/server-side-extending.mddoc · 77,020 bytesrules/_sections.mddoc · 1,894 bytesrules/_template.mddoc · 855 bytesrules/auth-impersonation.mddoc · 3,779 bytesrules/auth-mfa.mddoc · 3,635 bytesrules/auth-oauth2.mddoc · 4,999 bytesrules/auth-otp.mddoc · 3,601 bytesrules/auth-password.mddoc · 2,841 bytesrules/auth-token-management.mddoc · 3,558 bytesrules/coll-auth-vs-base.mddoc · 2,153 bytesrules/coll-field-types.mddoc · 2,703 bytesrules/coll-geopoint.mddoc · 3,380 bytesrules/coll-indexes.mddoc · 2,351 bytesrules/coll-relations.mddoc · 2,950 bytesrules/coll-view-collections.mddoc · 2,115 bytesrules/deploy-backup.mddoc · 4,276 bytesrules/deploy-configuration.mddoc · 4,917 bytesrules/deploy-rate-limiting.mddoc · 5,160 bytesrules/deploy-reverse-proxy.mddoc · 5,740 bytesrules/deploy-scaling.mddoc · 3,845 bytesrules/deploy-sqlite-considerations.mddoc · 6,464 bytesrules/deploy-superuser-ips.mddoc · 1,869 bytesrules/ext-compose-request-flow.mddoc · 9,919 bytesrules/ext-cron-jobs.mddoc · 4,464 bytesrules/ext-filesystem.mddoc · 4,327 bytesrules/ext-filter-binding-server.mddoc · 3,219 bytesrules/ext-go-custom-sqlite.mddoc · 4,601 bytesrules/ext-go-migrations.mddoc · 4,326 bytesrules/ext-go-setup.mddoc · 3,659 bytesrules/ext-hooks-chain.mddoc · 3,441 bytesrules/ext-hooks-record-vs-request.mddoc · 3,088 bytesrules/ext-js-migrations.mddoc · 4,803 bytesrules/ext-js-setup.mddoc · 2,581 bytesrules/ext-jsvm-modules.mddoc · 4,057 bytesrules/ext-jsvm-scope.mddoc · 2,810 bytesrules/ext-mailer.mddoc · 5,226 bytesrules/ext-routing-custom.mddoc · 3,912 bytesrules/ext-settings.mddoc · 4,398 bytesrules/ext-testing.mddoc · 7,251 bytesrules/ext-transactions.mddoc · 3,287 bytesrules/file-serving.mddoc · 5,886 bytesrules/file-upload.mddoc · 4,313 bytesrules/file-validation.mddoc · 5,149 bytesrules/query-back-relations.mddoc · 4,761 bytesrules/query-batch-operations.mddoc · 5,030 bytesrules/query-expand.mddoc · 3,977 bytesrules/query-field-selection.mddoc · 3,585 bytesrules/query-first-item.mddoc · 4,287 bytesrules/query-n-plus-one.mddoc · 4,057 bytesrules/query-pagination.mddoc · 3,419 bytesrules/realtime-auth.mddoc · 4,679 bytesrules/realtime-events.mddoc · 4,683 bytesrules/realtime-reconnection.mddoc · 5,446 bytesrules/realtime-subscribe.mddoc · 5,374 bytesrules/rules-basics.mddoc · 2,708 bytesrules/rules-cross-collection.mddoc · 2,682 bytesrules/rules-filter-syntax.mddoc · 3,264 bytesrules/rules-locked-vs-open.mddoc · 3,160 bytesrules/rules-request-context.mddoc · 3,187 bytesrules/rules-strftime.mddoc · 2,837 bytesrules/sdk-auth-store.mddoc · 3,851 bytesrules/sdk-auto-cancellation.mddoc · 4,361 bytesrules/sdk-error-handling.mddoc · 4,721 bytesrules/sdk-field-modifiers.mddoc · 3,836 bytesrules/sdk-filter-binding.mddoc · 4,551 bytesrules/sdk-initialization.mddoc · 4,111 bytesrules/sdk-send-hooks.mddoc · 4,372 bytes
Read excerpt
# PocketBase Best Practices
PocketBase is a single-binary backend (SQLite + REST + realtime + auth) that is easy to start with and easy to misuse at scale. This skill gives AI agents the guardrails: **64 rules across 9 categories**, each with an incorrect vs. correct code example, covering the mistakes agents actually make — insecure API rules, unindexed queries, broken auth flows, N+1 expands, leaked server-side handles.
**Updated for PocketBase v0.40 and JS SDK v0.28 (August 2026).** Works with v0.36+.
## How rules are prioritized
Every rule carries an impact level: **Critical** = security holes or broken data models, **High** = performance and correctness problems, **Medium/Low** = operational polish. When rules conflict, higher impact wins.
## What's covered
| Category | Impact | What it protects you from |
|----------|--------|---------------------------|