[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75QFQD5KK30C9ANNVF0NAG7":3,"skill-same:01M75QFQD5KK30C9ANNVF0NAG7":52},{"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":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M75QFQD5KK30C9ANNVF0NAG7","database-engineering",null,"Use for relational modeling, constraints, indexes, query plans, transactions, concurrency, migrations, backfills, rollback, and database integrity.","thienty1207\u002FBaron-Engine","thienty1207","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F146645233?v=4","01M75QF9JNYPPSY204ENQ6RKVC","HO THIEN TY","01M75QF9KAFWG523306WPM8AJ4",1,"MIT","https:\u002F\u002Fgithub.com\u002Fthienty1207\u002FBaron-Engine\u002Fblob\u002Fmain\u002Fassets\u002Fcore\u002Fskills\u002Fdatabase-engineering\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: database-engineering\ndescription: Use for relational modeling, constraints, indexes, query plans, transactions, concurrency, migrations, backfills, rollback, and database integrity.\nrouting_triggers: relational schema,foreign key,constraint,primary key,nullability,uniqueness,referential integrity,normalization,denormalization,index,query plan,n+1,transaction,isolation,lock,deadlock,migrate,migration,backfill,rollback,orm usage,repository data access,persistence\nrouting_exclusions: csv transform,kafka ingestion,analytics quality,frontend page,pure http handler,incidental sql\nprofile_affinities: database,backend,fullstack\nrouting_dependencies: superpowers\nrouting_conflicts: mobile-application-engineering,apk-mobile-analysis\nevidence_requirements: schema or query evidence,affected data boundary,migration or integrity impact\nverification_hints: schema constraints,query plan,index,transaction concurrency,rollback or integrity check\n---\n\n# Database Engineering\n\n## Baron Contract\n\nUse when the task changes persistence semantics, relational integrity, query\nbehavior, transaction boundaries, or recoverability. Use this skill for\ndatabase engineering decisions in those areas. Superpowers remains the\nworkflow core. Keep the route narrow:\nload this skill when task evidence or a configured Database profile supports a\nreal database concern, not merely because a file contains a SQL string.\n\n## Modeling\n\n- Identify entities, relationships, ownership, and lifecycle before changing a\n  schema.\n- Give each relation an intentional primary key and document key stability.\n- Use foreign keys, uniqueness, nullability, and check constraints to make\n  invariants executable where the database owns the invariant.\n- Preserve referential integrity and define delete\u002Fupdate behavior explicitly.\n- Prefer normalized models until a measured access pattern justifies\n  intentional denormalization and its consistency plan.\n- Record assumptions about cardinality, optionality, tenant boundaries, and\n  sensitive fields as evidence, not guesses.\n\n## Query Design\n\n- Start from the access pattern and expected result shape; avoid accidental\n  over-fetching and unbounded result sets.\n- Choose indexes from selectivity, ordering, filter combinations, and write\n  cost. Validate composite-index column order against real predicates.\n- Inspect an execution or query plan for slow paths and record the evidence.\n- Bound pagination and make ordering stable; do not hide an N+1 query behind a\n  repository or ORM abstraction.\n- Keep query, pool, timeout, and retry behavior within known resource bounds.\n- Label performance claims as measured, estimated, or unknown.\n\n## Transactions and Concurrency\n\n- State the transaction owner and keep atomic work inside one deliberate\n  boundary.\n- Select isolation and locking for the anomaly being prevented; consider lost\n  updates, write skew, phantom reads, and deadlocks.\n- Keep lock order consistent and define bounded retry behavior for transient\n  conflicts. Make retries idempotent where a write can be repeated.\n- Test concurrent behavior when the task changes a race, isolation level, or\n  lock boundary. Do not claim concurrency safety from a unit test alone.\n\n## Migration and Backfill\n\n- Prefer additive, compatible changes before destructive changes. Use an\n  expand\u002Fcontract window when old and new application versions overlap.\n- Separate schema migration from data backfill when that improves restart and\n  rollback safety. Make backfills bounded, resumable, and observable.\n- Check nullability, defaults, indexes, foreign keys, and lock duration before\n  applying a migration to a large table.\n- Define compatibility windows, rollback or forward-fix behavior, and the\n  validation query before execution.\n- Treat destructive schema changes as high-risk: require confirmation, a\n  recovery path, and proof that protected data is not silently lost.\n\n## Application Boundary\n\n- Keep ORM models, repositories, raw SQL, and transaction ownership aligned\n  with the declared domain boundary.\n- Use raw SQL when it makes a critical query or lock behavior explicit, and\n  cover it with contract or integration evidence.\n- Keep connection and pool lifecycle visible. Do not open hidden transactions\n  across unrelated service boundaries.\n- Preserve API compatibility when persistence changes alter serialized or\n  externally visible behavior.\n\n## Integrity and Recovery\n\n- Validate constraints, representative data, and migration state before and\n  after a change.\n- Protect destructive operations with a dry-run or bounded preview whenever\n  the platform supports it.\n- Record backup\u002Frecovery expectations when data loss or irreversible migration\n  is possible; do not invent backup success.\n- Keep failed or interrupted migration state actionable with the last safe\n  step, affected objects, blocker, and next recovery action.\n\n## Output Contract\n\nReport the affected schema or query boundary, evidence used, invariants,\nperformance\u002Fconcurrency risks, migration and rollback plan, and exact\nverification. Mark unknown database facts explicitly. Include proof and trace\nstatus for high-risk work. Do not execute destructive SQL, live exploitation,\nor irreversible data changes without the existing Baron authority and gates.\n","# Database Engineering\n\n## Baron Contract\n\nUse when the task changes persistence semantics, relational integrity, query\nbehavior, transaction boundaries, or recoverability. Use this skill for\ndatabase engineering decisions in those areas. Superpowers remains the\nworkflow core. Keep the route narrow:\nload this skill when task evidence or a configured Database profile supports a\nreal database concern, not merely because a file contains a SQL string.\n\n## Modeling\n\n- Identify entities, relationships, ownership, and lifecycle before changing a\n  schema.\n- Give each relation an intentional primary key and document key stability.\n- Use foreign keys, uniqueness, nullability, and check constraints to make\n  invariants executable where the database owns the invariant.\n- Preserve referential integrity and define delete\u002Fupdate behavior explicitly.\n- Prefer normalized models until a measured access pattern justifies\n  intentional denormalization and its consistency plan.\n- Record assumptions about cardinality, optionality, tenant boundaries, and\n  sensitive fields as evidence, not guesses.\n\n## Query Design\n\n- Start from the access pattern and expected result shape; avoid accidental\n  over-fetching and unbounded result sets.\n- Choose indexes from selectivity, ordering, filter combinations, and write\n  cost. Validate composite-index column order against real predicates.\n- Inspect an execution or query plan for slow paths and record the evidence.\n- Bound pagination and make ordering stable; do not hide an N+1 query behind a\n  repository or ORM abstraction.\n- Keep query, pool, timeout, and retry behavior within known resource bounds.\n- Label performance claims as measured, estimated, or unknown.\n\n## Transactions and Concurrency\n\n- State the transaction owner and keep atomic work inside one deliberate\n  boundary.\n- Select isolation and locking for the anomaly being prevented; consider lost\n  updates, write skew, phantom reads, and deadlocks.\n- Keep lock order consistent and define bounded retry behavior for transient\n  conflicts. Make retries idempotent where a write can be repeated.\n- Test concurrent behavior when the task changes a race, isolation level, or\n  lock boundary. Do not claim concurrency safety from a unit test alone.\n\n## Migration and Backfill\n\n- Prefer additive, compatible changes before destructive changes. Use an\n  expand\u002Fcontract window when old and new application versions overlap.\n- Separate schema migration from data backfill when that improves restart and\n  rollback safety. Make backfills bounded, resumable, and observable.\n- Check nullability, defaults, indexes, foreign keys, and lock duration before\n  applying a migration to a large table.\n- Define compatibility windows, rollback or forward-fix behavior, and the\n  validation query before execution.\n- Treat destructive schema changes as high-risk: require confirmation, a\n  recovery path, and proof that protected data is not silently lost.\n\n## Application Boundary\n\n- Keep ORM models, repositories, raw SQL, and transaction ownership aligned\n  with the declared domain boundary.\n- Use raw SQL when it makes a critical query or lock behavior explicit, and\n  cover it with contract or integration evidence.\n- Keep connection and pool lifecycle visible. Do not open hidden transactions\n  across unrelated service boundaries.\n- Preserve API compatibility when persistence changes alter serialized or\n  externally visible behavior.\n\n## Integrity and Recovery\n\n- Validate constraints, representative data, and migration state before and\n  after a change.\n- Protect destructive operations with a dry-run or bounded preview whenever\n  the platform supports it.\n- Record backup\u002Frecovery expectations when data loss or irreversible migration\n  is possible; do not invent backup success.\n- Keep failed or interrupted migration state actionable with the last safe\n  step, affected objects, blocker, and next recovery action.\n\n## Output Contract\n\nReport the affected schema or query boundary, evidence used, invariants,\nperformance\u002Fconcurrency risks, migration and rollback plan, and exact\nverification. Mark unknown database facts explicitly. Include proof and trace\nstatus for high-risk work. Do not execute destructive SQL, live exploitation,\nor irreversible data changes without the existing Baron authority and gates.\n",{"name":5,"description":7,"routing_triggers":24,"routing_conflicts":25,"profile_affinities":26,"routing_exclusions":27,"verification_hints":28,"routing_dependencies":29,"evidence_requirements":30},"relational schema,foreign key,constraint,primary key,nullability,uniqueness,referential integrity,normalization,denormalization,index,query plan,n+1,transaction,isolation,lock,deadlock,migrate,migration,backfill,rollback,orm usage,repository data access,persistence","mobile-application-engineering,apk-mobile-analysis","database,backend,fullstack","csv transform,kafka ingestion,analytics quality,frontend page,pure http handler,incidental sql","schema constraints,query plan,index,transaction concurrency,rollback or integrity check","superpowers","schema or query evidence,affected data boundary,migration or integrity impact","main","e25571301c7ce4a5a892e0ed51738b27eef4c9aa","assets\u002Fcore\u002Fskills\u002Fdatabase-engineering",0,"https:\u002F\u002Fgithub.com\u002Fthienty1207\u002FBaron-Engine","https:\u002F\u002Fgithub.com\u002Fthienty1207","2026-10-31 09:54:21",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add thienty1207\u002FBaron-Engine --skill database-engineering",{"tool":44,"command":45},"bunx","bunx skills add thienty1207\u002FBaron-Engine --skill database-engineering",{"tool":47,"command":48},"pnpm","pnpm dlx skills add thienty1207\u002FBaron-Engine --skill database-engineering","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthienty1207\u002FBaron-Engine\u002Fblob\u002Fmain\u002Fassets\u002Fcore\u002Fskills\u002Fdatabase-engineering\u002FSKILL.md",true,[],[53,59,65,70,75,80],{"skillNo":54,"name":55,"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":56,"categories":57,"keywords":58,"publishedAt":19},"01M75QJJS9K7WAX61H9TRNAJYE","legacy-owned","https:\u002F\u002Fgithub.com\u002Fthienty1207\u002FBaron-Engine\u002Fblob\u002Fmain\u002Fcrates\u002Fbaron-adapters\u002Ftests\u002Ffixtures\u002Fphase3\u002Fmanaged-state-v1\u002Fbase\u002Fcodex\u002F.codex\u002Fskills\u002Flegacy-owned\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"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":62,"categories":63,"keywords":64,"publishedAt":19},"01M75QJJ05G8V70QRZWGSS04MQ","legacy","https:\u002F\u002Fgithub.com\u002Fthienty1207\u002FBaron-Engine\u002Fblob\u002Fmain\u002Fcrates\u002Fbaron-adapters\u002Ftests\u002Ffixtures\u002Fphase3\u002Fmanaged-state-v1\u002Fbase\u002Fagent\u002F.baron\u002Fcore\u002Fskills\u002Flegacy\u002FSKILL.md",[],[],{"skillNo":66,"name":61,"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":67,"categories":68,"keywords":69,"publishedAt":19},"01M75QJG7EYG4JQ3Z8AGGP4GZ3","https:\u002F\u002Fgithub.com\u002Fthienty1207\u002FBaron-Engine\u002Fblob\u002Fmain\u002Fcrates\u002Fbaron-adapters\u002Ftests\u002Ffixtures\u002Fphase1\u002Flegacy-managed\u002Fduplicate\u002Fbase\u002Fcodex\u002F.baron\u002Fcore\u002Fskills\u002Flegacy\u002FSKILL.md",[],[],{"skillNo":71,"name":61,"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":72,"categories":73,"keywords":74,"publishedAt":19},"01M75QJEEQNQZY3TSKZNDWWVHN","https:\u002F\u002Fgithub.com\u002Fthienty1207\u002FBaron-Engine\u002Fblob\u002Fmain\u002Fcrates\u002Fbaron-adapters\u002Ftests\u002Ffixtures\u002Fphase1\u002Flegacy-managed\u002Fduplicate\u002Fbase\u002Fagent\u002F.baron\u002Fcore\u002Fskills\u002Flegacy\u002FSKILL.md",[],[],{"skillNo":76,"name":61,"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":77,"categories":78,"keywords":79,"publishedAt":19},"01M75QJDN99D51271N2NQTXSEY","https:\u002F\u002Fgithub.com\u002Fthienty1207\u002FBaron-Engine\u002Fblob\u002Fmain\u002Fcrates\u002Fbaron-adapters\u002Ftests\u002Ffixtures\u002Fphase1\u002Flegacy-managed\u002Fbase\u002Fagent\u002F.baron\u002Fcore\u002Fskills\u002Flegacy\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M75QJ9W4G52EGJF0GHVXNXN9","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fthienty1207\u002FBaron-Engine\u002Fblob\u002Fmain\u002Fassets\u002Fcore\u002Fskills\u002Fsuperpowers\u002Fwriting-skills\u002FSKILL.md",[],[]]