Loading...
Loading...
Scaffold a traditional deterministic GitHub Actions CI/CD workflow. Use this when creating build, test, deploy, lint, release, or security scan pipelines. This is distinct from agentic workflows — no AI is involved at runtime.
npx skill4agent add richfrem/agent-plugins-skills create-github-action| Task | Use This Skill | Use |
|---|---|---|
| Run tests on every PR | ✅ | ❌ |
| Build and publish a Docker image | ✅ | ❌ |
| Deploy to GitHub Pages | ✅ | ❌ |
| Check if PR matches the spec | ❌ | ✅ |
| Daily repo health report | ❌ | ✅ |
| Code review with AI judgment | ❌ | ✅ |
pull_requestpushworkflow_dispatchschedulereleasepython ~~agent-scaffolders-root/scripts/scaffold_github_action.py \
--skill-dir <path-to-skill-directory> \
--category <test|build|lint|deploy|release|security|maintenance|custom> \
--platform <python|nodejs|go|docker|dotnet|generic> \
[--triggers pull_request push schedule workflow_dispatch] \
[--name "My Workflow Name"] \
[--branch main].yml.github/workflows/PYPI_TOKENNPM_TOKENDOCKER_PASSWORDDEPLOY_KEY@v4@v3contents: read| Trigger | Fires when | Common for |
|---|---|---|
| PR opened/updated | Tests, lint, security |
| Branch pushed | Deploy, release checks |
| On a time schedule | Maintenance, reports |
| Manual button click | Deploys, one-off jobs |
| Release published | Package publishing |
| Issue opened/labeled | Triage, notifications |
| Called by another workflow | Reusable sub-workflows |
permissions:
contents: read # Read repo files
contents: write # Commit files, push
pull-requests: write # Comment on PRs
issues: write # Create/update issues
packages: write # Publish packages
id-token: write # OIDC (for cloud deploys)Always declare minimum required permissions. Thegrants no permissions by default unless declared.GITHUB_TOKEN
# Checkout
- uses: actions/checkout@v4
# Setup language
- uses: actions/setup-python@v5
with:
python-version: "3.12"
# Cache dependencies
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
# Upload artifacts
- uses: actions/upload-artifact@v4
with:
name: report
path: output/
# Publish GitHub Release
- uses: softprops/action-gh-release@v2
with:
files: dist/*audit-plugin