Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Pocketbase Pro

ASecurity

PocketBase backend mastery — collections, APIs, and self-hosted operations — use when building on PocketBase.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsjavascriptgojavasqlnodeexpresstestingapidatabasebackend

Works with

cliapi

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill pocketbase-pro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pocketbase Pro?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Pocketbase Pro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-pocketbase-pro/badge)](https://www.skillsdirectory.com/skills/aicodedecode-pocketbase-pro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: pocketbase-pro
description: PocketBase backend mastery — collections, APIs, and self-hosted operations — use when building on PocketBase.
category: pocketbase
---

## Overview

PocketBase is an open-source backend in a single Go binary: embedded database
(SQLite), auth, file storage, realtime, and an admin dashboard — no separate
services to operate. This skill covers data modeling with collections, using
the generated APIs, and running PocketBase reliably in production.

## When to use

- Modeling data with PocketBase collections (base, auth, view)
- Choosing between the REST API and the realtime/client SDKs
- Designing API rules (PocketBase's per-collection access control)
- Backing up, scaling, and updating a PocketBase instance
- Extending with Go/JavaScript hooks and custom routes

## Core concepts

**Collections are the schema.** Base collections hold regular records; auth
collections add users with email/password/OAuth2; view collections expose
SQL queries as read-only collections. Fields are typed (text, number, bool,
date, file, relation, JSON…), and relations are first-class — design them
like a normalized relational schema, because that's what it is.

**API rules are the security model.** Each collection defines list/view/
create/update/delete rules as filter expressions evaluated against the
request (`@request.auth.id != ""`, `@request.data.owner = @request.auth.id`).
No rule = denied. Rules run per record, so design them carefully — they're
your authorization layer, equivalent in spirit to row-level security.

**One binary, embedded SQLite.** PocketBase's simplicity is the feature: a
single executable with data in one directory. This makes deploys trivial but
shapes scaling — SQLite handles impressive throughput on one node (WAL mode,
proper indexes), and PocketBase is fundamentally single-node; scale vertically
and know the ceiling rather than assuming horizontal scale-out.

**SDKs over raw REST.** The official JS/Dart SDKs handle auth state, token
refresh, and realtime subscriptions; use them instead of hand-rolling HTTP.
The admin dashboard (`/_/`) is genuinely useful for inspecting data and
testing rules during development.

**Migrations are code.** Collection changes made in the dashboard generate
migration files — commit them and apply via `migrate` commands so environments
stay in sync. Dashboard-clicking without migrations is how staging and prod
drift apart.

## Practical workflow

1. **Model collections** with proper field types and relations; add indexes
   for your query patterns (PocketBase exposes index management per
   collection).
2. **Write API rules first**, before client code: define who can do what per
   collection and operation; test with authenticated and anonymous requests
   (the dashboard's API preview helps).
3. **Build the client** with the SDK: auth flows, CRUD with `expand` for
   relations, pagination (`page`/`perPage`), and filters using PocketBase's
   filter syntax.
4. **Handle files** via file fields with thumbs/protected-file rules; serve
   private files through signed/authorized access, not public URLs, when
   they need protection.
5. **Deploy as one unit:** the binary + data directory on a VM/container with
   persistent storage; reverse-proxy with TLS; schedule data-directory
   backups (SQLite file copies are consistent when done correctly — or use
   the backup API).
6. **Update carefully:** test new versions in staging (migrations run on
   boot), keep backups before upgrading, and pin versions in production.

## Common pitfalls

- **Permissive API rules in production** (`""` = public on list/view) —
  audit every collection's rules; the dashboard flags public access, heed it.
- **No migration discipline** — dashboard changes never exported; environments
  diverge and deploys become manual archaeology.
- **Treating it as horizontally scalable** — it's single-node by design;
  plan vertical scaling and know your throughput ceiling via load testing.
- **Backing up the data dir while writes happen** without SQLite-safe
  procedure — use the built-in backup or WAL-aware copy methods.
- **Storing secrets in collection records** — API rules protect records, but
  secrets belong in environment config / a secrets manager, not the database.
- **N+1 via expand abuse** — expanding deep relation trees on list endpoints
  generates heavy queries; paginate and expand narrowly.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →