Agent Skillskajisho5/ffmpeg-skill › ci-pipeline-synthesizer

ci-pipeline-synthesizer

GitHub

根据项目类型自动生成GitHub Actions CI/CD工作流文件,支持npm、Python、Go和Rust等生态。提供依赖缓存、矩阵测试和多版本并行构建的最佳实践模板,用于自动化库项目的构建与测试流程。

.claude/skills/ci-pipeline-synthesizer/SKILL.md kajisho5/ffmpeg-skill

触发场景

创建或更新CI工作流 为多语言库项目配置自动化构建和测试

安装

npx skills add kajisho5/ffmpeg-skill --skill ci-pipeline-synthesizer -g -y
更多选项

非标准路径

npx skills add https://github.com/kajisho5/ffmpeg-skill/tree/main/.claude/skills/ci-pipeline-synthesizer -g -y

不安装直接使用

npx skills use kajisho5/ffmpeg-skill@ci-pipeline-synthesizer

指定 Agent (Claude Code)

npx skills add kajisho5/ffmpeg-skill --skill ci-pipeline-synthesizer -a claude-code -g -y

安装 repo 全部 skill

npx skills add kajisho5/ffmpeg-skill --all -g -y

预览 repo 内 skill

npx skills add kajisho5/ffmpeg-skill --list

SKILL.md

Frontmatter
{
    "name": "ci-pipeline-synthesizer",
    "description": "Generate GitHub Actions CI\/CD pipeline configurations for automated building and testing of library and package projects. Use when creating or updating CI workflows for npm packages, Python packages, Go modules, Rust crates, or other library projects that need automated build and test pipelines. Includes templates for common package ecosystems with best practices for dependency caching, matrix testing, and artifact publishing."
}

CI Pipeline Synthesizer

Overview

Generate production-ready GitHub Actions workflow files for library and package projects with automated build and test stages, dependency caching, and multi-version testing matrices.

Workflow

1. Identify Project Type

Determine the package ecosystem by examining project files:

  • Node.js/npm: package.json present
  • Python: setup.py, pyproject.toml, or requirements.txt present
  • Go: go.mod present
  • Rust: Cargo.toml present

2. Select Template

Use the appropriate template from assets/ based on project type:

  • github-actions-nodejs.yml - Node.js/npm packages
  • github-actions-python.yml - Python packages
  • github-actions-go.yml - Go modules
  • github-actions-rust.yml - Rust crates

3. Customize Configuration

Adapt the template to project-specific needs:

Test commands: Update test scripts to match project conventions

  • Node.js: npm test, npm run test:coverage
  • Python: pytest, python -m unittest
  • Go: go test ./...
  • Rust: cargo test

Build commands: Adjust build steps if needed

  • Node.js: npm run build (if build step exists)
  • Python: python -m build
  • Go: go build
  • Rust: cargo build --release

Version matrix: Modify tested versions based on support policy

  • Node.js: LTS versions (16.x, 18.x, 20.x)
  • Python: Active versions (3.9, 3.10, 3.11, 3.12)
  • Go: Recent versions (1.21, 1.22)
  • Rust: stable, beta (optional)

Trigger conditions: Adjust when pipeline runs

  • Default: Push to main/master, all pull requests
  • Custom: Specific branches, paths, or schedules

4. Place Workflow File

Create the workflow file at .github/workflows/ci.yml in the project root. If .github/workflows/ doesn't exist, create the directory structure first.

5. Verify Configuration

Check that the generated workflow:

  • Uses appropriate actions versions (e.g., actions/checkout@v4, actions/setup-node@v4)
  • Includes dependency caching for faster builds
  • Runs on appropriate triggers (push, pull_request)
  • Tests against relevant version matrices
  • Has clear job and step names

Template Features

All templates include:

  • Dependency caching: Speeds up builds by caching package managers
  • Matrix testing: Tests across multiple language/runtime versions
  • Parallel execution: Runs tests for different versions concurrently
  • Clear naming: Descriptive job and step names for easy debugging
  • Best practices: Uses recommended actions and configurations

Customization Examples

Add code coverage reporting:

- name: Upload coverage to Codecov
  uses: codecov/codecov-action@v3
  with:
    file: ./coverage.xml

Add linting step:

- name: Run linter
  run: npm run lint  # or: pylint, golangci-lint, cargo clippy

Restrict to specific branches:

on:
  push:
    branches: [main, develop]
  pull_request:
    branches: [main]

Add scheduled runs:

on:
  schedule:
    - cron: '0 0 * * 0'  # Weekly on Sunday

Tips

  • Start with the template and customize incrementally
  • Test the workflow by creating a pull request or pushing to a test branch
  • Use actions/cache for dependencies to reduce build times
  • Keep matrix versions current with language support policies
  • Add status badges to README.md: ![CI](https://github.com/user/repo/workflows/CI/badge.svg)

Note for this repository (ffmpeg-skill)

This skill's generic templates assume ordinary language-toolchain dependencies (pip/npm/go/cargo). They do NOT model this repo's actual CI needs — installing a real ffmpeg binary per OS (apt/brew ffmpeg-full/choco), capturing its -filters/-encoders/-bsfs listings as an artifact, or the skipIf-based Windows test coverage in tests/test_contract.py — all of which .github/workflows/ci.yml already handles and this skill's templates would not reproduce. Treat this as reference/scaffolding for a plain Python/Node/Go/ Rust package elsewhere, not a drop-in replacement for this repo's own workflow.

版本历史

  • 17b6924 当前 2026-09-11 11:52

同 Skill 集合

.claude/skills/git-hygiene/SKILL.md
.claude/skills/github-actions/SKILL.md
.claude/skills/mcp-server-design/SKILL.md
.claude/skills/release-management/SKILL.md
.claude/skills/build-artifacts/SKILL.md
.claude/skills/concurrent-branches/SKILL.md
.claude/skills/cross-surface-changes/SKILL.md
.claude/skills/defect-reports/SKILL.md
.claude/skills/destructive-operations/SKILL.md
.claude/skills/reproducing-ci-locally/SKILL.md
.claude/skills/verifying-external-behavior/SKILL.md

元信息

文件数
0
版本
17b6924
Hash
c348b5a4
收录时间
2026-09-11 11:52

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-12 15:17
浙ICP备14020137号-1 $访客地图$