github-actions
Skill by siva01c
Writes and debugs GitHub Actions workflows in .github/workflows, using a Drupal project as the working example. Covers linting, static analysis, PHPUnit with a database service, and SSH deployment.
Install github-actions
Built from the published package, never by AI.
git clone --depth 1 https://github.com/siva01c/claude-plugins /tmp/claude-plugins && mkdir -p ~/.claude/skills && cp -r /tmp/claude-plugins/cicd-tools/skills/github-actions ~/.claude/skills/github-actionsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/siva01c/claude-plugins /tmp/claude-plugins && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-plugins/cicd-tools/skills/github-actions ~/.gemini/antigravity-cli/skills/github-actionsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The github-actions skill helps an AI assistant author and debug GitHub Actions workflow files in .github/workflows. It uses a Drupal project as the working example, with examples for phpcs linting, PHPUnit with a MariaDB service container, and Semgrep SAST with SARIF upload to code scanning.
The skill sets out patterns for least-privilege permissions, concurrency, matrix builds, and deployment jobs gated by needs and environments. It also covers reusable workflows and composite actions, plus a troubleshooting table for workflows that do not trigger or cannot reach a database. It is aimed at developers who run CI on GitHub for PHP or Drupal projects.
Written from the project's SKILL.md and checked against it.
What it can do
- Workflow authoringShows the anatomy of a workflow with triggers, permissions, concurrency and jobs.
- Linting with phpcsRuns phpcs with the Drupal and DrupalPractice standards on custom modules.
- PHPUnit with a databaseStarts a MariaDB service container and runs PHPUnit against it.
- Matrix buildsRuns jobs across several PHP versions using a strategy matrix.
- Semgrep SAST with SARIFRuns Semgrep and uploads SARIF results to code scanning.
- SSH deploymentDeploys over SSH with drush after tests pass when main is pushed.
- Reusable workflowsShows how to define a workflow_call workflow and call it from another.
- Composite actionsDescribes packaging a reusable step sequence in a local action.yml file.
- TroubleshootingLists fixes for workflows that do not trigger, lack permissions or miss cache hits.
What you need
- A GitHub repository with Actions enabled
- An SSH private key stored as a repository or environment secret for deployment
- GitHub Advanced Security for code scanning on private repositories
Try asking
- Add CI for this Drupal project on GitHub with phpcs and phpunit
- Set up a deploy job that runs over SSH when main is pushed
- Why didn't my GitHub Actions workflow trigger on push?
Good to know
- Fork pull requests get a read-only token, so the SARIF upload step fails there unless guarded.
- Without the --error flag, the Semgrep job stays green and findings go only to code scanning.
- Code scanning results on private repositories require GitHub Advanced Security.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: cicd-tools/skills/github-actions/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to github-actions
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
github-actions: common questions
How do I stop duplicate workflow runs on every PR push?
The skill says push and pull_request both trigger runs, so restrict push to branches: [main]. A concurrency group with cancel-in-progress also cancels superseded runs.
Why can't PHPUnit reach the database service?
Use 127.0.0.1 with the mapped port, not the service name, because service names only resolve in container jobs.
Should I use long-lived keys for cloud deployment?
The skill recommends OIDC with permissions id-token: write and the provider's auth action instead of long-lived keys.
How do I install github-actions?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is github-actions free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is github-actions safe to use?
It scores 49 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to github-actions?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
