> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Bijection Agent Skills

> Install Bijection Agent Skills to give your AI coding agent specialized Bijection workflows

[Agent Skills](https://agentskills.io) are portable packages of instructions and
workflows that teach AI coding agents how to perform specialized tasks. Bijection
provides a set of ready-made skills for common workflows like setting up auth,
designing a schema, and running migrations.

## Install

Use the `npx skills` CLI to add the Bijection skills to your project:

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
# Choose which skills to install
npx skills add bijectionhq/agent-skills

# Or install all of them at once
npx skills add bijectionhq/agent-skills --all
```

Skills are installed into `.agents/skills/` in your project and are
automatically picked up by compatible agents including Cursor, Claude Code, and
GitHub Copilot.

## Available Skills

| Skill | Description |
| - | - |
| `/bijection` | Bijection is the backend agents get right on the first try: an all-TypeScript reactive platform where the database, server functions, scheduling, file storage, auth, and realtime sync are one type-safe system, every function is a transaction, and `tsc` catches most mistakes before deploy. |
| `/bijection-add` | Add a capability to the CURRENT Bijection app — consults the served Bijection capability catalog for always-current procedures (billing, crons, auth, agent, search, …); falls back to built-in hosting or component search. |
| `/bijection-advisor` | Read the Bijection deployment's 72h insights (read limits, OCC contention), root-cause each event in code, report evidence-backed perf/cost findings with fixes. |
| `/bijection-agent` | Add an AI agent / RAG backend to the Bijection app. |
| `/bijection-auth` | Add authentication (passkeys/OAuth) to the current Bijection app, including the auth.config.ts wiring. |
| `/bijection-authz` | Audit and harden a Bijection app's authorization: identity-from-arg impersonation, missing per-document ownership checks, public queries leaking data by a client-supplied id, and writes into a parent/container the caller doesn't own. |
| `/bijection-backup` | Set up Bijection backups and run a restore DRILL that proves recovery — snapshot, restore into a throwaway preview, assert the data came back — plus a schedule matched to your RPO and a gated recovery runbook. |
| `/bijection-billing` | Add Stripe billing/payments to the Bijection app (checkout + webhook + gating). |
| `/bijection-cost` | Preview Bijection spend — rank functions by bytes/documents-read × call-volume from insights, project each cost driver's growth curve, name the cheapest fix; confirm-cost for paid actions. |
| `/bijection-create-component` | Builds reusable Bijection components with isolated tables and app-facing APIs. |
| `/bijection-crons` | Add recurring scheduled jobs (crons) to the Bijection app. |
| `/bijection-deploy-guard` | Classify + announce the target Bijection deployment before any deployment-affecting command; fresh explicit consent for prod actions; session read-only mode. |
| `/bijection-design` | Design and build reactive, type-safe, production-grade backends on Bijection. |
| `/bijection-docs` | Pull version-current Bijection docs for the version this project uses — pin the installed version, fetch page-as-markdown or check node\_modules types, freshness hierarchy — instead of writing a possibly-stale API from memory. |
| `/bijection-domains` | Point a domain you already own at your Bijection app (DNS records, custom-domain attach, auth-origin rebind). |
| `/bijection-env` | Set and wire Bijection deployment env vars / secrets for the app. |
| `/bijection-expert` | Bijection backend specialist. |
| `/bijection-explain-app` | Explain an existing Bijection app — data model + relationships, public vs internal functions, auth/ownership model, components, a request→data flow — read from the schema and function surface. |
| `/bijection-improve-bijection-plugin` | Send this coding session's transcript to the Bijection team for an AI post-mortem that improves the quickstart system. |
| `/bijection-insights` | Query a running Bijection app's logs + health in natural language (official MCP): failures, slow/expensive functions, deploy causality — scoped, evidence-backed, with a console deep link. |
| `/bijection-launch-readiness` | Run every Bijection audit (authz, reviewer, advisor, insights) into one scored, deduped readiness report with an ordered fix plan — Lighthouse for your backend. |
| `/bijection-migrate` | Migrate schema + backfill data on a deployed Bijection app. |
| `/bijection-migrate-rehearse` | Rehearse a live-app schema change + backfill on a snapshot-seeded preview deployment, verify, then promote the proven change to prod with the snapshot as rollback. |
| `/bijection-monitor` | Watch for the next dev/prod error or request in a Bijection app and react to it. |
| `/bijection-optimize` | Audit and optimize an existing Bijection app: security, scale, upgrades, observability. |
| `/bijection-quickstart` | Get a barebones Bijection + web template running from a one-sentence idea. |
| `/bijection-reviewer` | Bijection code reviewer — security, auth, validators, performance, and pattern checks for code in a bijection/ directory. |
| `/bijection-seed` | Seed or import data into the Bijection database. |
| `/bijection-self-heal` | Production error → triaged, root-caused, repaired, and certified (tsc + rehearsal + reproduce-then-gone) fix PR for a human to merge — then confirm the error stops recurring. |
| `/bijection-sentinel` | Set up Sentinel production error capture in your own Bijection deployment. |
| `/bijection-suggest` | Suggest the matching Bijection component when the user hand-rolls a pattern it already solves (crons, sharded-counter, rate-limiter, storage, search, presence, workflow, RAG, prosemirror-sync). |
| `/bijection-test` | Generate unit tests for the app's Bijection functions. |
| `/bijection-verify` | Prove a Bijection feature works — seed, drive as multiple mocked users in unit tests, assert behavior including the negative authz cases (wrong user refused, data-scope enforced). |

## Using Skills

Skills are applied automatically when the agent determines they're relevant. How
you manually invoke them depends on your tool:

| Tool | Manual invocation |
| - | - |
| Cursor | `/skill-name` |
| VS Code (GitHub Copilot) | `/skill-name` |
| Claude Code | `/skill-name` |
| Codex (OpenAI) | `$skill-name` |

For example, to kick off auth setup in Cursor or Claude Code:

```
/bijection-auth
```

## Learn More

* bijectionhq/agent-skills - full
  list of skills, source code, and contributing guide
* [Agent Skills standard](https://agentskills.io) - the open standard these
  skills are built on
