[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MCPQ0SET4KA0GW857X83AP":3,"skill-same:01M6MCPQ0SET4KA0GW857X83AP":103},{"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":26,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":64,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M6MCPQ0SET4KA0GW857X83AP","rust-sqlx-postgres-service",null,"Use when adding, changing, testing, or reviewing Postgres persistence in Rust services that use sqlx, especially when designing migrations, query! or query_as! calls, PgPool injection, transactions, compile-time checked SQL, SQLx offline mode, repository boundaries, or database-backed integration tests.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-sqlx-postgres-service\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"rust","rust sqlx postgres service","service","postgres","when","testing","mode","calls","as","tests","time","query","transactions","injection","repository","offline","compile","database","code","sql","integration tests","2026-11-10 10:12:30",false,"---\nname: rust-sqlx-postgres-service\ndescription: Use when adding, changing, testing, or reviewing Postgres persistence in Rust services that use sqlx, especially when designing migrations, query! or query_as! calls, PgPool injection, transactions, compile-time checked SQL, SQLx offline mode, repository boundaries, or database-backed integration tests.\nlicense: MIT\ncompatibility: Codex, Claude Code, and other Agent Skills-compatible clients.\nmetadata:\n  version: \"0.1.0\"\n  displayName: Rust SQLx Postgres Service\n  category: Rust\n  tags: rust,sqlx,postgres,migrations,persistence\n---\n\n# Rust SQLx Postgres Service\n\nUse this skill to make Rust\u002FPostgres changes schema-first, compile-checked, and\ntestable. Prefer explicit migrations, injected pools, narrow repository\nfunctions, and transaction boundaries that match the business operation.\n\n## Core Workflow\n\n1. Inspect `Cargo.toml`, `migrations\u002F`, `.sqlx\u002F`, `docker-compose.yml`, CI, and\n   existing database helper modules before changing code.\n2. Design the schema change first. Create or update a migration before writing\n   repository code that depends on it.\n3. Prefer `sqlx::query!` and `query_as!` for compile-time checked SQL. Use\n   dynamic SQL only when the query shape truly changes at runtime.\n4. Inject `PgPool`, `PgConnection`, or `Transaction` explicitly. Do not create a\n   pool inside handlers or repository functions.\n5. Keep repository functions small and named by behavior. Return domain types\n   or persistence DTOs instead of leaking raw rows through the app.\n6. Use a transaction for multi-step operations that must commit or roll back\n   together.\n7. Add or update integration tests that run migrations and exercise the public\n   behavior when the change affects API semantics.\n8. Run the bundled preflight script or the repository's equivalent SQLx\u002FCargo\n   CI commands.\n\n## Migration Rules\n\nRead `references\u002Fmigration-safety.md` before changing existing tables or data.\n\nDefault migration preferences:\n\n- Use additive changes first: new nullable columns, new tables, new indexes.\n- Backfill separately from schema creation when a table may be large.\n- Add `not null`, uniqueness, and foreign-key constraints only after existing\n  data satisfies them.\n- Name constraints and indexes deliberately when they will appear in errors or\n  operations.\n- Keep down migrations if the project uses them; otherwise document rollback\n  expectations in the migration review.\n\n## Query Rules\n\nRead `references\u002Fsqlx-patterns.md` for SQLx macro, transaction, and offline\nmode details.\n\n- Prefer bind parameters over string interpolation.\n- Use `fetch_optional` for lookup-by-key operations.\n- Use `execute` for inserts\u002Fupdates where row data is not needed.\n- Use `RETURNING` when the caller needs generated IDs or timestamps.\n- Check affected row counts for updates and deletes that should target exactly\n  one row.\n- Map database uniqueness conflicts to domain errors near the repository edge.\n\n## Verification\n\nRun from the Rust project root when the standard SQLx workflow applies:\n\n```bash\npath\u002Fto\u002Frust-sqlx-postgres-service\u002Fscripts\u002Fsqlx-preflight.sh\n```\n\nThe script is conservative: it checks formatting and tests, inspects SQLx\nmigration state when the CLI and `DATABASE_URL` are available, verifies SQLx\noffline metadata with `cargo sqlx prepare --check` when `.sqlx\u002F` or\n`DATABASE_URL` is available, and only applies migrations when\n`RUST_SQLX_PREFLIGHT_RUN_MIGRATIONS=1` is set.\n\nIf the repository has a different CI command, use that command and explain why.\n\n## Reference Files\n\n- `references\u002Fsqlx-patterns.md`: `query!`, `query_as!`, pools, transactions,\n  feature flags, and offline mode.\n- `references\u002Fmigration-safety.md`: safe migration sequencing and rollout\n  checks.\n","# Rust SQLx Postgres Service\n\nUse this skill to make Rust\u002FPostgres changes schema-first, compile-checked, and\ntestable. Prefer explicit migrations, injected pools, narrow repository\nfunctions, and transaction boundaries that match the business operation.\n\n## Core Workflow\n\n1. Inspect `Cargo.toml`, `migrations\u002F`, `.sqlx\u002F`, `docker-compose.yml`, CI, and\n   existing database helper modules before changing code.\n2. Design the schema change first. Create or update a migration before writing\n   repository code that depends on it.\n3. Prefer `sqlx::query!` and `query_as!` for compile-time checked SQL. Use\n   dynamic SQL only when the query shape truly changes at runtime.\n4. Inject `PgPool`, `PgConnection`, or `Transaction` explicitly. Do not create a\n   pool inside handlers or repository functions.\n5. Keep repository functions small and named by behavior. Return domain types\n   or persistence DTOs instead of leaking raw rows through the app.\n6. Use a transaction for multi-step operations that must commit or roll back\n   together.\n7. Add or update integration tests that run migrations and exercise the public\n   behavior when the change affects API semantics.\n8. Run the bundled preflight script or the repository's equivalent SQLx\u002FCargo\n   CI commands.\n\n## Migration Rules\n\nRead `references\u002Fmigration-safety.md` before changing existing tables or data.\n\nDefault migration preferences:\n\n- Use additive changes first: new nullable columns, new tables, new indexes.\n- Backfill separately from schema creation when a table may be large.\n- Add `not null`, uniqueness, and foreign-key constraints only after existing\n  data satisfies them.\n- Name constraints and indexes deliberately when they will appear in errors or\n  operations.\n- Keep down migrations if the project uses them; otherwise document rollback\n  expectations in the migration review.\n\n## Query Rules\n\nRead `references\u002Fsqlx-patterns.md` for SQLx macro, transaction, and offline\nmode details.\n\n- Prefer bind parameters over string interpolation.\n- Use `fetch_optional` for lookup-by-key operations.\n- Use `execute` for inserts\u002Fupdates where row data is not needed.\n- Use `RETURNING` when the caller needs generated IDs or timestamps.\n- Check affected row counts for updates and deletes that should target exactly\n  one row.\n- Map database uniqueness conflicts to domain errors near the repository edge.\n\n## Verification\n\nRun from the Rust project root when the standard SQLx workflow applies:\n\n```bash\npath\u002Fto\u002Frust-sqlx-postgres-service\u002Fscripts\u002Fsqlx-preflight.sh\n```\n\nThe script is conservative: it checks formatting and tests, inspects SQLx\nmigration state when the CLI and `DATABASE_URL` are available, verifies SQLx\noffline metadata with `cargo sqlx prepare --check` when `.sqlx\u002F` or\n`DATABASE_URL` is available, and only applies migrations when\n`RUST_SQLX_PREFLIGHT_RUN_MIGRATIONS=1` is set.\n\nIf the repository has a different CI command, use that command and explain why.\n\n## Reference Files\n\n- `references\u002Fsqlx-patterns.md`: `query!`, `query_as!`, pools, transactions,\n  feature flags, and offline mode.\n- `references\u002Fmigration-safety.md`: safe migration sequencing and rollout\n  checks.\n",{"name":5,"license":15,"metadata":53,"description":7,"compatibility":58},{"tags":54,"version":55,"category":56,"displayName":57},"rust,sqlx,postgres,migrations,persistence","0.1.0","Rust","Rust SQLx Postgres Service","Codex, Claude Code, and other Agent Skills-compatible clients.","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-sqlx-postgres-service",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-sqlx-postgres-service",{"tool":75,"command":76},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-sqlx-postgres-service",{"tool":78,"command":79},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-sqlx-postgres-service","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-sqlx-postgres-service\u002FSKILL.md",true,[83,89,93,97],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"agents\u002Fopenai.yaml","REFERENCE","参考文档",202,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-sqlx-postgres-service\u002Fagents\u002Fopenai.yaml",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fmigration-safety.md",1130,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-sqlx-postgres-service\u002Freferences\u002Fmigration-safety.md",{"path":94,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fsqlx-patterns.md",2202,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-sqlx-postgres-service\u002Freferences\u002Fsqlx-patterns.md",{"path":98,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002Fsqlx-preflight.sh","SCRIPT","脚本",1162,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-sqlx-postgres-service\u002Fscripts\u002Fsqlx-preflight.sh",[104,113,121,129,137,145],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":112},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":117,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":112},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":125,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":112},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":133,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":112},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":141,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":112},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":149,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":112},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]