[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GK7R5N3F18QYBMMN38SAHW":3,"skill-same:01M6GK7R5N3F18QYBMMN38SAHW":84},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6GK7R5N3F18QYBMMN38SAHW","docker-discipline",null,"Use whenever creating or modifying Dockerfiles, compose files, or deployment configs — any change to how a project builds or runs in containers. This is the discipline skill — for Docker behavior lookups and troubleshooting, use docker instead.","dekoza\u002Foh-my-slop","dekoza","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F210980?v=4","01M6GK5KFK2SJQ364J2SR2P57S","Dominik Kozaczko","01M6GK5KP5PAA51JVTXYXHN66N",4,"MIT","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fpractice\u002Fdocker-discipline\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"docker","discipline","docker discipline","containers","change","deployment","how","troubleshooting","dockerfiles","behavior","use","compose","files","project","2026-11-10 10:12:30",false,"---\nname: docker-discipline\ndescription: >\n  Use whenever creating or modifying Dockerfiles, compose files, or deployment\n  configs — any change to how a project builds or runs in containers. This is\n  the discipline skill — for Docker behavior lookups and troubleshooting, use\n  docker instead.\nlicense: MIT\n---\n\n# Docker Discipline\n\nRules for authoring Docker configs. Every rule traces to a real production issue.\nFor how Docker itself behaves (networking, storage, BuildKit, registries,\ndiagnosis), load the `docker` skill — it owns reference and troubleshooting.\n\n## Resource lifecycle (critical)\n\nBefore creating test, review or CI resources, apply the\n[resource lifecycle](references\u002Fresource-lifecycle.md): establish ownership and bounded\nreuse, register exact-scope cleanup, and verify closeout on successful and failed exits.\nWhen authoring CI, include failure\u002Fcancellation verification and an owned stale-run\nrecovery path. Completion requires receipts for disposal or explicit retained obligations.\n\n## Dockerfile Rules\n\n### Non-Root User, UID-Matched (Critical)\n\n**Match the container user's UID to the host user** to avoid bind-mount permission issues.\n\n```dockerfile\n# ✅ Correct: Match host UID\nARG HOST_UID=1000\nRUN groupadd -g ${HOST_UID} app && \\\n    useradd -u ${HOST_UID} -g app -m app\nUSER app\n\n# ❌ Forbidden: Hardcoded root or mismatched UID\nUSER 1001  # Won't match host, causes permission errors\n```\n\n**Place the `USER` directive AFTER all `RUN`\u002F`COPY` commands** in the Dockerfile.\n\n### Multi-Stage Builds\n\nKeep build dependencies out of the runtime image: build in one stage, copy the\nartifacts into a slim runtime stage that runs as the non-root user above.\n\n### Secrets Never in ARG or ENV\n\n`ARG` and `ENV` values persist in image history and layer metadata. Pass\nbuild-time secrets with BuildKit mounts instead:\n\n```dockerfile\nRUN --mount=type=secret,id=pypi_token uv sync --frozen\n```\n\nBuild with `docker build --secret id=pypi_token,src=...`; use `--ssh` with\n`RUN --mount=type=ssh` for private git dependencies.\n\n### .dockerignore Before the First Build\n\nCreate `.dockerignore` before building anything. Oversized or accidental build\ncontexts slow builds, break layer caches, and leak secrets (`.env`, `.git`,\nlocal artifacts) into images.\n\n## Docker Compose Rules\n\n### Port Arrays Merge, They Don't Replace\n\nIn `docker-compose.override.yml`, a `ports:` list is **appended** to the base file's list — not replaced.\n\n```yaml\n# base compose.yml\nservices:\n  web:\n    ports:\n      - \"8000:8000\"\n\n# override (this ADDS port 8001, doesn't replace 8000)\nservices:\n  web:\n    ports:\n      - \"8001:8000\"\n```\n\n**To change a port binding**, either:\n1. Edit the base file directly\n2. Create a standalone compose file passed with `-f` instead of relying on override merge\n\n### Readiness Is Explicit\n\n`depends_on` short syntax only orders startup — it says nothing about the\ndependency being *ready*. When readiness matters, give the dependency a\nhealthcheck and depend with `condition: service_healthy` (see the test compose\nbelow for the full pattern).\n\n### Test Infrastructure: Separate Compose File\n\nTest infrastructure **MUST** use a separate `compose.test.yml` — profiles do NOT provide lifecycle independence.\n\n```yaml\n# compose.test.yml\nservices:\n  testdb:\n    image: postgres:16\n    environment:\n      POSTGRES_DB: test_db\n      POSTGRES_USER: test_user\n      POSTGRES_PASSWORD: test_password\n    healthcheck:\n      test: [\"CMD-SHELL\", \"pg_isready -U test_user -d test_db\"]\n      interval: 2s\n      timeout: 5s\n      retries: 10\n    networks:\n      - test-net\n    # NO ports — intentionally not exposed\n\n  tests:\n    build:\n      context: .\n      dockerfile: Dockerfile.test\n    depends_on:\n      testdb:\n        condition: service_healthy\n    environment:\n      DATABASE_URL: postgresql:\u002F\u002Ftest_user:test_password@testdb:5432\u002Ftest_db\n    volumes:\n      # Preserve dependencies installed in the image; mount only source.\n      - .\u002Fsrc:\u002Fapp\u002Fsrc\n      - .\u002Ftests:\u002Fapp\u002Ftests\n    networks:\n      - test-net\n    # NO ports — intentionally not exposed\n\nnetworks:\n  test-net:\n    driver: bridge\n```\n\n### Lifecycle Independence\n\n- `docker compose down` (dev) **MUST NOT** affect tests\n- `docker compose -f compose.test.yml down` (tests) **MUST NOT** affect dev\n\n### Profiles for Variants, Files for Lifecycles\n\nUse profiles for configuration variants within one stack. **Exception**: test\ninfrastructure MUST use a separate `compose.test.yml` (above) — profiles do not\ngive it an independent lifecycle.\n\n## References\n\n- [Gotchas & Practical Guidance](references\u002Fgotchas.md) — Common pitfalls: bind mounts overriding build artifacts, `uv run` implicit sync, volume mount ordering, non-root UID mismatch, healthcheck timing, network namespace confusion, build cache invalidation, environment variable precedence.\n\n## Task Routing\n\n- Resource ownership, per-run environments, cache retention, teardown or CI crash recovery -> `references\u002Fresource-lifecycle.md`\n- Dockerfile structure, non-root user, secrets, multi-stage -> This SKILL.md (main content)\n- Build cache optimization, COPY ordering -> `references\u002Fgotchas.md` (Build Cache Invalidation section)\n- Volume mount issues, bind mount overrides -> `references\u002Fgotchas.md` (Bind Mounts Override Build Artifacts section)\n- `uv run` behavior, implicit sync -> `references\u002Fgotchas.md` (uv run Does Implicit Sync section)\n- Healthcheck configuration, depends_on -> `references\u002Fgotchas.md` (Healthcheck Timing section)\n- Network configuration, service communication -> `references\u002Fgotchas.md` (Network Namespace Confusion section)\n- Environment variables, env_file vs environment -> `references\u002Fgotchas.md` (Environment Variable Precedence section)\n- Volume mount ordering, named vs bind mounts -> `references\u002Fgotchas.md` (Volume Mount Ordering section)\n- How Docker behaves, troubleshooting, boundary questions -> load the `docker` skill\n","# Docker Discipline\n\nRules for authoring Docker configs. Every rule traces to a real production issue.\nFor how Docker itself behaves (networking, storage, BuildKit, registries,\ndiagnosis), load the `docker` skill — it owns reference and troubleshooting.\n\n## Resource lifecycle (critical)\n\nBefore creating test, review or CI resources, apply the\n[resource lifecycle](references\u002Fresource-lifecycle.md): establish ownership and bounded\nreuse, register exact-scope cleanup, and verify closeout on successful and failed exits.\nWhen authoring CI, include failure\u002Fcancellation verification and an owned stale-run\nrecovery path. Completion requires receipts for disposal or explicit retained obligations.\n\n## Dockerfile Rules\n\n### Non-Root User, UID-Matched (Critical)\n\n**Match the container user's UID to the host user** to avoid bind-mount permission issues.\n\n```dockerfile\n# ✅ Correct: Match host UID\nARG HOST_UID=1000\nRUN groupadd -g ${HOST_UID} app && \\\n    useradd -u ${HOST_UID} -g app -m app\nUSER app\n\n# ❌ Forbidden: Hardcoded root or mismatched UID\nUSER 1001  # Won't match host, causes permission errors\n```\n\n**Place the `USER` directive AFTER all `RUN`\u002F`COPY` commands** in the Dockerfile.\n\n### Multi-Stage Builds\n\nKeep build dependencies out of the runtime image: build in one stage, copy the\nartifacts into a slim runtime stage that runs as the non-root user above.\n\n### Secrets Never in ARG or ENV\n\n`ARG` and `ENV` values persist in image history and layer metadata. Pass\nbuild-time secrets with BuildKit mounts instead:\n\n```dockerfile\nRUN --mount=type=secret,id=pypi_token uv sync --frozen\n```\n\nBuild with `docker build --secret id=pypi_token,src=...`; use `--ssh` with\n`RUN --mount=type=ssh` for private git dependencies.\n\n### .dockerignore Before the First Build\n\nCreate `.dockerignore` before building anything. Oversized or accidental build\ncontexts slow builds, break layer caches, and leak secrets (`.env`, `.git`,\nlocal artifacts) into images.\n\n## Docker Compose Rules\n\n### Port Arrays Merge, They Don't Replace\n\nIn `docker-compose.override.yml`, a `ports:` list is **appended** to the base file's list — not replaced.\n\n```yaml\n# base compose.yml\nservices:\n  web:\n    ports:\n      - \"8000:8000\"\n\n# override (this ADDS port 8001, doesn't replace 8000)\nservices:\n  web:\n    ports:\n      - \"8001:8000\"\n```\n\n**To change a port binding**, either:\n1. Edit the base file directly\n2. Create a standalone compose file passed with `-f` instead of relying on override merge\n\n### Readiness Is Explicit\n\n`depends_on` short syntax only orders startup — it says nothing about the\ndependency being *ready*. When readiness matters, give the dependency a\nhealthcheck and depend with `condition: service_healthy` (see the test compose\nbelow for the full pattern).\n\n### Test Infrastructure: Separate Compose File\n\nTest infrastructure **MUST** use a separate `compose.test.yml` — profiles do NOT provide lifecycle independence.\n\n```yaml\n# compose.test.yml\nservices:\n  testdb:\n    image: postgres:16\n    environment:\n      POSTGRES_DB: test_db\n      POSTGRES_USER: test_user\n      POSTGRES_PASSWORD: test_password\n    healthcheck:\n      test: [\"CMD-SHELL\", \"pg_isready -U test_user -d test_db\"]\n      interval: 2s\n      timeout: 5s\n      retries: 10\n    networks:\n      - test-net\n    # NO ports — intentionally not exposed\n\n  tests:\n    build:\n      context: .\n      dockerfile: Dockerfile.test\n    depends_on:\n      testdb:\n        condition: service_healthy\n    environment:\n      DATABASE_URL: postgresql:\u002F\u002Ftest_user:test_password@testdb:5432\u002Ftest_db\n    volumes:\n      # Preserve dependencies installed in the image; mount only source.\n      - .\u002Fsrc:\u002Fapp\u002Fsrc\n      - .\u002Ftests:\u002Fapp\u002Ftests\n    networks:\n      - test-net\n    # NO ports — intentionally not exposed\n\nnetworks:\n  test-net:\n    driver: bridge\n```\n\n### Lifecycle Independence\n\n- `docker compose down` (dev) **MUST NOT** affect tests\n- `docker compose -f compose.test.yml down` (tests) **MUST NOT** affect dev\n\n### Profiles for Variants, Files for Lifecycles\n\nUse profiles for configuration variants within one stack. **Exception**: test\ninfrastructure MUST use a separate `compose.test.yml` (above) — profiles do not\ngive it an independent lifecycle.\n\n## References\n\n- [Gotchas & Practical Guidance](references\u002Fgotchas.md) — Common pitfalls: bind mounts overriding build artifacts, `uv run` implicit sync, volume mount ordering, non-root UID mismatch, healthcheck timing, network namespace confusion, build cache invalidation, environment variable precedence.\n\n## Task Routing\n\n- Resource ownership, per-run environments, cache retention, teardown or CI crash recovery -> `references\u002Fresource-lifecycle.md`\n- Dockerfile structure, non-root user, secrets, multi-stage -> This SKILL.md (main content)\n- Build cache optimization, COPY ordering -> `references\u002Fgotchas.md` (Build Cache Invalidation section)\n- Volume mount issues, bind mount overrides -> `references\u002Fgotchas.md` (Bind Mounts Override Build Artifacts section)\n- `uv run` behavior, implicit sync -> `references\u002Fgotchas.md` (uv run Does Implicit Sync section)\n- Healthcheck configuration, depends_on -> `references\u002Fgotchas.md` (Healthcheck Timing section)\n- Network configuration, service communication -> `references\u002Fgotchas.md` (Network Namespace Confusion section)\n- Environment variables, env_file vs environment -> `references\u002Fgotchas.md` (Environment Variable Precedence section)\n- Volume mount ordering, named vs bind mounts -> `references\u002Fgotchas.md` (Volume Mount Ordering section)\n- How Docker behaves, troubleshooting, boundary questions -> load the `docker` skill\n",{"name":5,"license":15,"description":38},"Use whenever creating or modifying Dockerfiles, compose files, or deployment configs — any change to how a project builds or runs in containers. This is the discipline skill — for Docker behavior lookups and troubleshooting, use docker instead.\n","main","8c687fa2c077e1cd3ff8e5b2912c28fd443bc675","skills\u002Fpractice\u002Fdocker-discipline",0,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop","https:\u002F\u002Fgithub.com\u002Fdekoza","https:\u002F\u002Fqoto.org\u002F@minder","Plz send BTC: 32UQpSVbcYXdfZnbyPuPvYi7rXvHcueqi1","2026-10-28 00:52:41",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add dekoza\u002Foh-my-slop --skill docker-discipline",{"tool":54,"command":55},"bunx","bunx skills add dekoza\u002Foh-my-slop --skill docker-discipline",{"tool":57,"command":58},"pnpm","pnpm dlx skills add dekoza\u002Foh-my-slop --skill docker-discipline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fpractice\u002Fdocker-discipline\u002FSKILL.md",true,[62,68,72,76,80],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"evals\u002Fevals.json","REFERENCE","参考文档",5974,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fpractice\u002Fdocker-discipline\u002Fevals\u002Fevals.json",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"evals\u002FREADME.md",5915,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fpractice\u002Fdocker-discipline\u002Fevals\u002FREADME.md",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Ftrigger-evals.json",3101,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fpractice\u002Fdocker-discipline\u002Fevals\u002Ftrigger-evals.json",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fgotchas.md",6686,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fpractice\u002Fdocker-discipline\u002Freferences\u002Fgotchas.md",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fresource-lifecycle.md",5159,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fpractice\u002Fdocker-discipline\u002Freferences\u002Fresource-lifecycle.md",[85,111,128,145,159,183],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":89,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":33},"01M6GKGSV5GC23S7CZ8XMXQF7C","wizard","Generate an interactive bash wizard that walks a human through a manual procedure — third-party setup, credential provisioning, a one-off migration — opening URLs, capturing values, confirming each step, and writing .env files and CI secrets (GitHub and Gitea\u002FForgejo Actions).","Unlicense","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fwizard\u002FSKILL.md",[],[87,93,94,95,96,97,98,99,100,31,101,102,103,104,105,106,107,108,109,110],"true","interactive","manual","gitea","env","third-party","human","credential","migration","Bash","secrets","provisioning","ci","actions","generate","setup","github","writing",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":33},"01M6GKFC9YYQ4CC6N7YAW7BWW1","restore-test-pyramid","Analyze the project's E2E suite and push every assertion that doesn't need a real browser down to a faster integration or unit test, proving each migration honest before thinning E2E.","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Frestore-test-pyramid\u002FSKILL.md",[],[118,119,120,121,122,101,123,32,124,125,126,127,93],"restore test pyramid","test","restore","real browser","analyze","push","unit","e2e","integration","browser",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":89,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":33},"01M6GKEW0YH8ZSSN1PT543TDNZ","ponytail-debt","Harvest SHORTCUT markers from the codebase and report them grouped by file, flagging any missing upgrade paths.","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fponytail-debt\u002FSKILL.md",[],[135,136,137,93,138,139,140,141,142,143,144],"ponytail","ponytail debt","missing","shortcut","paths","markers","upgrade","file","report","harvest",{"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":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":33},"01M6GKE8R93K0Z9XCM0MVCMS82","humanify","Repair an inherited or human-blocked ticket for agent implementation, or finish its explicit human-only outcome.","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fhumanify\u002FSKILL.md",[],[147,152,93,153,154,155,99,156,157,158],"finish","ticket","agent implementation","repair","implementation","only","outcome",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":33},"01M6GKDQYP2QQZCVE34AAJW7KC","fix-pr","Repair an existing pull request's review findings and target-branch conflicts, verify the result, and update the same open PR.","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Ffix-pr\u002FSKILL.md",[],[166,167,168,169,170,171,172,173,174,175,176,177,178,179,93,180,181,155,182,20],"pr","fix","fix pr","testing","open","verify","pull","update","pull request","merge","workflow","tdd","review","branch","merge-conflicts","review findings","conflicts",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":89,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":33},"01M6GKDMR2V617S1V8APDT4R2B","feature-milestones","Reconstruct a fragmented backlog as finishable feature milestones with explicit delivery boundaries and an approval-gated tracker update.","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Ffeature-milestones\u002FSKILL.md",[],[190,191,173,93,192,193,194,195,196,197,198],"feature","feature milestones","with","as","delivery","backlog","gated","tracker","approval"]