[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CS9D14P84G4GF18MYHD9FF":3,"skill-same:01M7CS9D14P84G4GF18MYHD9FF":48},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7CS9D14P84G4GF18MYHD9FF","production-engineering-practices",null,"Error-handling, security, logging and performance bar for production code. Use when writing or changing production code, before the run ends.","makifbaysal\u002Ftasktrooper","makifbaysal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25031940?v=4","01M7CRG3ZCSYZSSEVDMW3DEYC8","Mehmet Akif Baysal","01M7CRG401FJ8YAXH5ER730XYV",122,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fmobile-developer\u002Fskills\u002Fproduction-engineering-practices\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: production-engineering-practices\ncategory: quality\ndescription: Error-handling, security, logging and performance bar for production code. Use when writing or changing production code, before the run ends.\n---\n# Production Engineering Practices\n\n## Overview\n\nAcceptance criteria describe the happy path. Production is the unhappy paths: bad input, failed dependencies, concurrent access, hostile users. This skill is the non-negotiable bar every change clears in addition to its AC — the things a reviewer at code_review will bounce you for even when the feature \"works.\"\n\n**Core principle:** Code isn't done when it works; it's done when it fails safely, leaves a trace, and can't be abused.\n\n## The bar\n\n### Error handling\n- **No swallowed errors.** Every error is either handled explicitly or propagated with context. An empty catch\u002F`if err != nil { }` that continues is a review-blocking defect.\n- Wrap with context at each layer so the log names where it broke: `fmt.Errorf(\"create task: %w\", err)`.\n- User-facing errors are actionable and safe; internal detail (stack, ids) goes to logs, never to the client.\n\n### Logging & observability\n- Log at the failure site with structured fields (entity id, operation, not free-text).\n- **Never log secrets, tokens, passwords, or full request bodies** that may contain them.\n- Log the decision, not the novel — one structured line beats ten prose lines.\n\n### Security\n- Validate and bound every external input at the boundary: length, type, range, allowed set. Reject early.\n- Secrets come from config\u002Fenv — never hardcoded, never committed, never logged.\n- A new endpoint\u002Froute gets the SAME auth\u002Fauthorization guard as its neighbors. Copy the guard, don't omit it.\n\n### Performance\n- No N+1 queries or requests — batch, join, preload, or cache. A loop issuing one call per row is a defect.\n- Bound every result set: pagination or explicit limits on list endpoints and list views.\n- Don't load unbounded data into memory; stream or page.\n\n## Per stack\n\n| Stack | Adds |\n|-------|------|\n| **Backend** | Parameterized queries only — no string-concatenated SQL, ever. |\n| **Web** | No `dangerouslySetInnerHTML` \u002F `innerHTML` with unsanitised data. Nothing secret in `VITE_*` \u002F `NEXT_PUBLIC_*` — those ship to the browser. Every fetch has error and timeout\u002Fabort handling, and every route has an error boundary. No token in `localStorage` unless the repository already does it that way. |\n| **Mobile** | Tokens in Keychain\u002FKeystore (`flutter_secure_storage`), never in plain prefs. Explicit offline and timeout paths — a request with no network is a state, not a crash. No PII in logs. Permissions requested at the point of use, not on launch. |\n\n## Quick self-review before code_review\n\n| Check | Pass condition |\n|-------|----------------|\n| Errors | None swallowed; all wrapped with context |\n| Input | Every external field validated and bounded |\n| Secrets | None in code, logs, or commits |\n| Auth | New endpoints\u002Froutes guarded like neighbors |\n| Queries\u002Frequests | No N+1; result sets bounded |\n| Tests | Behavior change ships with a test in this task |\n\n## Worked Example\n\nAdding `GET \u002Fprojects\u002F:id\u002Ftasks`. The AC just says \"return the project's tasks.\" The production bar adds:\n- Validate `:id` is a UUID → 400 on garbage, before any DB call.\n- The query filters by `project_id` with a bound parameter and a `LIMIT`\u002Foffset — not `SELECT * FROM tasks`.\n- The handler reuses the project's auth middleware so a user can't read another tenant's tasks.\n- A structured log line on the DB error path with `project_id`.\n- Tests: happy path, invalid id → 400, and the pagination bound.\n\nThe feature \"worked\" after the first bullet; it was *done* after all five.\n\n## Handoff\n\nSee your prompt's closing step for how to end the run — this skill only sets the bar the diff clears before you get there.\n\n## Red Flags\n\n- \"I'll add validation\u002Ferror handling later\" — later is the review bounce.\n- A `catch`\u002F`if err != nil` block that does nothing.\n- A list endpoint or list view with no limit.\n- Copying an endpoint or screen but dropping its auth guard.\n- A secret read from `VITE_*`\u002F`NEXT_PUBLIC_*`, or a token written to plain prefs on mobile.\n","# Production Engineering Practices\n\n## Overview\n\nAcceptance criteria describe the happy path. Production is the unhappy paths: bad input, failed dependencies, concurrent access, hostile users. This skill is the non-negotiable bar every change clears in addition to its AC — the things a reviewer at code_review will bounce you for even when the feature \"works.\"\n\n**Core principle:** Code isn't done when it works; it's done when it fails safely, leaves a trace, and can't be abused.\n\n## The bar\n\n### Error handling\n- **No swallowed errors.** Every error is either handled explicitly or propagated with context. An empty catch\u002F`if err != nil { }` that continues is a review-blocking defect.\n- Wrap with context at each layer so the log names where it broke: `fmt.Errorf(\"create task: %w\", err)`.\n- User-facing errors are actionable and safe; internal detail (stack, ids) goes to logs, never to the client.\n\n### Logging & observability\n- Log at the failure site with structured fields (entity id, operation, not free-text).\n- **Never log secrets, tokens, passwords, or full request bodies** that may contain them.\n- Log the decision, not the novel — one structured line beats ten prose lines.\n\n### Security\n- Validate and bound every external input at the boundary: length, type, range, allowed set. Reject early.\n- Secrets come from config\u002Fenv — never hardcoded, never committed, never logged.\n- A new endpoint\u002Froute gets the SAME auth\u002Fauthorization guard as its neighbors. Copy the guard, don't omit it.\n\n### Performance\n- No N+1 queries or requests — batch, join, preload, or cache. A loop issuing one call per row is a defect.\n- Bound every result set: pagination or explicit limits on list endpoints and list views.\n- Don't load unbounded data into memory; stream or page.\n\n## Per stack\n\n| Stack | Adds |\n|-------|------|\n| **Backend** | Parameterized queries only — no string-concatenated SQL, ever. |\n| **Web** | No `dangerouslySetInnerHTML` \u002F `innerHTML` with unsanitised data. Nothing secret in `VITE_*` \u002F `NEXT_PUBLIC_*` — those ship to the browser. Every fetch has error and timeout\u002Fabort handling, and every route has an error boundary. No token in `localStorage` unless the repository already does it that way. |\n| **Mobile** | Tokens in Keychain\u002FKeystore (`flutter_secure_storage`), never in plain prefs. Explicit offline and timeout paths — a request with no network is a state, not a crash. No PII in logs. Permissions requested at the point of use, not on launch. |\n\n## Quick self-review before code_review\n\n| Check | Pass condition |\n|-------|----------------|\n| Errors | None swallowed; all wrapped with context |\n| Input | Every external field validated and bounded |\n| Secrets | None in code, logs, or commits |\n| Auth | New endpoints\u002Froutes guarded like neighbors |\n| Queries\u002Frequests | No N+1; result sets bounded |\n| Tests | Behavior change ships with a test in this task |\n\n## Worked Example\n\nAdding `GET \u002Fprojects\u002F:id\u002Ftasks`. The AC just says \"return the project's tasks.\" The production bar adds:\n- Validate `:id` is a UUID → 400 on garbage, before any DB call.\n- The query filters by `project_id` with a bound parameter and a `LIMIT`\u002Foffset — not `SELECT * FROM tasks`.\n- The handler reuses the project's auth middleware so a user can't read another tenant's tasks.\n- A structured log line on the DB error path with `project_id`.\n- Tests: happy path, invalid id → 400, and the pagination bound.\n\nThe feature \"worked\" after the first bullet; it was *done* after all five.\n\n## Handoff\n\nSee your prompt's closing step for how to end the run — this skill only sets the bar the diff clears before you get there.\n\n## Red Flags\n\n- \"I'll add validation\u002Ferror handling later\" — later is the review bounce.\n- A `catch`\u002F`if err != nil` block that does nothing.\n- A list endpoint or list view with no limit.\n- Copying an endpoint or screen but dropping its auth guard.\n- A secret read from `VITE_*`\u002F`NEXT_PUBLIC_*`, or a token written to plain prefs on mobile.\n",{"name":5,"category":24,"description":7},"quality","main","910394a0b6db9fc8c9a8f36328ec421d3ebd8b38","catalog\u002Fagents\u002Fmobile-developer\u002Fskills\u002Fproduction-engineering-practices",18,"https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper","https:\u002F\u002Ftasktrooper.ai","https:\u002F\u002Fgithub.com\u002Fmakifbaysal","Senior Software Developer","2026-11-15 04:50:29",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add makifbaysal\u002Ftasktrooper --skill production-engineering-practices",{"tool":40,"command":41},"bunx","bunx skills add makifbaysal\u002Ftasktrooper --skill production-engineering-practices",{"tool":43,"command":44},"pnpm","pnpm dlx skills add makifbaysal\u002Ftasktrooper --skill production-engineering-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fmobile-developer\u002Fskills\u002Fproduction-engineering-practices\u002FSKILL.md",true,[],[49,55,62,69,76,83],{"skillNo":50,"name":51,"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":52,"categories":53,"keywords":54,"publishedAt":19},"01M7CSVEPQW6J6TD6CS2T5FPNZ","visual-craft","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fvisual-craft\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CSVAQG91ETHQ0HBNZDG5FR","ux-copy","Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fux-copy\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CSV6H0J38659NDXHJQ8396","screen-mockup-html","Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fscreen-mockup-html\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CSV3JFRF3BM3XK52M7YEYR","performance-awareness","How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fperformance-awareness\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CSTZDH00YRF5SCT7BRT9QD","design-variants","Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-variants\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CSTV6P3SM3PAE28DB0RF77","design-system-authoring","Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-system-authoring\u002FSKILL.md",[],[]]