ams-github-workflow-automation
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 0
- Forks
- 1
03 SKILL.md 正文
GitHub Workflow Automation
Overview
GitHub is automation-friendly by design: Actions for CI/CD and event-driven flows, a rich REST + GraphQL API, and webhooks for everything.
Common automations: CI pipelines, PR labeling/review assignment, issue triage, stale management, release drafting, repo provisioning.
This skill uses GitHub's native capabilities — Actions and the API — with no third-party middleware required.
When to use
- Setting up CI/CD with GitHub Actions
- Automating PR review assignment, labeling, and checks
- Issue triage, stale handling, and project board automation
- Repository provisioning and settings management
- Release automation (changelogs, drafts, publishing)
Core concepts
- Actions fundamentals. Workflows trigger on events (push, PR, schedule, manual). Jobs run steps on runners. Marketplace actions accelerate; pin versions for stability.
- Event-driven design. Trigger precisely: pull_request types (opened, labeled, ready_for_review), issues, releases, schedules. Narrow triggers save minutes and noise.
- API automation. REST for most tasks, GraphQL for complex queries. Official CLIs (gh) and Actions (github-script) cover scripting without new dependencies.
- Permissions scoping. GITHUB_TOKEN with least-privilege permissions per workflow. Fine-grained PATs for cross-repo needs. Never broad tokens in workflows.
- Reusable workflows. Shared CI/CD logic as reusable workflows or composite actions. DRY across repos; update once, benefit everywhere.
- Environments and secrets. Environments for deploy gates (approvals, protection rules); secrets per environment. No secrets in logs — mask them.
- Caching and artifacts. Cache dependencies, upload build artifacts, pass data between jobs. Minutes and reliability compound across every run.
- Branch protection. Required checks, reviews, and status checks as policy. Automation enforces; protection prevents bypass.
Practical workflow
- Map the workflow. What events, what actions, what outcomes? Sketch: on PR -> label, assign reviewers, run checks, comment preview link.
- Start with CI. Build/test/lint workflow on PRs. Fast, cached, required as branch protection. The foundation everything else builds on.
- Add PR automation. Auto-label by files changed, assign reviewers (round-robin or CODEOWNERS), welcome first-time contributors.
- Automate issue triage. Label by template fields, assign to projects, stale-bot for inactivity (with care — see pitfalls).
- Build release automation. Draft releases from merged PRs, generate changelogs, attach artifacts, publish on tag.
- Harden security. Least-privilege tokens, pinned action versions, secret scanning, Dependabot for actions themselves.
- Create reusable pieces. Extract repeated logic to reusable workflows/composite actions in a central repo.
- Document and monitor. README per automation: what, why, owner. Monitor Actions usage/minutes; alert on repeated failures.
Common pitfalls
- Overly broad triggers. Workflows on every push to every branch burning minutes. Narrow triggers to what actually needs running.
- Unpinned actions.
Floating
@mainon third-party actions = supply-chain roulette. Pin to SHAs for security-critical workflows. - Excessive permissions. Default write-all tokens. Scope per workflow; a compromised workflow shouldn't own the repo.
- Stale-bot cruelty. Auto-closing issues with no human touch alienates contributors. Stale as triage aid, not executioner.
- Secrets in logs. Echoing secrets in debug output. Mask values; audit logs for leaks periodically.
- Flaky required checks. Required checks that fail randomly train developers to distrust CI. Fix flakes before enforcing.
- Minutes blindness. Private-repo minutes and large runners cost real money. Monitor usage; optimize slow/duplicate jobs.
- No CODEOWNERS. Review assignment by guesswork. CODEOWNERS gives automation (and humans) the routing table.
04 同仓库更多 Skills
web-scrape
Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open/fetch fails on JS-heavy pages, or when you need clean markdown/structured extraction from a site. Requires FIRECRAWL_API_KEY.
design-taste-frontend
tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML/CSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, "AI-made", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
requesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).