agentleFS
KalarisLabsKalarisLabs/Skill-Doctor/skills/ci-cd/SKILL.md

ci-cd

Skill13 starsChanged 3 months agoApache-2.0View on GitHub

GitHub Actions, required checks, TestMu, OS matrix, and merge gates for Skill Doctor. Use when editing workflows, adding CI jobs, deciding what runs on every commit, or wiring crates/npm publish.

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use caching, shell-scripting and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • zebbernSkill

    caching

    Caching strategies — invalidation, TTL guidelines, cache keys, cache layers, and when not to cache. Use when implementing or reviewing caching logic.

    Also in 3 projects that use this

  • mylee04Skill

    shell-scripting

    Shell scripting best practices for cross-platform CLI tools

    Also in 3 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 8 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 7 projects that use this

  • MicrosoftSkill

    error-handling

    统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。

    Also in 5 projects that use this

  • diego-tobalinaSkill

    logging

    Logging best practices for Java (SLF4J/Logback) and Node.js (Winston/Pino). Use for structured logging, log levels, and avoiding sensitive data exposure.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep this path under ~8 minutes on cache hit.

    line 18
  2. Very specific:

    Never store tokens in YAML.

    line 35
  3. Distinctive:

    Do not add a fourth review bot.

    line 37

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CI/CD

Canonical policy: TESTING.md. Workflows must match it. If you change a required check, update TESTING.md in the same PR.

Every commit / every PR (required, must stay fast)

Job names (branch protection should match these strings):

  • lint-and-unit — fmt, clippy -D warnings, cargo test --workspace --locked, invariant grep
  • os-cli (ubuntu-latest) / (macos-latest) / (windows-latest) — build CLI, --help, version, later: benign exit 0 and SD-02 exit 2
  • supply-chain — cargo deny, gitleaks

Keep this path under ~8 minutes on cache hit. Use Swatinem/rust-cache. OS matrix fail-fast: false.

Do not put on this path: TestMu Kane, competitor benches, musl cross, cargo publish, npm publish, coverage fail gates during bootstrap.

Not every commit

WorkflowTriggerWhy
testmu.ymllabel e2e, nightly, main, workflow_dispatchKane/LambdaTest is slow, billed, AI-flaky
bench.ymlnightly + tagsDocker competitor pulls
release.ymltags v* onlymusl, SBOM, Sigstore, crates.io, npm

How an agent should add CI

  1. New product behavior → add a unit/CLI test first. CI already runs cargo test.
  2. New tooling (deny, gitleaks, a matrix OS) → add a job in ci.yml only if it belongs on every commit.
  3. New expensive check → new workflow, non-required, document in TESTING.md.
  4. Never store tokens in YAML. Use existing secrets: NPM_TOKEN, CARGO_REGISTRY_TOKEN, LT_USERNAME, LT_ACCESS_KEY.
  5. Pin action versions; prefer SHA once v2 is tagged.
  6. Do not add a fourth review bot. CodeRabbit / Greptile / Intelligence AI are PR comments, not required checks.

Local commands agents must run before claiming CI will pass

cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace --locked
./scripts/prepublish-check.sh --fast

--full is the pre-tag gate (deny + publish dry-run). Never cargo publish / npm publish from a feature branch.

Coverage

llvm-cov / tarpaulin is informational until a baseline exists. Do not -D fail PRs on coverage % during bootstrap.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.