1.9k sybil-solutions

ci-maintenance Skill

GitHub Actions 维护。在编写或审查 workflow 或 composite action 时使用,尤其是涉及事件、权限、action 引用、artifact、setup 或并发的变更。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Audit the trust boundary before editing. This skill owns Actions event
semantics, workflow security, permissions, action pinning, setup reuse,
untrusted inputs, timeouts, concurrency, and artifact trust boundaries.

Workflow

  1. Decide whether this is a review or an implementation. Reviews produce

evidence-backed findings without editing; implementations continue through
the smallest boundary-preserving change.

  1. Inspect every affected workflow, composite action, and caller. List all

affected jobs and actions before proceeding.

  1. For each job, record the trigger, actor/fork status, workflow revision,

checked-out revision, permissions, credentials, and every external input and
consumer. Include artifacts, caches, outputs, PR fields, refs, dispatch
inputs, generated files, and called actions.

  1. Consult current GitHub documentation for every platform-sensitive decision.

Repository examples establish local convention, not platform semantics.

  1. Apply every applicable rule:
  • Default workflow permissions to empty and grant minimal job permissions.
  • Reuse the repository's shared setup action unless the environment must differ.
  • Give executable jobs intentional matrices and realistic timeouts.
  • Pin external actions and reusable workflows to full commit SHAs with

readable release comments; verify each SHA belongs to that upstream release.

  • Analyze event choice, checkout revision, and credential persistence

together.

  • Pass untrusted expressions through environment variables; validate and

quote them before use.

  • Derive concurrency from interruption safety.
  1. For forks, privileged credentials, publication, or cross-run data, read

privileged-workflows.md.

  1. Run the narrowest syntax and repository checks, inspect the complete diff,

and identify behavior testable only on GitHub-hosted runners.

For local patterns, inspect the current shared setup action and the nearest
workflow with the same trust boundary. Use ordinary check workflows for routine
precedent and privileged publication workflows only for equivalent trust
boundaries.

The task is complete when every affected job and caller has a recorded trust
boundary, every applicable rule has evidence or a compensating control, local
checks pass, and GitHub-only verification is identified. Reviews report every
failure with evidence; implementations resolve every failure and contain only
intended behavior.