xiaohongshu
xiaohongshu
github-actions-troubleshooter
Diagnose and fix GitHub Actions workflow failures, CI/CD pipeline issues, YAML syntax errors, and workflow configuration problems. Use when debugging failed CI runs, fixing workflow errors, or optimizing GitHub Actions. Keywords: github actions, CI, workflow, pipeline, yml, yaml, actions failure,...
Full skill instructions
Diagnoses and fixes GitHub Actions workflow failures and configuration issues.
When activated, follow this systematic troubleshooting approach:
Get workflow status:
gh run list --limit 5 # Recent runs
gh run view <run-id> # Specific run details
gh run view <run-id> --log-failed # Failed job logs only
Analyze the failure:
name, on, jobs)Fix approach:
Fix approach:
# Pin versions explicitly
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
Fix approach:
GITHUB_TOKEN insufficient permissionsFix approach:
permissions:
contents: write
pull-requests: write
checks: read
Fix approach:
Step 1: Read the workflow file
# Find workflow files
fd -e yml -e yaml . .github/workflows
Step 2: Get recent run logs
# View latest failed run
gh run view --log-failed
# Or specific run by ID
gh run view 1234567890 --log
Step 3: Identify root cause
Step 4: Apply fix
# Before commit, run formatters
- name: Format code
run: pnpm exec prettier --write .
# Or enforce in CI
- name: Check formatting
run: pnpm exec prettier --check .
env:
NODE_ENV: production
API_URL: ${{ secrets.API_URL }}
jobs:
build:
env:
CUSTOM_VAR: value
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm' # or 'npm', 'yarn'
# Or manual cache
- uses: actions/cache@v4
with:
path: ~/.cache
key: ${{ runner.os }}-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
strategy:
matrix:
node-version: [18, 20, 22]
os: [ubuntu-latest, windows-latest]
jobs:
test:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
This project uses:
pnpm run pre-commit (format + lint + typecheck)Standard workflow pattern:
name: CI
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run pre-commit
- run: pnpm run test
- run: pnpm run build
Present findings as:
🔍 Diagnosis
format-checkRun prettier --checkCode style issues found in 11 files🔧 Fix Applied
# File: .github/workflows/ci.yml:15
- name: Format check
run: pnpm exec prettier --config .config/.prettierrc --check .
✅ Verification
pnpm exec prettier --write .Pre-commit hooks:
pnpm run pre-commitWorkflow best practices:
actions/checkout@v4 not @main)if: failure() for debugging stepsSecurity:
GITHUB_TOKEN permissionssecrets context, not env vars for sensitive dataThese user requests will trigger this skill:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience