← 返回 Skill 列表
extension
分类: 开发与工程API Key 暂未确认

repo-ci

在设置CI/CD工作流、审核仓库的CI健康状况、添加GitHub Actions、配置分支保护或为Node.js或Python项目搭建发布流水线时使用。

person作者: jakexiaohubgithub

Repo CI

Set up and audit CI/CD workflows using the repo-ci CLI against the standards defined in references/standards.md.

Modes

Audit Mode

Triggers: "check CI", "audit repo", "what's missing", "CI gaps", "CI health"

Load and follow references/audit-existing.md.

Run repo-ci audit --json to score the repo across 7 areas, present a scorecard, explain gaps, and offer to fix them.

Setup Mode

Triggers: "set up CI", "add workflows", "new project", "scaffold CI", "add GitHub Actions"

Load and follow references/setup-new.md.

Run repo-ci setup --dry-run first, review with the user, then generate the files and walk through the post-setup checklist.

Init Mode

Triggers: "create repo", "new repo", "init repo", "set up new project"

Load and follow references/setup-new.md (init section).

Run repo-ci init --dry-run first, review with the user, then execute.

CLI Reference

| Command | Description | |---------|-------------| | repo-ci init | Create GitHub repo and fully configure it | | repo-ci init --dry-run | Preview what init would do | | repo-ci init --private | Create as private repo | | repo-ci init --skip-ci | Create repo without CI workflows | | repo-ci audit | Audit CI health (exit 0 = pass, 2 = gaps found) | | repo-ci audit --json | Structured JSON output for parsing | | repo-ci setup | Generate workflow files from templates | | repo-ci setup --dry-run | Preview generated files without writing | | repo-ci setup --preset node | Force Node/TypeScript preset | | repo-ci setup --preset python | Force Python preset |

Supported Stacks

| Stack | Support level | |-------|---------------| | Node/TypeScript | Full — init + CI + release + coverage + rulesets | | Python | Basic — init + CI + release |

Unsupported stack? If repo-ci setup outputs an unsupported-stack message (exit 2), follow the exit door handling in references/setup-new.md to scaffold manually and extend the skill.

Source of Truth

All standards (triggers, jobs, thresholds, release steps) are documented in references/standards.md. When in doubt, refer there.