[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77N98ZG98E2XWTGN0NXTMCJ":3,"skill-same:01M77N98ZG98E2XWTGN0NXTMCJ":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M77N98ZG98E2XWTGN0NXTMCJ","backend",null,"Defines backend layer ownership, implementation order, compiler checking, generation boundaries, and the backend gate. Read before backend work, then read every sibling topic.","systemfsoftware\u002Fsystemfsoftware","systemfsoftware","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F172220390?v=4","01M77N4P2T87WAH2KS0GYARYP3","System F Software","01M77N4P3GJRWQAQZ6JNRF99ZB",21,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Fttsc\u002Fbenchmarks\u002Fevidence\u002Ftemplate\u002Fbase\u002F.agents\u002Fskills\u002Fbackend\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: backend\ndescription: Defines backend layer ownership, implementation order, compiler checking, generation boundaries, and the backend gate. Read before backend work, then read every sibling topic.\n---\n\n# Backend\n\nThe backend realizes the requirements as a schema, public contract, business logic, and executable tests. Work in that order so each layer consumes settled decisions from the layer before it.\n\n## Topics\n\n- [database.md](database.md): models, relations, lifecycle, retained state, and schema comments.\n- [dtos.md](dtos.md): public request and response types under `packages\u002Fapi\u002Fsrc\u002Fstructures\u002F`.\n- [controllers.md](controllers.md): operation shape, routes, actor guards, and published JSDoc.\n- [providers.md](providers.md): authorization, queries, writes, transformers, collectors, and transactions.\n- [testing.md](testing.md): end-to-end scenarios and behavioral proof.\n- [typescript.md](typescript.md): recurring TypeScript, typia, and Prisma diagnostics.\n- [debugging.md](debugging.md): assigning a failure to its owning layer.\n\n## Layer Ownership\n\n| Layer | Owns |\n| --- | --- |\n| Schema | Stored facts, relations, constraints, and lifecycle representation |\n| DTO | Public request and response shapes |\n| Controller | Route, actor guard, parameters, response, and published contract |\n| Provider | Business rules, visibility, database access, and transactions |\n| Test | Observable proof through public operations |\n\nFix a defect at its owner. A provider must not compensate for a missing column, a controller must not contain business logic, and a test must not weaken a legitimate requirement.\n\n## API Package Entry\n\nKeep this shape in `packages\u002Fapi\u002Fpackage.json`:\n\n```json\n{\n  \"main\": \".\u002Fsrc\u002Findex.ts\",\n  \"exports\": {\n    \".\": \".\u002Fsrc\u002Findex.ts\"\n  },\n  \"publishConfig\": {\n    \"main\": \".\u002Flib\u002Findex.js\",\n    \"types\": \".\u002Flib\u002Findex.d.ts\",\n    \"exports\": {\n      \".\": {\n        \"types\": \".\u002Flib\u002Findex.d.ts\",\n        \"default\": \".\u002Flib\u002Findex.js\"\n      }\n    }\n  }\n}\n```\n\n`main` and `exports` point every workspace package to the current TypeScript source. `publishConfig` switches the same package root to compiled JavaScript and declarations when the package is packed or published.\n\nIf `main` or `exports` points to `lib`, local packages can read a missing or stale build. For this reason, never change `main`, `exports`, or `publishConfig`.\n\n## Implementation Order\n\n1. Read every requirement under `docs\u002Fanalysis\u002F`.\n2. Design the complete schema under `prisma\u002Fschema\u002F`.\n3. Run `pnpm build:prisma` and `pnpm schema`.\n4. Declare every DTO under `..\u002Fapi\u002Fsrc\u002Fstructures\u002F` and every operation under `src\u002Fcontrollers\u002F` as a complete contract with a temporary typed stub body.\n5. Run `pnpm build:sdk` once after the entire DTO and controller contract settles.\n6. Write tests under `test\u002Ffeatures\u002F` from the requirements and generated SDK.\n7. Implement providers, transformers, collectors, and authorization until the runtime suite passes.\n\nThe temporary controller stub declares the real route, signature, JSDoc, and response type. Its body mentions each parameter and returns `typia.random\u003CT>()`, allowing SDK generation before provider logic exists. Remove every stub marker when replacing the body with one provider call.\n\n## Compiler Checking\n\nThe backend compiler process is:\n\n```bash\npnpm check:watch\n```\n\nThe package compiles as two Programs. `tsconfig.json` covers `src\u002F`, and `test\u002Ftsconfig.json` covers the tests together with that source; the watcher runs the test Program, so it sees both. Authored API DTOs belong to the API package and are checked by its own build. The watcher automatically reloads its lint configuration and reports type, lint, and contributor diagnostics. Your current objective owns when the watcher starts and stops; follow it exactly rather than a lifecycle you infer from elsewhere. A compiler check is clean only after the latest change rebuilds without a diagnostic.\n\nThe provided `tsconfig.json` and lint configuration files are frozen, in the package and in `test\u002F` alike. Do not add, delete, or edit one, and do not change rule configuration by phase except an edit the active arm's skill explicitly prescribes.\n\n## Environment And Runtime\n\nCreate the local environment from the example before tests or server startup:\n\n```bash\ncp .env.example .env\n```\n\nThe database is disposable SQLite. `pnpm schema` force-resets it. Do not add deployment abstractions or a server database.\n\nThe backend server starts with:\n\n```bash\npnpm dev\n```\n\nStart it before live frontend integration and keep it running through Overall Final.\n\n## Generation Boundaries\n\n| Authored change | Action |\n| --- | --- |\n| Schema model, field, relation, or comment | Settle the schema, then `pnpm build:prisma` and `pnpm schema` |\n| Complete DTO and controller contract | Settle the complete contract, then `pnpm build:sdk` once |\n| Provider or test only | Do not regenerate |\n| Complete backend change | Require a clean watcher rebuild under the lifecycle your objective prescribes |\n\nRun mutating generators and runtime tests one at a time. Do not start a second backend watcher.\n\n## Backend Gate\n\nThe backend gate requires:\n\n1. the active arm's backend review;\n2. a clean current `check:watch` rebuild;\n3. settled Prisma and SDK generation; and\n4. `pnpm test` succeeding against the current implementation.\n\n`pnpm test` reports only the tests that exist. It cannot report an operation nobody tested, which is what Operation Ownership in `testing.md` and the active arm's review are for.\n\nDo not use the backend aggregate `pnpm build` or workspace-root build as a substitute. They obscure the failing layer and the root build also compiles the unfinished frontend.\n","# Backend\n\nThe backend realizes the requirements as a schema, public contract, business logic, and executable tests. Work in that order so each layer consumes settled decisions from the layer before it.\n\n## Topics\n\n- [database.md](database.md): models, relations, lifecycle, retained state, and schema comments.\n- [dtos.md](dtos.md): public request and response types under `packages\u002Fapi\u002Fsrc\u002Fstructures\u002F`.\n- [controllers.md](controllers.md): operation shape, routes, actor guards, and published JSDoc.\n- [providers.md](providers.md): authorization, queries, writes, transformers, collectors, and transactions.\n- [testing.md](testing.md): end-to-end scenarios and behavioral proof.\n- [typescript.md](typescript.md): recurring TypeScript, typia, and Prisma diagnostics.\n- [debugging.md](debugging.md): assigning a failure to its owning layer.\n\n## Layer Ownership\n\n| Layer | Owns |\n| --- | --- |\n| Schema | Stored facts, relations, constraints, and lifecycle representation |\n| DTO | Public request and response shapes |\n| Controller | Route, actor guard, parameters, response, and published contract |\n| Provider | Business rules, visibility, database access, and transactions |\n| Test | Observable proof through public operations |\n\nFix a defect at its owner. A provider must not compensate for a missing column, a controller must not contain business logic, and a test must not weaken a legitimate requirement.\n\n## API Package Entry\n\nKeep this shape in `packages\u002Fapi\u002Fpackage.json`:\n\n```json\n{\n  \"main\": \".\u002Fsrc\u002Findex.ts\",\n  \"exports\": {\n    \".\": \".\u002Fsrc\u002Findex.ts\"\n  },\n  \"publishConfig\": {\n    \"main\": \".\u002Flib\u002Findex.js\",\n    \"types\": \".\u002Flib\u002Findex.d.ts\",\n    \"exports\": {\n      \".\": {\n        \"types\": \".\u002Flib\u002Findex.d.ts\",\n        \"default\": \".\u002Flib\u002Findex.js\"\n      }\n    }\n  }\n}\n```\n\n`main` and `exports` point every workspace package to the current TypeScript source. `publishConfig` switches the same package root to compiled JavaScript and declarations when the package is packed or published.\n\nIf `main` or `exports` points to `lib`, local packages can read a missing or stale build. For this reason, never change `main`, `exports`, or `publishConfig`.\n\n## Implementation Order\n\n1. Read every requirement under `docs\u002Fanalysis\u002F`.\n2. Design the complete schema under `prisma\u002Fschema\u002F`.\n3. Run `pnpm build:prisma` and `pnpm schema`.\n4. Declare every DTO under `..\u002Fapi\u002Fsrc\u002Fstructures\u002F` and every operation under `src\u002Fcontrollers\u002F` as a complete contract with a temporary typed stub body.\n5. Run `pnpm build:sdk` once after the entire DTO and controller contract settles.\n6. Write tests under `test\u002Ffeatures\u002F` from the requirements and generated SDK.\n7. Implement providers, transformers, collectors, and authorization until the runtime suite passes.\n\nThe temporary controller stub declares the real route, signature, JSDoc, and response type. Its body mentions each parameter and returns `typia.random\u003CT>()`, allowing SDK generation before provider logic exists. Remove every stub marker when replacing the body with one provider call.\n\n## Compiler Checking\n\nThe backend compiler process is:\n\n```bash\npnpm check:watch\n```\n\nThe package compiles as two Programs. `tsconfig.json` covers `src\u002F`, and `test\u002Ftsconfig.json` covers the tests together with that source; the watcher runs the test Program, so it sees both. Authored API DTOs belong to the API package and are checked by its own build. The watcher automatically reloads its lint configuration and reports type, lint, and contributor diagnostics. Your current objective owns when the watcher starts and stops; follow it exactly rather than a lifecycle you infer from elsewhere. A compiler check is clean only after the latest change rebuilds without a diagnostic.\n\nThe provided `tsconfig.json` and lint configuration files are frozen, in the package and in `test\u002F` alike. Do not add, delete, or edit one, and do not change rule configuration by phase except an edit the active arm's skill explicitly prescribes.\n\n## Environment And Runtime\n\nCreate the local environment from the example before tests or server startup:\n\n```bash\ncp .env.example .env\n```\n\nThe database is disposable SQLite. `pnpm schema` force-resets it. Do not add deployment abstractions or a server database.\n\nThe backend server starts with:\n\n```bash\npnpm dev\n```\n\nStart it before live frontend integration and keep it running through Overall Final.\n\n## Generation Boundaries\n\n| Authored change | Action |\n| --- | --- |\n| Schema model, field, relation, or comment | Settle the schema, then `pnpm build:prisma` and `pnpm schema` |\n| Complete DTO and controller contract | Settle the complete contract, then `pnpm build:sdk` once |\n| Provider or test only | Do not regenerate |\n| Complete backend change | Require a clean watcher rebuild under the lifecycle your objective prescribes |\n\nRun mutating generators and runtime tests one at a time. Do not start a second backend watcher.\n\n## Backend Gate\n\nThe backend gate requires:\n\n1. the active arm's backend review;\n2. a clean current `check:watch` rebuild;\n3. settled Prisma and SDK generation; and\n4. `pnpm test` succeeding against the current implementation.\n\n`pnpm test` reports only the tests that exist. It cannot report an operation nobody tested, which is what Operation Ownership in `testing.md` and the active arm's review are for.\n\nDo not use the backend aggregate `pnpm build` or workspace-root build as a substitute. They obscure the failing layer and the root build also compiles the unfinished frontend.\n",{"name":5,"description":7},"main","02b1c09e541d5f02cfdac23c8b3586c428a80775","repos\u002Fttsc\u002Fbenchmarks\u002Fevidence\u002Ftemplate\u002Fbase\u002F.agents\u002Fskills\u002Fbackend",2,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware","https:\u002F\u002Fsystemfsoftware.com\u002F","2026-11-14 09:13:19",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add systemfsoftware\u002Fsystemfsoftware --skill backend",{"tool":38,"command":39},"bunx","bunx skills add systemfsoftware\u002Fsystemfsoftware --skill backend",{"tool":41,"command":42},"pnpm","pnpm dlx skills add systemfsoftware\u002Fsystemfsoftware --skill backend","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Fttsc\u002Fbenchmarks\u002Fevidence\u002Ftemplate\u002Fbase\u002F.agents\u002Fskills\u002Fbackend\u002FSKILL.md",true,[46,52,56,60,64,68,72],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"controllers.md","REFERENCE","参考文档",5254,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Fttsc\u002Fbenchmarks\u002Fevidence\u002Ftemplate\u002Fbase\u002F.agents\u002Fskills\u002Fbackend\u002Fcontrollers.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"database.md",5686,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Fttsc\u002Fbenchmarks\u002Fevidence\u002Ftemplate\u002Fbase\u002F.agents\u002Fskills\u002Fbackend\u002Fdatabase.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"debugging.md",1310,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Fttsc\u002Fbenchmarks\u002Fevidence\u002Ftemplate\u002Fbase\u002F.agents\u002Fskills\u002Fbackend\u002Fdebugging.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"dtos.md",4480,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Fttsc\u002Fbenchmarks\u002Fevidence\u002Ftemplate\u002Fbase\u002F.agents\u002Fskills\u002Fbackend\u002Fdtos.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"providers.md",10155,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Fttsc\u002Fbenchmarks\u002Fevidence\u002Ftemplate\u002Fbase\u002F.agents\u002Fskills\u002Fbackend\u002Fproviders.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"testing.md",8270,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Fttsc\u002Fbenchmarks\u002Fevidence\u002Ftemplate\u002Fbase\u002F.agents\u002Fskills\u002Fbackend\u002Ftesting.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"typescript.md",2674,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Fttsc\u002Fbenchmarks\u002Fevidence\u002Ftemplate\u002Fbase\u002F.agents\u002Fskills\u002Fbackend\u002Ftypescript.md",[77,84,91,97,104,110],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7BD2282BZGW5BQQD94CQ6W4","contracts","Defines self-acknowledgments for production declarations and tests. Use when implementing or reviewing maintained source, unit tests or E2E tests, or selecting Evidence checklists.","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Ftypia\u002F.agents\u002Fskills\u002Fcontracts\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7BD1NWTFK6Q3S2HSK2AWFFA","prompting","Writes and trims ttsc's prompts for agents, namely AGENTS.md, CLAUDE.md, and the skills under .agents\u002Fskills. Use before changing any of them, together with the documentation skill's writing rules.","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Fttsc\u002F.agents\u002Fskills\u002Fprompting\u002FSKILL.md",[],[],{"skillNo":92,"name":79,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7BD1C16RTYT3R4HD7T32V8R","Defines the @evidence checklists every maintained ttsc declaration and test answers, and their evidence.config.json wiring. Use when writing or reviewing maintained source or tests, or changing Evidence selection.","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Fttsc\u002F.agents\u002Fskills\u002Fcontracts\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7BD13ZMCXA6CSYYM8BKZ7JE","alchemy-domain","Build backends with @alchemy.run\u002Fdomain (domain-driven design on Effect) - turn requirements into aggregates, commands, events, rejections, views, policies, sagas, projections, streams, queries, external systems and Apis; lay them out in a monorepo (domain \u002F server \u002F web packages, kind-suffixed files); test them with stories; host them on Durable Objects (Cloudflare, Rivet or Effect Cluster) with alchemy; and drive them from a foldkit frontend. Use when designing or changing an @alchemy.run\u002Fdomain model, adding a building block, wiring hosting or a frontend, or reviewing such code.","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Falchemy\u002Fpackages\u002Fdomain\u002Fskills\u002Falchemy-domain\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7BD131HNMPMBKNZWMS3M58Z","alchemy-provider","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Falchemy\u002F.grok\u002Fskills\u002Falchemy-provider\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M7BD1231ZSETXNJV4V5SN0MK","write-docs","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fsystemfsoftware\u002Fblob\u002Fmain\u002Frepos\u002Falchemy\u002F.claude\u002Fskills\u002Fwrite-docs\u002FSKILL.md",[],[]]