pocketbase

Develop PocketBase applications with Goja-compatible JavaScript hooks and local migration testing.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/8bit-interactive/pocketbase-pockethost-skills --skill pocketbase-8bit-interactive
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pocketbase
Source: https://github.com/8bit-interactive/pocketbase-pockethost-skills/tree/main/pocketbase
Command: npx skills add https://github.com/8bit-interactive/pocketbase-pockethost-skills --skill pocketbase-8bit-interactive

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides comprehensive guidelines and tools for streamlined development and local testing of PocketBase projects, ensuring best practices are followed and potential issues are caught early.

Core Features & Use Cases

  • JavaScript Best Practices: Guidelines for writing Goja-compatible JavaScript hooks and migrations.
  • Local Testing Tools: Local migration validation with the official PocketBase binary.
  • SPA Routing: Recommendations for building Single Page Applications (SPA) with PocketBase.
  • Use Case: When developing a new PocketBase application, use this Skill to set up a project with best practices and ensure your migrations and hooks work as expected locally before deployment.

Quick Start

Run 'make install' to set up your local PocketBase environment and follow the guidelines in the Skill's documentation for building and testing your PocketBase project.

Frequently Asked Questions about pocketbase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a PocketBase project with JavaScript hooks and migrations?

To set up a PocketBase project with JavaScript hooks and migrations, you can use this Skill to generate the necessary project scaffolding and guidelines for writing Goja-compatible JavaScript code. It provides a structured setup and local testing environment to validate your application logic before deployment.

What is the best way to test PocketBase migrations locally?

The best way to test PocketBase migrations locally is to validate them using the official PocketBase binary. This Skill provides local testing tools that automate migration validation against the official binary, ensuring your database schema changes work as expected before they reach production.

Does PocketBase support SPA routing for Single Page Applications?

Yes, PocketBase supports SPA routing for Single Page Applications. This Skill provides specific recommendations and routing guidelines for building SPAs with PocketBase, ensuring client-side navigation integrates smoothly with your backend API constraints and project setup.

Why do my PocketBase JavaScript hooks fail to run?

PocketBase JavaScript hooks often fail to run if they are not Goja-compatible, as PocketBase uses the Goja JS runtime. This Skill outlines specific best practices for writing Goja-compatible JavaScript hooks and migrations to prevent runtime errors and ensure proper execution.

Can I use modern JavaScript features in PocketBase hooks?

You can use JavaScript in PocketBase hooks, but you must ensure compatibility with the Goja runtime environment. This Skill provides guidelines on writing Goja-compatible JavaScript, helping you understand the specific API constraints and avoid features unsupported by the local testing environment.

What do I need to start developing a PocketBase application?

To start developing a PocketBase application, you need a local testing environment and an understanding of PocketBase API constraints. This Skill requires you to run 'make install' to set up your local environment, providing the foundational project setup and validation tools needed for development.