astro-loader-pocketbase AGENTS.md

AGENTS.md instructions for pawcoding/astro-loader-pocketbase, covering agents.md, project, environment, essential commands and pre-commit order (husky enforces this).

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/pawcoding/astro-loader-pocketbase/agents-md
Clone the repo
git clone --depth 1 https://github.com/pawcoding/astro-loader-pocketbase

Made for: Codex, OpenCode.

Per session 1,105 This file is loaded in full into every session.
When invoked 1,105 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01105 $0.01105
Opus 5 $0.00553 $0.00553
Sonnet 5 $0.00221 $0.00221
Haiku 4.5 $0.00111 $0.00111

Measured yesterday against content hash 2521c63bcd0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

astro-loader-pocketbase AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Compact ramp-up guide for AI agents. Each item exists because an agent would likely miss it.

Project

An Astro content loader package that integrates PocketBase as a data source, using Astro's Content Loader API. Key capabilities: loading PocketBase collections, real-time updates (via astro-integration-pocketbase), incremental builds, schema generation/validation, and file handling.

Relevant upstream documentation:

Environment

  • Node >= 22.12.0 required; .nvmrc specifies node version. Use nvm use before anything.
  • Package manager: npm (version enforced via packageManager field). Do not use pnpm or yarn.

Essential commands

npm run format       # oxfmt — format all files
npm run lint:fix     # oxlint --fix — lint + auto-fix
npm run typecheck    # tsc --noEmit on src/ and test/
npm test             # vitest run (unit + e2e, needs PocketBase for e2e)
npm run test:unit    # unit tests only — no PocketBase needed
npm run test:e2e     # e2e tests only — PocketBase must be running first
npm run build        # tsdown → dist/

Run a single test file:

npx vitest run test/path/to/file.spec.ts

Pre-commit order (husky enforces this)

All three must pass before committing, in this order:

  1. npm run format
  2. npm run lint:fix
  3. npm run typecheck

lint-staged runs oxfmt + oxlint on staged files automatically. The pre-commit hook also runs npm run typecheck if any .ts files are staged.

E2E test setup

E2E tests require a PocketBase instance at http://localhost:8090.

# One-time: download PocketBase binary to .pocketbase/ (gitignored)
npm run test:e2e:setup

# Start PocketBase (blocks terminal — use a separate terminal)
./.pocketbase/pocketbase serve

# Then run e2e tests
npm run test:e2e

Hardcoded test credentials: [email protected] / test1234 (created by the setup script).

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 114 lines · 1,105 tokens per session scan A 2521c63bcd0d

Subscribe to this mod's changes

astro-loader-pocketbase AGENTS.md is an instructions file published in the GitHub repository pawcoding/astro-loader-pocketbase (63 stars, last pushed 10d ago), licensed MIT. It adds 1,105 tokens to every session, about $0.0055 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other instructions, from other repositories