[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EVCVV9F9KN3GAVX65H7VSB":3,"skill-same:01M7EVCVV9F9KN3GAVX65H7VSB":47},{"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":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EVCVV9F9KN3GAVX65H7VSB","pocketbase-migrations",null,"Schema migrations in PocketBase — generating, reviewing, and applying them safely across environments.","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-pocketbase-migrations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pocketbase-migrations\ndescription: Schema migrations in PocketBase — generating, reviewing, and applying them safely across environments.\ncategory: pocketbase\n---\n\n## Overview\n\nPocketBase turns dashboard schema changes into Go\u002FJavaScript migration files\nthat apply in order — the mechanism that keeps dev, staging, and production\nschemas identical. This skill covers the migration workflow: generating\nmigrations from changes, reviewing them, handling data migrations, and\napplying them safely.\n\n## When to use\n\n- Evolving collections (new fields, changed types, new indexes)\n- Syncing schema changes across environments\n- Writing data migrations (backfills, transformations)\n- Reviewing auto-generated migrations before applying\n- Recovering from failed or partial migrations\n\n## Core concepts\n\n**Migrations are the source of truth.** The dashboard is a convenient editor,\nbut the migration files in version control define the schema. Workflow:\nchange in dev dashboard → export\u002Fgenerate migration → commit → apply to\nstaging\u002Fprod via the migrate command. Dashboard edits in production without\nmigrations are how environments diverge.\n\n**Auto-generated, human-reviewed.** PocketBase can diff the current schema\nagainst the migration history and generate the migration code. Always read\ngenerated migrations before applying — especially destructive operations\n(dropped collections\u002Ffields, type changes that truncate data). The generator\nis faithful; it's your job to be careful.\n\n**Ordering and idempotency.** Migrations apply sequentially, tracked in the\n`_migrations` table. Never edit an applied migration — write a new one.\nKeep migrations small and focused so failures are diagnosable and recovery\nis obvious.\n\n**Data migrations need batches.** Backfilling a new field across millions of\nrecords in one migration can lock or OOM. Write data migrations that process\nin batches with progress logging, and test them against a production-sized\nsnapshot before running for real.\n\n**Superuser-only operations.** Applying migrations requires superuser\u002Fadmin\ncontext — never expose migration endpoints to regular API traffic. In\nproduction, migrations run as part of the deploy process (or a controlled\nmanual step), not on app boot by every instance.\n\n## Practical workflow\n\n1. **Make schema changes in dev** via the dashboard; generate the migration\n   and inspect the code — confirm it does exactly what you intended.\n2. **Commit the migration** with the code that depends on it; the PR review\n   covers both schema and usage together.\n3. **Test the migration** forward (and rollback if supported) against a\n   staging database seeded with realistic data, including edge cases the\n   change affects (nulls, type coercions, unique constraints on existing\n   duplicates).\n4. **For data migrations:** write batch logic, dry-run on a snapshot, then\n   run against production with monitoring; keep it resumable.\n5. **Apply in deploy order:** backup → apply migrations → deploy new code\n   (expand-contract: migrations must be compatible with both old and new\n   code during the transition).\n6. **Verify post-apply:** schema matches expectations, app health checks\n   pass, and the migration history table shows the new entries.\n\n## Common pitfalls\n\n- **Editing applied migrations** — breaks the history chain for every other\n  environment; always add a new migration.\n- **Destructive changes without backup** — dropping a field\u002Fcollection is\n  instant and irreversible; backup first, and prefer soft-deprecate\n  (stop writing, then drop later) for critical data.\n- **Type changes that silently coerce** — text → number on dirty data loses\n  or corrupts values; clean\u002Fvalidate data before the type migration.\n- **Migration\u002Fcode ordering bugs** — deploying code that needs a column\n  before the migration runs (or vice versa); sequence deploys explicitly.\n- **Untested migrations on production-sized data** — works on 100 dev rows,\n   times out or locks on 10M prod rows; test at scale.\n- **Dashboard drift** — someone \"quickly fixes\" prod in the dashboard;\n  institute a rule: all schema changes go through migrations, no exceptions.\n","## Overview\n\nPocketBase turns dashboard schema changes into Go\u002FJavaScript migration files\nthat apply in order — the mechanism that keeps dev, staging, and production\nschemas identical. This skill covers the migration workflow: generating\nmigrations from changes, reviewing them, handling data migrations, and\napplying them safely.\n\n## When to use\n\n- Evolving collections (new fields, changed types, new indexes)\n- Syncing schema changes across environments\n- Writing data migrations (backfills, transformations)\n- Reviewing auto-generated migrations before applying\n- Recovering from failed or partial migrations\n\n## Core concepts\n\n**Migrations are the source of truth.** The dashboard is a convenient editor,\nbut the migration files in version control define the schema. Workflow:\nchange in dev dashboard → export\u002Fgenerate migration → commit → apply to\nstaging\u002Fprod via the migrate command. Dashboard edits in production without\nmigrations are how environments diverge.\n\n**Auto-generated, human-reviewed.** PocketBase can diff the current schema\nagainst the migration history and generate the migration code. Always read\ngenerated migrations before applying — especially destructive operations\n(dropped collections\u002Ffields, type changes that truncate data). The generator\nis faithful; it's your job to be careful.\n\n**Ordering and idempotency.** Migrations apply sequentially, tracked in the\n`_migrations` table. Never edit an applied migration — write a new one.\nKeep migrations small and focused so failures are diagnosable and recovery\nis obvious.\n\n**Data migrations need batches.** Backfilling a new field across millions of\nrecords in one migration can lock or OOM. Write data migrations that process\nin batches with progress logging, and test them against a production-sized\nsnapshot before running for real.\n\n**Superuser-only operations.** Applying migrations requires superuser\u002Fadmin\ncontext — never expose migration endpoints to regular API traffic. In\nproduction, migrations run as part of the deploy process (or a controlled\nmanual step), not on app boot by every instance.\n\n## Practical workflow\n\n1. **Make schema changes in dev** via the dashboard; generate the migration\n   and inspect the code — confirm it does exactly what you intended.\n2. **Commit the migration** with the code that depends on it; the PR review\n   covers both schema and usage together.\n3. **Test the migration** forward (and rollback if supported) against a\n   staging database seeded with realistic data, including edge cases the\n   change affects (nulls, type coercions, unique constraints on existing\n   duplicates).\n4. **For data migrations:** write batch logic, dry-run on a snapshot, then\n   run against production with monitoring; keep it resumable.\n5. **Apply in deploy order:** backup → apply migrations → deploy new code\n   (expand-contract: migrations must be compatible with both old and new\n   code during the transition).\n6. **Verify post-apply:** schema matches expectations, app health checks\n   pass, and the migration history table shows the new entries.\n\n## Common pitfalls\n\n- **Editing applied migrations** — breaks the history chain for every other\n  environment; always add a new migration.\n- **Destructive changes without backup** — dropping a field\u002Fcollection is\n  instant and irreversible; backup first, and prefer soft-deprecate\n  (stop writing, then drop later) for critical data.\n- **Type changes that silently coerce** — text → number on dirty data loses\n  or corrupts values; clean\u002Fvalidate data before the type migration.\n- **Migration\u002Fcode ordering bugs** — deploying code that needs a column\n  before the migration runs (or vice versa); sequence deploys explicitly.\n- **Untested migrations on production-sized data** — works on 100 dev rows,\n   times out or locks on 10M prod rows; test at scale.\n- **Dashboard drift** — someone \"quickly fixes\" prod in the dashboard;\n  institute a rule: all schema changes go through migrations, no exceptions.\n",{"name":5,"category":24,"description":7},"pocketbase","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-pocketbase-migrations",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill pocketbase-migrations",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill pocketbase-migrations",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill pocketbase-migrations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-pocketbase-migrations\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"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},"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":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":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"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":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"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":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"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":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},"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":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},"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",[],[]]