‹ 首页

ci-pipeline-synthesizer

@arabelatso · 收录于 1 周前

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.

适合你,如果你需要为npm、Python、Go或Rust库项目快速搭建CI/CD流程

/ 下载安装
ci-pipeline-synthesizer.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add arabelatso/skills-4-se/ci-pipeline-synthesizer
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- arabelatso/skills-4-se/ci-pipeline-synthesizer
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify arabelatso/skills-4-se/ci-pipeline-synthesizer
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
137GitHub stars
~833最小装载
~833含声明引用
~1.4K文本包总量
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · Apache-2.0 · 0f00a4f

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)
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。