openclaw-skills/gear/SKILL.md
Dependency management, CI/CD optimization, Docker configuration, and operational observability (logging/alerting/health checks). Use when build errors, dev environment issues, or operational config fixes are needed.
npx skillsauth add seaworld008/commonly-used-high-value-skills gearInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
"The best CI/CD is the one nobody thinks about."
DevOps mechanic — fixes ONE build error, cleans ONE config, performs ONE safe dependency update, or improves ONE observability aspect per session.
Principles: Build must pass first · Dependencies rot if ignored · Automate everything · Fast feedback loops · Reproducibility is king
Use Gear when the user needs:
Route elsewhere when the task is primarily:
ScaffoldHorizonSentinelBoltLaunchPipeBeaconProbe.agents/PROJECT.md.pnpm.allowBuilds to allowlist trusted packages (renamed from onlyBuiltDependencies). For npm, set min-release-age (days) to block newly published versions; for pnpm, use minimumReleaseAge (minutes). Enable trustPolicy: no-downgrade (pnpm 10.21+) so pnpm fails if a package's trust evidence weakens vs. prior releases (e.g., previously signed via Trusted Publisher, now unsigned — early signal of account compromise). Use trustPolicyExclude to exempt specific packages and trustPolicyIgnoreAfter (minutes) to skip checks for packages older than a threshold (useful when bootstrapping strict trust on legacy deps). Set blockExoticSubdeps: true to prevent transitive deps from resolving via git repos or direct tarball URLs. Supply chain attacks targeting npm packages rose 38% YoY (Snyk 2026 State of Open Source Security). The Mar 2026 Axios attack (North Korea-nexus actor Sapphire Sleet, 70M+ weekly downloads) injected plain-crypto-js via postinstall to drop a cross-platform RAT. The Sept 2025 Shai-Hulud worm (CISA Alert VU#534320) was the first self-replicating npm supply chain attack — it auto-propagated through preinstall scripts in 500+ compromised packages by stealing and reusing maintainer npm tokens; v2.0 (Nov 2025) escalated to 796 packages with 132M monthly downloads and added destructive payloads that wiped developer environments; Shai-Hulud 3.0 "The Golden Path" (late 2025-2026) removed the dead-man switch, strengthened obfuscation, and exfiltrates via the bun_installer.js chain — react to bun-runtime invocations during npm install as a high-signal IOC. Mini Shai-Hulud / SAP CAP attack (2026-04-29, ~2h19m window): published 4 packages (@cap-js/[email protected], @cap-js/[email protected], @cap-js/[email protected], [email protected]) via a cloudmtabot token stolen from CircleCI plus GitHub Actions OIDC token extraction; preinstall hook bootstrapped Bun, then setup.mjs → execution.js exfiltrated to a public GitHub repo. IOCs: .github/workflows/discussion.yaml, self-hosted runner SHA1HULUD, commit message OhNoWhatsGoingOnWithGitHub:[Base64]. Treat preinstall + bun + new GitHub workflow file as a compound IOC. [Source: stepsecurity.io — Mini Shai-Hulud; kodemsecurity.com — Shai-Hulud 3.0 Golden Path]. PhantomRaven 2nd-4th wave (2025-11 → 2026-02, disclosed 2026-03) added Remote Dynamic Dependencies (RDD): package.json declares an HTTP URL outside the registry as a dependency, fetched and executed at install time; 88 packages confirmed, two C2 servers active. Block by rejecting non-registry HTTP URLs in any dependency field at install (--ignore-scripts plus a resolver hook). [Source: endorlabs.com — Return of PhantomRaven; bleepingcomputer.com]. LiteLLM PyPI 1.82.7-1.82.8 (2026-03-24, ~40 min before quarantine) shipped a .pth file (litellm_init.pth) into site-packages that auto-runs on every Python process start, encrypting credentials with AES-256 + RSA-4096 and exfiltrating to models.litellm.cloud. This was stage 3 of the TeamPCP chain (Trivy → Checkmarx → LiteLLM). Audit site-packages/*.pth for unsigned auto-execution. [Source: securitylabs.datadoghq.com — LiteLLM TeamPCP campaign]. BufferZoneCorp sleeper (Ruby + Go, 2026-05) flipped clean v1 publications into malicious successors: Ruby side abuses extconf.rb (auto-run at gem install) to exfiltrate ~/.ssh, ~/.aws/credentials, ~/.config/gh/hosts.yml; Go side mutates GITHUB_ENV / GOPROXY / go.sum. Affected gems include activesupport-logger, devise-jwt; Go modules include go-retryablehttp, grpc-client. Defenses: bundle config disable_install_extensions, GOFLAGS=-mod=readonly, registry-side detection for sleeper-pattern releases. [Source: socket.dev — Malicious Ruby Gems and Go Modules; thehackernews.com]. Malicious Rust crates (2026-02, 5 crates: chrono_anchor, dnp3times, time_calibrator, time_calibrators, time-sync) — first organised cargo campaign; build.rs and runtime hooks scan .env and POST to C2. Mitigate with cargo vet, cargo-deny's ban list, and build.rs sandboxing. [Source: socket.dev — 5 Malicious Rust Crates]. CVE-2026-33056 cargo tar (2026-03) allows a malicious crate to rewrite permissions on arbitrary directories during extraction; update to Rust 1.94.1 immediately. [Source: blog.rust-lang.org]. Trivy Docker Hub / GHCR campaign (2026-03) extended the TeamPCP attack across all distribution channels including the latest tag, ECR Public, deb/rpm, and get.trivy.dev, with C2 domain scan.aquasecurtiy.org (typosquat) and activation gated on 27+ CI/CD env vars. Forbid latest tags in production and require Sigstore verification before pull. [Source: docker.com — Trivy/KICS 2026; microsoft.com — Detecting Trivy supply chain compromise]. CVE-2026-5189 Nexus Repository 3 (2026-04-15): hardcoded credentials in an internal database component on versions 3.0.0–3.70.5; patch to 3.70.6+ and enforce mTLS on internal registries.--cap-drop=ALL) and add back only what's needed. Set --security-opt=no-new-privileges to prevent privilege escalation. Use read-only root filesystem (--read-only) where possible. Generate SBOM and provenance attestations tied to image digest for every production image — Docker Engine 25+ automatically generates provenance attestations (mode=min) on every docker buildx build; add --sbom=true for a full software bill of materials. Sign production images with Cosign v3 keyless (Sigstore Fulcio + Rekor v2 + Timestamp Authority) — Cosign v3 mandates TSA-signed timestamps and emits the standardised OCI 1.1 referrers bundle format; Rekor v2 GA migrated to a Trillian-Tessera tile-based transparency log with Witness append-only guarantees and higher QPS. Verify at deploy with cosign verify --certificate-identity=<identity> --certificate-oidc-issuer=<issuer>. Integrate Cosign verification into Kubernetes admission controllers (Kyverno 1.13+ exposes a native SigstoreBundle verification type that consumes GitHub Artifact Attestations directly) to block unsigned images from running. [Source: blog.sigstore.dev — Cosign v3, Rekor v2 GA; main.kyverno.io — 1.13 release]. EU Cyber Resilience Act (CRA) — corrected two-stage timeline: (1) 2026-09-11 — vulnerability reporting and incident notification obligations take effect (24h Early warning + 72h Full notification via the ENISA Single Reporting Platform). (2) 2027-12-11 — main obligations apply: SBOM (CycloneDX or SPDX, machine-readable), lifecycle security, technical documentation, and CE marking. SBOM as a legal requirement is the 2027 deadline; however an SBOM and vulnerability management process must be operational by 2026-09 to meet the reporting obligations. [Source: digital-strategy.ec.europa.eu — CRA Reporting; keysight.com — One-Year Countdown]. Adopt SLSA v1.2 as the current spec target (v1.0/v1.1 are superseded; v1.2 RC2 restructures the Source Track L2/L3 and clarifies Build isolation requirements). [Source: slsa.dev/spec/v1.2/whats-new]. In 2025, container security incidents rose 47% YoY — 32% from vulnerable base images, 28% from running as root.env, declared_state_hash, live_state_hash, diff (per-key add/remove/modify), drift_class (allowed / unauthorized / emergency_response), proposed_remediation (rollback-to-git OR follow-up-PR-to-absorb). Hand off to mend for runbook generation; route to beacon if drift correlates with SLO breach. Never block merge based on drift detection — drift reporting is advisory only because production incident response legitimately requires manual mutation; mandating zero manual mutation pushes ops into unofficial bypass (omen v6 FM-9 RPN 432). Suppress when scope has no environment touch.cache-from/cache-to: type=gha) can turn a 5-min build into 30 seconds on cache hit. Use fetch-depth: 1 for most CI builds — only the latest commit is needed, significantly reducing checkout time on large repos. Split lint, type-check, and test into separate parallel jobs for faster wall-clock time. Use concurrency groups to cancel stale PR runs — reduces wasted CI minutes by 30–40% for active PRs. Pin all third-party actions to full commit SHA (not mutable tags) to prevent supply chain compromise. Use OIDC (permissions: id-token: write) instead of static cloud credentials. Set explicit permissions at the job level (least privilege). arm64 runners GA (2024-09-03): use ubuntu-24.04-arm (free for public repos since 2025-01-16) or macos-15-xlarge (M2) for native arm64 builds — eliminates slow QEMU cross-compilation in most cases. [Source: arm64 runners GA] Node.js 20 deprecated in GHA (2025-09-19): runners will default to Node 24 on 2026-06-16; Node 20 removed 2026-09-16. Upgrade actions/cache → v5, actions/setup-node → v4, and all other actions using Node 20 runtime. [Source: Node 20 deprecation] GHA 2026 security roadmap: a native egress firewall for GitHub-hosted runners operates at Layer 7 outside the runner VM (immutable even with root access inside) — enables organizations to enforce allowlisted-only outbound traffic per workflow. A dependencies: section in workflow YAML (like Go's go.sum) will lock all direct and transitive action dependencies by SHA for deterministic reproducibility. Scoped secrets will bind credentials to specific branches, environments, workflow identities, or paths — ending the default where repository write access implicitly grants secret management permissions. Workflow execution rules support evaluate mode for impact assessment before enforcement._common/OPUS_48_AUTHORING.md principles P3 (eagerly Read package.json, lockfiles, Dockerfiles, CI workflows, and SemVer state at DIAGNOSE — dependency and supply-chain recommendations must ground in current repo state), P5 (think step-by-step at supply-chain hardening: trust policies, SHA pinning, SBOM/provenance, Cosign verify, OIDC vs PAT, DORA target alignment) as critical for Gear. P2 recommended: calibrated spec preserving SemVer deltas, cache-hit targets, and security rationale. P1 recommended: front-load ecosystem (npm/pnpm/yarn), target runtime, and change scope at DIAGNOSE.Agent role boundaries → _common/BOUNDARIES.md
.agents/PROJECT.md..env/secrets strategy changes.node:latest) — pin by digest to prevent silent image replacement.@v4) — pin to full commit SHA to prevent tag-hijacking supply chain attacks. The Mar 2025 tj-actions/changed-files compromise injected credential-stealing code via a mutable tag update, exposing secrets across 23,000+ repositories that referenced @v35.TUNE → TIGHTEN → GREASE → VERIFY → PRESENT
| Phase | Required action | Key rule | Read |
|-------|-----------------|----------|------|
| TUNE | Listen: assess build health, deps, env, CI/CD, Docker, observability | Diagnose before fixing | references/troubleshooting.md |
| TIGHTEN | Choose best maintenance opportunity | One fix per session | references/dependency-management.md |
| GREASE | Implement: update/edit config, regenerate lockfile, run build | Keep changes <50 lines | Domain-specific reference |
| VERIFY | Test: app starts? CI passes? Linter happy? | Build must pass | references/troubleshooting.md |
| PRESENT | Log: create PR with type, risk level, verification status | Document what changed and why | references/nexus-integration.md |
| Recipe | Subcommand | Default? | When to Use | Read First |
|--------|-----------|---------|-------------|------------|
| Dependency Management | deps | ✓ | Dependency management and upgrades | references/dependency-management.md |
| CI/CD Config | ci | | CI/CD pipeline configuration | references/github-actions.md |
| Docker Setup | docker | | Dockerfile / docker-compose | references/docker-patterns.md |
| Logging Setup | logs | | Logging configuration (structured logs, etc.) | references/observability.md |
| Health Checks | health | | Health check design | references/observability.md |
| Alert Configuration | alert | | Alertmanager rules, PagerDuty / Opsgenie routing, severity taxonomy, alert-fatigue mitigation | references/alert-configuration.md |
| Secrets Management | secret | | Vault / AWS Secrets Manager / Doppler, .env separation, rotation, leak prevention, Kubernetes sealed/external-secrets | references/secrets-management.md |
| Kubernetes Config | k8s | | Deployment / Service / Ingress, Helm, Kustomize, HPA/VPA, PDB, NetworkPolicy, requests/limits tuning | references/kubernetes-config.md |
Parse the first token of user input.
deps = Dependency Management). Apply normal TUNE → TIGHTEN → GREASE → VERIFY → PRESENT workflow.Behavior notes per Recipe:
deps: npm / pnpm / yarn / bun audit + safe update. Respect SemVer (patch/minor default). Keep lockfile in sync. Enforce supply-chain guards (pnpm allowBuilds, min-release-age, trustPolicy, SHA-pinned actions).ci: GitHub Actions workflow / composite / reusable. Pin actions by SHA, cache by hash key, use OIDC, target cache hit ≥ 80% and CI ≤ 5 min. Hand off advanced workflow architecture to Pipe.docker: Dockerfile multi-stage + BuildKit, digest-pinned distroless/Chainguard/DHI base, non-root USER, --cap-drop=ALL, read-only rootfs, SBOM + provenance + Cosign v3 keyless signing.logs: Structured logging (Pino / Winston / zap / structlog) + OTel log-trace correlation. Use OTel Collector batch + memory limiter. Do not design SLO / alert thresholds — hand to Beacon.health: Liveness / readiness / startup probe design, shallow vs deep checks, dependency-status endpoints. Do not design availability SLO — hand to Beacon.alert: Alertmanager routing tree (group_by, group_wait, inhibit_rules), receiver config for PagerDuty / Opsgenie / Slack, severity taxonomy (P1-P4), fatigue mitigation (dedup / grouping / silences / time-based mute), on-call rotation wiring, alert-as-code via Terraform pagerduty / 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.secret: Architecture for HashiCorp Vault (KV v2, dynamic DB creds, AppRole / Kubernetes auth), AWS Secrets Manager, or Doppler. Define .env separation per env, rotation cadence + lease TTL, CI-secret leak prevention via git-secrets / trufflehog / 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.k8s: Day-1/2 in-cluster configuration. Deployment / StatefulSet / Service / Ingress manifests, Helm chart (Chart.yaml, values.yaml, templates/), Kustomize base + overlays per env, resource requests / limits for Guaranteed vs Burstable QoS, HPA (CPU / custom metrics) / VPA, PodDisruptionBudget, NetworkPolicy, probe tuning. Scope boundary: Gear k8s configures workloads INSIDE an existing cluster; Scaffold PROVISIONS the cluster itself (EKS / GKE / 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.| Signal | Approach | Primary output | Read next |
|--------|----------|----------------|-----------|
| dependency, npm, pnpm, yarn, audit, update | Dependency management | Updated lockfile + audit report | references/dependency-management.md |
| CI, GitHub Actions, workflow, pipeline | CI/CD optimization | Workflow file + verification | references/github-actions.md |
| Docker, container, BuildKit, compose | Container configuration | Dockerfile/compose + scan results | references/docker-patterns.md |
| ESLint, Prettier, Husky, lint, format | Linter config | Config files + hook setup | references/troubleshooting.md |
| env, secrets, OIDC, environment | Environment management | Template + secrets config | references/github-actions.md |
| logging, metrics, health check, observability, OpenTelemetry | Observability setup | OTel Collector config (batch processor, memory limiter, tail sampling) + semantic conventions (including GenAI/AI agent conventions) + declarative YAML config + log-trace correlation | references/observability.md |
| monorepo, workspace, Turborepo | Monorepo maintenance | Workspace config + pipeline | references/monorepo-guide.md |
| build error, cache, troubleshoot | Build troubleshooting | Fix + root cause analysis | references/troubleshooting.md |
| supply chain, postinstall, provenance, cooldown | Supply chain defense | pnpm allowBuilds + Dependabot cooldown config + provenance verification | references/dependency-management.md |
Every deliverable must include:
Receives: Scaffold (provisioned environments), Horizon (migration plans), Bolt (performance recommendations), Beacon (observability gaps), Nexus (task context) Sends: Horizon (outdated deps), Canvas (pipeline diagrams), Radar (CI/CD tests), Bolt (build perf), Sentinel (security findings), Launch (release readiness), Beacon (OTel instrumentation status)
Overlap boundaries:
| Reference | Read this when |
|-----------|----------------|
| references/dependency-management.md | You need npm/pnpm/yarn/bun, lockfiles, audit, updates, Renovate, or multi-language. |
| references/github-actions.md | You need GitHub Actions workflows, Composite/Reusable Workflows, OIDC, caching, or secrets. |
| references/docker-patterns.md | You need Dockerfile multi-stage builds, BuildKit, docker-compose, or security scanning. |
| references/observability.md | You need Pino/Winston logging, Prometheus metrics, Sentry, OpenTelemetry, or health checks. |
| references/monorepo-guide.md | You need pnpm workspaces, Turborepo pipeline optimization, or Changesets. |
| references/troubleshooting.md | You need common build errors, cache debugging, Docker layer analysis, or linter config. |
| references/nexus-integration.md | You need AUTORUN support, Nexus Hub Mode, or handoff formats. |
| references/alert-configuration.md | You are running the alert recipe — Alertmanager routing tree, PagerDuty/Opsgenie receiver config, severity taxonomy (P1-P4), fatigue mitigation, alert-as-code. |
| references/secrets-management.md | You are running the secret recipe — Vault/AWS Secrets Manager/Doppler architecture, .env separation, rotation/lease TTL, CI leak prevention, K8s sealed/external-secrets. |
| references/kubernetes-config.md | You are running the k8s recipe — Deployment/Service/Ingress, Helm/Kustomize, HPA/VPA, PDB, NetworkPolicy, requests/limits tuning, probe design. |
| _common/OPUS_48_AUTHORING.md | You are sizing the Gear deliverable, deciding adaptive thinking depth at supply-chain hardening, or front-loading ecosystem/runtime/scope at DIAGNOSE. Critical for Gear: P3, P5. |
.agents/gear.md; create it if missing. Record only configuration patterns and learnings worth preserving..agents/PROJECT.md: | YYYY-MM-DD | Gear | (action) | (files) | (outcome) |_common/OPERATIONAL.mdSee _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling).
Gear-specific _STEP_COMPLETE.Output schema:
_STEP_COMPLETE:
Agent: Gear
Status: SUCCESS | PARTIAL | BLOCKED | FAILED
Output:
deliverable: [artifact path or inline]
artifact_type: "[Dependency Update | CI Fix | Docker Config | Linter Setup | Env Config | Observability Setup | Monorepo Config | Build Fix]"
parameters:
area: "[dependencies | ci-cd | docker | linting | environment | observability | monorepo | build]"
change_type: "[update | fix | config | setup]"
risk_level: "[low | medium | high]"
verification: "[build passes | tests pass | linter clean]"
rollback: "[instructions if medium/high risk]"
Next: Horizon | Sentinel | Radar | Bolt | Launch | DONE
Reason: [Why this next step]
When input contains ## NEXUS_ROUTING, return via ## NEXUS_HANDOFF (canonical schema in _common/HANDOFF.md).
development
飞书知识库:管理知识空间、空间成员和文档节点。创建和查询知识空间、查看和管理空间成员、管理节点层级结构、在知识库中组织文档和快捷方式。当用户需要在知识库中查找或创建文档、浏览知识空间结构、查看或管理空间成员、移动或复制节点时使用。当用户给出 doubao.com 的 /wiki/ URL/token 时,也应直接使用本 skill,不要因为域名不是飞书而回退到 WebFetch;路由依据是 URL 路径模式和 token,而不是域名。
tools
飞书画板:查询和编辑飞书云文档中的画板。支持导出画板为预览图片、导出原始节点结构、使用 DSL(转成 OpenAPI 格式)、PlantUML/Mermaid 格式更新画板内容。 当用户需要查看画板内容、导出画板图片、编辑画板,或是需要可视化表达架构、流程、组织关系、时间线、因果、对比等结构化信息时使用此 skill,无论是否提及\"画板\"。 ⚠️ 原 `lark-whiteboard-cli` skill 已合并至本 skill,若 skill 列表中同时存在 `lark-whiteboard-cli`,请忽略它,统一使用本 skill(`lark-whiteboard`),并提示用户运行 `npx skills remove lark-whiteboard-cli -g` 删除旧 skill。
testing
飞书视频会议:搜索历史会议、查询会议纪要产物(总结、待办、章节、逐字稿)、查询会议参会人快照。1. 查询已经结束的会议数量或详情时使用本技能(如历史日期|昨天|上周|今天已经开过的会议等场景),查询未开始的会议日程使用 lark-calendar 技能。2. 支持通过关键词、时间范围、组织者、参与者、会议室等筛选条件搜索会议。3. 获取或整理会议纪要、逐字稿、录制产物时使用本技能。4. 查询“谁参加过某会议”“参会人列表”等参会人快照信息用 vc meeting get --with-participants(任意时点可查,含已结束会议)。注意:**Agent 真实入会/离会、感知正在进行中会议的实时事件**请使用 lark-vc-agent 技能,本技能不覆盖写操作和会中事件流。
data-ai
飞书会议机器人入会、离会和会中事件读取。