pocketbase — for Claude Code pocketbase, pocketbase-skill, community, for Claude Code, ide skills, deleteMissing=true, pb_migrations, migrate(upFunc, downFunc), migrate up, migrate collections

v1.0.0

À propos de ce Skill

Scenario recommande : Ideal for AI agents that need pocketbase schema and migration. Resume localise : # PocketBase Schema and Migration Create PocketBase schema changes that are accurate, reproducible, and safe to review. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

Fonctionnalités

PocketBase Schema and Migration
Create PocketBase schema changes that are accurate, reproducible, and safe to review.
Inspect the current PocketBase state before proposing code.
Translate the request into a declarative change spec.
Analyze data, rule, relation, and rollback impact.

# Sujets clés

Ariyn Ariyn
[1]
[0]
Mis à jour: 4/9/2026

Skill Overview

Start with fit, limitations, and setup before diving into the repository.

Scenario recommande : Ideal for AI agents that need pocketbase schema and migration. Resume localise : # PocketBase Schema and Migration Create PocketBase schema changes that are accurate, reproducible, and safe to review. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

Pourquoi utiliser cette compétence

Recommandation : pocketbase helps agents pocketbase schema and migration. PocketBase Schema and Migration Create PocketBase schema changes that are accurate, reproducible, and safe to review. This AI agent skill

Meilleur pour

Scenario recommande : Ideal for AI agents that need pocketbase schema and migration.

Cas d'utilisation exploitables for pocketbase

Cas d'usage : Applying PocketBase Schema and Migration
Cas d'usage : Applying Create PocketBase schema changes that are accurate, reproducible, and safe to review
Cas d'usage : Applying Inspect the current PocketBase state before proposing code

! Sécurité et Limitations

  • Limitation : Generate migration code only after the spec is clear.
  • Limitation : Do not treat auth, base, and view collections as interchangeable.
  • Limitation : Do not blame rule or access issues on the client until rules are checked.

About The Source

The section below comes from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.

Démo Labs

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ et étapes d’installation

These questions and steps mirror the structured data on this page for better search understanding.

? Questions fréquentes

Qu’est-ce que pocketbase ?

Scenario recommande : Ideal for AI agents that need pocketbase schema and migration. Resume localise : # PocketBase Schema and Migration Create PocketBase schema changes that are accurate, reproducible, and safe to review. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

Comment installer pocketbase ?

Exécutez la commande : npx killer-skills add Ariyn/pocketbase-skill/pocketbase. Elle fonctionne avec Cursor, Windsurf, VS Code, Claude Code et plus de 19 autres IDE.

Quels sont les cas d’usage de pocketbase ?

Les principaux cas d’usage incluent : Cas d'usage : Applying PocketBase Schema and Migration, Cas d'usage : Applying Create PocketBase schema changes that are accurate, reproducible, and safe to review, Cas d'usage : Applying Inspect the current PocketBase state before proposing code.

Quels IDE sont compatibles avec pocketbase ?

Cette skill est compatible avec Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Utilisez la CLI Killer-Skills pour une installation unifiée.

Y a-t-il des limites pour pocketbase ?

Limitation : Generate migration code only after the spec is clear.. Limitation : Do not treat auth, base, and view collections as interchangeable.. Limitation : Do not blame rule or access issues on the client until rules are checked..

Comment installer ce skill

  1. 1. Ouvrir le terminal

    Ouvrez le terminal ou la ligne de commande dans le dossier du projet.

  2. 2. Lancer la commande d’installation

    Exécutez : npx killer-skills add Ariyn/pocketbase-skill/pocketbase. La CLI détectera automatiquement votre IDE ou votre agent et configurera la skill.

  3. 3. Commencer à utiliser le skill

    Le skill est maintenant actif. Votre agent IA peut utiliser pocketbase immédiatement dans le projet.

! Source Notes

This page is still useful for installation and source reference. Before using it, compare the fit, limitations, and upstream repository notes above.

Upstream Repository Material

The section below comes from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.

Upstream Source

pocketbase

# PocketBase Schema and Migration Create PocketBase schema changes that are accurate, reproducible, and safe to review. This AI agent skill supports Claude

SKILL.md
Readonly
Upstream Repository Material
The section below comes from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.
Upstream Source

PocketBase Schema and Migration

Create PocketBase schema changes that are accurate, reproducible, and safe to review.

The Job

  1. Inspect the current PocketBase state before proposing code.
  2. Translate the request into a declarative change spec.
  3. Analyze data, rule, relation, and rollback impact.
  4. Split changes into the smallest practical migration units.
  5. Generate migration code only after the spec is clear.
  6. Verify the result against snapshots, history, and expected behavior.

The goal is not to produce plausible-looking JavaScript. The goal is to produce a verifiable PocketBase change.

Core Rules

  • Never guess collection names, field names, relation targets, or rule state.
  • Do not treat auth, base, and view collections as interchangeable.
  • Always distinguish single relation from multi relation.
  • Do not blame rule or access issues on the client until rules are checked.
  • Produce a change spec before producing a migration.
  • Keep one migration focused on one clear change.
  • Treat importCollections(..., true) and any deleteMissing=true behavior as destructive by default.
  • Always include pre-change verification and post-change verification.
  • Always state rollback expectations, even when rollback is partial or risky.
  • If the current state is unclear, stop and ask for the missing facts instead of fabricating code.

