Skip to content
Back to skills

Collection

ASecurity

GitHub Actions再利用可能ワークフローの設計と実装。 workflow_call イベント、入力/出力/シークレット定義、呼び出しパターン、 合成設計、継承、チェーンパターンの専門知識を提供。 📚 リソース参照: このスキルには以下のリソースが含まれています。 必要に応じて該当するリソースを参照してください: - `.claude/skills/reusable-workflows/resources/caller-patterns.md`: Caller Patternsリソース - `.claude/skills/reusable-workflows/resources/design-patterns.md`: Design Patternsリソース - `.claude/skills/reusable-workflows/resources/workflow-call-syntax.md`: Workflow Call Syntaxリソース - `.claude/skills/reusable-workflows/templates/caller-wor...

  • 24 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
devopsbashnodeexpressgitci/cd

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add mattnigh/skills_collection --skill collection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Collection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mattnigh-collection-a80ac7ab/badge)](https://www.skillsdirectory.com/skills/mattnigh-collection-a80ac7ab)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: .claude/skills/reusable-workflows/SKILL.md
description: |
  GitHub Actions再利用可能ワークフローの設計と実装。
  workflow_call イベント、入力/出力/シークレット定義、呼び出しパターン、
  合成設計、継承、チェーンパターンの専門知識を提供。

  📚 リソース参照:
  このスキルには以下のリソースが含まれています。
  必要に応じて該当するリソースを参照してください:

  - `.claude/skills/reusable-workflows/resources/caller-patterns.md`: Caller Patternsリソース
  - `.claude/skills/reusable-workflows/resources/design-patterns.md`: Design Patternsリソース
  - `.claude/skills/reusable-workflows/resources/workflow-call-syntax.md`: Workflow Call Syntaxリソース

  - `.claude/skills/reusable-workflows/templates/caller-workflow.yaml`: Caller Workflowテンプレート
  - `.claude/skills/reusable-workflows/templates/reusable-workflow.yaml`: Reusable Workflowテンプレート

  - `.claude/skills/reusable-workflows/scripts/validate-reusable.mjs`: Validate Reusableスクリプト

  Use proactively when implementing reusable workflows, workflow composition patterns,
  or standardizing CI/CD processes across multiple projects.
version: 1.0.0
---

# Reusable Workflows Skill

GitHub Actions 再利用可能ワークフローの設計と実装の専門知識。

## 📁 Directory Structure

```
.claude/skills/reusable-workflows/
├── SKILL.md                          # このファイル (~150-200行)
├── resources/
│   ├── workflow-call-syntax.md       # workflow_call詳細定義
│   ├── caller-patterns.md            # 呼び出しパターン
│   └── design-patterns.md            # 合成・継承・チェーン
├── templates/
│   ├── reusable-workflow.yaml        # 再利用可能ワークフロー
│   └── caller-workflow.yaml          # 呼び出し側テンプレート
└── scripts/
    └── validate-reusable.mjs         # 検証スクリプト
```

## 🎯 Core Concept

再利用可能ワークフローは `workflow_call` イベントで定義され、他のワークフローから呼び出し可能:

```yaml
# .github/workflows/reusable-build.yml
name: Reusable Build

on:
  workflow_call:
    inputs:
      node-version:
        required: true
        type: string
    outputs:
      build-id:
        value: ${{ jobs.build.outputs.build-id }}
    secrets:
      NPM_TOKEN:
        required: true

jobs:
  build:
    runs-on: ubuntu-latest
    outputs:
      build-id: ${{ steps.build.outputs.id }}
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: ${{ inputs.node-version }}
      - run: pnpm ci
        env:
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
```

## 📚 Command Reference

### リソース参照

```bash
# workflow_call 構文詳細
cat .claude/skills/reusable-workflows/resources/workflow-call-syntax.md

# 呼び出しパターン
cat .claude/skills/reusable-workflows/resources/caller-patterns.md

# 設計パターン
cat .claude/skills/reusable-workflows/resources/design-patterns.md
```

### テンプレート使用

```bash
# 再利用可能ワークフローテンプレート
cat .claude/skills/reusable-workflows/templates/reusable-workflow.yaml

# 呼び出し側テンプレート
cat .claude/skills/reusable-workflows/templates/caller-workflow.yaml
```

### 検証

```bash
# 再利用可能ワークフロー検証
node .claude/skills/reusable-workflows/scripts/validate-reusable.mjs <workflow.yml>
```

## 🔄 Calling Reusable Workflows

```yaml
# .github/workflows/ci.yml
name: CI

on: [push]

jobs:
  build:
    uses: ./.github/workflows/reusable-build.yml
    with:
      node-version: "20"
    secrets:
      NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

  test:
    needs: build
    uses: ./.github/workflows/reusable-test.yml
    with:
      build-id: ${{ needs.build.outputs.build-id }}
```

## 💡 Key Features

### Input Types

- `string`: テキスト値
- `boolean`: true/false
- `number`: 数値

### Output Propagation

ジョブ出力をワークフロー出力として伝播:

```yaml
outputs:
  result:
    value: ${{ jobs.main.outputs.result }}
```

### Secret Inheritance

```yaml
# すべてのシークレットを継承
secrets: inherit

# または個別に指定
secrets:
  TOKEN: ${{ secrets.TOKEN }}
```

## 🎨 Design Patterns

1. **Composition**: 複数ワークフローを組み合わせる
2. **Inheritance**: 基本ワークフローを継承
3. **Chaining**: ワークフローを連鎖実行
4. **Matrix**: 複数構成で並列実行

詳細は `resources/design-patterns.md` を参照。

## 🔗 Related Skills

- **.claude/skills/github-actions-syntax/SKILL.md**: `.claude/skills/github-actions-syntax/SKILL.md`
- **.claude/skills/github-actions-expressions/SKILL.md**: `.claude/skills/github-actions-expressions/SKILL.md`
- **.claude/skills/composite-actions/SKILL.md**: `.claude/skills/composite-actions/SKILL.md`
- **.claude/skills/workflow-templates/SKILL.md**: `.claude/skills/workflow-templates/SKILL.md`

## 📖 When to Use

- 共通 CI/CD パターンの標準化
- 複数プロジェクト間でワークフローを共有
- ワークフローロジックの重複を削減
- チーム全体で一貫したパイプライン
- メンテナンスコストの削減

詳細な構文、呼び出しパターン、設計パターンは `resources/` を参照してください。

Files in this skill

  • 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md15.1 KB
  • 17hz__nextjs-template__claude__skills__example-skill__SKILL.md316 B
  • 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md3.5 KB
  • 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md5.4 KB
  • 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md7.7 KB
  • 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md26.1 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md15.7 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md17.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md9.4 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md12.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md16.6 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md11.2 KB
  • 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md14.8 KB
  • 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md16.2 KB
  • 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md11.8 KB
  • 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md17.5 KB
  • 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md19.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md6.2 KB
  • 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md18.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md24.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.