Pocketbase Best Practices
Ensures PocketBase databases adhere to greendesertsnow's recommended security, performance, and scalability best practices.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add pocketbase-best-practices npx -- -y @trustedskills/pocketbase-best-practices
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"pocketbase-best-practices": {
"command": "npx",
"args": [
"-y",
"@trustedskills/pocketbase-best-practices"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides a curated set of best practices for configuring and securing PocketBase instances, ensuring reliable backend performance. It guides users through optimizing database schemas, managing authentication flows, and hardening API endpoints against common vulnerabilities.
When to use it
- You are setting up a new PocketBase instance and need a secure baseline configuration immediately.
- Your application is experiencing latency issues due to inefficient database queries or unoptimized collections.
- You require guidance on implementing role-based access control (RBAC) for multi-tenant SaaS applications.
- You need to audit your current setup against industry standards for data privacy and API security.
Key capabilities
- Database schema optimization strategies for high-throughput workloads.
- Authentication and authorization configuration patterns.
- API security hardening techniques including rate limiting and CORS management.
- Collection field type selection guidelines based on data integrity needs.
Example prompts
- "Generate a secure PocketBase initialization script with default collections configured for user authentication."
- "List the top five security misconfigurations to avoid when deploying PocketBase in production."
- "Explain how to structure collection rules to enforce strict read/write permissions between different user roles."
Tips & gotchas
Ensure you have a basic understanding of Go and RESTful APIs, as PocketBase is built on these technologies. While this skill covers best practices, always test your configurations in a staging environment before applying them to production data to prevent accidental lockouts or data loss.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.