[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EVWJGTV511AVKBSBFYJX23":3,"skill-same:01M7EVWJGTV511AVKBSBFYJX23":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":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7EVWJGTV511AVKBSBFYJX23","ams-senior-backend",null,"TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-senior-backend\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: senior-backend\ndescription: Senior backend engineer perspective: API design, data modeling, concurrency, reliability, and scalability trade-offs. Use when designing services, data models, or reviewing server-side code.\ncategory: development\n---\n\n# Senior Backend Engineer\n\n## Overview\n\nA senior backend engineer optimizes for **correctness under load and change**: data that stays\nconsistent, services that degrade gracefully, and APIs that don't paint clients into corners. This\nskill captures that perspective — how to model data, where to put logic, how to think about\nconcurrency and failure, and which trade-offs (consistency vs availability, normalization vs\nread-speed) to make deliberately rather than accidentally.\n\nThe through-line: every backend decision is a bet about the future. Make bets you can reverse.\n\n## When to use\n\n- Designing a new service, endpoint set, or database schema.\n- Reviewing backend code for correctness, concurrency, or failure-handling issues.\n- Choosing between sync vs async processing, SQL vs NoSQL, monolith vs services.\n- Debugging production issues: race conditions, deadlocks, cascading failures, data corruption.\n- Capacity planning and setting SLOs, timeouts, retries, and rate limits.\n\n## Core concepts\n\n- **API design is promise design.** Version your contracts, never break them silently. Prefer\n  additive changes; deprecate with sunset headers and timelines. Pagination, filtering, and error\n  shapes should be consistent across every endpoint — clients automate against your consistency.\n- **Data modeling follows access patterns.** Model for the queries you'll run, not for abstract\n  purity. Normalize for write integrity; denormalize deliberately for read hotspots — and document\n  which copies are authoritative vs derived.\n- **Idempotency everywhere it matters.** Retries are inevitable; design operations so repeating them\n  is safe (idempotency keys, upserts, conditional writes). \"Exactly once\" delivery is a myth —\n  \"effectively once\" via idempotency is the engineering answer.\n- **Failure is the normal case.** Timeouts, retries with jittered backoff, circuit breakers, bulkheads,\n  and graceful degradation are not extras. Every external call gets a timeout; every retry gets a\n  budget; every dependency gets a fallback story.\n- **Concurrency control.** Understand your isolation levels, use optimistic locking or compare-and-set\n  for contested writes, and keep transactions short. Long transactions are where deadlocks live.\n- **Observability first.** Structured logs with correlation IDs, metrics on the golden signals\n  (latency, traffic, errors, saturation), and traces across service boundaries. If you can't see it,\n  you can't run it.\n\n## Practical workflow\n\n1. **Define the contract first.** Write the API shape (endpoints, payloads, error codes) and get\n   client-team agreement before building. A one-page API doc prevents a month of rework.\n2. **Model the data for the top 5 queries.** List the actual access patterns, then choose tables,\n   indexes, and denormalization to serve them. Add the index *before* the slow query ships.\n3. **Design the failure matrix.** For each dependency ask: what happens when it's slow? down?\n   returning garbage? Write the timeout, retry, fallback, and alert for each.\n4. **Make writes safe.** Idempotency keys on mutating endpoints, database constraints as the last\n   line of defense (uniqueness, foreign keys, check constraints — the DB doesn't trust your code),\n   and migrations that are backward-compatible (expand then contract).\n5. **Load-test the critical path** before launch, not after the incident. Know your breaking point\n   and what breaks first (it's usually the database connection pool).\n6. **Review backend PRs against this list:**\n   - N+1 queries eliminated or justified; indexes exist for new query patterns.\n   - No unbounded result sets — pagination or streaming everywhere.\n   - Timeouts and retries configured on every outbound call.\n   - Secrets via secret manager, never in code or logs; PII minimized in logs.\n   - Migrations are reversible and safe to run with old code still deployed.\n\nExample timeout\u002Fretry budget:\n\n```text\nOutbound call: payment gateway\n- timeout: 3s connect, 10s total (p99 of gateway is 1.2s; 10s bounds the tail)\n- retries: 2, exponential backoff with jitter (100ms → 400ms), only on idempotent ops\n- circuit breaker: open after 50% failure over 30s window, half-open probe after 15s\n- fallback: queue the charge attempt, surface \"processing\" state to the user\n```\n\n## Common pitfalls\n\n- **Synchronous everything.** Doing slow work (emails, thumbnails, webhooks) inside the request\n  path. If the user doesn't need the result to continue, it belongs on a queue.\n- **Retry storms.** Retrying without backoff, jitter, or budgets turns one outage into a\n  self-inflicted DDoS. Always bound retries and shed load when saturated.\n- **Trusting the application layer for integrity.** Uniqueness enforced only in code races under\n  concurrency — put the constraint in the database and handle the conflict error.\n- **Leaky abstractions in APIs.** Exposing database IDs' internals, internal error stack traces, or\n  requiring clients to understand your sharding. The API is a product; design it like one.\n- **No backpressure.** Accepting unlimited work into an unbounded queue. Queues need depth limits,\n  TTLs, dead-letter handling, and alerts — otherwise they're just delayed outages.\n- **Optimizing before measuring.** Adding caches, read replicas, or microservices for imagined\n  scale. A single well-indexed database handles astonishing load; complexity must be earned.\n- **Deploying migrations and code together** in ways that break rolling deploys. Expand (add\n  nullable column) → deploy code that tolerates both → migrate data → contract (drop old column).\n","# Senior Backend Engineer\n\n## Overview\n\nA senior backend engineer optimizes for **correctness under load and change**: data that stays\nconsistent, services that degrade gracefully, and APIs that don't paint clients into corners. This\nskill captures that perspective — how to model data, where to put logic, how to think about\nconcurrency and failure, and which trade-offs (consistency vs availability, normalization vs\nread-speed) to make deliberately rather than accidentally.\n\nThe through-line: every backend decision is a bet about the future. Make bets you can reverse.\n\n## When to use\n\n- Designing a new service, endpoint set, or database schema.\n- Reviewing backend code for correctness, concurrency, or failure-handling issues.\n- Choosing between sync vs async processing, SQL vs NoSQL, monolith vs services.\n- Debugging production issues: race conditions, deadlocks, cascading failures, data corruption.\n- Capacity planning and setting SLOs, timeouts, retries, and rate limits.\n\n## Core concepts\n\n- **API design is promise design.** Version your contracts, never break them silently. Prefer\n  additive changes; deprecate with sunset headers and timelines. Pagination, filtering, and error\n  shapes should be consistent across every endpoint — clients automate against your consistency.\n- **Data modeling follows access patterns.** Model for the queries you'll run, not for abstract\n  purity. Normalize for write integrity; denormalize deliberately for read hotspots — and document\n  which copies are authoritative vs derived.\n- **Idempotency everywhere it matters.** Retries are inevitable; design operations so repeating them\n  is safe (idempotency keys, upserts, conditional writes). \"Exactly once\" delivery is a myth —\n  \"effectively once\" via idempotency is the engineering answer.\n- **Failure is the normal case.** Timeouts, retries with jittered backoff, circuit breakers, bulkheads,\n  and graceful degradation are not extras. Every external call gets a timeout; every retry gets a\n  budget; every dependency gets a fallback story.\n- **Concurrency control.** Understand your isolation levels, use optimistic locking or compare-and-set\n  for contested writes, and keep transactions short. Long transactions are where deadlocks live.\n- **Observability first.** Structured logs with correlation IDs, metrics on the golden signals\n  (latency, traffic, errors, saturation), and traces across service boundaries. If you can't see it,\n  you can't run it.\n\n## Practical workflow\n\n1. **Define the contract first.** Write the API shape (endpoints, payloads, error codes) and get\n   client-team agreement before building. A one-page API doc prevents a month of rework.\n2. **Model the data for the top 5 queries.** List the actual access patterns, then choose tables,\n   indexes, and denormalization to serve them. Add the index *before* the slow query ships.\n3. **Design the failure matrix.** For each dependency ask: what happens when it's slow? down?\n   returning garbage? Write the timeout, retry, fallback, and alert for each.\n4. **Make writes safe.** Idempotency keys on mutating endpoints, database constraints as the last\n   line of defense (uniqueness, foreign keys, check constraints — the DB doesn't trust your code),\n   and migrations that are backward-compatible (expand then contract).\n5. **Load-test the critical path** before launch, not after the incident. Know your breaking point\n   and what breaks first (it's usually the database connection pool).\n6. **Review backend PRs against this list:**\n   - N+1 queries eliminated or justified; indexes exist for new query patterns.\n   - No unbounded result sets — pagination or streaming everywhere.\n   - Timeouts and retries configured on every outbound call.\n   - Secrets via secret manager, never in code or logs; PII minimized in logs.\n   - Migrations are reversible and safe to run with old code still deployed.\n\nExample timeout\u002Fretry budget:\n\n```text\nOutbound call: payment gateway\n- timeout: 3s connect, 10s total (p99 of gateway is 1.2s; 10s bounds the tail)\n- retries: 2, exponential backoff with jitter (100ms → 400ms), only on idempotent ops\n- circuit breaker: open after 50% failure over 30s window, half-open probe after 15s\n- fallback: queue the charge attempt, surface \"processing\" state to the user\n```\n\n## Common pitfalls\n\n- **Synchronous everything.** Doing slow work (emails, thumbnails, webhooks) inside the request\n  path. If the user doesn't need the result to continue, it belongs on a queue.\n- **Retry storms.** Retrying without backoff, jitter, or budgets turns one outage into a\n  self-inflicted DDoS. Always bound retries and shed load when saturated.\n- **Trusting the application layer for integrity.** Uniqueness enforced only in code races under\n  concurrency — put the constraint in the database and handle the conflict error.\n- **Leaky abstractions in APIs.** Exposing database IDs' internals, internal error stack traces, or\n  requiring clients to understand your sharding. The API is a product; design it like one.\n- **No backpressure.** Accepting unlimited work into an unbounded queue. Queues need depth limits,\n  TTLs, dead-letter handling, and alerts — otherwise they're just delayed outages.\n- **Optimizing before measuring.** Adding caches, read replicas, or microservices for imagined\n  scale. A single well-indexed database handles astonishing load; complexity must be earned.\n- **Deploying migrations and code together** in ways that break rolling deploys. Expand (add\n  nullable column) → deploy code that tolerates both → migrate data → contract (drop old column).\n",{},"main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-senior-backend",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill ams-senior-backend",{"tool":37,"command":38},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill ams-senior-backend",{"tool":40,"command":41},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill ams-senior-backend","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-senior-backend\u002FSKILL.md",true,[],[46,53,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":57,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]