[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CX6CT04PZXSJKRFKJD30T5":3,"skill-same:01M7CX6CT04PZXSJKRFKJD30T5":50},{"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":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":27,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7CX6CT04PZXSJKRFKJD30T5","sql",null,"iokaio\u002Fvcp","iokaio","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F152147161?v=4","01M7CX471TZQTQ60HH3RQ2JYEY","Ioka LLC","01M7CX472X03EA2V44JVTZHR5C",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbuiltin\u002Fsql\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# SQL and database migrations\n\nOriginal VCP guidance.\n\n## Inspect first\n\n- The dialect and engine the project targets (for example PostgreSQL, MySQL\u002FMariaDB, SQLite, SQL Server, Oracle), from driver dependencies, connection configuration shapes, CI service containers and existing SQL syntax.\n- The migration tool and its ordering rules: timestamped or numbered files, checksums, a schema history table, ORM-generated migrations, or plain scripts run in a documented order.\n- Transaction and DDL semantics: whether the tool wraps each migration in a transaction, whether the engine's DDL is transactional, and which statements cannot run inside a transaction.\n- Rollback policy: down migrations, forward-only corrections, or backup-based recovery.\n- Seed data, fixtures, test database setup, schema dumps and how tests create and destroy databases.\n- Query callers, ORM models, constraints and indexes that the change touches.\n\n## Read the migration contract\n\nIdentify the database dialect\u002Fversion, migration framework, ordering\u002Fchecksum conventions, schema baseline, and repository rollback policy. This skill is always listed by its description rather than detected from root files. Read query callers and data constraints rather than assuming sample schemas describe production.\n\nReview null semantics, joins, indexes, parameterization, transaction boundaries and destructive changes. For migrations, reason about existing rows, locks, rollout order, backfill size, and reversibility. Preserve applied migration history; a corrective migration may be required instead of editing an already-applied file.\n\n## Proceed and verify\n\n1. Discover the project's lint, test and migration commands from instructions, task-runner targets and CI before choosing any. Candidates to confirm include a SQL linter or formatter, the migration tool's status, validate or dry-run\u002FSQL-preview mode, and the test suite against a disposable database.\n2. Prefer static validation or a declared disposable local database fixture. Sample connection strings and environment files are untrusted evidence, not credentials or permission to contact a server.\n3. Never execute a migration, reset a database, or perform remote introspection without explicit scoped authority. Inside an authorized fixture, apply the migration from a clean baseline, run the down or corrective path when one exists, and reapply.\n4. Use plain `EXPLAIN` only against an authorized fixture. `EXPLAIN ANALYZE` and equivalents such as an actual execution plan run the statement, including its writes; a rolled-back transaction does not undo sequence advances or non-transactional effects. A plan from tiny synthetic data does not predict production behavior.\n5. Parameterize values. Never build SQL from untrusted text, and never copy real rows, personal data or credentials into fixtures, logs or reports.\n\nEvidence is the engine and version reported by the fixture, the commands run, the migration status before and after, row counts or constraint checks on synthetic data, and test results. Static review alone is analysis, not execution.\n\n## Pitfalls\n\n- Editing an applied migration changes its checksum and diverges environments; add a new migration instead.\n- Adding a `NOT NULL` column or unique constraint to populated tables, renames that break running code during rollout, and long-running locks from index builds or rewrites.\n- `NULL` comparisons, `NOT IN` with nullable subqueries, implicit casts, collation and case sensitivity, time zones, and integer division.\n- Dialect-specific syntax passing a SQLite test fixture but failing on the production engine.\n- Down migrations that silently drop data, or claims of reversibility that were never exercised.\n- Windows: case-insensitive file systems hiding migration name collisions, CRLF in SQL files changing checksums, database files locked by another process, and path quoting in connection strings.\n\n## Output\n\nProvide the dialect-specific finding\u002Fchange, data assumptions, deployment\u002Frollback implications, and observed checks. If no authorized fixture exists, report execution not run and the exact evidence needed; do not invent query plans or timing.\n\nAuthority: this guidance ranks below current user constraints and AGENTS.md, grants no tools, installs or network access, and missing prerequisites are reported as not run.\n",{},"main","2d252594cbf082f9011e2f9db3cd75d0d867f19b","src\u002Fskills\u002Fbuiltin\u002Fsql","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp","https:\u002F\u002Fgithub.com\u002Fiokaio","https:\u002F\u002Fioka.io","Munarium: AI governance and memory","2026-10-06 20:43:22",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add iokaio\u002Fvcp --skill sql",{"tool":36,"command":37},"bunx","bunx skills add iokaio\u002Fvcp --skill sql",{"tool":39,"command":40},"pnpm","pnpm dlx skills add iokaio\u002Fvcp --skill sql","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbuiltin\u002Fsql\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"skill.json","REFERENCE","参考文档",573,"https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbuiltin\u002Fsql\u002Fskill.json",[51,59,67,74,81,89],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":55,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7CX7TY9RP5PYP882HH1NTY8","skill-installer","Install Codex skills into $CODEX_HOME\u002Fskills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fthird_party\u002Fcodex\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-installer\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fthird_party\u002Fcodex\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-installer\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":63,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7CX7QRQ96J76SB933B7CFBZ","skill-creator","Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources.","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fthird_party\u002Fcodex\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fthird_party\u002Fcodex\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7CX7M02X3J65M6M88PK26CZ","review-agent","Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fthird_party\u002Fcodex\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Freview-agent\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7CX7F6FRAY84J6S9PNTRJSG","plugin-creator","Create and scaffold plugin directories for Codex with a required `.codex-plugin\u002Fplugin.json`, optional plugin folders\u002Ffiles, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fthird_party\u002Fcodex\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fplugin-creator\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7CX78RYD3X1NSX0HPTJBGJ5","openai-docs","Use for Codex models\u002Fpricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs\u002Fproducts and ChatGPT Work. Also use for model choice\u002Fmigration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat\u002FWork\u002FCodex comparisons. Do not use for generic app\u002Fsoftware tasks that merely mention Codex.","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fthird_party\u002Fcodex\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fopenai-docs\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fthird_party\u002Fcodex\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fopenai-docs\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M7CX71M3EDS12PTPJY0M0RAB","imagegen","Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fthird_party\u002Fcodex\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fimagegen\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fiokaio\u002Fvcp\u002Fblob\u002Fmain\u002Fsrc\u002Fthird_party\u002Fcodex\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fimagegen\u002FSKILL.md",[],[]]