arbazkhan971/godmode/skills/ghactions/SKILL.md
ghactions
GitHub Actions workflows, custom actions, CI/CD. Matrix builds, reusable workflows, composite actions, caching, security hardening. Triggers on: /godmode:ghactions, "GitHub Actions", "workflow", ".github/workflows", "matrix build".
- Source repository stars
- 26
- Declared platforms
- 0
- Static risk flags
- 1
- Last source update
- 2026-08-28
- Source checked
- 2026-08-28
Decision brief
What it does: where it fits
GitHub Actions workflows, custom actions, CI/CD. Matrix builds, reusable workflows, composite actions, caching, security hardening.
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/arbazkhan971/godmode --skill "skills/ghactions"Inspect the Agent Skill "ghactions" from https://github.com/arbazkhan971/godmode/blob/18bfc31d669804856ba232f04cdbd172afbdc379/skills/ghactions/SKILL.md at commit 18bfc31d669804856ba232f04cdbd172afbdc379. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Workflow
Review the “Workflow” section in the pinned source before continuing.
Review and apply the “Workflow” source section. - 02
Step 1: Discover Repository Context
Review the “Step 1: Discover Repository Context” section in the pinned source before continuing.
Review and apply the “Step 1: Discover Repository Context” source section. - 03
Step 2: Triggers & Filtering
Review the “Step 2: Triggers & Filtering” section in the pinned source before continuing.
Review and apply the “Step 2: Triggers & Filtering” source section. - 04
Step 3: Job Structure & Matrix
Review the “Step 3: Job Structure & Matrix” section in the pinned source before continuing.
Review and apply the “Step 3: Job Structure & Matrix” source section. - 05
Step 4: Caching & Optimization
Review the “Step 4: Caching & Optimization” section in the pinned source before continuing.
Review and apply the “Step 4: Caching & Optimization” source section.
Permission review
Static risk signals and limitations
Runs scripts
The documentation asks the agent to run terminal commands or scripts.
Docker layers: BuildKit GHA backendEvidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 26 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- arbazkhan971/godmode
- Skill path
- skills/ghactions/SKILL.md
- Commit
- 18bfc31d669804856ba232f04cdbd172afbdc379
- License
- MIT
- Collected
- 2026-08-28
- Default branch
- master
View the original SKILL.md
GHACTIONS — GitHub Actions Expert
Activate When
- User invokes
/godmode:ghactions - User says "create workflow", "add GitHub Actions"
- User says "matrix build", "reusable workflow"
- User mentions
.github/workflows/oraction.yml - Project needs CI/CD on GitHub Actions
Workflow
Step 1: Discover Repository Context
# Detect existing workflows
ls .github/workflows/*.yml 2>/dev/null
# Audit current actions
grep -rh "uses:" .github/workflows/ 2>/dev/null \
| sort -u
# Find unpinned actions (security risk)
grep -rn "uses:.*@v[0-9]" .github/workflows/ 2>/dev/null
# Find missing permissions declarations
grep -L "permissions:" .github/workflows/*.yml 2>/dev/null
# Find missing timeouts
grep -L "timeout-minutes:" .github/workflows/*.yml 2>/dev/null
REPOSITORY CONTEXT:
Workflows: <list>
Language: <detected>, Package Manager: <npm|pnpm>
Test: <jest|vitest|pytest>, Linter: <eslint|ruff>
Monorepo: yes/no, Environments: staging|production
IF no workflows: create from scratch
IF unpinned actions: pin to SHA immediately
IF missing permissions: add explicit per-job
IF missing timeouts: add to every job
Step 2: Triggers & Filtering
KEY TRIGGERS:
push (CI on merge), pull_request (PR checks)
schedule (nightly), workflow_dispatch (manual)
workflow_call (reusable), release (publish)
RULES:
Use paths/paths-ignore to skip irrelevant workflows
IF docs-only change: skip test workflow
IF monorepo: trigger per-package via paths
Step 3: Job Structure & Matrix
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@<SHA>
- uses: actions/setup-node@<SHA>
with: { node-version: '20', cache: 'npm' }
- run: npm ci && npm run lint
test:
needs: lint
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [18, 20, 22]
Step 4: Caching & Optimization
# Cancel redundant runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
OPTIMIZATION:
Shallow clone: fetch-depth: 1
Dependency caching: via setup action cache param
Docker layers: BuildKit GHA backend
Test sharding: matrix strategy
THRESHOLDS:
PR pipeline target: < 10 minutes total
Individual job timeout: 15 minutes default
Cache hit rate target: > 90%
IF pipeline > 15min: split jobs, add sharding
Step 5: Security Hardening
# Pin to SHA, minimal permissions
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
permissions:
contents: read
# NEVER interpolate untrusted input in run:
env:
PR_TITLE: ${{ github.event.pull_request.title }}
SECURITY CHECKLIST:
Pin all actions to full commit SHA
Declare minimum permissions per job
Never interpolate untrusted input in run: blocks
Restrict fork access to secrets
Use OIDC for cloud providers (no long-lived secrets)
Run OpenSSF Scorecard weekly
IF write-all permissions: CRITICAL — restrict now
IF unpinned actions: HIGH — pin to SHA
IF untrusted interpolation in run: CRITICAL
Step 6: Deployment & Environments
ENVIRONMENTS:
Staging: auto-deploy on push to main
Production: manual approval required
PROTECTION RULES:
Required reviewers: 1+
Wait timer: optional (e.g., 5min for monitoring)
Branch restriction: main only
IF deploy fails: auto-rollback
Step 7: Commit
Save in .github/workflows/ and .github/actions/
Commit: "ci: <description> — GitHub Actions
(<N> jobs, <estimated time>)"
Key Behaviors
Never ask to continue. Loop autonomously until done.
- Least privilege permissions. Per-job, not global.
- Pin actions to SHA. Use Dependabot for updates.
- Cancel redundant runs. Concurrency groups.
- Cache everything. Dependencies, Docker, builds.
- Fail fast on cheap checks. Lint → test.
- Environments gate production.
- Timeouts on every job. 15 minutes default.
HARD RULES
- Never use
permissions: write-all. - Never pin actions to mutable tags — use SHA.
- Never interpolate untrusted input in
run:. - Never share secrets with fork PRs.
- Always set
timeout-minuteson every job. - Always use concurrency groups.
- Always set
retention-dayson artifact uploads. - Never use
continue-on-error: truefor flaky tests.
Auto-Detection
ls .github/workflows/*.yml 2>/dev/null
grep -rh "uses:" .github/workflows/ | sort -u
grep -rn "uses:.*@v[0-9]" .github/workflows/
grep -L "permissions:" .github/workflows/*.yml
grep -L "timeout-minutes:" .github/workflows/*.yml
Quality Targets
- Target: <10min CI workflow runtime
- Target: >95% workflow success rate over 30 days
- Cache hit rate: >80% for dependency caching
Output Format
Print: GHActions: {N} workflows, {M} jobs. Cache: {active|missing}. Concurrency: {status}. Security: {pinned|unpinned}. Status: {status}.
TSV Logging
iteration workflow jobs duration_before duration_after cache_hit_rate security_fixes status
Keep/Discard Discipline
KEEP if: workflow passes on test PR
AND no secret exposure AND cache hit maintained
DISCARD if: workflow fails OR secrets leaked
OR build time increased > 20%
Stop Conditions
STOP when ALL of:
- All workflows pass on clean PR
- Caching configured for dependencies
- Concurrency groups prevent stale runs
- Secrets in repository settings only
Error Recovery
- Syntax error: run
actionlintlocally. - Permission denied: add to permissions block.
- Cache miss: verify key matches lockfile path.
- Pipeline too long: add timeout, split jobs.
- Concurrency cancels needed runs: disable for deploys.
Frequently asked questions
What to verify before installation and use
What does the ghactions source document cover?
GitHub Actions workflows, custom actions, CI/CD. Matrix builds, reusable workflows, composite actions, caching, security hardening.
How do I install ghactions?
The source record exposes this install command: npx skills add https://github.com/arbazkhan971/godmode --skill "skills/ghactions". Inspect the command and pinned source before running it.
Which permission-related actions were detected?
Static rules flagged exec-script in the source; the page lists the matching lines and excerpts.
Alternatives
Compare before choosing
Postpartum-genushyacinthus29/dotnet-skills
dotnet-worker-services
Build long-running .NET background services with `BackgroundService`, Generic Host, graceful shutdown, configuration, logging, and deployment patterns suited to workers and daemons.
vasilyu1983/AI-Agents-public
qa-testing-ios
Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.
garrytan/gbrain
brain-pdf
Generate a publication-quality PDF from any brain page via the gstack make-pdf binary. Strips YAML frontmatter, sanitizes emoji, applies running headers and page numbers. Brain page is always the source of truth; PDF is a rendering.
NVIDIA/skills
rtvi-cv-customize-model
How to swap the DeepStream CV detection model in the VSS Alerts Blueprint verification (2d_cv) mode - covers ONNX export, custom bbox parsers, compose mount gotchas, nvinfer config, runtime TRT engine build, deployment, and a segmentation-capable model addendum handoff.