agentleFS
timmo001timmo001/skills/shared-workflows/SKILL.md

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.

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
  1. Distinctive:

    Prefer an existing production shared workflow over duplicating CI logic.

    line 10
  2. Distinctive:

    Follow repository-local instructions when they are stricter than this skill.

    line 18
  3. Distinctive:

    Search existing contracts first.

    line 19
  4. Very specific:

    Read the selected workflow at the exact ref the caller will use.

    line 22
  5. Distinctive:

    Treat shell-valued inputs as trusted configuration.

    line 23
  6. Very specific:

    Use reusable workflows only at the job level with jobs.<job_id>.uses.

    line 25
  7. Very specific:

    Keep every uses: declaration and its complete owner/repository/path@ref value on one physical line.

    line 26
  8. Distinctive:

    Create shared behaviour only when justified.

    line 30
  9. Distinctive:

    Keep shared-workflow implementation, its validation, and directly required documentation together.

    line 39
  10. Distinctive:

    Run the shared repository's formatting and workflow lint checks.

    line 45
  11. Distinctive:

    Run the smallest representative caller workflow or repository check available.

    line 49

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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.
  2. 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_call inputs, 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.
  3. Configure the caller minimally.
    • Use reusable workflows only at the job level with jobs.<job_id>.uses.
    • Keep every uses: declaration and its complete owner/repository/path@ref value 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.
  4. 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 @workflows only 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.
  5. Protect consumers when changing a contract.
    • Discover consumers across repositories owned by the relevant user or organisation; the local dot inventory 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.

Validation

Validate in dependency order:

  1. Run the shared repository's formatting and workflow lint checks.
  2. Validate the reusable workflow syntax and its declared contract.
  3. Validate each changed caller against the pinned revision, including permissions and secret mappings.
  4. Confirm every changed uses: declaration remains a single physical line that Renovate can parse.
  5. Run the smallest representative caller workflow or repository check available.
  6. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.