[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110863":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":36,"updatedAt":37,"readmeContent":38,"aiSummary":39,"trendingCount":14,"starSnapshotCount":14,"syncStatus":13,"lastSyncTime":40,"discoverSource":41},110863,"backendskills","globalmpc\u002Fbackendskills","globalmpc","Skills that stop AI agents from writing backend code that passes the demo and breaks in production. Critical mistakes: 25\u002F150 runs without, 2\u002F150 with. Claude Code, Codex, Cursor.","",null,"TypeScript",62,2,0,3,11,1,44.03,"MIT License",false,"main",true,[24,25,26,27,28,29,30,31,32,33,34,35],"agent-skills","ai-coding","api-security","backend","benchmark","claude-code","claude-skills","codex","cursor","database-migrations","postgres","rate-limiting","2026-11-18 02:47:59","2026-11-21 20:13:28","# backendskills\n\nAgent skills that make Claude Code, Codex and Cursor write backend code like a senior engineer:\nsafe on auth, data, money and schema changes by default.\n\n![Same prompt without and with backendskills: password guessing is blocked, a rename no longer breaks a rolling deploy, critical mistakes 25 → 2](docs\u002Fdemo.gif)\n\n## Results\n\nWe gave agents 15 backend tasks with and without the skills, then ran a hidden check the agent never\nsees: 20 buyers at once for 5 items in stock, a user reading someone else's order, the old app version\nrunning against the new schema mid-deploy.\n\n**Critical mistakes: 25\u002F150 runs without the skills, 2\u002F150 with them.** (Sonnet 5.5 and Haiku 5.5, 5 runs per task.)\n\n\u003C!-- RESULTS: generated by `node bench\u002Fsummarize.mjs bench\u002Fresults\u002F\u003Cdate>\u002Fruns.jsonl` -->\n| Task | Haiku 5.5 | Sonnet 5.5 |\n| --- | --- | --- |\n| `checkout` | 1\u002F5 → 0\u002F5 | 2\u002F5 → 0\u002F5 |\n| `get-order` | 0\u002F5 → 0\u002F5 | 0\u002F5 → 0\u002F5 |\n| `login-rate-limit` | 5\u002F5 → 0\u002F5 | 5\u002F5 → 0\u002F5 |\n| `orders-check-constraint` | 0\u002F5 → 0\u002F5 | 1\u002F5 → 0\u002F5 |\n| `orders-index` | 0\u002F5 → 0\u002F5 | 0\u002F5 → 0\u002F5 |\n| `orders-pagination` | 0\u002F5 → 0\u002F5 | 0\u002F5 → 0\u002F5 |\n| `orders-with-items` | 0\u002F5 → 0\u002F5 | 0\u002F5 → 0\u002F5 |\n| `payment-webhook` | 1\u002F5 → 2\u002F5 | 0\u002F5 → 0\u002F5 |\n| `product-discount` | 0\u002F5 → 0\u002F5 | 0\u002F5 → 0\u002F5 |\n| `product-reviews` | 0\u002F5 → 0\u002F5 | 0\u002F5 → 0\u002F5 |\n| `refund` | 0\u002F5 → 0\u002F5 | 0\u002F5 → 0\u002F5 |\n| `rename-column` | 5\u002F5 → 0\u002F5 | 5\u002F5 → 0\u002F5 |\n| `transfer` | 0\u002F5 → 0\u002F5 | 0\u002F5 → 0\u002F5 |\n| `update-profile` | 0\u002F5 → 0\u002F5 | 0\u002F5 → 0\u002F5 |\n| `wallet-adjustments` | 0\u002F5 → 0\u002F5 | 0\u002F5 → 0\u002F5 |\n| **All** | **12\u002F75 → 2\u002F75** | **13\u002F75 → 0\u002F75** |\n\u003C!-- \u002FRESULTS -->\n\nRuns with a critical mistake, without → with the skills. Most of the gap is two tasks: `login-rate-limit`\nand `rename-column` account for 20 of the 25, and 10 of the 15 tasks had no critical mistake either way.\nNot fixed yet: Haiku on out-of-order webhook events.\n\n- **Team conventions** (down migrations, API docs): 30 misses → 4, with the sample app's conventions\n  written into each skill's \"Make it yours\" section ([`bench\u002Fskills-overlay`](bench\u002Fskills-overlay)). The\n  whole with-skills arm uses that version. As shipped, those lines say \"not set\".\n- **Cost:** with the skills the agent does more: $0.11 vs $0.06 per run, 23 vs 14 turns\n  (Sonnet $0.20 vs $0.12, Haiku $0.019 vs $0.012).\n- **Left out:** 25 runs stopped because the bench account hit its usage limit (`usage_limit_reached`):\n  20 Sonnet with-skills runs on `rename-column`, 1 on `orders-index`, 4 Opus. Each run's reason is its\n  `error_reason` in `runs.jsonl`. The 21 Opus runs there are a partial run, not part of the results.\nEvery raw run, the tasks and how to rerun it are in [`bench\u002F`](bench).\n\n## Install\n\n```sh\nnpx skills add globalmpc\u002Fbackendskills\n```\n\nCodex and other `AGENTS.md` agents: append [`dist\u002FAGENTS.md`](dist\u002FAGENTS.md). Cursor: copy\n[`dist\u002Fcursor\u002F`](dist\u002Fcursor) into `.cursor\u002Frules\u002F`.\n\n## Skills\n\n| Skill | What the agent does by default |\n| --- | --- |\n| [`api-endpoint`](skills\u002Fapi-endpoint\u002FSKILL.md) | Scopes every query to the caller, turns bad input into a 4xx, rate-limits login and costly routes |\n| [`data-integrity`](skills\u002Fdata-integrity\u002FSKILL.md) | Locks or conditional updates for read-then-write, UNIQUE constraints, idempotency keys on anything that charges or sends |\n| [`db-migration`](skills\u002Fdb-migration\u002FSKILL.md) | Expand then contract, concurrent indexes, lock timeouts, batched backfills, down migrations |\n\nEach skill ends with a **Make it yours** section for your team's choices (error format, API docs).\nLeft as \"not set\", the agent follows what your repo already does.\n\n## Contributing\n\nAgent still made a mistake with the skills loaded? Open an issue with the prompt and the diff.\nEdit skills in `skills\u002F`, then `node scripts\u002Fbuild-dist.mjs`.\n\n[MIT](LICENSE)\n","这是一个面向AI编程代理的后端开发安全技能库，旨在防止AI生成看似正确但实际存在生产隐患的后端代码。它通过预置规则约束AI在认证、数据一致性、资金操作、数据库迁移、API限流等关键环节的行为，显著降低并发超卖、越权访问、滚动发布中断等高危错误发生率（实测关键错误从25\u002F150降至2\u002F150）。基于TypeScript实现，支持Claude Code、Codex、Cursor等主流AI编码工具，适用于需要将AI生成代码直接用于真实业务后端场景的工程团队。","2026-11-24 04:39:48","CREATED_QUERY"]