ci-maintenance
GitHub专注于GitHub Actions工作流的安全维护与审查,涵盖权限管理、动作固定、输入验证及并发控制等信任边界审计,确保CI/CD流程安全合规。
Trigger Scenarios
Install
npx skills add pingdotgg/t3code --skill ci-maintenance -g -y
SKILL.md
Frontmatter
{
"name": "ci-maintenance",
"description": "GitHub Actions maintenance. Use when authoring or reviewing workflows or composite actions, especially event, permission, action-reference, artifact, setup, or concurrency changes."
}
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
- Decide whether this is a review or an implementation. Reviews produce evidence-backed findings without editing; implementations continue through the smallest boundary-preserving change.
- Inspect every affected workflow, composite action, and caller. List all affected jobs and actions before proceeding.
- 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.
- Consult current GitHub documentation for every platform-sensitive decision. Repository examples establish local convention, not platform semantics.
- 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.
- For forks, privileged credentials, publication, or cross-run data, read privileged-workflows.md.
- 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.
Version History
- 5423ba0 Current 2026-09-22 10:57


