github-actions
MUST invoke when the user needs to create or modify GitHub Actions workflows. Trigger phrases include "GitHub Actions", "CI/CD pipeline", "workflow file", "create workflow", "Docker build workflow", "Python test workflow", and "Helm deploy". Use for workflows with first-party actions, repository-local jobs, or an established shared-actions catalog. Do NOT invoke for general gh commands or workflow-run inspection; use github instead.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- github-actions
- description
- MUST invoke when the user needs to create or modify GitHub Actions workflows. Trigger phrases include "GitHub Actions", "CI/CD pipeline", "workflow file", "create workflow", "Docker build workflow", "Python test workflow", and "Helm deploy". Use for workflows with first-party actions, repository-local jobs, or an established shared-actions catalog. Do NOT invoke for general gh commands or workflow-run inspection; use github instead.
02 资源文件 4
- 参考文档agents/openai.yaml110 B
- 参考文档references/security-scanning.md1.9 KB
- 参考文档references/workflow-examples.md2.3 KB
- 参考文档references/workflow-philosophy.md2.9 KB
03 SKILL.md 正文
GitHub Actions Workflow Design
Use this skill when creating or modifying GitHub Actions workflows. It is repository-agnostic:
- Prefer the target repository's existing workflow conventions.
- Prefer first-party GitHub actions when no established convention exists.
- Reuse shared actions or reusable workflows only when the repository already uses them or the user explicitly requests them.
Inputs to Gather First
Before proposing a workflow, identify:
- Language, build system, package manager, and test commands.
- Deployment target, if any.
- Triggers: pull request, push, tag, release, schedule, dispatch, or delete.
- Required secrets, variables, and environments.
- Existing
.github/workflows/, action pinning policy, shared-action catalog, and branch-protection conventions.
Discover Existing Workflows
Inspect existing patterns before introducing new ones.
gh api repos/<owner>/<repo>/contents/.github/workflows --jq '.[].name'
gh api repos/<owner>/<repo>/contents/.github/workflows/<workflow-file> --jq '.content' \
| python3 -c 'import base64, sys; sys.stdout.write(base64.b64decode(sys.stdin.read()).decode())'
gh repo view <owner>/<repo> --readme
If the repository already references a shared actions or reusable-workflows catalog, inspect that catalog rather than guessing.
gh api repos/<owner>/<shared-actions-repo>/contents/actions --jq '.[].name'
gh api repos/<owner>/<shared-actions-repo>/contents/.github/workflows --jq '.[].name'
Version Pinning
# First-party GitHub actions
uses: actions/checkout@v4
uses: actions/setup-python@v5
# Established reusable workflow or custom action
uses: <owner>/<shared-workflows-repo>/.github/workflows/<workflow-file>@v2
uses: <owner>/<shared-actions-repo>/actions/<action-name>@v2
- Prefer stable major tags for trusted first-party actions.
- Follow the repository's policy for third-party actions; use full commit SHAs when immutable pinning is required.
- Do not use mutable branch references such as
@mainin production workflows.
Permissions
Default to least privilege.
# Read-only CI
permissions:
contents: read
# OIDC deployment
permissions:
contents: read
id-token: write
Grant write permissions only to the specific workflow that needs them.
Common Workflow Patterns
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
- Pull-request workflows provide fast validation without deployment.
- Main-branch workflows publish artifacts or deploy after merge.
- Tag or release workflows provide versioned publication.
- Delete workflows clean up branch-scoped resources only when those resources exist.
Variables, Secrets, and Environments
- Store non-secret configuration in repository or organization variables.
- Store credentials and tokens in GitHub secrets; never print or write their values.
- Use GitHub Environments for deployment protection rules and environment-specific values.
- Give reusable workflows only the secrets they need; use
secrets: inheritonly when broad access is necessary. - Document required variables and secrets in repository documentation.
References
- Read security-scanning.md for dependency, code, container, and secret scanning guidance.
- Read workflow-philosophy.md for triggers, environments, concurrency, and release boundaries.
- Read workflow-examples.md for generic Python, Terraform/OpenTofu, Node, and container workflow examples.
Scaffolding Checklist
- Triggers match the repository lifecycle.
- Permissions are minimal for each workflow.
- Setup and caching match the language and package manager.
- Required secrets, variables, and environments are documented.
- Action pinning follows repository policy.
- Branch and environment protections match deployment risk.
- Security scanning fits the existing toolchain without adding an unapproved gate.
- Reusable actions and workflows come from repository-local or approved sources.
04 同仓库更多 Skills
ui-ux-pro-max
UI/UX design intelligence for web and mobile. Local database with 79 searchable styles (88 catalog entries), 192 color palettes, 74 font pairings, 192 product types, 119 UX guidelines, 105 curated icon entries, 17 GSAP motion presets, and 25 chart types across 22 stacks (React, Next.js, Vue, Nuxt, Svelte, Astro, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, Jetpack Compose, Angular, Laravel, JavaFX, WPF, WinUI, Avalonia, Uno Platform, UWP, Three.js, and HTML/CSS). Use when designing, building, or reviewing UI: pages, components, color schemes, typography, layout, accessibility, animation, or data visualization.
figma-mcp
Implement or compare UI against Figma designs using an available Figma MCP integration. Use for Figma-backed implementation, design-token extraction, or visual-parity gap analysis; Figma MCP access is optional and must already be configured by the user.
improve-codebase-architecture
Find evidence-based, active-change architecture improvements using shared design and domain-modeling guidance. Use when a user wants to reduce architectural friction, deepen a module, or make a current change safer, more testable, and easier to navigate.
domain-modeling
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing GLOSSARY.md or CONTEXT.md, or recording or editing an ADR.
codebase-design
Provide the shared vocabulary and discipline for designing deep modules with clear interfaces and seams. Use when a user wants to design or improve a module, find deepening opportunities, choose a seam, or make code more testable and AI-navigable.
test-coverage-review
MUST invoke to review whether added or updated tests cover code changes in a diff. Checks new logic, branches, error paths, and regression risk, producing a change-to-test matrix. Use requirements-to-tests-traceability for acceptance-criteria mapping and orchestrated-review for bundled reviews.