agentleFS
encoredevencoredev/skills/CLAUDE.md

skills

CLAUDE.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:

  • In this repositoryOne other file it gives its agents.

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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
  1. Distinctive:

    All infrastructure (databases, topics, cron jobs, buckets, secrets) must be declared at package level:

    line 62
  2. Very specific:

    All skills are in plugins/encore-skills/skills/*/SKILL.md

    line 119

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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

SkillTrigger Keywords
encore-architecturearchitecture, service boundaries, monolith vs microservices, split or merge, API vs Pub/Sub, data ownership

TypeScript Skills

SkillTrigger Keywords
encore-getting-startedbrand new, first time, install CLI, encore app create, hello world
encore-loggingstructured logging, log.info, log.error, log fields, log levels, noisy logs
encore-apityped endpoint, route, REST, GET/POST, request/response, validation
encore-webhookwebhook, /webhooks/*, raw HTTP, api.raw, Stripe, GitHub, signature
encore-authauth, login, bearer token, JWT, Authorization header, 401, 403
encore-databasepostgres, table, sql, query, migration, drizzle, prisma, schema
encore-pubsubpub/sub, topic, subscription, broadcast, event, queue, fan out
encore-croncron, schedule, daily, hourly, periodic, batch job, every N
encore-bucketbucket, object storage, S3, GCS, file upload, image upload, blob
encore-cachecache, redis, key-value, TTL, rate limit, leaderboard, expire
encore-secretsecret, API key, credentials, signing key, encore secret set
encore-serviceadd service, create service, microservice, encore.service.ts, service directory, lay out, systems folder, ~encore/clients
encore-testingtest, vitest, unit test, integration, encore test, isolated database
encore-frontendfrontend, client, react, nextjs, cors, fetch, generate client
encore-code-reviewreview, audit, anti-pattern, best practices, before merge
encore-migratemigrate, convert, port, transition, express, fastify, hono

Go Skills

SkillTrigger Keywords
encore-go-getting-startedbrand new Go, first time, install CLI, encore app create, hello world
encore-go-logginggo, structured logging, rlog.Info, rlog.Error, log fields, noisy logs
encore-go-apigo, typed endpoint, //encore:api, route, REST, GET/POST, request/response
encore-go-webhookgo, webhook, /webhooks/*, //encore:api raw, Stripe, GitHub, signature
encore-go-authgo, auth, login, bearer token, JWT, Authorization header, 401, 403
encore-go-databasego, postgres, table, sql, query, migration, sqldb
encore-go-pubsubgo, pub/sub, topic, subscription, broadcast, event, queue, fan out
encore-go-crongo, cron, schedule, daily, hourly, periodic, batch job, every N
encore-go-bucketgo, bucket, object storage, S3, GCS, file upload, image upload, blob
encore-go-cachego, cache, redis, key-value, TTL, rate limit, leaderboard, expire
encore-go-secretgo, secret, API key, credentials, secrets struct, encore secret set
encore-go-serviceadd Go service, create Go service, microservice, service package, project layout, internal package, cross-service call
encore-go-testinggo, test, *_test.go, encore test, isolated database
encore-go-code-reviewgo, review, audit, anti-pattern, best practices, before merge
encore-frontendfrontend, 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

  1. Declaring infrastructure inside functions
  2. Using require() instead of import
  3. Direct imports between services instead of ~encore/clients
  4. String concatenation in SQL (use template literals)
  5. Returning error objects instead of throwing APIError
  6. Non-idempotent Pub/Sub subscription handlers

Skill Files Location

All skills are in plugins/encore-skills/skills/*/SKILL.md

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.