sb-dev/openquant / .agents/skills/github-actions-efficiency
github-actions-efficiency
VerifiedAudit GitHub Actions workflow efficiency and recommend fixes to reduce CI minutes and costs.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.5 KB |
| references/actions.md | markdown | 3.1 KB |
| references/patterns.md | markdown | 1.3 KB |
| references/reporting.md | markdown | 1.5 KB |
| references/review-rubric.md | markdown | 465 B |
references/patterns.md
View on GitHub# Canonical Patterns
Load this reference only when you need concrete examples during implementation.
## Dependency Cache
```yaml
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
```
Adapt the cache path and invalidation file to the repo's ecosystem.
## Cancel Stale Runs
```yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
```
## Scope Triggers
```yaml
on:
push:
paths:
- "src/**"
- "tests/**"
- "package.json"
```
Use `paths-ignore` when exclusion is easier to maintain than inclusion.
## Job-Level Changed-File Gating
Use a small change-detection step that emits explicit outputs such as:
- `docs_relevant`
- `runtime_relevant`
- `compat_relevant`
- `run_tests`
Gate downstream jobs on those outputs when event-level filters are not expressive enough.
## Matrix Reduction
Use the minimum matrix that matches the decision:
- Full matrix on release
- Reduced compatibility matrix on sensitive runtime surfaces
- Single representative leg for ordinary code changes
## Optional Write-Back Job
Use label-driven or manual triggers for jobs that mutate the PR branch, such as formatting bots.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 466k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 466k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 466k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |