ln-732-cicd-generator by levnikolaevich/claude-code-skills
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-732-cicd-generator路径说明: 文件路径(
shared/、references/、../ln-*)是相对于技能仓库根目录的。如果在当前工作目录下未找到,请定位此 SKILL.md 文件所在的目录,然后向上返回一级以找到仓库根目录。如果缺少shared/目录,请通过 WebFetch 从https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}获取文件。
类型: L3 工作器 类别: 7XX 项目引导
为自动化测试和验证生成 GitHub Actions CI 流水线。
为 GitHub 创建 CI/CD 工作流:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 输入 | 来源 | 描述 |
|---|---|---|
| 技术栈类型 | ln-730 协调器 | backend-dotnet, backend-python |
| 版本 | 自动检测 | Node.js、.NET 或 Python 版本 |
| 前端路径 | 自动检测 | 前端目录的路径 |
| 构建命令 | 自动检测 | npm 脚本、dotnet/pytest 命令 |
| 文件 | 用途 | 模板 |
|---|---|---|
.github/workflows/ci.yml | 主 CI 流水线 | github_ci_dotnet.template.yml 或 github_ci_python.template.yml |
确定使用哪个模板:
| 检测条件 | 后端模板 |
|---|---|
存在 .sln 或 .csproj 文件 | github_ci_dotnet.template.yml |
存在 requirements.txt 或 pyproject.toml 文件 | github_ci_python.template.yml |
检测命令:
替换模板变量:
| 变量 | 来源 | 默认值 |
|---|---|---|
{{NODE_VERSION}} | package.json engines | 22 |
{{DOTNET_VERSION}} | *.csproj TargetFramework | 9.0.x |
{{PYTHON_VERSION}} | pyproject.toml | 3.12 |
{{FRONTEND_PATH}} | 目录检测 | src/frontend |
如果 .github/workflows/ 目录不存在,则创建它。
根据选定的模板生成 ci.yml:
.github/workflows/ci.yml| 任务 | 目的 | 依赖关系 |
|---|---|---|
| frontend | 对 React/Vite 进行代码检查、构建、测试 | 无 |
| backend | 构建、测试 .NET 或 Python | 无 |
| docker | 构建镜像、健康检查 | frontend, backend |
npm ci)npm run lint)npm run build)npm test)dotnet restore)dotnet build)dotnet test)pip install -r requirements.txt)ruff check)pytest)docker compose build)docker compose up -d)docker compose down)| 事件 | 分支 |
|---|---|
| 推送 | main, develop |
| 拉取请求 | main |
| 实践 | 实现方式 |
|---|---|
| 依赖项缓存 | npm 缓存,pip 缓存 |
| 固定版本 | actions/checkout@v4, setup-node@v4 |
| 并行任务 | frontend 和 backend 并行运行 |
| 快速失败 | docker 任务等待两者都成功 |
| 清理 | docker compose down 始终运行 |
| 调试支持 | 失败时显示日志 |
生成的工作流必须:
@latest)| 文件 | 用途 |
|---|---|
| github_ci.template.yml | 带注释的完整模板 |
| github_ci_dotnet.template.yml | 简洁的 .NET 技术栈模板 |
| github_ci_python.template.yml | 简洁的 Python 技术栈模板 |
.github/workflows/ci.yml 并通过 YAML 验证@latest)版本: 1.1.0 最后更新: 2026-01-10
每周安装次数
149
仓库
GitHub 星标数
245
首次出现
2026年1月24日
安全审计
安装于
claude-code135
codex133
cursor133
opencode133
gemini-cli132
github-copilot127
Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. Ifshared/is missing, fetch files via WebFetch fromhttps://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}.
Type: L3 Worker Category: 7XX Project Bootstrap
Generates GitHub Actions CI pipeline for automated testing and validation.
Creates CI/CD workflow for GitHub:
| Input | Source | Description |
|---|---|---|
| Stack Type | ln-730 coordinator | backend-dotnet, backend-python |
| Versions | Auto-detected | Node.js, .NET or Python versions |
| Frontend Path | Auto-detected | Path to frontend directory |
| Build Commands | Auto-detected | npm scripts, dotnet/pytest commands |
| File | Purpose | Template |
|---|---|---|
.github/workflows/ci.yml | Main CI pipeline | github_ci_dotnet.template.yml or github_ci_python.template.yml |
Determine which template to use:
| Detection | Backend Template |
|---|---|
.sln or .csproj present | github_ci_dotnet.template.yml |
requirements.txt or pyproject.toml present | github_ci_python.template.yml |
Detect commands:
Replace template variables:
| Variable | Source | Default |
|---|---|---|
{{NODE_VERSION}} | package.json engines | 22 |
{{DOTNET_VERSION}} | *.csproj TargetFramework | 9.0.x |
{{PYTHON_VERSION}} | pyproject.toml | 3.12 |
{{FRONTEND_PATH}} | Directory detection | src/frontend |
Create .github/workflows/ directory if not exists.
Generate ci.yml from selected template:
.github/workflows/ci.yml| Job | Purpose | Dependencies |
|---|---|---|
| frontend | Lint, build, test React/Vite | None |
| backend | Build, test .NET or Python | None |
| docker | Build images, health checks | frontend, backend |
npm ci)npm run lint)npm run build)npm test)dotnet restore)dotnet build)dotnet test)pip install -r requirements.txt)ruff check)pytest)docker compose build)docker compose up -d)docker compose down)| Event | Branches |
|---|---|
| Push | main, develop |
| Pull Request | main |
| Practice | Implementation |
|---|---|
| Dependency caching | npm cache, pip cache |
| Pinned versions | actions/checkout@v4, setup-node@v4 |
| Parallel jobs | frontend and backend run in parallel |
| Fail fast | docker job waits for both to succeed |
| Clean up | docker compose down runs always |
| Debug support | logs shown on failure |
Generated workflow must:
@latest)| File | Purpose |
|---|---|
| github_ci.template.yml | Full template with comments |
| github_ci_dotnet.template.yml | Compact .NET stack template |
| github_ci_python.template.yml | Compact Python stack template |
.github/workflows/ci.yml generated and passes YAML validation@latest)Version: 1.1.0 Last Updated: 2026-01-10
Weekly Installs
149
Repository
GitHub Stars
245
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code135
codex133
cursor133
opencode133
gemini-cli132
github-copilot127