aladin-cicd-forge

Aladin CI/CD and deployment orchestration workshop: turns “how to reliably ship code” into a local toolchain that auto-detects repositories and one-click generates GitHub Actions, GitLab CI, Jenkinsfile, multi-stage Dockerfile, docker-compose and K8s/Helm; includes embedded quality gates and local static checks for YAML/keys/probes, and integrates with aladin-code-pilot, aladin-api-pilot, and aladin-sql-forge for review, contract testing, and migration.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "aladin-cicd-forge" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-639e90709255f30b551ac9b341d0797bba1f743e4b1bb0e4bb2990bb005ff1a8. Verify the upstream source and version against https://skillhub.cn/skills/user_d18c97ea/aladin-cicd-forge before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Aladin CI/CD and deployment orchestration workshop: turns “how to reliably ship code” into a local toolchain that auto-detects repositories and one-click generates GitHub Actions, GitLab CI, Jenkinsfile, multi-stage Dockerfile, docker-compose and K8s/Helm; includes embedded quality gates and local static checks for YAML/keys/probes, and integrates with aladin-code-pilot, aladin-api-pilot, and aladin-sql-forge for review, contract testing, and migration.

0 Downloads

Introduction source: third_party · user_d18c97ea · 1.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: aladin-cicd-forge
slug: aladin-cicd-forge
version: 1.0.1
displayName: 阿拉丁·CI/CD与部署编排工坊|多平台流水线·Docker/K8s·质量门禁·本地校验
summary: 阿拉丁出品的 CI/CD 与部署编排工坊:把"写完代码怎么稳定上线"从「手配 GitHub Actions / 死磕 Dockerfile / 对着 K8s 文档抄 YAML」升级成一条本地工具链——自动探测仓库、一键生成 GitHub Actions + GitLab CI + Jenkinsfile + 多阶段 Dockerfile + docker-compose + K8s/Helm,内嵌质量门禁(联动 aladin-code-pilot 审查 / aladin-api-pilot 契约测试 / aladin-sql-forge 迁移),并在本地做 YAML/密钥/探针静态校验。比 skillhub 上常见的单厂商部署工具与单点代码审查多出多平台、容器化、编排、门禁与本地校验。
description: 阿拉丁·CI/CD与部署编排工坊把"交付上线"工程化:①自动探测仓库——识别语言/框架/构建/测试/端口,免手填;②多平台 CI 一键齐发——GitHub Actions + GitLab CI + Jenkinsfile 三大主流;③容器化——多阶段 Dockerfile(非 root/多语言基础镜像) + docker-compose;④编排部署——Kubernetes Deployment/Service/Ingress + Helm 骨架(带探针/资源限制/健康检查);⑤质量门禁联动——把 aladin-code-pilot(审查)/aladin-api-pilot(契约测试)/aladin-sql-forge(迁移) 嵌成流水线 stage;⑥本地校验 dry-run——纯标准库做 YAML 结构/密钥占位符/:latest 告警/端口/探针校验;⑦发布流水线——语义版本 bump + CHANGELOG + 标签 + 发布说明;⑧多格式导出——.yml/.yaml/.groovy/Dockerfile + HTML 看板 + MD 部署文档。相比 skillhub 上常见的单厂商部署工具只绑一家云、代码审查只做评审,本技能覆盖"构建→测试→安全→部署→发布"全链路且跨平台、零依赖、离线可用。触发词:CI/CD 配置、GitHub Actions 生成、GitLab CI、Jenkinsfile、Dockerfile 生成、docker-compose、K8s 部署、Helm、流水线、持续集成、持续部署、发布流水线、上线配置、质量门禁、部署编排、cicd generator、github actions yaml、kubernetes manifest、devops pipeline。
category: 开发者工具
license: MIT
platforms:
  - WorkBuddy
  - QClaw
  - ima
homepage: https://skillhub.cn
author: adam
company: 阿拉丁
tags:
  - CI/CD
  - 持续集成
  - 持续部署
  - GitHub Actions
  - GitLab CI
  - Jenkinsfile
  - Dockerfile
  - docker-compose
  - Kubernetes
  - K8s
  - Helm
  - 部署编排
  - 流水线
  - 质量门禁
  - 发布流水线
  - 开发者工具
  - cicd generator
  - github actions yaml
  - kubernetes manifest
  - devops pipeline
