[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EEXSAENS0KVXRJGHM5XM5P":3,"skill-same:01M6EEXSAENS0KVXRJGHM5XM5P":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EEXSAENS0KVXRJGHM5XM5P","encore",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fencore\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Encore\n\n## Overview\n\nEncore is a backend framework where infrastructure is part of the code — define an API endpoint and Encore provisions the cloud resources automatically. Databases, pub\u002Fsub, cron jobs, and caching are declared in your TypeScript\u002FGo code, not in Terraform files. Encore understands your application architecture and generates infrastructure, API documentation, and architecture diagrams from the code. Local development mirrors production exactly.\n\n## When to Use\n\n- Building cloud backends without managing infrastructure manually\n- Want type-safe APIs with automatic documentation\n- Need databases, pub\u002Fsub, and cron without configuring them\n- Rapid prototyping that scales to production\n- Teams that want to focus on business logic, not DevOps\n\n## Instructions\n\n### Setup\n\n```bash\n# Install Encore CLI (macOS\u002FLinux)\nbrew install encoredev\u002Ftap\u002Fencore\n\n# Create a new app\nencore app create my-app --lang=ts\ncd my-app\nencore run  # Local dev server with hot reload\n```\n\n### Define API Endpoints\n\n```typescript\n\u002F\u002F backend\u002Fuser\u002Fuser.ts — API endpoints are just exported functions\nimport { api } from \"encore.dev\u002Fapi\";\nimport { SQLDatabase } from \"encore.dev\u002Fstorage\u002Fsqldb\";\n\n\u002F\u002F Database declared in code — Encore provisions it automatically\nconst db = new SQLDatabase(\"users\", {\n  migrations: \".\u002Fmigrations\",\n});\n\ninterface User {\n  id: number;\n  email: string;\n  name: string;\n}\n\n\u002F\u002F POST \u002Fuser.create — Type-safe request\u002Fresponse\nexport const create = api(\n  { method: \"POST\", path: \"\u002Fuser\", expose: true },\n  async (params: { email: string; name: string }): Promise\u003CUser> => {\n    const row = await db.queryRow`\n      INSERT INTO users (email, name)\n      VALUES (${params.email}, ${params.name})\n      RETURNING id, email, name\n    `;\n    return row!;\n  }\n);\n\n\u002F\u002F GET \u002Fuser\u002F:id — Path parameters are typed\nexport const get = api(\n  { method: \"GET\", path: \"\u002Fuser\u002F:id\", expose: true },\n  async (params: { id: number }): Promise\u003CUser> => {\n    const row = await db.queryRow`\n      SELECT id, email, name FROM users WHERE id = ${params.id}\n    `;\n    if (!row) throw new Error(\"User not found\");\n    return row;\n  }\n);\n\n\u002F\u002F GET \u002Fuser — List with query params\nexport const list = api(\n  { method: \"GET\", path: \"\u002Fuser\", expose: true },\n  async (params: { limit?: number; offset?: number }): Promise\u003C{ users: User[] }> => {\n    const rows = await db.query`\n      SELECT id, email, name FROM users\n      ORDER BY id DESC\n      LIMIT ${params.limit ?? 20} OFFSET ${params.offset ?? 0}\n    `;\n    return { users: rows };\n  }\n);\n```\n\n### Pub\u002FSub\n\n```typescript\n\u002F\u002F backend\u002Fnotifications\u002Fnotifications.ts — Event-driven with pub\u002Fsub\nimport { Topic, Subscription } from \"encore.dev\u002Fpubsub\";\n\n\u002F\u002F Declare a topic — Encore provisions the message broker\nexport const userCreated = new Topic\u003C{ userId: number; email: string }>(\"user-created\");\n\n\u002F\u002F Publish events\nexport async function notifyUserCreated(userId: number, email: string) {\n  await userCreated.publish({ userId, email });\n}\n\n\u002F\u002F Subscribe to events\nconst _ = new Subscription(userCreated, \"send-welcome-email\", {\n  handler: async (event) => {\n    await sendEmail(event.email, {\n      subject: \"Welcome!\",\n      body: \"Thanks for signing up.\",\n    });\n  },\n});\n```\n\n### Cron Jobs\n\n```typescript\n\u002F\u002F backend\u002Freports\u002Fcron.ts — Scheduled tasks\nimport { CronJob } from \"encore.dev\u002Fcron\";\n\n\u002F\u002F Runs daily at 9 AM UTC — Encore handles scheduling\nconst dailyReport = new CronJob(\"daily-report\", {\n  title: \"Generate Daily Report\",\n  schedule: \"0 9 * * *\",\n  endpoint: generateReport,\n});\n\nexport const generateReport = api(\n  { method: \"POST\", path: \"\u002Freports\u002Fdaily\" },\n  async (): Promise\u003C{ generated: boolean }> => {\n    const stats = await db.query`SELECT ...`;\n    await sendSlackReport(stats);\n    return { generated: true };\n  }\n);\n```\n\n### Deploy\n\n```bash\n# Deploy to Encore Cloud (auto-provisions all infrastructure)\ngit push encore main\n\n# Or self-host with Docker\nencore build docker my-app:latest\ndocker run my-app:latest\n```\n\n## Examples\n\n### Example 1: Build a SaaS backend\n\n**User prompt:** \"Build a backend for a project management tool with users, projects, and real-time updates.\"\n\nThe agent will define Encore services with databases, pub\u002Fsub for real-time events, and cron for notifications — all infrastructure auto-provisioned.\n\n### Example 2: Microservices with service-to-service calls\n\n**User prompt:** \"Split our monolith into microservices with type-safe internal communication.\"\n\nThe agent will create Encore services that call each other with typed function calls (no HTTP clients to write), with automatic tracing and documentation.\n\n## Guidelines\n\n- **Infrastructure is code** — databases, pub\u002Fsub, cron declared in TypeScript\n- **`api()` for endpoints** — type-safe request\u002Fresponse with automatic validation\n- **`SQLDatabase` for databases** — Encore provisions Postgres automatically\n- **`Topic` \u002F `Subscription` for events** — pub\u002Fsub without message broker setup\n- **`CronJob` for schedules** — declare in code, Encore handles execution\n- **`encore run` for local dev** — mirrors production environment exactly\n- **Auto-generated docs** — API documentation from your type definitions\n- **Architecture diagrams** — Encore understands your service graph\n- **Tracing built-in** — distributed tracing across services without config\n- **`expose: true` for public APIs** — internal services are private by default\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fencore",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill encore",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill encore",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill encore","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fencore\u002FSKILL.md",true,[],[46,55,64,73,79,85],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[52,53,54],"model","model hierarchy","model hierarchy skill",{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[61,62,63],"MCP","zoom","zoom mcp",{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[70,71,72,62],"sdk","zoom apps sdk","apps",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[87]]