workflows-actions-reuse
Installation
SKILL.md
Reusing workflows and actions
Every copy of a workflow is a place where the next fix gets forgotten. Share CI when it is copied; do not build sharing machinery for something used once.
1. Before you add or copy a workflow
Look at the sibling repositories first (the same owner, or the other folders in the workspace):
.github/workflows/ and the scripts those workflows run.
| What you find | What to do |
|---|---|
| No other copy | Write it in this repo. Stop here. |
| One other copy | Copy it, and say in your report that there are now two. |
| Two or more copies, or you are about to make the third | Tell the user before or with the work: name the files, say whether they are identical (cmp, diff), and propose one reusable workflow with thin callers. |
| The user needs the copy now | Make the copy, and still report as below. |