Automated summary
This skill guides the setup of GitHub Actions workflows, Changesets-based automated releases, and Husky hook management for the Saleor Configurator project.
Strengths
- Provides complete, copy-ready YAML templates for test-on-pr, release, and changeset-bot workflows
- Walks through the Changesets release flow end to end, from creating a changeset to publishing on npm
- Includes a table of required checks (typecheck, lint, test, build) plus gh CLI commands for diagnosis
- Covers Husky pre-push hooks and secret handling (GITHUB_TOKEN, NPM_TOKEN)
Limitations
- Heavily tied to the Saleor Configurator stack (pnpm, Biome, Vitest, Node 20), so it is not directly portable
- The changeset-bot section and CI failure troubleshooting are listed in the table of contents but only partially detailed
- Assumes prior familiarity with GitHub Actions, Changesets, and the gh CLI
Use it when creating or editing a GitHub Actions workflow, automating a Changesets release, or debugging a CI failure in this repository.
Avoid it for other CI providers (GitLab CI, Jenkins) or for projects running npm/yarn without Changesets.
Security analysis
CautionThe skill primarily documents configuration and management of GitHub CI/CD pipelines. The allowed Bash(gh:*) tool can perform network operations and alter repository state (e.g., creating PRs, releases), which is legitimate but warrants caution. No destructive, exfiltrating, or obfuscated actions are present.
- •Uses Bash with gh CLI to manage GitHub Actions, PRs, and releases, which can modify repository state and trigger CI workflows.
- •Includes shell snippets with git commit and pnpm commands that may be executed if tool restrictions are bypassed.
Examples
Create a GitHub Actions workflow that runs typecheck, lint, test, and build on every pull request targeting main, using pnpm 9 and Node 20 with pnpm caching.Set up a release.yml workflow that uses changesets/action to open a Version Packages PR on main and publish to npm once it merges, wiring GITHUB_TOKEN and NPM_TOKEN.The test-on-pr workflow is failing on the install step — use gh to pull the failing run logs and tell me whether the frozen lockfile is out of sync.name: managing-github-ci description: "Configures GitHub Actions workflows and CI/CD pipelines. Manages automated releases via Changesets, PR validation, and Husky hooks. Troubleshoots CI failures. Triggers on: GitHub Actions, CI pipeline, workflow, release automation, Husky hooks, gh CLI, workflow failure." allowed-tools: "Read, Grep, Glob, Write, Edit, Bash(gh:*)"
GitHub CI Automation
Purpose
Guide the configuration and management of GitHub Actions workflows, release automation, and CI/CD pipelines for the Saleor Configurator project.
When to Use
- Creating or modifying GitHub Actions workflows
- Setting up automated releases
- Troubleshooting CI failures
- Configuring pre-commit/pre-push hooks
- Managing Changesets releases
Table of Contents
- Project CI Architecture
- Workflow: test-on-pr.yml
- Workflow: release.yml
- Workflow: changeset-bot.yml
- Pre-Push Hooks (Husky)
- Changesets Configuration
- GitHub CLI Commands
- Troubleshooting CI Failures
- Adding New Workflows
- Secrets Management
- References
Project CI Architecture
.github/
├── workflows/
│ ├── test-on-pr.yml # PR validation
│ ├── release.yml # Automated releases
│ └── changeset-bot.yml # Changeset automation
└── ...
.husky/
├── pre-push # Pre-push hooks
└── ...
.changeset/
├── config.json # Changeset configuration
└── *.md # Pending changesets
Workflow: test-on-pr.yml
Purpose: Validate PRs before merge
name: Test on PR
on:
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check
run: pnpm typecheck
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
- name: Build
run: pnpm build
Required Checks
| Check | Command | Purpose |
|-------|---------|---------|
| Type check | pnpm typecheck | TypeScript validation |
| Lint | pnpm lint | Biome linting |
| Test | pnpm test | Vitest test suite |
| Build | pnpm build | Compilation check |
Workflow: release.yml
Purpose: Automated npm releases via Changesets
name: Release
on:
push:
branches: [main]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Create Release Pull Request or Publish
uses: changesets/action@v1
with:
publish: pnpm publish:ci-prod
version: pnpm changeset version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Release Flow
1. Developer creates changeset → pnpm changeset
2. PR merged to main
3. Changesets action runs:
a. If changesets exist → Creates "Version Packages" PR
b. If version PR merged → Publishes to npm
Workflow: changeset-bot.yml
Purpose: Comment on PRs about missing changesets
name: Changeset Bot
on:
pull_request:
types: [opened, synchronize]
jobs:
bot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Changeset Bot
uses: changesets/bot@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Pre-Push Hooks (Husky)
Located in .husky/pre-push:
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# Generate schema documentation before push
pnpm generate-schema-docs
git add docs/SCHEMA.md
# Check if there are changes to commit
if ! git diff --staged --quiet; then
git commit -m "docs: update schema documentation"
fi
Hook Behavior
- Runs
generate-schema-docsbefore every push - Auto-commits schema documentation updates
- Ensures docs stay in sync with schema changes
Changesets Configuration
Located in .changeset/config.json:
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
Changeset Types
| Type | When to Use |
|------|-------------|
| patch | Bug fixes, documentation, refactoring |
| minor | New features, non-breaking enhancements |
| major | Breaking changes, API modifications |
GitHub CLI Commands
Check Workflow Status
# List recent workflow runs
gh run list --limit 10
# View specific run
gh run view <run-id>
# Watch running workflow
gh run watch <run-id>
PR Management
# Create PR
gh pr create --title "feat: new feature" --body "Description"
# List PRs
gh pr list
# View PR details
gh pr view <pr-number>
# Check PR status
gh pr checks <pr-number>
Release Management
# List releases
gh release list
# Create release (manual)
gh release create v1.0.0 --title "v1.0.0" --notes "Release notes"
# View release
gh release view v1.0.0
Troubleshooting CI Failures
Common Failures
Type Check Fails:
# Reproduce locally
pnpm typecheck
# or
npx tsc --noEmit
Lint Fails:
# Check and auto-fix
pnpm lint
pnpm check:fix
Tests Fail:
# Run specific test
pnpm test -- --filter=<test-file>
# Run with verbose output
pnpm test -- --reporter=verbose
Build Fails:
# Reproduce locally
pnpm build
Debugging Workflow
- Check workflow logs in GitHub Actions UI
- Reproduce failure locally
- Fix the issue
- Push fix to PR
- Re-run failed jobs:
gh run rerun <run-id>
Rate Limiting
If npm publish fails due to rate limiting:
- Wait and retry
- Check npm status: https://status.npmjs.org/
Adding New Workflows
Template Structure
name: Workflow Name
on:
# Trigger events
push:
branches: [main]
pull_request:
branches: [main]
jobs:
job-name:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
# Add your steps here
Best Practices
- Always use
--frozen-lockfilefor installs - Cache pnpm store for faster runs
- Use specific action versions (@v4, not @latest)
- Set
concurrencyto prevent duplicate runs - Use secrets for sensitive values
Secrets Management
Required Secrets
| Secret | Purpose | Where Set |
|--------|---------|-----------|
| GITHUB_TOKEN | Auto-provided | GitHub |
| NPM_TOKEN | npm publishing | Repository Settings |
Adding Secrets
- Go to repository Settings
- Navigate to Secrets and variables → Actions
- Click "New repository secret"
- Add name and value
References
Skill Reference Files
- Workflow Templates - Reusable workflow patterns
- Troubleshooting Guide - Detailed debugging patterns
Project Resources
{baseDir}/.github/workflows/- Workflow files{baseDir}/.husky/- Git hooks{baseDir}/.changeset/- Changeset configuration
External Documentation
- GitHub Actions docs: https://docs.github.com/en/actions
- Changesets docs: https://github.com/changesets/changesets
Related Skills
- Creating releases: See
creating-changesetsfor changeset creation - Local validation: See
validating-pre-commitfor reproducing CI checks locally
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/manage-github-actions-ci-cd-mts7ikpo/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/manage-github-actions-ci-cd-mts7ikpo/download' --output '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo/SKILL.md.part' && mv '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo/SKILL.md.part' '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read, Grep, Glob, Write, Edit, Bash(gh:*)
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo/SKILL.md' && test -s '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/managing-github-ci' && cp -R '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo' '.claude/skills/managing-github-ci'Cursor
test -f '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo/SKILL.md' && test -s '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/managing-github-ci' && cp -R '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo' '.cursor/skills/managing-github-ci'Codex
test -f '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo/SKILL.md' && test -s '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/managing-github-ci' && cp -R '.skill-downloads/manage-github-actions-ci-cd-mts7ikpo' '.agents/skills/managing-github-ci'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/manage-github-actions-ci-cd-mts7ikpo'openskills read 'manage-github-actions-ci-cd-mts7ikpo'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/manage-github-actions-ci-cd-mts7ikpo/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Configure a Chat Channel with SecretRefs
DevOps
Set up chat channels using non-interactive commands, with secrets only as SecretRefs. Covers gather, mutate, repair, and prove steps for reliable delivery.
Investigate ClickHouse CI Failures
DevOps
Investigate a ClickHouse CI failure end-to-end from a PR or S3 report URL. Fetches failed tests, classifies flaky vs real regression, and checks for existing issues/fixes.
Ansible PR Review
DevOps
Reviews an Ansible PR following the project's standardized process, including changelog checks, test coverage validation, and feedback tracking.