cicd-infra-pipeline
Generate CI/CD pipelines for infrastructure tiers with approval gates
- License 许可
- MIT
- 所属仓库
- cooneycw/skillc
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- cicd-infra-pipeline
- description
- Generate CI/CD pipelines for infrastructure tiers with approval gates
03 SKILL.md 正文
<!-- GENERATED by claude-power-pack - scripts/codex-skill-sync.py; edit .claude/commands/cicd/infra-pipeline.md instead -->
Codex harness adaptations
Generated from a Claude Code command. Where the procedure references these Claude-only surfaces, adapt as follows:
CLAUDE.mdreferences: readAGENTS.mdfirst - it is the Codex entry point. Where it defers toCLAUDE.md, follow that pointer andCLAUDE.mdis the rules; where it does not,AGENTS.mdis. Where the repository has noAGENTS.md, readCLAUDE.md.
/cicd-infra-pipeline - Infrastructure CI/CD Pipelines
Generate separate CI/CD pipelines for each infrastructure tier with appropriate approval gates.
Step 1: Locate CPP Source
CPP_DIR=""
for dir in ~/Projects/claude-power-pack /opt/claude-power-pack ~/.claude-power-pack; do
if [ -d "$dir" ] && [ -f "$dir/CLAUDE.md" ]; then
CPP_DIR="$dir"
break
fi
done
if [ -z "$CPP_DIR" ]; then
echo "ERROR: claude-power-pack not found"
exit 1
fi
Instructions
-
Read configuration from
.claude/cicd.ymlinfrastructure section. -
Generate pipelines:
PYTHONPATH="$CPP_DIR:$PYTHONPATH" uv run --project "$CPP_DIR" python -m lib.cicd infra-pipeline --path "$(pwd)" --write
- Report what was generated and explain the approval model:
- Foundation: requires environment approval in GitHub (or manual in Woodpecker)
- Platform: auto-deploy on merge (configurable)
- App: auto-deploy on merge
Pipeline Model
Each tier gets its own workflow file, triggered only by changes to that tier's directory:
.github/workflows/infra-foundation.yml- Manual approval required.github/workflows/infra-platform.yml- Auto-deploy (configurable).github/workflows/infra-app.yml- Auto-deploy
Approval Gates
Foundation tier uses GitHub Environments with required reviewers. Set up:
- Go to repo Settings > Environments
- Create
infra-foundationenvironment - Add required reviewers
Related
/cicd-infra-init- Scaffold IaC directory structure/cicd-infra-discover- Audit existing cloud resources/cicd-pipeline- Application-layer pipeline generation
04 同仓库更多 Skills
tiny-check
Run the tiny project check
tiny-check
A synthetic gate selection fixture.
flow-check
Use when you are asked to run a project's quality checks (tests, lint, type checks, security scan): runs them in one step and reports what failed, without committing.
flow-check
Use when you are asked to run a project's quality checks (tests, lint, type checks, security scan): runs them in one step and reports what failed, without committing.
flow-check
Use when you are asked to run a project's quality checks (tests, lint, type checks, security scan): runs them in one step and reports what failed, without committing.
flow-check
Use when you are asked to run a project's quality checks (tests, lint, type checks, security scan): runs them in one step and reports what failed, without committing.