skills
AGENTS.md29 starsChanged 3 months agoApache-2.0View on GitHub
This repository contains skills for building backend applications with Encore.ts. Encore.ts is a TypeScript backend framework where your code defines infrastructure. Write your application → Encore provisions databases, Pub/Sub, cron jobs, and more in your AWS/GCP account automatically. All infrastructure (databases, topics, cron jobs, buckets, secrets) must be declared at package level:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 1 is common, 0 are distinctive, and 1 is very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 62
All infrastructure (databases, topics, cron jobs, buckets, secrets) must be declared at package level:
- Very specific: line 119
All skills are in plugins/encore-skills/skills/*/SKILL.md
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Encore Skills - Agent Instructions
This repository contains skills for building backend applications with Encore.ts.
What is Encore.ts?
Encore.ts is a TypeScript backend framework where your code defines infrastructure. Write your application → Encore provisions databases, Pub/Sub, cron jobs, and more in your AWS/GCP account automatically.
When to Use These Skills
Shared Skills
| Skill | Trigger Keywords |
encore-architecture | architecture, service boundaries, monolith vs microservices, split or merge, API vs Pub/Sub, data ownership |
TypeScript Skills
| Skill | Trigger Keywords |
encore-getting-started | brand new, first time, install CLI, encore app create, hello world |
encore-logging | structured logging, log.info, log.error, log fields, log levels, noisy logs |
encore-api | typed endpoint, route, REST, GET/POST, request/response, validation |
encore-webhook | webhook, /webhooks/*, raw HTTP, api.raw, Stripe, GitHub, signature |
encore-auth | auth, login, bearer token, JWT, Authorization header, 401, 403 |
encore-database | postgres, table, sql, query, migration, drizzle, prisma, schema |
encore-pubsub | pub/sub, topic, subscription, broadcast, event, queue, fan out |
encore-cron | cron, schedule, daily, hourly, periodic, batch job, every N |
encore-bucket | bucket, object storage, S3, GCS, file upload, image upload, blob |
encore-cache | cache, redis, key-value, TTL, rate limit, leaderboard, expire |
encore-secret | secret, API key, credentials, signing key, encore secret set |
encore-service | add service, create service, microservice, encore.service.ts, service directory, lay out, systems folder, ~encore/clients |
encore-testing | test, vitest, unit test, integration, encore test, isolated database |
encore-frontend | frontend, client, react, nextjs, cors, fetch, generate client |
encore-code-review | review, audit, anti-pattern, best practices, before merge |
encore-migrate | migrate, convert, port, transition, express, fastify, hono |
Go Skills
| Skill | Trigger Keywords |
encore-go-getting-started | brand new Go, first time, install CLI, encore app create, hello world |
encore-go-logging | go, structured logging, rlog.Info, rlog.Error, log fields, noisy logs |
encore-go-api | go, typed endpoint, //encore:api, route, REST, GET/POST, request/response |
encore-go-webhook | go, webhook, /webhooks/*, //encore:api raw, Stripe, GitHub, signature |
encore-go-auth | go, auth, login, bearer token, JWT, Authorization header, 401, 403 |
encore-go-database | go, postgres, table, sql, query, migration, sqldb |
encore-go-pubsub | go, pub/sub, topic, subscription, broadcast, event, queue, fan out |
encore-go-cron | go, cron, schedule, daily, hourly, periodic, batch job, every N |
encore-go-bucket | go, bucket, object storage, S3, GCS, file upload, image upload, blob |
encore-go-cache | go, cache, redis, key-value, TTL, rate limit, leaderboard, expire |
encore-go-secret | go, secret, API key, credentials, secrets struct, encore secret set |
encore-go-service | add Go service, create Go service, microservice, service package, project layout, internal package, cross-service call |
encore-go-testing | go, test, *_test.go, encore test, isolated database |
encore-go-code-review | go, review, audit, anti-pattern, best practices, before merge |
encore-frontend | frontend, client, react, nextjs, cors, fetch, generate client |
Key Patterns to Remember
Infrastructure is Declarative
All infrastructure (databases, topics, cron jobs, buckets, secrets) must be declared at package level:
// CORRECT: Package level
const db = new SQLDatabase("mydb", { migrations: "./migrations" });
// WRONG: Inside functions
function setup() {
const db = new SQLDatabase("mydb", { migrations: "./migrations" });
}APIs are Functions, Not Routes
// CORRECT: Encore
export const getUser = api(
{ method: "GET", path: "/users/:id", expose: true },
async ({ id }) => findUser(id)
);
// WRONG: Express-style routes
app.get('/users/:id', handler);Cross-Service Calls Use ~encore/clients
// CORRECT
import { user } from "~encore/clients";
await user.getUser({ id });
// WRONG: Direct imports across services
import { getUser } from "../user/api";Use ES6 Imports
// CORRECT
import { api } from "encore.dev/api";
// WRONG
const { api } = require("encore.dev/api");Common Mistakes to Avoid
- Declaring infrastructure inside functions
- Using
require()instead ofimport - Direct imports between services instead of
~encore/clients - String concatenation in SQL (use template literals)
- Returning error objects instead of throwing
APIError - Non-idempotent Pub/Sub subscription handlers
Skill Files Location
All skills are in plugins/encore-skills/skills/*/SKILL.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

