[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EKC20B2FTYRV2QPYYFTP4N":3,"skill-same:01M7EKC20B2FTYRV2QPYYFTP4N":68},{"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":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":27,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7EKC20B2FTYRV2QPYYFTP4N","ci-cd",null,"raillen\u002Fdaisy-code-editor","raillen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F50306048?v=4","01M7EKBDVVBSPF21PBPVJYMNYR","Raillen Santos","01M7EKBDWD12A1K9N9Y638FGX9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\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","2e465213b972294984c8c9515a47f811e4b358da",".agents\u002Fskills\u002Fci-cd","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor","https:\u002F\u002Fgithub.com\u002Fraillen","https:\u002F\u002Fraillen.com","\u003C\u003CMarketing & IT>>\r\n\r\n@poppy-team\r\n@wasd-lat ","2026-10-16 09:17:52",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add raillen\u002Fdaisy-code-editor --skill ci-cd",{"tool":36,"command":37},"bunx","bunx skills add raillen\u002Fdaisy-code-editor --skill ci-cd",{"tool":39,"command":40},"pnpm","pnpm dlx skills add raillen\u002Fdaisy-code-editor --skill ci-cd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002FSKILL.md",true,[44,50,54,58,64],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"checks\u002Fci-cd-checklist.md","REFERENCE","参考文档",2346,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002Fchecks\u002Fci-cd-checklist.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"manifest.json",2234,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002Fmanifest.json",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fci-cd-guide.md",3919,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002Freferences\u002Fci-cd-guide.md",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Fverify.sh","SCRIPT","脚本",3705,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002Fscripts\u002Fverify.sh",{"path":65,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":66,"sourceHtmlUrl":67},"templates\u002Fci-cd-spec.md",2598,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fci-cd\u002Ftemplates\u002Fci-cd-spec.md",[69,75,81,88,95,102],{"skillNo":70,"name":71,"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":72,"categories":73,"keywords":74,"publishedAt":18},"01M7EKQYSDAX3SGSCRF873Z8E2","zoom-reflow","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"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":78,"categories":79,"keywords":80,"publishedAt":18},"01M7EKQX0MWJNQD482GGZPGES4","wireframe-styleguide","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fwireframe-styleguide\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7EKQS57FS6JYE6KWW6X5ADJ","visual-regression","Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fvisual-regression\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7EKQMFR7651NVH100P5781Z","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\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fui-implementation\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M7EKQG3NVX6DPCYS6Q4PA71V","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\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftui-editor-engine\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"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":105,"categories":106,"keywords":107,"publishedAt":18},"01M7EKQEJ993JGC72FE2KFY3ZZ","tree-sitter-context-indexing","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftree-sitter-context-indexing\u002FSKILL.md",[],[]]