SKILLEMALL.ai

BC PocketBase Hooks

Server-side JavaScript hooks for PocketBase (pb_hooks). Use when writing custom routes, event hooks, cron jobs, sending emails, making HTTP requests, querying the database, or extending PocketBase with server-side logic. Covers the goja ES5 runtime, routing, middleware, all event hooks, DB queries, record operations, and global APIs.

davila7/claude-code-templates Agent Skills author: davila7 MIT 1 file body ≈ 4 021 tokens Open the sourcegithub.com↗ analyzed 6 d ago

Server-side JavaScript hooks for PocketBase (pbhooks).

As a process C 57/100 · Has gaps — weak spots: when it triggers, inputs and preconditions, consistency

IntegrationSoftware developmenttype and topics are labelled automatically from the skill text
JSON
Technical rating
B
92/100
safety, quality, tests
Safety 60%
99
Quality 40%
82
Run on models
none yet
Process rating
C
57/100
Has gaps
Inputs and preconditions w 11
0
Progress reporting w 2
0
When it triggers w 12
20
the three weakest of ten parameters · all ten

How to improve

    For the model run — optional
    • Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
    • A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.

    Guard findings · 1

    ✓ No critical or high findings

    Medium and low: 1
    • low Secrets in code secret-high-entropy-token SKILL.md:171
      High-entropy token-like string (may be an id, hash or a credential)
      onRe…est(function(e) {

    Files scanned: 1. Evidence is masked. Grey chips explain why severity was lowered.

    Against the Agent Skills spec

    • warning name-format name should be kebab-case (lowercase letters, digits, hyphens)

    Process rating: all ten parameters 57/100

    • 0Inputs and preconditions. Does not say what the process needs to start
    • 0Progress reporting. Says nothing while it works
    • 20When it triggers. No condition that starts the skill
    • 30Running it twice. 12 mutating operations with no state check
    • 40Consistency. Frontmatter name (PocketBase Hooks) differs from the folder (pb-hooks)
    • 50Failures and branches. 0 branches, has a failure section
    • 60Result and completion. Output format stated, no completion criterion
    • 70Execution cost. Instruction body is 4021 tokens
    • 100Tools and files. No external tools needed
    • 100Steps. 13 steps
    • low 12 top-level sections: this looks like several domains in one skill

    Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.

    Quality signals

    • +5Description has no quoted example phrases that should trigger the skill
    • +4Description does not say when NOT to use the skill (false activations)
    • +1No license
    • +2Single-language instructions
    • +3Description length 335: enough signal without eating the budget
    • +4Structure: 46 headings
    • +3Step-by-step instructions: 13 items
    • +3Output format is stated explicitly
    • +4Has examples (33 code blocks)

    Quality base 70; lint remarks subtract, signals add up to 100. Result: 82.