agent_created: true

阿拉丁·CI/CD 与部署编排工坊(aladin-cicd-forge)

阿拉丁出品。你写得一手好代码,但「配一套能跑的 CI」「写个不翻车的 Dockerfile」「把服务部署上 K8s」每次都从零抄 YAML、还经常 :latest 踩坑、漏探针被运维打回。skillhub 上常见部署工具只能绑一家云、代码审查只做评审——没有任何技能把"构建→测试→安全→部署→发布"整条交付链路工程化。这个技能把上线收口成一套纯本地工具:你给仓库路径或一份 profile,它产出三大平台 CI + 容器 + 编排 + 发布说明,并在本地把 YAML/密钥/探针先校验一遍,还能把自家 aladin 工程链的审查/契约测试/迁移直接串成质量门禁。

它解决什么痛点

开发者在 skillhub 上能找到的"部署/运维"类工具都是单点:

现有飙升技能 只做 不做
云厂商专有部署工具(单平台) 单一云厂商项目部署 不跨平台、不产通用 CI、不产 K8s、不校验
单点代码审查脚本 一次性本地评审 不接 CI、不自动门禁、不部署
前端开发规范 规范文档 不落地成流水线

本技能 = 交付全链路,脚本零依赖、纯本地、离线可用,且与自家 aladin 工程链互补。

与 skillhub 现有技能 + 自家 aladin 系列的差异化

能力 云厂商专有部署工具 单点代码审查脚本 阿拉丁·CI/CD与部署编排工坊(本款)
自动探测仓库(语言/测试/端口) ❌ ❌ ✅ 扫描 marker 文件推断
多平台 CI(GitHub/GitLab/Jenkins) ❌(仅单一云厂商) ❌ ✅ 三主流一键齐发
多阶段 Dockerfile + compose 部分 ❌ ✅ 非 root/多语言基础镜像
K8s/Helm 编排(探针/资源限制) ❌ ❌ ✅ 生产级 manifest + Helm 骨架
质量门禁(审查/契约/迁移) ❌ 只评审 ✅ 联动 aladin 三件套成 stage
本地校验 dry-run ❌ ❌ ✅ YAML/密钥/:latest/探针
发布流水线(版本/CHANGELOG/标签) ❌ ❌ ✅ 语义版本 + 发布说明
离线 / 零依赖 ❌(强依赖云) 部分 ✅ 纯标准库

与自家 aladin 系列的关系:code-pilot 审函数、api-pilot 验接口、sql-forge 管存储、diagram-forge 画结构、cicd-forge 管交付——五者覆盖「函数→接口→存储→结构→交付」,可串成统一工程闭环。

何时触发

  • "帮我配一套 CI / 生成 GitHub Actions / GitLab CI / Jenkinsfile"
  • "给这个项目写个 Dockerfile / docker-compose / 部署上 K8s / 出个 Helm chart"
  • "把代码审查/接口契约测试/数据库迁移串进流水线做质量门禁"
  • "我的流水线 YAML 能不能先在本地校验一下?有没有硬编码密钥、有没有用 :latest"
  • "帮我生成发布流水线:自动 bump 版本、写 CHANGELOG、打 tag、出发布说明"
  • 用户给出仓库路径、或一份描述语言/框架/端口/测试命令的 profile,希望一次性拿到可提交、可部署、已校验的交付配置

何时不触发

  • 用户要深度容量规划 / 多区域容灾 / 服务网格选型——本技能产基础 K8s/Helm,不替代 SRE 架构决策。
  • 用户要特定云厂商专有 PaaS(如仅单一云厂商函数部署)——本技能偏通用容器/K8s,云厂商 PaaS 用对应专有技能。
  • 用户要实时拖拽的可视化流水线编排器——本技能产文本配置,可进版控,不提供画布。
  • 用户代码涉及强合规涉密且禁止本地留痕——虽纯本地,仍需先确认合规策略。

