repo-ci

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Repo CI

仓库CI

Set up and audit CI/CD workflows using the
repo-ci
CLI against the standards defined in references/standards.md.
参考references/standards.md中定义的标准,使用
repo-ci
CLI搭建并审核CI/CD工作流。

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 6 areas, present a scorecard, explain gaps, and offer to fix them.
触发词: "检查CI"、"审核仓库"、"缺失内容"、"CI漏洞"、"CI健康状况"
加载并遵循references/audit-existing.md中的指引。
运行
repo-ci audit --json
命令,从6个维度为仓库评分,生成评分卡,说明存在的漏洞,并提供修复方案。

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.
触发词: "搭建CI"、"添加工作流"、"新项目"、"生成CI模板"、"添加GitHub Actions"
加载并遵循references/setup-new.md中的指引。
先运行
repo-ci setup --dry-run
命令,与用户确认预览结果后,再生成文件并引导完成搭建后的检查清单。

CLI Reference

CLI参考

CommandDescription
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
命令描述
repo-ci audit
审核CI健康状况(退出码0=通过,2=发现漏洞)
repo-ci audit --json
生成结构化JSON输出用于解析
repo-ci setup
从模板生成工作流文件
repo-ci setup --dry-run
预览生成的文件但不写入
repo-ci setup --preset node
强制使用Node/TypeScript预设
repo-ci setup --preset python
强制使用Python预设

Supported Stacks

支持的技术栈

StackSupport level
Node/TypeScriptFull — CI + release + coverage + rulesets
PythonBasic — 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.
技术栈支持等级
Node/TypeScript完整支持 — CI + 发布 + 覆盖率 + 规则集
Python基础支持 — CI + 发布
不支持的技术栈? 如果
repo-ci setup
输出不支持技术栈的提示(退出码2),请遵循references/setup-new.md中的退出处理流程,手动生成模板并扩展该技能。

Source of Truth

权威参考

All standards (triggers, jobs, thresholds, release steps) are documented in references/standards.md. When in doubt, refer there.
所有标准(触发词、任务、阈值、发布步骤)均记录在references/standards.md中。如有疑问,请参考该文档。