shared-workflows
Skill1 starsChanged 56 days agoApache-2.0View on GitHub
Use, configure, maintain, or create reusable GitHub Actions workflows for personal and organisation repositories. Use when a task mentions shared workflows, reusable workflows, `workflow_call`, cross-repository workflow `uses:`, or the personal workflows repository; do not use for repository-specific or proof-of-concept CI unless evaluating whether it should be shared.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentic-workflowsSkill
- asking-questionsSkill
- branch-context-consumerSkill
- broSkill
- browser-accessSkill
- browser-controlSkill
- changeset-scopeSkill
- check-skill-updatesSkill
- chillSkill
- cleanup-unnecessary-variablesSkill
- code-reviewSkill
- decision-modelsSkill
- diagnoseSkill
- effect-principlesSkill
- evidence-firstSkill
- gh-stackSkill
- git-contextSkill
- github-development-rulesetsSkill
- github-repository-setupSkill
- grillingSkill
- handoffSkill
- herdr-workflowsSkill
- home-assistant-frontendSkill
- home-assistant-lazy-contextSkill
- home-assistant-list-componentsSkill
- home-assistant-lit-renderingSkill
- human-step-guideSkill
- import-external-skillSkill
- lit-renderingSkill
- maintain-docsSkill
- opencode-effectSkill
- pitchfork-dev-serversSkill
- pkexec-rootSkill
- planSkill
- release-oxlint-rulesSkill
- remove-single-use-functionsSkill
- researchSkill
- retroSkill
- safe-process-signalsSkill
- session-coordinationSkill
- show-meSkill
- skill-prefixesSkill
- staged-implementationSkill
- task-focusSkill
- testingSkill
- to-questionnaireSkill
- types-enforce-tsSkill
- wranglerSkill
- writing-dot-skillsSkill
- writing-styleSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Prefer an existing production shared workflow over duplicating CI logic.
- Distinctive: line 18
Follow repository-local instructions when they are stricter than this skill.
- Distinctive: line 19
Search existing contracts first.
- Very specific: line 22
Read the selected workflow at the exact ref the caller will use.
- Distinctive: line 23
Treat shell-valued inputs as trusted configuration.
- Very specific: line 25
Use reusable workflows only at the job level with jobs.<job_id>.uses.
- Very specific: line 26
Keep every uses: declaration and its complete owner/repository/path@ref value on one physical line.
- Distinctive: line 30
Create shared behaviour only when justified.
- Distinctive: line 39
Keep shared-workflow implementation, its validation, and directly required documentation together.
- Distinctive: line 45
Run the shared repository's formatting and workflow lint checks.
- Distinctive: line 49
Run the smallest representative caller workflow or repository check available.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Shared Workflows
Prefer an existing production shared workflow over duplicating CI logic. Keep repository-specific workflows and proofs of concept in their consumer repository.
Workflow
- Establish ownership and scope.
- Resolve the authenticated GitHub user and the active repository owner rather than assuming either from a local path.
- For a repository owned by the authenticated user, use that user's shared-workflows repository. In this setup, the personal reference is
@workflows(timmo001/workflows). - For an organisation repository, inspect and follow that organisation's shared-workflow repository and conventions. Never fall back to the personal repository automatically.
- Follow repository-local instructions when they are stricter than this skill.
- Search existing contracts first.
- Inspect the shared repository's current reusable workflows and the active repository's existing callers.
- Select by behaviour and prerequisites, not by filename alone.
- Read the selected workflow at the exact ref the caller will use. Check
workflow_callinputs, secrets, outputs, permissions, runner assumptions, expected files, package manager, artifacts, event context, and concurrency behaviour. - Treat shell-valued inputs as trusted configuration. Never populate them from pull request content or other untrusted data.
- Configure the caller minimally.
- Use reusable workflows only at the job level with
jobs.<job_id>.uses. - Keep every
uses:declaration and its completeowner/repository/path@refvalue on one physical line. Never wrap it with YAML block or folded scalar syntax (|or>), because Renovate's GitHub Actions manager will not detect the dependency. - Pin new or updated cross-repository calls to a full commit SHA and retain a short comment naming the tracked branch or release when the repository convention permits it.
- Pass only non-default inputs that the consumer needs. Map required secrets explicitly and grant the narrowest caller permissions that satisfy the contract.
- Preserve working historical SHA-pinned callers. If their workflow no longer exists on the shared repository's default branch, inspect the historical contract at that SHA, but do not copy it into new integrations without a separate decision to restore or replace it.
- Use reusable workflows only at the job level with
- Create shared behaviour only when justified.
- A candidate must be production behaviour with plausible reuse across repositories and a stable caller-facing contract. Otherwise keep it local.
- Define the final interface before implementation: typed inputs and defaults, required secrets, outputs, permissions, supported events, artifacts, failure behaviour, and compatibility expectations.
- For a missing personal workflow, recommend a separate numbered handoff named
handoff-{workflow-name}-01-create-shared-workflow.md. Write directly to@workflowsonly when the user's requested scope explicitly includes that repository. - For a missing organisation workflow, use the organisation's planning and contribution process rather than creating a personal substitute.
- Protect consumers when changing a contract.
- Discover consumers across repositories owned by the relevant user or organisation; the local
dotinventory is research context, not the boundary. - Classify changes to inputs, secrets, outputs, permissions, artifacts, prerequisites, defaults, and runtime behaviour as compatible or breaking.
- For a breaking change, define migration order and update callers deliberately. Do not rely on a mutable branch to coordinate rollout.
- Keep shared-workflow implementation, its validation, and directly required documentation together. Treat broad consumer migrations as separate reviewable stages when they can stand independently.
- Discover consumers across repositories owned by the relevant user or organisation; the local
Validation
Validate in dependency order:
- Run the shared repository's formatting and workflow lint checks.
- Validate the reusable workflow syntax and its declared contract.
- Validate each changed caller against the pinned revision, including permissions and secret mappings.
- Confirm every changed
uses:declaration remains a single physical line that Renovate can parse. - Run the smallest representative caller workflow or repository check available.
- For contract changes, confirm every discovered consumer is compatible, migrated, or explicitly deferred.
Report the selected shared contract and pinned SHA, caller changes, permissions and secrets required (names only), validation evidence, and any consumers or migrations left outstanding.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