核心能力(统一工具链 + 本地增值)

  1. 自动探测仓库:扫描 requirements.txt/package.json/go.mod/pom.xml 等 marker,推断语言/框架/构建/测试/lint/端口 → profile.json,免手填。
  2. 多平台 CI 一键齐发:GitHub Actions(.github/workflows/ci.yml)+ GitLab CI(.gitlab-ci.yml)+ Jenkinsfile(Declarative)三大主流,stage 对齐。
  3. 容器化:多阶段 Dockerfile(非 root 用户、多语言官方基础镜像、最小化层数)+ docker-compose.yml(含健康检查)。
  4. 编排部署:Kubernetes Deployment/Service/Ingress 生产级 manifest(liveness/readiness 探针、resources limits/requests、securityContext)+ Helm chart 骨架(Chart.yaml/values.yaml/templates)。
  5. 质量门禁联动(独家):把 aladin-code-pilot(代码审查 stage)、aladin-api-pilot(接口契约测试 stage)、aladin-sql-forge(SQL 迁移检查 stage)以流水线步骤形式内嵌,形成"提交即卡质量"。
  6. 本地校验 dry-run:纯标准库做 YAML 结构/缩进、密钥占位符(AWS/密码/token 正则)、:latest 镜像告警、端口数值合法性、K8s 探针缺失检测——提交前先排雷。
  7. 发布流水线:语义化版本 bump(major/minor/patch)+ CHANGELOG 片段 + 打 tag 脚本 + 发布说明(Hy3 汇总变更)。
  8. 多格式导出/预览:生成 .yml/.yaml/.groovy/Dockerfile 等,并汇总为 pipeline.html(阶段图看板)与 pipeline.md(部署文档 + runbook)。

工作流(3 步)

① 探测/归一  cicd_ingest.py detect --path ./repo --out profile.json
             (或自然语言描述由 Hy3 直接产出 profile.json,跳过此步)
② 生成+校验  cicd_build.py --in profile.json --out ./out   → CI/Docker/K8s/Helm + 校验报告
③ 汇总       cicd_report.py --in profile.json --dir ./out --html pipeline.html --md pipeline.md

使用方式

脚本零依赖,直接用托管 Python 运行(无需 pip install):

PY="C:/Users/adam/.workbuddy/binaries/python/versions/3.13.12/python.exe"
SK="aladin-cicd-forge"

# ① 自动探测仓库 → profile.json
"$PY" $SK/scripts/cicd_ingest.py detect --path ./my_project --out profile.json

# ② 生成全部平台配置 + 本地校验
"$PY" $SK/scripts/cicd_build.py --in profile.json --out ./out

# ②b 只生成指定平台
"$PY" $SK/scripts/cicd_build.py --in profile.json --out ./out --platforms github-actions,gitlab-ci

# ③ 汇总为看板 + 部署文档
"$PY" $SK/scripts/cicd_report.py --in profile.json --dir ./out --html pipeline.html --md pipeline.md

# ④ 生成发布说明(需提供上一版本与变更摘要)
"$PY" $SK/scripts/cicd_report.py --in profile.json --release --from v1.2.0 --changes "修复登录越权" --out release-notes.md

自然语言描述:让 Hy3 按 references/usage-examples.md 的 profile 模板把"语言/框架/测试命令/端口/部署目标"落成 profile.json,再跑 ② 即可,无需手敲任何 YAML。

profile.json 速查(输入契约)

{
  "name": "order-service",
  "language": "python",
  "framework": "fastapi",
  "runtime": "docker",
  "build_cmd": "pip install -r requirements.txt",
  "test_cmd": "pytest",
  "lint_cmd": "flake8 .",
  "port": 8080,
  "entrypoint": "app:app",
  "workdir": "/app",
  "requires_db": true,
  "platforms": ["github-actions", "gitlab-ci", "jenkins"],
  "stages": ["lint", "test", "build", "security", "deploy"],
  "deploy_target": "k8s",
  "image_registry": "registry.example.com",
  "quality_gates": {
    "code_review": true,
    "api_contract": false,
    "sql_migrate": false
  }
}

输入输出规范

输入:

  • 仓库路径(detect --path,自动探测)
  • 或 profile.json(Hy3 落成 / 手写,结构见上)
  • 可选:目标平台(--platforms)、部署目标(profile.deploy_target)

