ワンクリックで
skill-devops-github-actions
Design, implement, and debug GitHub Actions workflows for DiD's server-side enforcement layer.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Design, implement, and debug GitHub Actions workflows for DiD's server-side enforcement layer.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Trace import graph + test coverage of files about to be modified and produce an impact report before any code changes are made.
Evaluate the quality of a DSPy integration in DiD — endpoint correctness, graceful degradation, and WARN-NOT-BLOCK contract.
The canonical skill for designing, implementing, testing, and registering a new Guard in defense-in-depth.
Review a PR against DiD's governance contracts — Guard purity, severity correctness, test coverage, and documentation completeness.
Refactor guard code with minimum blast radius — change only what is needed, verify nothing else shifts.
Design adversarial test suites for Guards that prove both positive enforcement and bypass resistance.
| domain | ci-cd |
| name | skill-devops-github-actions |
| description | Design, implement, and debug GitHub Actions workflows for DiD's server-side enforcement layer. |
| version | 1.0.0 |
| type | specialist |
| role | The CI Gate Architect |
Role: The CI Gate Architect
Philosophy: A local hook that can be bypassed with --no-verify is not a governance gate. Server-side CI is the last line of defense.
Design and implement GitHub Actions workflows that:
npm test + coverage gate on every PRubuntu-latest or macos-latest (GitHub-hosted, free tier).actions/checkout, actions/setup-node, and actions/cache only. Core enforcement logic is native shell/Node — never a third-party action..github/actions/<name>/action.yml — not duplicated across workflows.Ask: "What can a contributor bypass with git push --no-verify or by skipping the pre-commit hook?"
These gaps are what CI must cover.
# .github/workflows/ci.yml
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x] # Cross-version matrix
- name: Run tests with coverage
run: |
node --test --experimental-test-coverage \
--test-reporter=spec \
tests/*.test.js 2>&1 | tee coverage.txt
- name: Enforce coverage threshold
run: |
node scripts/check-coverage.js coverage.txt
If the same steps appear in 2+ workflows:
# .github/actions/run-tests/action.yml
name: Run Tests
description: Shared test runner with coverage gate
runs:
using: composite
steps:
- run: npm ci
shell: bash
- run: npm test
shell: bash
| Workflow | Trigger | Purpose |
|---|---|---|
ci.yml | push + PR | Test suite + coverage gate |
security.yml | push + PR + schedule | npm audit + CodeQL |
Composite: run-tests | shared | Node version matrix + coverage |
| File | Purpose |
|---|---|
.github/workflows/<name>.yml | Workflow definition |
.github/actions/<name>/action.yml | Reusable composite (if applicable) |
scripts/check-coverage.js | Coverage threshold enforcement |
codecov/codecov-action introduces an external dependency. DiD uses native Node coverage parsing.continue-on-error: true on enforcement steps — This converts a gate into a suggestion. Never use on coverage or test steps.npm ci — Always use npm ci (not npm install) in CI for reproducible installs.