write-github-actions-workflow
Writes or updates GitHub Actions workflows and reusable actions.
Skill by cyberphor
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/cyberphor-write-github-actions-workflow
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, writing, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/write-github-actions-workflow
What's inside
- Skill name
write-github-actions-workflow- Description
- Writes or updates GitHub Actions workflows and reusable actions. Use when asked to create or update repository checks, builds, releases, or deployments with GitHub Actions.
- License
- MIT
- Instructions
- 51 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# How to Write a GitHub Actions Workflow
Inspect existing workflows, action metadata, reusable configurations, repository instructions, and the commands they invoke. Establish the intended event, checked-out revision, runner, job dependencies, and required tools before editing. Preserve existing release and deployment scope.
Read and apply `write-text` from the active skill catalog or [sibling skill](../write-text/SKILL.md) when drafting comments or explanations. Reuse it if already loaded. Apply `write-makefile`, `write-go-code`, or `write-python-code` through the catalog or [Write Makefile](../write-makefile/SKILL.md), [Write Go Code](../write-go-code/SKILL.md), or [Write Python Code](../write-python-code/SKILL.md) skills when editing those files. Workflow commands should preserve the project's required artifacts and tooling.
## Events and Revisions
Choose triggers and branch, tag, path, and activity filters from the requested behavior. Distinguish a branch push, tag push, pull request, and manual dispatch. PR branch filters match the base branch. Normal open-PR checks use a merge ref and merge commit by default, while the head revision is available through the PR payload. `pull_request_target` uses the base context. Manual dispatch has selected-ref and input semantics and requires the workflow on the default branch.
Use event-specific fields only where that event supplies them, with appropriate fallbacks for mixed triggers. Confirm the revision checkout actually tests or releases and its history requirements. Do not derive a release version from a PR merge ref or assume `github.ref_name` is always a branch.
## Jobs and Reuse
Express ordering through `needs`. Account for failed or skipped prerequisites and the implicit success condition when writing `if` expressions. Use explicit status checks for intended cleanup or reporting, preserving cancellation behavior. Do not use `always()` to make a failed build eligible for publication.
Keep matrix combinations relevant to supported platforms and runtimes. Choose fail-fast behavior deliberately and give artifacts and outputs distinct identities when jobs run in parallel. Write step outputs through `GITHUB_OUTPUT`, map them to job outputs, and consume them through `needs`. Do not assume shared filesystems or a deterministic matrix completion order.
Call reusable workflows at job level and actions at step level. Preserve typed input and output contracts, passing only required secrets and permissions. Check local action paths and required checkout. Prefer existing Make targets for shared build or check logic. Verify the runner supplies every tool those targets require, installing tools such as uv explicitly when necessary rather than assuming runner availability.
## Trust and Deployment
Set the minimum required `GITHUB_TOKEN` permissions, adding write access only to jobs that need it. Respect repository action policies. Prefer verified full commit SHAs for external actions and reusable workflows when compatible with that policy. Confirm the commit belongs to the intended source and retain a readable version comment when useful.
Keep privileged triggers separate from untrusted PR execution. Do not check out and run contributor code under `pull_request_target` with repository secrets or write credentials. Consider scripts, local actions, dependency installation, and artifacts as possible execution paths across that boundary.
Pass untrusted event text through step `env` values or action inputs. Quote shell variables when consuming it. Interpolating `${{ ... }}` directly into a `run` script can turn a PR title or branch name into executable syntax. Do not use `eval` to process those values.
Use concurrency groups that identify the workflow and resource being coordinated. Cancel superseded checks when useful, but do not automatically cancel an in-progress deployment that needs completion or cleanup. Preserve configured environment protections. Scope OIDC token permission to the job that authenticates and constrain the provider trust to intended repository, ref or environment, and audience. Editing a workflow does not authorize cloud changes, publication, or dispatch.
## Caches and Artifacts
Key dependency caches by relevant platform, architecture, tool version, and dependency lockfile. Check that hash paths actually match files. Keep restore fallbacks compatible and preserve cache trust boundaries. Never cache credentials. Use artifacts to transfer or retain build outputs with explicit names and paths. A cache hit does not prove a build is current and does not replace a release artifact.
## Verification
Run the project's workflow checks and `actionlint` when available, using its documented invocation. Validate shell snippets with the configured shell tooling when relevant. YAML parsing alone does not validate Actions expressions, contexts, or event behavior.
Review representative intended and excluded events, including a fork PR or manual input when applicable. Trace checkout, conditions, job dependencies, permissions, outputs, and artifact paths through success, failure, and cancellation. Run authorized local build or check commands when they verify changed behavior. Inspect existing run logs for troubleshooting.
Report completed static and local checks separately from GitHub runtime results. Do not dispatch a workflow or publish a release merely to verify an edit. Identify runner, secret, environment, or cloud behavior that remains untested.
## Official References
* [Events that trigger workflows](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows) when choosing filters or resolving event refs and payloads.
* [Workflow syntax](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax) when changing jobs, dependencies, outputs, reusable calls, or concurrency.
* [Secure use reference](https://docs.github.com/en/actions/reference/security/secure-use) when reviewing action pinning, token privileges, or untrusted input.
* [Dependency caching](https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching) when changing keys, restore behavior, or cache access.
* [OpenID Connect](https://docs.github.com/en/actions/concepts/security/openid-connect) when configuring short-lived cloud authentication and trust.From cyberphor/skills, MIT.
More from cyberphor/skills
- 0.565score
write-text
cyberphor
Writes or updates text using ASD-STE100 Simplified Technical English, Issue 9.
SkillAFreshness: AClaude Code +9 - 0.565score
write-python-code
cyberphor
Writes or updates Python source, tests, and code examples in the user's concise, explicit style.
SkillAFreshness: AClaude Code +9 - 0.565score
write-python-django
cyberphor
Writes or updates Django projects, models, forms, views, and migrations.
SkillAFreshness: AClaude Code +9 - 0.565score
write-vex-statement
cyberphor
Writes or updates Vulnerability Exploitability eXchange (VEX) statements for exact software artifacts and vulnerabilities.
SkillAFreshness: AClaude Code +9 - 0.565score
fix-github-workflow
cyberphor
Reads GitHub Actions workflow evidence and updates the affected repository with an approved fix.
SkillAFreshness: AClaude Code +9 - 0.565score
write-go-code
cyberphor
Writes or updates Go source, tests, and code examples in the user's preferred style.
SkillAFreshness: AClaude Code +9 - 0.565score
fix-uds-core-k8s-workload
cyberphor
Troubleshoots Kubernetes workloads that integrate with UDS Core.
SkillAFreshness: AClaude Code +9 - 0.565score
write-docker-compose
cyberphor
Writes or updates Docker Compose service configurations.
SkillAFreshness: AClaude Code +9 - 0.565score
write-dockerfile
cyberphor
Writes or updates Dockerfiles and their build contexts.
SkillAFreshness: AClaude Code +9 - 0.565score
write-go-bubble-tea
cyberphor
Writes or updates Go terminal interfaces using Bubble Tea.
SkillAFreshness: AClaude Code +9 - 0.565score
write-makefile
cyberphor
Writes or updates Makefiles in the preferred style.
SkillAFreshness: AClaude Code +9 - 0.564score
write-agent-skill
cyberphor
Writes or updates agent skills.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 17, 2026 (12 days ago)
- Last release
- Oct 22, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/cyberphor/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from cyberphor
- 0.565score
write-python-code
cyberphor
Writes or updates Python source, tests, and code examples in the user's concise, explicit style.
SkillAFreshness: AClaude Code +9 - 0.565score
write-docker-compose
cyberphor
Writes or updates Docker Compose service configurations.
SkillAFreshness: AClaude Code +9 - 0.565score
write-dockerfile
cyberphor
Writes or updates Dockerfiles and their build contexts.
SkillAFreshness: AClaude Code +9 - 0.565score
write-go-bubble-tea
cyberphor
Writes or updates Go terminal interfaces using Bubble Tea.
SkillAFreshness: AClaude Code +9 - 0.565score
write-makefile
cyberphor
Writes or updates Makefiles in the preferred style.
SkillAFreshness: AClaude Code +9 - 0.565score
write-python-django
cyberphor
Writes or updates Django projects, models, forms, views, and migrations.
SkillAFreshness: AClaude Code +9
Cite this page
write-github-actions-workflow skill. Agent Mart. https://agentmart.dev/skills/cyberphor-write-github-actions-workflow (last updated 2026-10-24)