github-actions-composite

Define action.yml structures for GitHub Actions composite actions.

Updated Jan 7, 2026
One-click install
npx skills add https://github.com/lbussell/agent-skills --skill github-actions-composite
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-actions-composite
Source: https://github.com/lbussell/agent-skills/tree/main/skills/github-actions-composite
Command: npx skills add https://github.com/lbussell/agent-skills --skill github-actions-composite

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation of reusable GitHub Actions by guiding you through the process of defining action.yml files for composite actions.

Core Features & Use Cases

  • Define Composite Actions: Structure action.yml files for composite actions.
  • Integrate github-script: Safely use JavaScript for GitHub API interactions.
  • Manage Inputs & Outputs: Define and handle inputs and outputs for your actions.
  • Use Case: You need to create a standardized way to check out code, set up Node.js, and run tests within multiple GitHub workflows. This Skill helps you build a composite action to encapsulate this logic.

Quick Start

Use the github-actions-composite skill to create a new composite action definition in action.yml.

Frequently Asked Questions about github-actions-composite

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create reusable GitHub Actions workflows with composite actions?

To create reusable GitHub Actions workflows, you define a composite action by structuring an `action.yml` file that orchestrates shell commands and manages inputs and outputs for encapsulated logic.

What is the best way to use the GitHub API inside a composite action?

The best way to interact with the GitHub API inside a composite action is by integrating the `github-script` tool, which allows you to safely execute JavaScript for API interactions within your workflow.

How do I manage inputs and outputs when building GitHub Actions?

When building GitHub Actions, you manage inputs and outputs by explicitly defining them within your `action.yml` structure, allowing your composite action to receive data and return results to the calling workflow.

What security practices should I follow for GitHub Actions composite actions?

Security practices for GitHub Actions composite actions include pinning actions to specific commit SHAs and validating all inputs to prevent unauthorized access or malicious execution within your CI/CD pipelines.

When should I use composite actions instead of standard GitHub Actions workflows?

You should use composite actions instead of standard workflows when you need to reuse identical sequences of steps—like checking out code and running tests—across multiple GitHub Actions workflows to avoid duplication.