[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AVE6FC4E9KFE2Y56J0Y2K2":3,"skill-same:01M7AVE6FC4E9KFE2Y56J0Y2K2":54},{"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":34,"commitSha":35,"skillDirectory":36,"forksCount":14,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M7AVE6FC4E9KFE2Y56J0Y2K2","ci-cd-and-automation",null,"Use when setting up CI\u002FCD pipelines, GitHub Actions workflows, automated testing in CI, or deployment automation — covers pipeline design, caching, secrets management, and release workflows","MinhDuyDEV\u002Fmd-pikit","MinhDuyDEV","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F94704296?v=4","01M7AVDRJB5JM5VG5B6K49X0EZ","Nguyễn Viết Minh Duy","01M7AVDRKDB3JPGHFE4HGK1Z5M",0,"MIT","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fci-cd-and-automation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ci-cd-and-automation\ndescription: Use when setting up CI\u002FCD pipelines, GitHub Actions workflows, automated testing in CI, or deployment automation — covers pipeline design, caching, secrets management, and release workflows\nversion: 1.0.0\ntags: [devops, workflow]\ndependencies: []\nagent_types: [planner, worker, reviewer]\ntools: []\n---\n\n# CI\u002FCD & Automation\n\n## Iron Laws\n\n\u003CEXTREMELY-IMPORTANT>\n- **Honor the project's merge gate.** When the project uses pull requests and required checks, those checks must pass before merge; do not invent a PR workflow for projects that do not use one.\n- **Protect the project's release branch.** If the project promises a deployable `main`\u002Fdefault branch, fix or revert breakage; document a different branch or release contract instead of assuming one.\n- **Cache dependencies, not source.** Key on lockfile. 90% of CI is install.\n- **Secrets via platform store.** Never in workflow YAML. Never in logs.\n- **Fast feedback.** 5-min CI > 30-min CI.\n\u003C\u002FEXTREMELY-IMPORTANT>\n\n## When to Use\n\nSetting up CI for a new project; adding a job (lint, typecheck, test, security, build, deploy); caching slow steps; secrets in CI; release workflow (semver, changelog, npm publish); matrix builds; deploy previews.\n\n## When NOT to Use\n\nManual deploys that the project intentionally keeps outside CI; one-off scripts (use Make or a focused script); long-running batch jobs (use a queue, not CI); a workflow that runs > 30 min (split it).\n\n## Pipeline Anatomy\n\n```\n[Trigger] → [Setup + Cache] → [declared checks: lint\u002Ftypecheck\u002Ftest\u002Fbuild] → [optional deploy]\n```\n\nSet budgets from the project's baseline; split jobs when measured setup or feedback time warrants it.\n\n## Caching\n\n```yaml\n- uses: actions\u002Fcache@v3\n  with:\n    path: |\n      ~\u002F.npm\n      node_modules\n    key: ${{ runner.os }}-node-${{ hashFiles('**\u002Fpackage-lock.json') }}\n    restore-keys: |\n      ${{ runner.os }}-node-\n```\n\nKey on the lockfile hash, restore-key as fallback. Cache the install dir, not the source.\n\n## Secrets\n\n```yaml\n- name: Deploy\n  env:\n    API_TOKEN: ${{ secrets.API_TOKEN }}\n  run: .\u002Fdeploy.sh\n```\n\n`secrets.*` in env. Never `echo` the secret. Never `set -x` with secrets. Use `::add-mask::` if a secret might leak.\n\n## Matrix Builds\n\n```yaml\nstrategy:\n  matrix:\n    node: [18, 20, 22]\n    os: [ubuntu-latest, macos-latest]\n```\n\nDon't test dead versions. Update when the floor moves.\n\n## Deploy Strategies\n\n| Strategy | When |\n|---|---|\n| Rolling | Default for most services |\n| Blue\u002Fgreen | Zero-downtime, canary-able |\n| Canary | Small % of traffic, ramp |\n| Recreate | Acceptable downtime, stateless |\n\n## Release Workflow\n\n```\nPR merge → [CI: tests + build] → [Release: bump version] → [Publish] → [Deploy]\n```\n\nUse release-please or similar. Manual bumps = drift = bugs.\n\n## Common Mistakes\n\nCI only on main (bugs caught late); no cache; secrets in logs; one giant job; \"skip ci\" bypass; deploy on every PR (preview instead); no artifact upload; matrix with dead versions; manual release; flaky tests not quarantined; no notifications.\n\n## Red Flags\n\nCI only on main; no cache (5+ min install); secrets visible in logs; single big job; \"skip ci\" used; deploy on PR; no notifications; flaky tests pass\u002Ffail randomly; matrix with 3-year-old versions; \"the CI is broken, just push to main\".\n\n## Anti-Patterns\n\n**CI on main only**; **no cache**; **secrets in logs**; **one big job**; **deploy on PR**; **manual release**; **\"skip ci\"**; **no notifications**.\n","# CI\u002FCD & Automation\n\n## Iron Laws\n\n\u003CEXTREMELY-IMPORTANT>\n- **Honor the project's merge gate.** When the project uses pull requests and required checks, those checks must pass before merge; do not invent a PR workflow for projects that do not use one.\n- **Protect the project's release branch.** If the project promises a deployable `main`\u002Fdefault branch, fix or revert breakage; document a different branch or release contract instead of assuming one.\n- **Cache dependencies, not source.** Key on lockfile. 90% of CI is install.\n- **Secrets via platform store.** Never in workflow YAML. Never in logs.\n- **Fast feedback.** 5-min CI > 30-min CI.\n\u003C\u002FEXTREMELY-IMPORTANT>\n\n## When to Use\n\nSetting up CI for a new project; adding a job (lint, typecheck, test, security, build, deploy); caching slow steps; secrets in CI; release workflow (semver, changelog, npm publish); matrix builds; deploy previews.\n\n## When NOT to Use\n\nManual deploys that the project intentionally keeps outside CI; one-off scripts (use Make or a focused script); long-running batch jobs (use a queue, not CI); a workflow that runs > 30 min (split it).\n\n## Pipeline Anatomy\n\n```\n[Trigger] → [Setup + Cache] → [declared checks: lint\u002Ftypecheck\u002Ftest\u002Fbuild] → [optional deploy]\n```\n\nSet budgets from the project's baseline; split jobs when measured setup or feedback time warrants it.\n\n## Caching\n\n```yaml\n- uses: actions\u002Fcache@v3\n  with:\n    path: |\n      ~\u002F.npm\n      node_modules\n    key: ${{ runner.os }}-node-${{ hashFiles('**\u002Fpackage-lock.json') }}\n    restore-keys: |\n      ${{ runner.os }}-node-\n```\n\nKey on the lockfile hash, restore-key as fallback. Cache the install dir, not the source.\n\n## Secrets\n\n```yaml\n- name: Deploy\n  env:\n    API_TOKEN: ${{ secrets.API_TOKEN }}\n  run: .\u002Fdeploy.sh\n```\n\n`secrets.*` in env. Never `echo` the secret. Never `set -x` with secrets. Use `::add-mask::` if a secret might leak.\n\n## Matrix Builds\n\n```yaml\nstrategy:\n  matrix:\n    node: [18, 20, 22]\n    os: [ubuntu-latest, macos-latest]\n```\n\nDon't test dead versions. Update when the floor moves.\n\n## Deploy Strategies\n\n| Strategy | When |\n|---|---|\n| Rolling | Default for most services |\n| Blue\u002Fgreen | Zero-downtime, canary-able |\n| Canary | Small % of traffic, ramp |\n| Recreate | Acceptable downtime, stateless |\n\n## Release Workflow\n\n```\nPR merge → [CI: tests + build] → [Release: bump version] → [Publish] → [Deploy]\n```\n\nUse release-please or similar. Manual bumps = drift = bugs.\n\n## Common Mistakes\n\nCI only on main (bugs caught late); no cache; secrets in logs; one giant job; \"skip ci\" bypass; deploy on every PR (preview instead); no artifact upload; matrix with dead versions; manual release; flaky tests not quarantined; no notifications.\n\n## Red Flags\n\nCI only on main; no cache (5+ min install); secrets visible in logs; single big job; \"skip ci\" used; deploy on PR; no notifications; flaky tests pass\u002Ffail randomly; matrix with 3-year-old versions; \"the CI is broken, just push to main\".\n\n## Anti-Patterns\n\n**CI on main only**; **no cache**; **secrets in logs**; **one big job**; **deploy on PR**; **manual release**; **\"skip ci\"**; **no notifications**.\n",{"name":5,"tags":24,"tools":27,"version":28,"agent_types":29,"description":7,"dependencies":33},[25,26],"devops","workflow",[],"1.0.0",[30,31,32],"planner","worker","reviewer",[],"main","01207a96514af9f9c4d7d6cb594b936c6a9ddb10",".pi\u002Fskills\u002Fci-cd-and-automation","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV","2026-08-20 02:00:33",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add MinhDuyDEV\u002Fmd-pikit --skill ci-cd-and-automation",{"tool":46,"command":47},"bunx","bunx skills add MinhDuyDEV\u002Fmd-pikit --skill ci-cd-and-automation",{"tool":49,"command":50},"pnpm","pnpm dlx skills add MinhDuyDEV\u002Fmd-pikit --skill ci-cd-and-automation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fci-cd-and-automation\u002FSKILL.md",true,[],[55,62,69,76,83,90],{"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":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7AVGJR1RSRVA3VJT8ZW4Y27","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment - applies TDD to process documentation by testing with subagents before writing, iterating until bulletproof against rationalization. Includes complete pressure testing methodology.","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7AVGE076BNB3J7JDBGAKD2T","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7AVGAYJ6APXRB9QWBG7482S","typescript-coding-standards","Use when writing, refactoring, or reviewing TypeScript code that needs strong domain modeling, typed errors, schema parsing, safe adapters, test seams, or maintainable module boundaries.","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Ftypescript-coding-standards\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7AVG8CE5BTR2CRFPHHVJCJZ","test-driven-development","Use when implementing a feature, bugfix, or behavior-changing refactor — require a failing behavior test before production code, then make the smallest change that passes.","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7AVG5FJH3WTG9XR2G0608ND","source-driven-development","Use when unfamiliar libraries, dependency internals, external APIs, framework behavior, migrations, or current ecosystem guidance require official documentation, version-matched source, read the tests, and cited evidence.","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fsource-driven-development\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7AVG37PZ77CF35KAR6E93ZJ","security-and-hardening","Use when auditing security, implementing authentication or authorization, handling secrets, or validating data across external trust boundaries.","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fsecurity-and-hardening\u002FSKILL.md",[],[]]