
Simplify And Harden Ci
- 365 installs
- 272 repo stars
- Updated June 12, 2026
- pskoett/pskoett-ai-skills
simplify-and-harden-ci is an agent skill that audits CI pipelines to remove redundant jobs, tighten merge gates, and add reliability checks before release workflows scale.
About
simplify-and-harden-ci is a pskoett agent skill for reviewing continuous integration pipelines that have grown noisy, slow, or fragile as teams approach release scale. The skill guides agents through auditing workflow definitions to eliminate duplicate jobs, consolidate overlapping steps, tighten required checks before merge, and add reliability safeguards such as retry policies, artifact caching discipline, and failure diagnostics. Developers reach for simplify-and-harden-ci when CI runtimes balloon, flaky jobs block merges, or pre-release workflows lack clear quality gates. The skill fits GitHub Actions, GitLab CI, and similar YAML-driven pipelines where small structural changes yield large stability gains. Use it during pre-release hardening sprints or after CI pain spikes rather than during initial pipeline bootstrapping.
- Prunes redundant or flaky CI jobs
- Strengthens merge and release quality gates
- Reduces pipeline cost and maintenance burden
- Improves signal-to-noise in test feedback
- Hardens CI before high-velocity shipping
Simplify And Harden Ci by the numbers
- 365 all-time installs (skills.sh)
- +3 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #315 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pskoett/pskoett-ai-skills --skill simplify-and-harden-ciAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 365 |
|---|---|
| repo stars | ★ 272 |
| Last updated | June 12, 2026 |
| Repository | pskoett/pskoett-ai-skills ↗ |
How do you simplify and harden a CI pipeline before release?
Audit and streamline CI pipelines by removing redundant jobs, tightening gates, and adding reliability checks before merge and release workflows scale.
Who is it for?
Developers maintaining YAML-driven CI pipelines that grew complex and flaky and need a structured audit before scaling merge and release workflows.
Skip if: Greenfield projects with no CI yet or teams seeking application security penetration testing instead of pipeline job consolidation.
When should I use this skill?
The user wants to audit CI pipelines, remove redundant jobs, tighten merge gates, fix flaky workflows, or harden pre-release checks.
What you get
Streamlined CI workflow YAML with fewer redundant jobs, tightened merge gates, and added reliability checks documented in an audit summary.
- CI audit summary
- Updated workflow YAML recommendations
Files
Simplify & Harden CI
Install
gh skill install pskoett/pskoett-skills simplify-and-harden-ciFallback using the Agent Skills CLI:
npx skills add pskoett/pskoett-skills/skills/simplify-and-harden-ciPurpose
Run a CI-only variant of Simplify & Harden in pull requests:
- No code mutation in CI
- Review only changed files
- Emit structured findings
- Optionally block merge based on severity gates
Use simplify-and-harden for interactive/local coding sessions.
Context Limitation (Important)
CI agents do not have the same peak implementation context as the coding agent that wrote the change. Treat CI findings as structured review signals, not as full intent-aware rewrites.
Implications:
- Prefer scan/report and merge gating
- Do not auto-apply code changes in CI
- Escalate ambiguous findings to interactive review
Prerequisites
1. GitHub Actions enabled for the repository 2. GitHub CLI authenticated (gh auth status) 3. gh-aw installed locally for authoring/validation:
gh extension install github/gh-aw4. In GitHub Actions jobs, install the CLI with:
- uses: github/gh-aw/actions/setup-cli@main
with:
version: v0.2.0-betaCI Contract
The CI skill must enforce:
1. Scope lock: review only files changed in the PR 2. Headless execution: report findings, do not apply patches/refactors 3. Structured output: emit simplify_and_harden summary payload 4. Gate policy:
critical: fail check when critical harden findings existadvisory(optional): fail check when advisory findings are configured to block
Authoring Workflow (gh-aw)
Example-only template lives in references/workflow-example.md. Keep it outside .github/workflows until you explicitly want automation enabled.
When ready to enable: 1. Copy references/workflow-example.md template block into .github/workflows/simplify-and-harden-ci.md. (The .md extension is intentional: gh-aw workflows are markdown files that gh aw compile compiles into the .lock.yml files GitHub Actions actually runs. This is not a standard hand-written Actions YAML workflow.) 2. Compile and validate workflow:
gh aw compile --validate --strict3. Trigger and push workflow changes:
gh aw run simplify-and-harden-ci --push4. Check status/logs in GitHub Actions and ensure PR feedback is posted.
Prompt Template (CI)
Use this prompt body in your gh-aw workflow:
Run Simplify & Harden in CI (headless mode) for this pull request.
Rules:
1) Review only files changed in this PR.
2) Do not modify repository files.
3) Before reporting findings, re-read all changed code with "fresh eyes" and actively look for obvious bugs, errors, confusing logic, brittle assumptions, naming issues, and missed hardening opportunities.
4) Simplify pass: detect dead code, naming clarity issues, control-flow complexity, unnecessary API surface, and over-abstraction.
5) Harden pass: detect input-validation gaps, injection vectors, auth/authz issues, secret exposure, data leaks, and concurrency risks.
6) Document pass: suggest non-obvious rationale comments as findings (do not edit files).
7) Emit structured YAML under key `simplify_and_harden`, including:
- simplify findings
- harden findings (critical/advisory split)
- summary counts
- `review_followup_required`
- learning loop candidates for self-improvement ingestion
8) If blocking policy is enabled and matching findings exist, mark the run as failed.Recommended Outputs
1. PR comment with concise findings and severity ordering 2. Check run summary with pass/fail reason 3. Machine-readable YAML artifact for downstream automation
Integration with Self-Improvement
Forward simplify_and_harden.learning_loop.candidates into .learnings/LEARNINGS.md via the self-improvement workflow so recurrent patterns can be promoted into durable agent context rules.
Workflow Example (Non-Active)
This is an example template only. Keep it outside .github/workflows so nothing runs automatically.
When you are ready to enable CI automation: 1. Copy this template into .github/workflows/simplify-and-harden-ci.md 2. Adjust permissions, policy thresholds, and prompt details 3. Validate with gh aw compile --validate --strict
---
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
permissions:
contents: read
actions: read
pull-requests: read
tools:
github:
toolsets: [pull_requests, actions]
safe-outputs:
add-comment:
max: 1
strict: true
---
Run Simplify & Harden in CI (headless mode) for this pull request.
Rules:
1) Review only files changed in this PR.
2) Do not modify repository files.
3) Simplify pass: detect dead code, naming clarity issues, control-flow complexity,
unnecessary API surface, and over-abstraction.
4) Harden pass: detect input-validation gaps, injection vectors, auth/authz issues,
secret exposure, data leaks, and concurrency risks.
5) Document pass: suggest non-obvious rationale comments as findings (do not edit files).
6) Emit structured YAML under key `simplify_and_harden`.
7) If blocking policy is enabled and matching findings exist, fail the run.Related skills
FAQ
What does simplify-and-harden-ci change in a pipeline?
simplify-and-harden-ci audits CI workflow definitions to remove redundant jobs, consolidate overlapping steps, and tighten merge gates. The skill also recommends reliability checks so pipelines stay stable as release frequency increases.
When should teams use simplify-and-harden-ci?
Teams should use simplify-and-harden-ci when CI runtimes grow, flaky jobs block merges, or pre-release workflows lack clear quality gates. The skill fits hardening sprints on existing YAML pipelines, not greenfield CI setup.