generate-reusable-workflow

Generate a reusable GitHub Actions workflow YAML from selected jobs.

1|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/intartif/demos-agent-skills --skill generate-reusable-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-reusable-workflow
Source: https://github.com/intartif/demos-agent-skills/tree/main/.github/skills/generate-reusable-workflow
Command: npx skills add https://github.com/intartif/demos-agent-skills --skill generate-reusable-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates a reusable GitHub Actions workflow by selecting jobs from an existing workflow and assigning a final name.

Core Features & Use Cases

  • Reuse and modularize CI pipelines by extracting specific jobs from a base workflow.
  • Ensure correct dependency handling by automatically excluding non-selected dependent jobs.
  • Name and export a new workflow YAML without overwriting the base file.

Quick Start

Provide the base workflow name, the jobs to include, and the final workflow name to generate a new YAML file.

Frequently Asked Questions about generate-reusable-workflow

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

FAQPage Schema
How do I extract specific jobs from a GitHub Actions workflow to create a reusable YAML file?

To create a reusable GitHub Actions workflow, you select specific jobs from a base workflow and assign a final name. The tool parses the base workflow, resolves job dependencies, and outputs a new YAML file without overwriting the original.

What happens to job dependencies when I only select certain jobs for my reusable workflow?

When generating a reusable workflow, the tool automatically resolves job dependencies and excludes non-selected dependent jobs. This ensures the final YAML maintains correct execution flow without breaking the CI pipeline.

Can I modularize an existing CI pipeline by reusing proven job blocks for different projects?

Yes, you can modularize CI pipelines by extracting proven job blocks from a base workflow into a reusable workflow. This allows teams to tailor and reuse specific jobs across different projects efficiently.

Where does the generated reusable GitHub Actions workflow YAML file get saved?

The generated reusable workflow YAML is output under the .github/workflows directory. The generation process strictly avoids overwriting your base workflow file to preserve your original configuration.

What inputs do I need to provide to generate a reusable GitHub Actions workflow?

You need to provide the base workflow name, the specific jobs to include, and the final workflow name. These inputs allow the tool to parse the original file and generate the new YAML configuration.