输出:

  • profile.json:统一中间表示(中间产物)
  • .github/workflows/ci.yml / .gitlab-ci.yml / Jenkinsfile:CI 配置
  • Dockerfile / docker-compose.yml:容器化
  • k8s/*.yaml 与 helm/<name>/*:编排部署
  • pipeline.html:阶段图看板(自包含)
  • pipeline.md:部署文档 + runbook + 质量门禁接线说明

输出位置: 由 --out / --dir 参数指定,默认当前目录。

能力边界

能做:

  1. 探测 py/node/go/java/rust 仓库并推断构建/测试/端口。
  2. 生成 GitHub Actions / GitLab CI / Jenkinsfile 三类 CI 配置,stage 对齐。
  3. 生成多阶段 Dockerfile + docker-compose(非 root、健康检查)。
  4. 生成 K8s Deployment/Service/Ingress 与 Helm 骨架(探针/资源限制)。
  5. 把 aladin-code-pilot/api-pilot/sql-forge 以流水线 stage 形式内嵌(产出调用步骤与注释)。
  6. 本地静态校验 YAML 结构、密钥占位符、:latest、端口、探针缺失。

不能做:

  1. 不替代云厂商专有 PaaS(仅单一云厂商等)的专属部署——用对应技能。
  2. 不做实时拖拽可视化编排器(产文本配置,可进版控)。
  3. 不执行真实推送/部署动作(不出网、不连集群;只产配置,由你提交后由平台执行)。
  4. 不替代 SRE 的容量规划/多区域容灾/服务网格选型 架构决策。
  5. 校验是静态正则/结构级,不运行容器、不连 K8s apiserver。

重要约束

  • 不联网执行:脚本只读本地仓库、只写本地配置,不发起任何网络请求(→ Trust)。
  • 只产配置不代执行:默认只生成交付配置与本地校验,真实部署由你提交后由 CI 平台执行(→ Reliability)。
  • 可编辑优先:所有产物是纯文本配置,可进版控、可二次编辑(→ Adaptability)。
  • 零依赖透明:脚本仅用 Python 标准库,SKILL.md 已写明运行方式,无需安装任何包(→ Adaptability)。
  • 不臆造依赖:探测严格基于扫描到的 marker 文件,不私自编造框架或命令(→ Convention)。

安全说明

  • 全部脚本仅用 Python 标准库,不发起任何网络请求。
  • 本地校验会主动扫描生成的 YAML,对疑似硬编码密钥(AWS Access Key、密码、token=、私钥块)给出告警与占位符替换建议,降低秘钥误提交风险。
  • Dockerfile 默认 USER 非 root、K8s 默认 runAsNonRoot + 资源限制,符合最小权限基线。
  • 建议在提交前 git diff 确认生成结果,避免把 .env/密钥文件误纳入。

参考文档(渐进式披露)

文件 用途 加载时机
references/pipeline-templates.md 三大平台 CI 阶段模板与对齐规则 选平台 / 调 stage 时
references/quality-gates.md 联动 aladin 三件套的门禁接线范式 配质量门禁时
references/docker-k8s-best-practices.md 非 root/探针/资源限制/镜像标签规范 写 Docker/K8s 前
references/usage-examples.md 4 个完整场景 + profile 模板 + FAQ 首次使用 / 排错时

Current listing version

1.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决开发者 CI/CD 全链路工程化核心痛点,覆盖多平台 CI、容器化、K8s 编排、质量门禁联动等高价值能力
  • 显著提升交付效率,相比 skillhub 上单点工具具备明显差异化优势
Trigger Precision95/100

Highlights

  • 触发词覆盖全面且精准,涵盖 CI/CD、GitHub Actions、GitLab CI、Jenkinsfile、Dockerfile、K8s、Helm 等核心关键词
  • 边界清晰,无歧义或重叠风险
Structure and Standards90/100

Areas to improve

  • 文档过长 Reported severity: Minor

    SKILL.md 内容约 450 行,超出理想长度

    Recommendation: 建议将部分详细说明(如 profile.json 完整示例、各平台模板细节)移至 references 目录下对应文件,保持主文档简洁

Highlights

  • Phase/步骤清晰(探测→生成→汇总),有明确的出口条件
  • 包含端到端使用示例和 profile.json 速查,frontmatter 完整规范
Execution Reliability88/100

Highlights

  • 工具来源明确(纯 Python 标准库,零依赖),参数设计合理
  • 覆盖主要异常场景(YAML 结构校验、密钥占位符检测、:latest 告警、探针缺失检测)
  • 安全约束清晰(不联网、只产配置不代执行),符合最小权限原则
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • skillhub.cn

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.