[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78F792SBYJXM79KGE33PD40":3,"skill-same:01M78F792SBYJXM79KGE33PD40":69},{"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":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M78F792SBYJXM79KGE33PD40","ci-cd",null,"poppyTM\u002Foride","poppyTM","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F339400917?v=4","01M78F6YNKFR5S5JQR27X9F09Z","Poppy Team","01M78F6YP8ZZTRES9X8Q2ZAD21",1,"MIT","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# CI\u002FCD Pipeline Design, Hardening & Reproducibility\n\n## Purpose\nDesign, implement, and audit continuous integration and delivery pipelines (GitHub Actions, GitLab CI) so every validation is reproducible from a clean checkout, with hermetic dependencies, safe dependency caching, fail-fast contract gates, and secret-free logs.\n\n## Use when\n- Creating or modifying CI workflows: build, lint, test, security scan, artifact publish.\n- Debugging flaky or slow pipelines: non-deterministic failures, cache poisoning, runner drift.\n- Enforcing merge gates: required checks, branch protection, evidence-backed promotion from staging to production.\n- Auditing pipeline security: secret handling, OIDC authentication, third-party action pinning.\n\n## Do not use when\n- Writing application code or fixing a product bug (use the language or domain skill; CI only verifies it).\n- Building container images beyond what the pipeline needs (use `containers` for image design).\n- Cutting a versioned release with changelogs, signing, and rollback plans (use `release-engineering`).\n- Managing branches, commits, and pull request review flow (use `git-workflow`).\n\n## Required context\n- CI platform and runner fleet: GitHub Actions `ubuntu-24.04` runners or GitLab SaaS `saas-linux-medium-amd64`, plus self-hosted runner labels if any.\n- Workflow definitions: `.github\u002Fworkflows\u002F*.yaml` or `.gitlab-ci.yml` at the pinned commit under change.\n- Merge-gate policy: required check names, branch protection rules, environment approvers for staging and production.\n- Secret inventory: which secrets exist (names only), their owning environment, and rotation dates.\n\n## Procedure\n1. **Pin the execution environment**:\n   - Pin runner images by digest or dated label (`ubuntu-24.04`, never `latest`); pin third-party actions by full commit SHA (`actions\u002Fcheckout@11bd719`).\n   - Pin language toolchains with lockfiles checked into the repo (`go.mod`\u002F`go.sum`, `package-lock.json`, `Cargo.lock`) and verify with `go mod verify`, `npm ci`, `cargo fetch --locked` in the job.\n2. **Order gates fail-fast by cost**:\n   - Stage 1 (under 90 seconds): formatting, lint, secret scan (`gitleaks detect --no-git`), lockfile consistency.\n   - Stage 2 (under 10 minutes): unit and integration tests with `go test .\u002F...`, `pytest -q`, `npm test`.\n   - Stage 3: SAST\u002Fdependency audit (`govulncheck .\u002F...`, `npm audit --audit-level=high`, `trivy fs --severity HIGH,CRITICAL .`).\n   - A Stage 1 failure must cancel downstream stages via `if: failure()` guards or `needs:` dependencies so broken commits cost seconds, not minutes.\n3. **Cache dependencies safely**:\n   - Key caches on lockfile hashes (`hashFiles('go.sum')`, `hashFiles('package-lock.json')`) with OS prefix; never cache across lockfile changes without a key miss.\n   - Restore keys must be prefix-scoped so a partial hit cannot poison a build with stale objects older than 7 days.\n   - Record cache hit rate and p50 restore time; a cache slower than a clean fetch is deleted, not kept.\n4. **Harden secrets and provenance**:\n   - Inject secrets only as masked environment variables scoped to the single job that needs them; never echo them, never pass them as action inputs that land in logs.\n   - Prefer OIDC federation (`permissions: id-token: write`) over long-lived tokens for cloud deploys and artifact registries.\n   - Generate build provenance (SLSA level 2 minimum) and attach SBOMs to release artifacts.\n5. **Verify reproducibility from clean checkout**:\n   - Re-run the full workflow on a fresh runner with cleared caches (`gh workflow run ci.yaml --ref \u003Csha>` twice) and confirm identical pass\u002Ffail outcomes.\n   - Run the verification script `scripts\u002Fverify.sh` from the repo root; it must exit 0.\n\n## Decision rules\n- **Clean-Checkout Reproducibility Is Mandatory**: Any pipeline that passes only with warm caches or local state is broken and must be fixed before merge.\n- **Fail Fast on Contract Violations**: Formatting, lint, and secret-scan failures stop the pipeline in Stage 1; expensive tests never run on a contract-broken commit.\n- **Pin Everything Executable**: Unpinned actions, floating runner images, and unlocked toolchain installs are prohibited in protected-branch workflows.\n- **Secrets Never Touch Logs**: Any job that prints, exports to artifacts, or forwards a secret value fails review regardless of green tests.\n- **Required Checks Are Code**: Branch protection and required-check lists live in versioned config (or documented API calls), never as untracked UI clicks.\n\n## Evidence required\n- Pipeline specification adhering to `templates\u002Fci-cd-spec.md` with stage timings and gate thresholds.\n- Two consecutive clean-run logs from a fresh runner with cleared caches showing identical outcomes.\n- Cache audit: keys, hit rates, restore timings, and the 7-day staleness policy.\n- Passing execution log from `scripts\u002Fverify.sh`.\n\n## Output contract\n- Versioned workflow files with pinned actions, staged gates, and cache keys.\n- Merge-gate configuration: required checks, branch protection, environment approvers.\n- Reproducibility report: clean-run logs, timing breakdown per stage, flake rate over the last 50 runs.\n- Secret-handling statement: inventory names, scoping, OIDC usage, rotation dates.\n\n## Stop conditions\n- Full pipeline green on two consecutive clean-cache runs from a fresh checkout.\n- Flake rate below 2 percent across the last 50 runs on the protected branch.\n- All required checks wired to branch protection with approvers assigned.\n- Token budget exhausted.\n- Blocked on external dependency.\n\n## Escalation rules\n- Escalate to Platform Lead if runner capacity, self-hosted runner trust, or cloud OIDC federation blocks hardening.\n- Escalate to Security if a secret is found in logs, artifacts, or cache contents; rotate immediately and purge affected caches.\n- Escalate to the owning team if a third-party action compromise (tag move, repo takeover) forces emergency repinning.\n",{},"main","1cd515630b8ceb57777d466bee4970fe7c2e30e0",".agents\u002Fskills\u002Fci-cd",0,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride","https:\u002F\u002Fgithub.com\u002FpoppyTM","https:\u002F\u002Fpoppy.lat","Construímos linguagens de programação e ferramentas para quem lê código com o mesmo cuidado com que escreve.","2026-09-30 10:15:52",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add poppyTM\u002Foride --skill ci-cd",{"tool":37,"command":38},"bunx","bunx skills add poppyTM\u002Foride --skill ci-cd",{"tool":40,"command":41},"pnpm","pnpm dlx skills add poppyTM\u002Foride --skill ci-cd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002FSKILL.md",true,[45,51,55,59,65],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"checks\u002Fci-cd-checklist.md","REFERENCE","参考文档",2346,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002Fchecks\u002Fci-cd-checklist.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"manifest.json",2234,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002Fmanifest.json",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fci-cd-guide.md",3919,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002Freferences\u002Fci-cd-guide.md",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Fverify.sh","SCRIPT","脚本",3705,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002Fscripts\u002Fverify.sh",{"path":66,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":67,"sourceHtmlUrl":68},"templates\u002Fci-cd-spec.md",2598,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002Ftemplates\u002Fci-cd-spec.md",[70,76,82,89,96,103],{"skillNo":71,"name":72,"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":73,"categories":74,"keywords":75,"publishedAt":18},"01M78FHQN254KEH0DETXT5JM29","zoom-reflow","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"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":79,"categories":80,"keywords":81,"publishedAt":18},"01M78FHP1880S695V8GQEE0RXK","wireframe-styleguide","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fwireframe-styleguide\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M78FHHYM6AN2H819FABW01DZ","visual-regression","Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fvisual-regression\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":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M78FHE53D8DD0QVRY5C37DA4","ui-implementation","Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fui-implementation\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M78FHBJ1KXFF734GFE509TBJ","tui-editor-engine","Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftui-editor-engine\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"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":106,"categories":107,"keywords":108,"publishedAt":18},"01M78FH9X6CPJX1H61ZDWTTVW8","tree-sitter-context-indexing","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftree-sitter-context-indexing\u002FSKILL.md",[],[]]