PocketBase Facts

  • PocketBase JavaScript migrations live in pb_migrations and use a single migrate(upFunc, downFunc) call.
  • Unapplied migrations run automatically on serve and can be applied manually with migrate up.
  • migrate down [number] reverts the most recent applied migrations.
  • migrate collections generates a snapshot migration for the current collection state.
  • Snapshot imports preserve missing collections and fields by default, but become destructive if deleteMissing=true or equivalent is enabled.
  • Manual migrate up or migrate down operations can require a serve restart to refresh cached collection state.
  • Migration history is stored in _migrations, so history and file state can drift and must be checked together.

Workflow

1. Inspect

Confirm as many of the following as possible before proposing a change:

  • PocketBase version
  • collection list and collection types
  • field list and field options
  • relation targets and cardinality
  • indexes and uniqueness requirements
  • list, view, create, update, and delete rules
  • auth-specific settings when relevant
  • existing migration files and _migrations history state

2. Normalize

Convert the request into a declarative change spec using the template in templates/change-spec.json.

Typical operations:

  • create_collection
  • update_collection_meta
  • add_field
  • update_field
  • add_relation
  • add_index
  • update_rules
  • import_snapshot
  • review_existing_migration

3. Analyze Impact

Evaluate:

  • data compatibility
  • relation integrity
  • index validity
  • rule behavior
  • auth behavior
  • rollback feasibility
  • destructive risk
  • migration history implications

4. Minimize

Prefer multiple small migrations over one large migration when the changes have different risk profiles or rollback semantics.

5. Propose

Before code, provide:

  • problem summary
  • confirmed facts
  • missing facts
  • change spec
  • impact summary
  • migration split proposal
  • verification plan
  • risk and rollback memo

6. Generate

Generate migration code only when the spec is sufficiently grounded in the current state or a verified fixture.

7. Verify

Every answer should include or reference checks for:

  • before-state capture
  • after-state snapshot or schema confirmation
  • relation and rule validation
  • rollback or downgrade behavior
  • _migrations history consistency

Output Format

Use this order in substantive responses:

  1. Problem summary
  2. Confirmed facts
  3. Missing facts
  4. Proposed change spec
  5. Expected impact
  6. Migration split
  7. Verification steps
  8. Risk and rollback notes

For migration review tasks, keep the same structure and make findings and risks explicit before suggesting code changes.

Migration Writing Rules

  • Write migrations from verified state, not intuition.
  • Keep one migration file scoped to one intent.
  • Prefer explicit up and down blocks.
  • If a change is destructive, label it clearly.
  • Do not default to destructive snapshot import behavior.
  • Treat the generated migration as incomplete until its resulting state is verified.

Validation Checklist

Before finalizing a change, confirm:

  • collection type is correct
  • field type and options are correct
  • relation target exists
  • relation cardinality is correct
  • required, hidden, presentable, and uniqueness expectations are explicit
  • index definitions reference real fields
  • rule changes are intentional
  • existing data can survive the change
  • rollback expectations are stated
  • migrate collections can be used to compare expected state when applicable
  • _migrations history is not being ignored

When Uncertain

Do not generate migration code.

Instead provide:

  • what is uncertain
  • what state must be checked
  • the safest minimal change that can still be proposed
  • the next verification step

Supporting Files

  • Required:
    • templates/change-spec.json
    • templates/migration.js.txt
    • checklists/schema-change.md
    • checklists/relation-change.md
    • checklists/destructive-change.md
    • checklists/migration-verify.md
    • decisions/001-migration-first.md
    • decisions/002-no-guessing.md
    • decisions/003-small-migrations.md
  • Optional reference:
    • patterns/collections.md
    • patterns/relations.md
    • patterns/constraints-and-rules.md
    • examples/01-add-base-collection.md
    • examples/02-add-relation-single.md
    • examples/07-dangerous-change.md
  • Maintenance only:
    • fixtures/
  1. Read SKILL.md.
  2. Fill templates/change-spec.json.
  3. Run the relevant checklist.
  4. Consult one optional pattern or example if needed.
  5. Use fixtures/ only when you need a verified schema baseline for maintenance or deeper validation.

Style

  • Be explicit.
  • Do not soften risk language.
  • Prefer current-state evidence over convenience.
  • Prefer minimal, reviewable changes over broad rewrites.

Compétences associées

Looking for an alternative to pocketbase or another community skill for your workflow? Explore these related open-source skills.

Voir tout

openclaw-release-maintainer

Logo of openclaw
openclaw

Resume localise : 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

widget-generator

Logo of f
f

Resume localise : Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat . It covers ai, artificial-intelligence, awesome-list workflows. This AI agent skill supports Claude Code, Cursor, and

flags

Logo of vercel
vercel

Resume localise : The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

138.4k
0
Navigateur

pr-review

Logo of pytorch
pytorch

Resume localise : Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review . It covers autograd, deep-learning, gpu workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

98.6k
0
Développeur