smithery.ai

ci-hardener

improve CI reliability, speed, and clarity. Trigger when CI is slow, flaky, fails silently, or needs optimization. focus on GitHub Actions workflows.

First seen Mar 23, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,164 B
  • docs SUMMARY.md 140 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

CI Hardener

Optimize and harden Continuous Integration (CI) workflows.

Workflow

  1. Audit Current Workflows

List all workflows in .github/workflows/. Identify: - Triggers: Are they correct (push, pull_request)? - Jobs: Are they parallelized? - Steps: Are they caching dependencies?

  1. Apply Hardening Patterns

- Caching: Use actions/setup-node with cache: 'pnpm' and pnpm/action-setup. - Timeouts: Set timeout-minutes on every job to prevent hangs. - Concurrency: Use concurrency groups to cancel outdated runs on PRs. - Permissions: Use least-privilege permissions blocks.

  1. Optimize Speed

- Run independent jobs (lint, Test) in parallel. - Make Build depend on Test and Lint. - Use pnpm install --frozen-lockfile for deterministic installs.

  1. Verify

Ensure the changes are valid YAML and follow GitHub Actions syntax.

Checklist

  • timeout-minutes is set.
  • concurrency is set for PRs.
  • actions/checkout uses fetch-depth: 0 if needed (otherwise default is 1).
  • pnpm install --frozen-lockfile is used.
  • Node version is pinned (e.g., node-version: 20).

Example

Input: "The build takes too long because it installs dependencies in every job."

Action: Update .github/workflows/main.yml:

jobs:
  install:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: pnpm/action-setup@v2
      - uses: actions/setup-node@v6
        with:
          node-version: '20'
          cache: 'pnpm'
      - run: pnpm install --frozen-lockfile
      # Cache node_modules for other jobs if needed, or rely on setup-node cache

Output: "Added pnpm/action-setup with caching to the install step. This will speed up subsequent runs by reusing the pnpm cache."

Skill sync: compatible with React 19.2.8 / Vite 8.2.2 / Tailwind 4.3.3 baseline as of 2026-05-20.