mcpField
G
github-workflows

github-workflows

github.com/d-o-hubCloud & DevOps1336 installsUpdated today
Repository

About github-workflows

A skill for setting up, diagnosing, and optimizing GitHub Actions workflows in Rust projects. It covers CI checks, caching, troubleshooting, and release practices.

Key features

  1. 01Rust CI workflow components
  2. 02Build caching strategies
  3. 03Workflow failure diagnosis
  4. 04Coverage, security, and benchmarks
  5. 05Release and versioning guidance

Use cases

  1. 01Set up CI/CD for a Rust repository
  2. 02Investigate failed GitHub Actions runs
  3. 03Reduce build times with caching
  4. 04Check PR status checks before merging

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill github-workflows

After installing, type/github-workflowsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

advanced-features.md
caching-strategies.md
release-management.md
troubleshooting.md

Details

From the project README

GitHub Workflows

Diagnose, fix, and optimize GitHub Actions workflows for Rust projects.

Quick Reference

When to Use

  • Setting up CI/CD for Rust projects
  • Troubleshooting workflow failures
  • Optimizing build times with caching
  • Ensuring best practices for testing, linting, releases

Before Making Changes

ALWAYS verify current state first:

# Get repo info
gh repo view --json nameWithOwner,owner,name

# List existing workflows
gh workflow list

# Check recent runs
gh run list --limit 10

# View workflow files
ls -la .github/workflows/

Complete Rust CI Workflow

See the full workflow template with:

  • Check job (format, clippy, check)
  • Test job (unit, integration, doc tests)
  • Coverage job (tarpaulin, codecov)
  • Audit job (security, licenses)

See linked files for caching strategies, troubleshooting, and release management.

Core Workflow Components

JobPurposeTools
checkCode qualityrustfmt, clippy, cargo check
testVerificationcargo test
coverageTest metricscargo tarpaulin
auditSecuritycargo audit, deny

Common Patterns

  • Caching: Dependencies, target directory, sccache
  • Matrix builds: Multiple Rust versions, targets
  • Conditional jobs: Skip on docs-only changes
  • Quality gates: Block merge on failures

PR Check Attachment Guardrail

  • After pushing fixes, validate checks are attached to the PR head SHA:
    • gh pr view --json statusCheckRollup,mergeStateStatus
    • gh run list --commit <head_sha>
  • If rollup is empty for required checks, treat as blocked and investigate trigger/path conditions.

Comments

Markdown supported