github-actions-templates
できること
テスト、ビルド、デプロイなどの作業を自動化するための、本番環境で使えるテンプレートをGitHub上で作成するためのツールです。こうした自動化の設定例も提供します。
使う場面
- ✓コードのテストを自動化したいとき。
- ✓プロジェクトをビルドしたり公開したりする準備をしたいとき。
- ✓許可を得たうえでデプロイの流れを設定したいとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github-actions-templates/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Node.jsプロジェクトのテスト用ワークフローのテンプレートを作成してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールは、そのまま使ったり手直ししたりできるコード例(「ワークフロー」と呼ばれます)を提供します。例では、テストなどの特定のコマンドをGitHubが自動で実行する方法を示しています。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
GitHub Actions Workflow Patterns
When to Use
Implement testing, matrix builds, artifact preparation or an explicitly authorized deployment workflow for an existing repository.
Inputs
Inspect the repository's actual scripts, lockfile, supported runtimes, required check names and release policy. Read resources/implementation-playbook.md and references/common-workflows.md before choosing job boundaries.
Test Workflow
This Node example assumes the target repository declares npm test and supports Node 22. Adapt the runtime and command to the actual project. The pinned action revisions are explicit review inputs; verify them before adopting or updating the template.
name: Test
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
with:
persist-credentials: false
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
with:
node-version: '22'
cache: npm
- run: npm ci
- run: npm test
Matrix Builds
Add a matrix only for versions and operating systems the project supports. Keep dependencies reproducible, identify failing combinations, and avoid hiding failures with blanket continue-on-error. Test required-check behavior when jobs are conditionally skipped.
Build and Publication
Build an artifact from the tested commit and record its identity. Publication needs a separate trusted job with the minimum registry permission. Do not publish artifacts produced by arbitrary untrusted code in a privileged context; bind accepted artifacts to their exact source and producing workflow.
Deployment
Use the project's protected release path. Identify the immutable artifact, destination, workload identity, rollout and rollback checks before adding deployment commands. A named GitHub environment does not configure reviewers automatically. Verify its actual protections. Do not label a placeholder echo command as a successful deployment.
Verification
Exercise one passing change and one deliberate test failure on a topic branch. Confirm the failing check prevents downstream publication. Inspect tokens, runner isolation, caches and artifact boundaries. Keep production credentials absent from untrusted validation jobs.
Example
A project needs Linux and Windows tests. Select its supported runtime, add the two runner combinations and confirm that either failure blocks the required result. Prepare publication separately; do not add registry credentials to the matrix.
Limitations
This skill supplies patterns, not an installed deployment program. Repository policy, runner trust and environment settings must be inspected. Review every third-party action at its full commit SHA and treat logs and uploaded artifacts as possible data-exposure paths.
Sources
よくある質問
GitHub Actionsの「ワークフロー」とは何ですか?
GitHubに対して、特定の出来事(新しい変更のプッシュなど)が起きたときに、テストの実行やコードの公開などを指示する設定ファイルのことです。
どのプロジェクトにも使えますか?
テンプレートはGitHub上のプロジェクト向けです。プロジェクトの種類や使っているツールに合わせて調整する必要があります。
このツールを使うと、コードが自動で公開されますか?
公開用のテンプレートを提供しますが、この操作は慎重に設定し、許可を与える必要があります。信頼できる成果物だけが公開されるようにしてください。
詳細
作者による元の説明
Production-ready GitHub Actions workflow patterns for testing, building, and deploying applications.
人気
- GitHubのスター
- 48k
- ランキング
- #4745
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。