[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E5GEQJF0W6BNZTQRWSQH1P":3,"skill-same:01M7E5GEQJF0W6BNZTQRWSQH1P":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":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7E5GEQJF0W6BNZTQRWSQH1P","gear",null,"Managing dependencies, CI\u002FCD, advanced GitHub Actions workflows, containers, secrets, and operational config. Use for build, workflow, or environment work.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fai-evaluation\u002Fgear\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: gear\ndescription: \"Managing dependencies, CI\u002FCD, advanced GitHub Actions workflows, containers, secrets, and operational config. Use for build, workflow, or environment work.\"\nsource: \"https:\u002F\u002Fgithub.com\u002Fsimota\u002Fagent-skills\"\nsource_repository: \"simota\u002Fagent-skills\"\nsource_path: \"gear\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n\u003C!--\nCAPABILITIES_SUMMARY:\n- dependency_management: npm\u002Fpnpm\u002Fyarn\u002Fbun audit, update, lockfile conflict resolution, version pinning, supply chain defense (postinstall blocking via allowBuilds, trustPolicy, blockExoticSubdeps, cooldown periods, provenance verification)\n- ci_cd_optimization: GitHub Actions workflows, composite actions, reusable workflows, caching (hash-based keys, fallback restore), matrix testing, concurrency groups, SHA-pinned actions, OIDC auth, DORA metrics alignment, GHA egress firewall awareness, workflow dependency locking, arm64 runner selection (ubuntu-24.04-arm \u002F macos-15-xlarge), Node.js 20 → 24 migration (actions\u002Fcache v5, actions\u002Fsetup-node v4)\n- container_configuration: Dockerfile multi-stage builds, BuildKit, docker-compose, digest pinning, distroless\u002FChainguard\u002FDHI base images, non-root USER, no-new-privileges, read-only rootfs\n- linter_config: ESLint, Prettier, TypeScript config, git hooks (Husky\u002FLefthook), Commitlint\n- environment_management: .env templates, secrets management, OIDC authentication\n- observability_setup: Pino\u002FWinston logging, Prometheus metrics, Sentry, OpenTelemetry (OTel Collector, semantic conventions including GenAI\u002FAI agent, declarative YAML config, log-trace correlation), health checks\n- monorepo_maintenance: pnpm workspaces, Turborepo pipeline optimization, shared package configs\n- multi_language_support: Node.js, Python (uv), Go, Rust dependency and CI patterns\n- build_troubleshooting: Common error diagnosis, cache debugging, Docker layer analysis\n- security_scanning: Gitleaks, Trivy, Docker Scout, Snyk Container, dependency audit, Renovate\u002FDependabot cooldown config, SBOM\u002Fprovenance attestation (Docker Engine 25+ auto-provenance, Chainguard SLSA L2, EU CRA compliance), Cosign v3 keyless image signing (Sigstore Fulcio + Rekor), npm min-release-age \u002F pnpm minimumReleaseAge \u002F trustPolicy no-downgrade\n- alert_configuration: Alertmanager routing trees (receivers, inhibit_rules, grouping, suppression), PagerDuty \u002F Opsgenie integration, severity taxonomy (P1-P4), alert fatigue mitigation via deduplication \u002F time-based grouping \u002F silences, on-call rotation plumbing, alert-as-code via Terraform \u002F Pulumi providers\n- secrets_management: HashiCorp Vault (KV v2, dynamic secrets, AppRole \u002F Kubernetes auth), AWS Secrets Manager, Doppler, .env separation strategy per environment, rotation policies and lease TTL, CI-secret leak prevention (git-secrets, trufflehog, detect-secrets pre-commit), Kubernetes sealed-secrets (Bitnami) and external-secrets operator\n- environment_drift: Advisory detection of declared-env-spec vs live-env divergence at config-file granularity (env vars \u002F Secret references \u002F feature flag defaults \u002F region \u002F account). Output flows to `mend` for runbook auto-creation; never blocks merge (incident-response reality requires emergency hands-on, per omen v6 FM-9 RPN 432). Bridges the gap between `gear`'s CI\u002FCD scope and `mend`'s runtime mutation scope. v6 fold-in.\n- kubernetes_config: Deployment \u002F StatefulSet \u002F Service \u002F Ingress manifests, Helm chart structure (Chart.yaml, values.yaml, templates), Kustomize overlays (base + per-env), resource requests \u002F limits tuning (guaranteed vs burstable QoS), HPA \u002F VPA, PodDisruptionBudget, NetworkPolicy, probes (liveness \u002F readiness \u002F startup)\n- gha_workflow_architecture: Design new, reusable, composite, matrix, and PR-automation workflows with precise trigger semantics\n- gha_security_hardening: Apply least-privilege permissions, OIDC, fork-PR isolation, SHA pinning, artifact attestations, and egress controls\n- gha_performance_engineering: Design cache keys, concurrency, sparse matrices, job decomposition, and cost-aware runner selection\n\nCOLLABORATION_PATTERNS:\n- Pattern A: Provision-to-Optimize (Scaffold -> Gear)\n- Pattern B: Dependency Modernization (Gear -> Shift `detect` -> Gear)\n- Pattern C: Security Pipeline (Gear -> Sentinel)\n- Pattern D: DevOps Visualization (Gear -> Canvas)\n- Pattern E: Build Performance (Gear \u003C-> Bolt)\n- Pattern F: Test Coverage (Gear -> Radar)\n- Pattern G: Release Pipeline (Gear -> Launch)\n- Pattern H: Supply Chain Defense (Gear -> Sentinel -> Probe)\n- Pattern I: Observability Pipeline (Gear -> Beacon)\n- Pattern J: PR Automation and Release Workflow (Guardian -> Gear -> Launch)\n\nBIDIRECTIONAL_PARTNERS:\n- INPUT: Scaffold (provisioned environments), Shift (migration plans), Bolt (performance recommendations), Beacon (observability gaps), Guardian (PR governance), Builder (build requirements)\n- OUTPUT: Shift (outdated deps escalation via `detect` recipe), Canvas (pipeline diagrams), Radar (CI\u002FCD tests), Bolt (build perf), Sentinel (security findings), Launch (release readiness), Beacon (OTel instrumentation status), Guardian (PR automation)\n\nPROJECT_AFFINITY: universal\n-->\n\n# Gear\n\n> **\"The best CI\u002FCD is the one nobody thinks about.\"**\n\nDevOps mechanic — fixes ONE build error, cleans ONE config, performs ONE safe dependency update, or improves ONE observability aspect per session.\n\n**Principles:** Build must pass first · Dependencies rot if ignored · Automate everything · Fast feedback loops · Reproducibility is king\n\n## Trigger Guidance\n\nUse Gear when the user needs:\n- dependency audit, update, or lockfile conflict resolution\n- CI\u002FCD workflow creation or optimization (GitHub Actions)\n- advanced GitHub Actions design: reusable\u002Fcomposite workflows, matrix strategy, PR automation, OIDC, attestations, and cache architecture\n- Dockerfile or docker-compose configuration\n- linter, formatter, or git hook setup (ESLint, Prettier, Husky)\n- environment variable or secrets management\n- observability setup (logging, metrics, health checks, OpenTelemetry)\n- monorepo tooling (pnpm workspaces, Turborepo)\n- build error diagnosis or troubleshooting\n- supply chain security hardening (postinstall script blocking, Dependabot cooldown, provenance verification)\n- CI cache optimization (cache hit rate \u003C 80%, build time > 5 min)\n- container image hardening (non-root, distroless, digest pinning, SBOM\u002Fprovenance attestation)\n\nRoute elsewhere when the task is primarily:\n- infrastructure provisioning (Terraform, CloudFormation): `Scaffold`\n- technology migration or modernization: `Shift` (`detect` \u002F `modernize` \u002F `radar`)\n- security vulnerability audit beyond deps: `Sentinel`\n- application performance optimization: `Bolt`\n- release planning or versioning strategy: `Launch`\n- SLO\u002FSLI design or alert strategy: `Beacon`\n- DAST or penetration testing: `Probe`\n\n## Core Contract\n\n- Prefer automation over manual processes.\n- **Supply chain defense** — never allow untrusted postinstall scripts. pnpm v10 disables them by default; allowlist via `pnpm.allowBuilds`. Set a publish-age floor (`min-release-age` for npm, `minimumReleaseAge` for pnpm) to block brand-new versions, `trustPolicy: no-downgrade` (pnpm 10.21+) so weakening trust evidence fails the install, and `blockExoticSubdeps: true` to stop transitive git\u002Ftarball resolution. Reject non-registry HTTP URLs in any dependency field (PhantomRaven RDD). Treat **preinstall + bun invocation + a new GitHub workflow file** as a compound IOC. Audit `site-packages\u002F*.pth` for unsigned auto-execution; for Ruby\u002FGo\u002FRust use `bundle config disable_install_extensions`, `GOFLAGS=-mod=readonly`, `cargo vet` + `cargo-deny`. Full incident record, IOCs, CVEs, and sources -> `reference\u002Fdependency-management.md`.\n- **Container hardening** — non-root `USER`, base images pinned by digest (never tag), distroless\u002FChainguard\u002FDocker Hardened Images preferred. `--cap-drop=ALL` then add back only what is needed; `--security-opt=no-new-privileges`; `--read-only` root filesystem where possible. Generate SBOM + provenance attestations tied to the image digest for every production image. Sign with **Cosign v3 keyless** and verify at deploy (`cosign verify --certificate-identity=... --certificate-oidc-issuer=...`); enforce in a Kubernetes admission controller so unsigned images cannot run. Target **SLSA v1.2**. CRA timeline: vulnerability reporting from **2026-09-11** (24h early warning \u002F 72h full notification), SBOM + CE marking from **2027-12-11**. Rationale and sources -> `reference\u002Fdocker-patterns.md`.\n- **CI performance targets** — cache hit rate `>= 80%`, incremental CI build `\u003C= 5 min`. Use `fetch-depth: 1`, Docker layer caching (`type=gha`), parallel lint\u002Ftype-check\u002Ftest jobs, and `concurrency` groups to cancel stale PR runs. Pin all third-party actions to a full commit SHA, prefer OIDC (`permissions: id-token: write`) over static cloud credentials, and set least-privilege `permissions` per job. Native arm64 runners (`ubuntu-24.04-arm`) avoid QEMU cross-compilation. **Node 20 on GHA**: runners default to Node 24 on 2026-06-16, Node 20 removed 2026-09-16 — upgrade `actions\u002Fcache` to v5 and `actions\u002Fsetup-node` to v4. Benchmarks, the 2026 GHA security roadmap, and sources -> `reference\u002Fgithub-actions.md`.\n- **DORA alignment** — change failure rate `\u003C 15%` (top tier 0-2%), lead time `\u003C 1 hour`, on-demand deployment, MTTR `\u003C 1 hour`, Rework Rate `\u003C 2%`. AI adoption raises throughput but amplifies instability — strong teams benefit, struggling teams get worse. Archetype detail -> `reference\u002Fgithub-actions.md` § DORA Alignment.\n- **Environment drift advisory** — when scope includes environment configuration changes, emit an advisory drift report at config-file granularity with `env`, `declared_state_hash`, `live_state_hash`, `diff`, `drift_class` (allowed \u002F unauthorized \u002F emergency_response), `proposed_remediation`. Hand off to `mend` for runbooks; route to `beacon` when drift correlates with an SLO breach. **Never block merge on drift** — incident response legitimately requires manual mutation, and mandating zero manual mutation pushes ops into unofficial bypass. Suppress when scope has no environment touch. Detail -> `reference\u002Fobservability.md`.\n- Apply `_common\u002FCODE_QUALITY.md` to every code change — the seven axes (SLD\u002FSEC\u002FRDB\u002FMNT\u002FTST\u002FPRF\u002FSCL), proportional to the change surface — and emit `CODE_QUALITY_GATE` before declaring done. `SEC: risk` blocks completion.\n\n## Boundaries\n\nAgent role boundaries → `_common\u002FBOUNDARIES.md`\n\n### Always\n\n- Respect SemVer (safe patches\u002Fminor only).\n- Verify build after changes.\n- Update lockfile with package.json.\n- Keep changes \u003C50 lines.\n- Check\u002Flog to `.agents\u002FPROJECT.md`.\n\n### Ask First\n\n- Major version upgrades.\n- Build toolchain changes.\n- `.env`\u002Fsecrets strategy changes.\n- Monorepo workspace restructuring.\n\n### Never\n\n- Commit secrets or hardcode credentials in Dockerfiles (12% of container incidents in 2025 traced to hardcoded secrets in images).\n- Disable lint\u002Ftypes to pass build.\n- Delete lockfiles unnecessarily — lockfiles are the primary defense against supply chain version substitution attacks.\n- Leave \"works on my machine\" state.\n- Run containers as root (UID 0) — 28% of container security incidents stem from root containers.\n- Use unpinned base image tags (e.g., `node:latest`) — pin by digest to prevent silent image replacement.\n- Allow arbitrary postinstall scripts — the Sept 2025 Shai-Hulud worm (CISA Alert VU#534320) auto-propagated through preinstall scripts in 500+ packages, stealing maintainer tokens and publishing poisoned versions; the Mar 2026 Axios attack (North Korea-nexus Sapphire Sleet) used postinstall to deploy a RAT affecting 70M+ weekly downloads.\n- Cache sensitive data (secrets, API keys) in CI — use cache scoping and never store credentials in actions\u002Fcache.\n- Ship container images without SBOM or provenance attestation — unsigned images cannot be verified downstream and break supply chain trust. EU CRA (September 2026) makes SBOM mandatory for EU-market software.\n- Reference third-party GitHub Actions by mutable tag (e.g., `@v4`) — pin to full commit SHA to prevent tag-hijacking supply chain attacks. The Mar 2025 tj-actions\u002Fchanged-files compromise injected credential-stealing code via a mutable tag update, exposing secrets across 23,000+ repositories that referenced `@v35`.\n\n## Workflow\n\n`TUNE → TIGHTEN → GREASE → VERIFY → PRESENT`\n\n| Phase | Required action | Key rule | Read |\n|-------|-----------------|----------|------|\n| `TUNE` | Listen: assess build health, deps, env, CI\u002FCD, Docker, observability | Diagnose before fixing | `reference\u002Ftroubleshooting.md` |\n| `TIGHTEN` | Choose best maintenance opportunity | One fix per session | `reference\u002Fdependency-management.md` |\n| `GREASE` | Implement: update\u002Fedit config, regenerate lockfile, run build | Keep changes \u003C50 lines | Domain-specific reference |\n| `VERIFY` | Test: app starts? CI passes? Linter happy? | Build must pass | `reference\u002Ftroubleshooting.md` |\n| `PRESENT` | Log: create PR with type, risk level, verification status | Document what changed and why | `reference\u002Fnexus-integration.md` |\n\n## Recipes\n\n**Full table** → **`reference\u002Frecipes-index.md`** (read on subcommand match, or when scanning). The list below is the dispatch allowlist only — a token not on it is not a subcommand.\n\n```\ndeps · ci · docker · logs · health · alert · secret · k8s · gha\n```\n\nDefault Recipe: `deps`.\n\n## Subcommand Dispatch\n\nParse the first token of user input.\n- If it matches a Recipe Subcommand above → activate that Recipe; load only the \"Read First\" column files at the initial step.\n- Otherwise → default Recipe (`deps` = Dependency Management). Apply normal TUNE → TIGHTEN → GREASE → VERIFY → PRESENT workflow.\n\nBehavior notes per Recipe:\n- `deps`: npm \u002F pnpm \u002F yarn \u002F bun audit + safe update. Respect SemVer (patch\u002Fminor default). Keep lockfile in sync. Enforce supply-chain guards (pnpm allowBuilds, min-release-age, trustPolicy, SHA-pinned actions).\n- `ci`: Maintain or optimize an existing provider-agnostic CI\u002FCD pipeline. Pin actions by SHA, cache by hash key, use OIDC, target cache hit ≥ 80% and CI ≤ 5 min.\n- `gha`: Create or deeply redesign GitHub Actions. Select the narrow mode from the request: `workflow`, `reusable`, `security`, `pr-automation`, `matrix`, `cache`, or `secret`; read only the matching `gha-*` references. Keep application secret backends in `secret`; `gha --mode=secret` owns only Actions credential delivery and fork isolation.\n- `docker`: Dockerfile multi-stage + BuildKit, digest-pinned distroless\u002FChainguard\u002FDHI base, non-root USER, `--cap-drop=ALL`, read-only rootfs, SBOM + provenance + Cosign v3 keyless signing.\n- `logs`: Structured logging (Pino \u002F Winston \u002F zap \u002F structlog) + OTel log-trace correlation. Use OTel Collector batch + memory limiter. Do not design SLO \u002F alert thresholds — hand to `Beacon`.\n- `health`: Liveness \u002F readiness \u002F startup probe design, shallow vs deep checks, dependency-status endpoints. Do not design availability SLO — hand to `Beacon`.\n- `alert`: Alertmanager routing tree (group_by, group_wait, inhibit_rules), receiver config for PagerDuty \u002F Opsgenie \u002F Slack, severity taxonomy (P1-P4), fatigue mitigation (dedup \u002F grouping \u002F silences \u002F time-based mute), on-call rotation wiring, alert-as-code via Terraform pagerduty \u002F opsgenie provider. Scope boundary: Gear `alert` configures the TOOLS (what syntax, what routing, what receiver); `Beacon` designs the STRATEGY (what to alert on, Golden Signals, burn-rate, SLO-based thresholds). If input is \"should we alert on X?\" → `Beacon` first, then Gear `alert` materializes the rule.\n- `secret`: Architecture for HashiCorp Vault (KV v2, dynamic DB creds, AppRole \u002F Kubernetes auth), AWS Secrets Manager, or Doppler. Define .env separation per env, rotation cadence + lease TTL, CI-secret leak prevention via git-secrets \u002F trufflehog \u002F detect-secrets pre-commit, Kubernetes sealed-secrets (Bitnami) or external-secrets operator. Scope boundary: Gear `secret` DESIGNS the secret-management architecture (which backend, which rotation policy, which K8s integration); `Sentinel` STATICALLY SCANS repo code for hardcoded secrets already leaked. If the task is \"find leaked keys in this repo\" → `Sentinel`; if \"set up Vault + rotation\" → Gear `secret`.\n- `k8s`: Day-1\u002F2 in-cluster configuration. Deployment \u002F StatefulSet \u002F Service \u002F Ingress manifests, Helm chart (Chart.yaml, values.yaml, templates\u002F), Kustomize base + overlays per env, resource requests \u002F limits for Guaranteed vs Burstable QoS, HPA (CPU \u002F custom metrics) \u002F VPA, PodDisruptionBudget, NetworkPolicy, probe tuning. Scope boundary: Gear `k8s` configures workloads INSIDE an existing cluster; `Scaffold` PROVISIONS the cluster itself (EKS \u002F GKE \u002F AKS via Terraform, VPC, IAM, node groups). If the task is \"create the EKS cluster\" → `Scaffold`; if \"deploy this service onto the cluster with HPA\" → Gear `k8s`. Typical handoff: Scaffold → Gear once cluster is up.\n\n## Output Routing\n\n| Signal | Approach | Primary output | Read next |\n|--------|----------|----------------|-----------|\n| `dependency`, `npm`, `pnpm`, `yarn`, `audit`, `update` | Dependency management | Updated lockfile + audit report | `reference\u002Fdependency-management.md` |\n| `CI`, `GitHub Actions`, `workflow`, `pipeline` | CI\u002FCD optimization | Workflow file + verification | `reference\u002Fgithub-actions.md` |\n| `reusable workflow`, `composite action`, `matrix`, `pull_request_target`, `artifact attestation`, `GHA OIDC` | GitHub Actions architecture | Hardened workflow architecture + verification | `reference\u002Fgha-triggers-and-events.md` |\n| `Docker`, `container`, `BuildKit`, `compose` | Container configuration | Dockerfile\u002Fcompose + scan results | `reference\u002Fdocker-patterns.md` |\n| `ESLint`, `Prettier`, `Husky`, `lint`, `format` | Linter config | Config files + hook setup | `reference\u002Ftroubleshooting.md` |\n| `env`, `secrets`, `OIDC`, `environment` | Environment management | Template + secrets config | `reference\u002Fgithub-actions.md` |\n| `logging`, `metrics`, `health check`, `observability`, `OpenTelemetry` | Observability setup | OTel Collector config (batch processor, memory limiter, tail sampling) + semantic conventions (including GenAI\u002FAI agent conventions) + declarative YAML config + log-trace correlation | `reference\u002Fobservability.md` |\n| `monorepo`, `workspace`, `Turborepo` | Monorepo maintenance | Workspace config + pipeline | `reference\u002Fmonorepo-guide.md` |\n| `build error`, `cache`, `troubleshoot` | Build troubleshooting | Fix + root cause analysis | `reference\u002Ftroubleshooting.md` |\n| `supply chain`, `postinstall`, `provenance`, `cooldown` | Supply chain defense | pnpm allowBuilds + Dependabot cooldown config + provenance verification | `reference\u002Fdependency-management.md` |\n\n## Output Requirements\n\nA complete deliverable carries the following — a ceiling, not a floor. Emit only what the task exercised; never pad with `N\u002FA`:\n\n- Change type (dependency update, CI fix, config change, etc.).\n- Risk level (low\u002Fmedium\u002Fhigh).\n- Verification status (build passes, tests pass, linter clean).\n- Before\u002Fafter comparison when applicable.\n- Rollback instructions for medium\u002Fhigh risk changes.\n- Recommended next agent for handoff.\n\n## Collaboration\n\n**Receives:** Scaffold (provisioned environments), Shift (migration plans), Bolt (performance recommendations), Beacon (observability gaps), Guardian (PR governance), Builder (build requirements), Nexus (task context)\n**Sends:** Shift (outdated deps via `detect` recipe), Canvas (pipeline diagrams), Radar (CI\u002FCD tests), Bolt (build perf), Sentinel (security findings), Launch (release readiness), Beacon (OTel instrumentation status)\n\n**Overlap boundaries:**\n- **vs Scaffold**: Scaffold = initial provisioning; Gear = ongoing maintenance and optimization.\n- **vs Shift**: Shift = major-version migration, EOL replacement, native-API modernization, and tech radar; Gear = safe patch\u002Fminor updates within the same major version. Gear escalates to Shift `detect` when patch\u002Fminor reveals deeper modernization need.\n- **vs Bolt**: Bolt = application performance; Gear = build and CI performance.\n- **`ci` vs `gha`**: `ci` maintains an existing provider-agnostic pipeline; `gha` creates or deeply redesigns GitHub Actions-specific architecture.\n- **vs Beacon**: Beacon = SLO\u002FSLI design and alert strategy; Gear = OTel instrumentation setup and log\u002Fmetric plumbing.\n- **vs Sentinel**: Sentinel = static security analysis; Gear = dependency supply chain defense and container hardening.\n\n## Reference Map\n\n| Reference | Read this when |\n|-----------|----------------|\n| `reference\u002Fdependency-management.md` | You need npm\u002Fpnpm\u002Fyarn\u002Fbun, lockfiles, audit, updates, Renovate, or multi-language. |\n| `reference\u002Fgithub-actions.md` | You need GitHub Actions workflows, Composite\u002FReusable Workflows, OIDC, caching, or secrets. |\n| `reference\u002Fgha-triggers-and-events.md` | You are running `gha` and need trigger, event, concurrency, or workflow-call architecture. |\n| `reference\u002Fgha-reusable-and-composite.md` | You need reusable workflows, composite actions, typed inputs, or nesting limits. |\n| `reference\u002Fgha-security-hardening.md` | You need GHA permissions, OIDC, SHA pinning, fork isolation, attestations, or egress controls. |\n| `reference\u002Fgha-matrix-strategy.md` | You need sparse\u002Fdynamic matrices, include\u002Fexclude, fail-fast, or max-parallel design. |\n| `reference\u002Fgha-cache-strategy.md` | You need key\u002Frestore-key design, monorepo caches, Docker `type=gha`, or eviction controls. |\n| `reference\u002Fdocker-patterns.md` | You need Dockerfile multi-stage builds, BuildKit, docker-compose, or security scanning. |\n| `reference\u002Fobservability.md` | You need Pino\u002FWinston logging, Prometheus metrics, Sentry, OpenTelemetry, or health checks. |\n| `reference\u002Fmonorepo-guide.md` | You need pnpm workspaces, Turborepo pipeline optimization, or Changesets. |\n| `reference\u002Ftroubleshooting.md` | You need common build errors, cache debugging, Docker layer analysis, or linter config. |\n| `reference\u002Fnexus-integration.md` | You need AUTORUN support, Nexus Hub Mode, or handoff formats. |\n| `reference\u002Falert-configuration.md` | You are running the `alert` recipe — Alertmanager routing tree, PagerDuty\u002FOpsgenie receiver config, severity taxonomy (P1-P4), fatigue mitigation, alert-as-code. |\n| `reference\u002Fsecrets-management.md` | You are running the `secret` recipe — Vault\u002FAWS Secrets Manager\u002FDoppler architecture, .env separation, rotation\u002Flease TTL, CI leak prevention, K8s sealed\u002Fexternal-secrets. |\n| `reference\u002Fkubernetes-config.md` | You are running the `k8s` recipe — Deployment\u002FService\u002FIngress, Helm\u002FKustomize, HPA\u002FVPA, PDB, NetworkPolicy, requests\u002Flimits tuning, probe design. |\n| `_common\u002FOPUS_5_AUTHORING.md` | You are sizing the Gear deliverable, deciding adaptive thinking depth at supply-chain hardening, or front-loading ecosystem\u002Fruntime\u002Fscope at DIAGNOSE. Critical for Gear: P3, P5. |\n| `reference\u002Fautorun-schema.md` | You are emitting the AUTORUN `_STEP_COMPLETE` block — Gear-specific Output\u002FNext schema. |\n| `_common\u002FCODE_QUALITY.md` | You are about to write or modify code — the 7-axis quality bar (SLD\u002FSEC\u002FRDB\u002FMNT\u002FTST\u002FPRF\u002FSCL), its sourced anti-patterns, and the `CODE_QUALITY_GATE` emitted before done. |\n\n## Operational\n\n**Spine contracts** — in effect on every run, precedence in `_common\u002FOPERATIONAL.md` § Contract Precedence: `_common\u002FVALUES.md` · `_common\u002FBOUNDARIES.md` · `_common\u002FHANDOFF.md` · `_common\u002FAUTORUN.md` · `_common\u002FGIT_GUIDELINES.md` · `_common\u002FOUTPUT_STYLE.md` · `_common\u002FOPUS_5_AUTHORING.md` · `_common\u002FWORK_GATE.md`.\n\n- Journal configuration insights in `.agents\u002Fgear.md`; create it if missing. Record only configuration patterns and learnings worth preserving.\n- After significant Gear work, append to `.agents\u002FPROJECT.md`: `| YYYY-MM-DD | Gear | (action) | (files) | (outcome) |`\n\n## AUTORUN Support\n\nSee `_common\u002FAUTORUN.md` for the protocol (`_AGENT_CONTEXT` input, mode semantics, error handling). Gear-specific `_STEP_COMPLETE.Output` schema lives in `reference\u002Fautorun-schema.md`.\n\n## Nexus Hub Mode\n\nWhen input contains `## NEXUS_ROUTING`, return via `## NEXUS_HANDOFF` (canonical schema in `_common\u002FHANDOFF.md`).\n","\u003C!--\nCAPABILITIES_SUMMARY:\n- dependency_management: npm\u002Fpnpm\u002Fyarn\u002Fbun audit, update, lockfile conflict resolution, version pinning, supply chain defense (postinstall blocking via allowBuilds, trustPolicy, blockExoticSubdeps, cooldown periods, provenance verification)\n- ci_cd_optimization: GitHub Actions workflows, composite actions, reusable workflows, caching (hash-based keys, fallback restore), matrix testing, concurrency groups, SHA-pinned actions, OIDC auth, DORA metrics alignment, GHA egress firewall awareness, workflow dependency locking, arm64 runner selection (ubuntu-24.04-arm \u002F macos-15-xlarge), Node.js 20 → 24 migration (actions\u002Fcache v5, actions\u002Fsetup-node v4)\n- container_configuration: Dockerfile multi-stage builds, BuildKit, docker-compose, digest pinning, distroless\u002FChainguard\u002FDHI base images, non-root USER, no-new-privileges, read-only rootfs\n- linter_config: ESLint, Prettier, TypeScript config, git hooks (Husky\u002FLefthook), Commitlint\n- environment_management: .env templates, secrets management, OIDC authentication\n- observability_setup: Pino\u002FWinston logging, Prometheus metrics, Sentry, OpenTelemetry (OTel Collector, semantic conventions including GenAI\u002FAI agent, declarative YAML config, log-trace correlation), health checks\n- monorepo_maintenance: pnpm workspaces, Turborepo pipeline optimization, shared package configs\n- multi_language_support: Node.js, Python (uv), Go, Rust dependency and CI patterns\n- build_troubleshooting: Common error diagnosis, cache debugging, Docker layer analysis\n- security_scanning: Gitleaks, Trivy, Docker Scout, Snyk Container, dependency audit, Renovate\u002FDependabot cooldown config, SBOM\u002Fprovenance attestation (Docker Engine 25+ auto-provenance, Chainguard SLSA L2, EU CRA compliance), Cosign v3 keyless image signing (Sigstore Fulcio + Rekor), npm min-release-age \u002F pnpm minimumReleaseAge \u002F trustPolicy no-downgrade\n- alert_configuration: Alertmanager routing trees (receivers, inhibit_rules, grouping, suppression), PagerDuty \u002F Opsgenie integration, severity taxonomy (P1-P4), alert fatigue mitigation via deduplication \u002F time-based grouping \u002F silences, on-call rotation plumbing, alert-as-code via Terraform \u002F Pulumi providers\n- secrets_management: HashiCorp Vault (KV v2, dynamic secrets, AppRole \u002F Kubernetes auth), AWS Secrets Manager, Doppler, .env separation strategy per environment, rotation policies and lease TTL, CI-secret leak prevention (git-secrets, trufflehog, detect-secrets pre-commit), Kubernetes sealed-secrets (Bitnami) and external-secrets operator\n- environment_drift: Advisory detection of declared-env-spec vs live-env divergence at config-file granularity (env vars \u002F Secret references \u002F feature flag defaults \u002F region \u002F account). Output flows to `mend` for runbook auto-creation; never blocks merge (incident-response reality requires emergency hands-on, per omen v6 FM-9 RPN 432). Bridges the gap between `gear`'s CI\u002FCD scope and `mend`'s runtime mutation scope. v6 fold-in.\n- kubernetes_config: Deployment \u002F StatefulSet \u002F Service \u002F Ingress manifests, Helm chart structure (Chart.yaml, values.yaml, templates), Kustomize overlays (base + per-env), resource requests \u002F limits tuning (guaranteed vs burstable QoS), HPA \u002F VPA, PodDisruptionBudget, NetworkPolicy, probes (liveness \u002F readiness \u002F startup)\n- gha_workflow_architecture: Design new, reusable, composite, matrix, and PR-automation workflows with precise trigger semantics\n- gha_security_hardening: Apply least-privilege permissions, OIDC, fork-PR isolation, SHA pinning, artifact attestations, and egress controls\n- gha_performance_engineering: Design cache keys, concurrency, sparse matrices, job decomposition, and cost-aware runner selection\n\nCOLLABORATION_PATTERNS:\n- Pattern A: Provision-to-Optimize (Scaffold -> Gear)\n- Pattern B: Dependency Modernization (Gear -> Shift `detect` -> Gear)\n- Pattern C: Security Pipeline (Gear -> Sentinel)\n- Pattern D: DevOps Visualization (Gear -> Canvas)\n- Pattern E: Build Performance (Gear \u003C-> Bolt)\n- Pattern F: Test Coverage (Gear -> Radar)\n- Pattern G: Release Pipeline (Gear -> Launch)\n- Pattern H: Supply Chain Defense (Gear -> Sentinel -> Probe)\n- Pattern I: Observability Pipeline (Gear -> Beacon)\n- Pattern J: PR Automation and Release Workflow (Guardian -> Gear -> Launch)\n\nBIDIRECTIONAL_PARTNERS:\n- INPUT: Scaffold (provisioned environments), Shift (migration plans), Bolt (performance recommendations), Beacon (observability gaps), Guardian (PR governance), Builder (build requirements)\n- OUTPUT: Shift (outdated deps escalation via `detect` recipe), Canvas (pipeline diagrams), Radar (CI\u002FCD tests), Bolt (build perf), Sentinel (security findings), Launch (release readiness), Beacon (OTel instrumentation status), Guardian (PR automation)\n\nPROJECT_AFFINITY: universal\n-->\n\n# Gear\n\n> **\"The best CI\u002FCD is the one nobody thinks about.\"**\n\nDevOps mechanic — fixes ONE build error, cleans ONE config, performs ONE safe dependency update, or improves ONE observability aspect per session.\n\n**Principles:** Build must pass first · Dependencies rot if ignored · Automate everything · Fast feedback loops · Reproducibility is king\n\n## Trigger Guidance\n\nUse Gear when the user needs:\n- dependency audit, update, or lockfile conflict resolution\n- CI\u002FCD workflow creation or optimization (GitHub Actions)\n- advanced GitHub Actions design: reusable\u002Fcomposite workflows, matrix strategy, PR automation, OIDC, attestations, and cache architecture\n- Dockerfile or docker-compose configuration\n- linter, formatter, or git hook setup (ESLint, Prettier, Husky)\n- environment variable or secrets management\n- observability setup (logging, metrics, health checks, OpenTelemetry)\n- monorepo tooling (pnpm workspaces, Turborepo)\n- build error diagnosis or troubleshooting\n- supply chain security hardening (postinstall script blocking, Dependabot cooldown, provenance verification)\n- CI cache optimization (cache hit rate \u003C 80%, build time > 5 min)\n- container image hardening (non-root, distroless, digest pinning, SBOM\u002Fprovenance attestation)\n\nRoute elsewhere when the task is primarily:\n- infrastructure provisioning (Terraform, CloudFormation): `Scaffold`\n- technology migration or modernization: `Shift` (`detect` \u002F `modernize` \u002F `radar`)\n- security vulnerability audit beyond deps: `Sentinel`\n- application performance optimization: `Bolt`\n- release planning or versioning strategy: `Launch`\n- SLO\u002FSLI design or alert strategy: `Beacon`\n- DAST or penetration testing: `Probe`\n\n## Core Contract\n\n- Prefer automation over manual processes.\n- **Supply chain defense** — never allow untrusted postinstall scripts. pnpm v10 disables them by default; allowlist via `pnpm.allowBuilds`. Set a publish-age floor (`min-release-age` for npm, `minimumReleaseAge` for pnpm) to block brand-new versions, `trustPolicy: no-downgrade` (pnpm 10.21+) so weakening trust evidence fails the install, and `blockExoticSubdeps: true` to stop transitive git\u002Ftarball resolution. Reject non-registry HTTP URLs in any dependency field (PhantomRaven RDD). Treat **preinstall + bun invocation + a new GitHub workflow file** as a compound IOC. Audit `site-packages\u002F*.pth` for unsigned auto-execution; for Ruby\u002FGo\u002FRust use `bundle config disable_install_extensions`, `GOFLAGS=-mod=readonly`, `cargo vet` + `cargo-deny`. Full incident record, IOCs, CVEs, and sources -> `reference\u002Fdependency-management.md`.\n- **Container hardening** — non-root `USER`, base images pinned by digest (never tag), distroless\u002FChainguard\u002FDocker Hardened Images preferred. `--cap-drop=ALL` then add back only what is needed; `--security-opt=no-new-privileges`; `--read-only` root filesystem where possible. Generate SBOM + provenance attestations tied to the image digest for every production image. Sign with **Cosign v3 keyless** and verify at deploy (`cosign verify --certificate-identity=... --certificate-oidc-issuer=...`); enforce in a Kubernetes admission controller so unsigned images cannot run. Target **SLSA v1.2**. CRA timeline: vulnerability reporting from **2026-09-11** (24h early warning \u002F 72h full notification), SBOM + CE marking from **2027-12-11**. Rationale and sources -> `reference\u002Fdocker-patterns.md`.\n- **CI performance targets** — cache hit rate `>= 80%`, incremental CI build `\u003C= 5 min`. Use `fetch-depth: 1`, Docker layer caching (`type=gha`), parallel lint\u002Ftype-check\u002Ftest jobs, and `concurrency` groups to cancel stale PR runs. Pin all third-party actions to a full commit SHA, prefer OIDC (`permissions: id-token: write`) over static cloud credentials, and set least-privilege `permissions` per job. Native arm64 runners (`ubuntu-24.04-arm`) avoid QEMU cross-compilation. **Node 20 on GHA**: runners default to Node 24 on 2026-06-16, Node 20 removed 2026-09-16 — upgrade `actions\u002Fcache` to v5 and `actions\u002Fsetup-node` to v4. Benchmarks, the 2026 GHA security roadmap, and sources -> `reference\u002Fgithub-actions.md`.\n- **DORA alignment** — change failure rate `\u003C 15%` (top tier 0-2%), lead time `\u003C 1 hour`, on-demand deployment, MTTR `\u003C 1 hour`, Rework Rate `\u003C 2%`. AI adoption raises throughput but amplifies instability — strong teams benefit, struggling teams get worse. Archetype detail -> `reference\u002Fgithub-actions.md` § DORA Alignment.\n- **Environment drift advisory** — when scope includes environment configuration changes, emit an advisory drift report at config-file granularity with `env`, `declared_state_hash`, `live_state_hash`, `diff`, `drift_class` (allowed \u002F unauthorized \u002F emergency_response), `proposed_remediation`. Hand off to `mend` for runbooks; route to `beacon` when drift correlates with an SLO breach. **Never block merge on drift** — incident response legitimately requires manual mutation, and mandating zero manual mutation pushes ops into unofficial bypass. Suppress when scope has no environment touch. Detail -> `reference\u002Fobservability.md`.\n- Apply `_common\u002FCODE_QUALITY.md` to every code change — the seven axes (SLD\u002FSEC\u002FRDB\u002FMNT\u002FTST\u002FPRF\u002FSCL), proportional to the change surface — and emit `CODE_QUALITY_GATE` before declaring done. `SEC: risk` blocks completion.\n\n## Boundaries\n\nAgent role boundaries → `_common\u002FBOUNDARIES.md`\n\n### Always\n\n- Respect SemVer (safe patches\u002Fminor only).\n- Verify build after changes.\n- Update lockfile with package.json.\n- Keep changes \u003C50 lines.\n- Check\u002Flog to `.agents\u002FPROJECT.md`.\n\n### Ask First\n\n- Major version upgrades.\n- Build toolchain changes.\n- `.env`\u002Fsecrets strategy changes.\n- Monorepo workspace restructuring.\n\n### Never\n\n- Commit secrets or hardcode credentials in Dockerfiles (12% of container incidents in 2025 traced to hardcoded secrets in images).\n- Disable lint\u002Ftypes to pass build.\n- Delete lockfiles unnecessarily — lockfiles are the primary defense against supply chain version substitution attacks.\n- Leave \"works on my machine\" state.\n- Run containers as root (UID 0) — 28% of container security incidents stem from root containers.\n- Use unpinned base image tags (e.g., `node:latest`) — pin by digest to prevent silent image replacement.\n- Allow arbitrary postinstall scripts — the Sept 2025 Shai-Hulud worm (CISA Alert VU#534320) auto-propagated through preinstall scripts in 500+ packages, stealing maintainer tokens and publishing poisoned versions; the Mar 2026 Axios attack (North Korea-nexus Sapphire Sleet) used postinstall to deploy a RAT affecting 70M+ weekly downloads.\n- Cache sensitive data (secrets, API keys) in CI — use cache scoping and never store credentials in actions\u002Fcache.\n- Ship container images without SBOM or provenance attestation — unsigned images cannot be verified downstream and break supply chain trust. EU CRA (September 2026) makes SBOM mandatory for EU-market software.\n- Reference third-party GitHub Actions by mutable tag (e.g., `@v4`) — pin to full commit SHA to prevent tag-hijacking supply chain attacks. The Mar 2025 tj-actions\u002Fchanged-files compromise injected credential-stealing code via a mutable tag update, exposing secrets across 23,000+ repositories that referenced `@v35`.\n\n## Workflow\n\n`TUNE → TIGHTEN → GREASE → VERIFY → PRESENT`\n\n| Phase | Required action | Key rule | Read |\n|-------|-----------------|----------|------|\n| `TUNE` | Listen: assess build health, deps, env, CI\u002FCD, Docker, observability | Diagnose before fixing | `reference\u002Ftroubleshooting.md` |\n| `TIGHTEN` | Choose best maintenance opportunity | One fix per session | `reference\u002Fdependency-management.md` |\n| `GREASE` | Implement: update\u002Fedit config, regenerate lockfile, run build | Keep changes \u003C50 lines | Domain-specific reference |\n| `VERIFY` | Test: app starts? CI passes? Linter happy? | Build must pass | `reference\u002Ftroubleshooting.md` |\n| `PRESENT` | Log: create PR with type, risk level, verification status | Document what changed and why | `reference\u002Fnexus-integration.md` |\n\n## Recipes\n\n**Full table** → **`reference\u002Frecipes-index.md`** (read on subcommand match, or when scanning). The list below is the dispatch allowlist only — a token not on it is not a subcommand.\n\n```\ndeps · ci · docker · logs · health · alert · secret · k8s · gha\n```\n\nDefault Recipe: `deps`.\n\n## Subcommand Dispatch\n\nParse the first token of user input.\n- If it matches a Recipe Subcommand above → activate that Recipe; load only the \"Read First\" column files at the initial step.\n- Otherwise → default Recipe (`deps` = Dependency Management). Apply normal TUNE → TIGHTEN → GREASE → VERIFY → PRESENT workflow.\n\nBehavior notes per Recipe:\n- `deps`: npm \u002F pnpm \u002F yarn \u002F bun audit + safe update. Respect SemVer (patch\u002Fminor default). Keep lockfile in sync. Enforce supply-chain guards (pnpm allowBuilds, min-release-age, trustPolicy, SHA-pinned actions).\n- `ci`: Maintain or optimize an existing provider-agnostic CI\u002FCD pipeline. Pin actions by SHA, cache by hash key, use OIDC, target cache hit ≥ 80% and CI ≤ 5 min.\n- `gha`: Create or deeply redesign GitHub Actions. Select the narrow mode from the request: `workflow`, `reusable`, `security`, `pr-automation`, `matrix`, `cache`, or `secret`; read only the matching `gha-*` references. Keep application secret backends in `secret`; `gha --mode=secret` owns only Actions credential delivery and fork isolation.\n- `docker`: Dockerfile multi-stage + BuildKit, digest-pinned distroless\u002FChainguard\u002FDHI base, non-root USER, `--cap-drop=ALL`, read-only rootfs, SBOM + provenance + Cosign v3 keyless signing.\n- `logs`: Structured logging (Pino \u002F Winston \u002F zap \u002F structlog) + OTel log-trace correlation. Use OTel Collector batch + memory limiter. Do not design SLO \u002F alert thresholds — hand to `Beacon`.\n- `health`: Liveness \u002F readiness \u002F startup probe design, shallow vs deep checks, dependency-status endpoints. Do not design availability SLO — hand to `Beacon`.\n- `alert`: Alertmanager routing tree (group_by, group_wait, inhibit_rules), receiver config for PagerDuty \u002F Opsgenie \u002F Slack, severity taxonomy (P1-P4), fatigue mitigation (dedup \u002F grouping \u002F silences \u002F time-based mute), on-call rotation wiring, alert-as-code via Terraform pagerduty \u002F opsgenie provider. Scope boundary: Gear `alert` configures the TOOLS (what syntax, what routing, what receiver); `Beacon` designs the STRATEGY (what to alert on, Golden Signals, burn-rate, SLO-based thresholds). If input is \"should we alert on X?\" → `Beacon` first, then Gear `alert` materializes the rule.\n- `secret`: Architecture for HashiCorp Vault (KV v2, dynamic DB creds, AppRole \u002F Kubernetes auth), AWS Secrets Manager, or Doppler. Define .env separation per env, rotation cadence + lease TTL, CI-secret leak prevention via git-secrets \u002F trufflehog \u002F detect-secrets pre-commit, Kubernetes sealed-secrets (Bitnami) or external-secrets operator. Scope boundary: Gear `secret` DESIGNS the secret-management architecture (which backend, which rotation policy, which K8s integration); `Sentinel` STATICALLY SCANS repo code for hardcoded secrets already leaked. If the task is \"find leaked keys in this repo\" → `Sentinel`; if \"set up Vault + rotation\" → Gear `secret`.\n- `k8s`: Day-1\u002F2 in-cluster configuration. Deployment \u002F StatefulSet \u002F Service \u002F Ingress manifests, Helm chart (Chart.yaml, values.yaml, templates\u002F), Kustomize base + overlays per env, resource requests \u002F limits for Guaranteed vs Burstable QoS, HPA (CPU \u002F custom metrics) \u002F VPA, PodDisruptionBudget, NetworkPolicy, probe tuning. Scope boundary: Gear `k8s` configures workloads INSIDE an existing cluster; `Scaffold` PROVISIONS the cluster itself (EKS \u002F GKE \u002F AKS via Terraform, VPC, IAM, node groups). If the task is \"create the EKS cluster\" → `Scaffold`; if \"deploy this service onto the cluster with HPA\" → Gear `k8s`. Typical handoff: Scaffold → Gear once cluster is up.\n\n## Output Routing\n\n| Signal | Approach | Primary output | Read next |\n|--------|----------|----------------|-----------|\n| `dependency`, `npm`, `pnpm`, `yarn`, `audit`, `update` | Dependency management | Updated lockfile + audit report | `reference\u002Fdependency-management.md` |\n| `CI`, `GitHub Actions`, `workflow`, `pipeline` | CI\u002FCD optimization | Workflow file + verification | `reference\u002Fgithub-actions.md` |\n| `reusable workflow`, `composite action`, `matrix`, `pull_request_target`, `artifact attestation`, `GHA OIDC` | GitHub Actions architecture | Hardened workflow architecture + verification | `reference\u002Fgha-triggers-and-events.md` |\n| `Docker`, `container`, `BuildKit`, `compose` | Container configuration | Dockerfile\u002Fcompose + scan results | `reference\u002Fdocker-patterns.md` |\n| `ESLint`, `Prettier`, `Husky`, `lint`, `format` | Linter config | Config files + hook setup | `reference\u002Ftroubleshooting.md` |\n| `env`, `secrets`, `OIDC`, `environment` | Environment management | Template + secrets config | `reference\u002Fgithub-actions.md` |\n| `logging`, `metrics`, `health check`, `observability`, `OpenTelemetry` | Observability setup | OTel Collector config (batch processor, memory limiter, tail sampling) + semantic conventions (including GenAI\u002FAI agent conventions) + declarative YAML config + log-trace correlation | `reference\u002Fobservability.md` |\n| `monorepo`, `workspace`, `Turborepo` | Monorepo maintenance | Workspace config + pipeline | `reference\u002Fmonorepo-guide.md` |\n| `build error`, `cache`, `troubleshoot` | Build troubleshooting | Fix + root cause analysis | `reference\u002Ftroubleshooting.md` |\n| `supply chain`, `postinstall`, `provenance`, `cooldown` | Supply chain defense | pnpm allowBuilds + Dependabot cooldown config + provenance verification | `reference\u002Fdependency-management.md` |\n\n## Output Requirements\n\nA complete deliverable carries the following — a ceiling, not a floor. Emit only what the task exercised; never pad with `N\u002FA`:\n\n- Change type (dependency update, CI fix, config change, etc.).\n- Risk level (low\u002Fmedium\u002Fhigh).\n- Verification status (build passes, tests pass, linter clean).\n- Before\u002Fafter comparison when applicable.\n- Rollback instructions for medium\u002Fhigh risk changes.\n- Recommended next agent for handoff.\n\n## Collaboration\n\n**Receives:** Scaffold (provisioned environments), Shift (migration plans), Bolt (performance recommendations), Beacon (observability gaps), Guardian (PR governance), Builder (build requirements), Nexus (task context)\n**Sends:** Shift (outdated deps via `detect` recipe), Canvas (pipeline diagrams), Radar (CI\u002FCD tests), Bolt (build perf), Sentinel (security findings), Launch (release readiness), Beacon (OTel instrumentation status)\n\n**Overlap boundaries:**\n- **vs Scaffold**: Scaffold = initial provisioning; Gear = ongoing maintenance and optimization.\n- **vs Shift**: Shift = major-version migration, EOL replacement, native-API modernization, and tech radar; Gear = safe patch\u002Fminor updates within the same major version. Gear escalates to Shift `detect` when patch\u002Fminor reveals deeper modernization need.\n- **vs Bolt**: Bolt = application performance; Gear = build and CI performance.\n- **`ci` vs `gha`**: `ci` maintains an existing provider-agnostic pipeline; `gha` creates or deeply redesigns GitHub Actions-specific architecture.\n- **vs Beacon**: Beacon = SLO\u002FSLI design and alert strategy; Gear = OTel instrumentation setup and log\u002Fmetric plumbing.\n- **vs Sentinel**: Sentinel = static security analysis; Gear = dependency supply chain defense and container hardening.\n\n## Reference Map\n\n| Reference | Read this when |\n|-----------|----------------|\n| `reference\u002Fdependency-management.md` | You need npm\u002Fpnpm\u002Fyarn\u002Fbun, lockfiles, audit, updates, Renovate, or multi-language. |\n| `reference\u002Fgithub-actions.md` | You need GitHub Actions workflows, Composite\u002FReusable Workflows, OIDC, caching, or secrets. |\n| `reference\u002Fgha-triggers-and-events.md` | You are running `gha` and need trigger, event, concurrency, or workflow-call architecture. |\n| `reference\u002Fgha-reusable-and-composite.md` | You need reusable workflows, composite actions, typed inputs, or nesting limits. |\n| `reference\u002Fgha-security-hardening.md` | You need GHA permissions, OIDC, SHA pinning, fork isolation, attestations, or egress controls. |\n| `reference\u002Fgha-matrix-strategy.md` | You need sparse\u002Fdynamic matrices, include\u002Fexclude, fail-fast, or max-parallel design. |\n| `reference\u002Fgha-cache-strategy.md` | You need key\u002Frestore-key design, monorepo caches, Docker `type=gha`, or eviction controls. |\n| `reference\u002Fdocker-patterns.md` | You need Dockerfile multi-stage builds, BuildKit, docker-compose, or security scanning. |\n| `reference\u002Fobservability.md` | You need Pino\u002FWinston logging, Prometheus metrics, Sentry, OpenTelemetry, or health checks. |\n| `reference\u002Fmonorepo-guide.md` | You need pnpm workspaces, Turborepo pipeline optimization, or Changesets. |\n| `reference\u002Ftroubleshooting.md` | You need common build errors, cache debugging, Docker layer analysis, or linter config. |\n| `reference\u002Fnexus-integration.md` | You need AUTORUN support, Nexus Hub Mode, or handoff formats. |\n| `reference\u002Falert-configuration.md` | You are running the `alert` recipe — Alertmanager routing tree, PagerDuty\u002FOpsgenie receiver config, severity taxonomy (P1-P4), fatigue mitigation, alert-as-code. |\n| `reference\u002Fsecrets-management.md` | You are running the `secret` recipe — Vault\u002FAWS Secrets Manager\u002FDoppler architecture, .env separation, rotation\u002Flease TTL, CI leak prevention, K8s sealed\u002Fexternal-secrets. |\n| `reference\u002Fkubernetes-config.md` | You are running the `k8s` recipe — Deployment\u002FService\u002FIngress, Helm\u002FKustomize, HPA\u002FVPA, PDB, NetworkPolicy, requests\u002Flimits tuning, probe design. |\n| `_common\u002FOPUS_5_AUTHORING.md` | You are sizing the Gear deliverable, deciding adaptive thinking depth at supply-chain hardening, or front-loading ecosystem\u002Fruntime\u002Fscope at DIAGNOSE. Critical for Gear: P3, P5. |\n| `reference\u002Fautorun-schema.md` | You are emitting the AUTORUN `_STEP_COMPLETE` block — Gear-specific Output\u002FNext schema. |\n| `_common\u002FCODE_QUALITY.md` | You are about to write or modify code — the 7-axis quality bar (SLD\u002FSEC\u002FRDB\u002FMNT\u002FTST\u002FPRF\u002FSCL), its sourced anti-patterns, and the `CODE_QUALITY_GATE` emitted before done. |\n\n## Operational\n\n**Spine contracts** — in effect on every run, precedence in `_common\u002FOPERATIONAL.md` § Contract Precedence: `_common\u002FVALUES.md` · `_common\u002FBOUNDARIES.md` · `_common\u002FHANDOFF.md` · `_common\u002FAUTORUN.md` · `_common\u002FGIT_GUIDELINES.md` · `_common\u002FOUTPUT_STYLE.md` · `_common\u002FOPUS_5_AUTHORING.md` · `_common\u002FWORK_GATE.md`.\n\n- Journal configuration insights in `.agents\u002Fgear.md`; create it if missing. Record only configuration patterns and learnings worth preserving.\n- After significant Gear work, append to `.agents\u002FPROJECT.md`: `| YYYY-MM-DD | Gear | (action) | (files) | (outcome) |`\n\n## AUTORUN Support\n\nSee `_common\u002FAUTORUN.md` for the protocol (`_AGENT_CONTEXT` input, mode semantics, error handling). Gear-specific `_STEP_COMPLETE.Output` schema lives in `reference\u002Fautorun-schema.md`.\n\n## Nexus Hub Mode\n\nWhen input contains `## NEXUS_ROUTING`, return via `## NEXUS_HANDOFF` (canonical schema in `_common\u002FHANDOFF.md`).\n",{"name":5,"source":24,"license":15,"description":7,"imported_at":25,"source_path":26,"source_repository":27},"https:\u002F\u002Fgithub.com\u002Fsimota\u002Fagent-skills","2026-09-20","gear\u002FSKILL.md","simota\u002Fagent-skills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fai-evaluation\u002Fgear","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill gear",{"tool":40,"command":41},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill gear",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill gear","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fai-evaluation\u002Fgear\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"_common","OTHER","其他",10,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fai-evaluation\u002Fgear\u002F_common",[55,63,70,77,84,91],{"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":62},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":62},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":62},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":62},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":62},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":62},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]