skills/ci-cd-pipeline/SKILL.md
# Skill: CI/CD Pipeline Generation > Generates or updates GitHub Actions workflows and Argo CD configurations from Build Brief infrastructure tasks. Ensures new features have proper build, test, and deploy pipelines before coding begins. --- ## Trigger Activated after work-item artifacts are created. Consumes Section 8 (Infra tasks) and Section 6 (SLOs) from the brief. ## Input Contract ```json { "build_brief_id": "string", "repo_url": "string", "branch_strategy": "trunk | gitflow |
npx skillsauth add bigeasyfreeman/adlc skills/ci-cd-pipelineInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generates or updates GitHub Actions workflows and Argo CD configurations from Build Brief infrastructure tasks. Ensures new features have proper build, test, and deploy pipelines before coding begins.
Activated after work-item artifacts are created. Consumes Section 8 (Infra tasks) and Section 6 (SLOs) from the brief.
{
"build_brief_id": "string",
"repo_url": "string",
"branch_strategy": "trunk | gitflow | feature_branch",
"infra_tasks": [
{
"task_id": "string",
"task_description": "string",
"acceptance_criteria": ["string"],
"service_name": "string",
"deployment_target": "kubernetes | lambda | ecs | static"
}
],
"slo_targets": {
"availability": "string",
"latency_p99": "string",
"error_rate": "string"
},
"environments": ["dev", "staging", "production"],
"existing_pipelines": "auto-detect | path/to/workflows"
}
{
"github_actions": [
{
"file_path": ".github/workflows/feature-name-ci.yml",
"content": "string (YAML)",
"type": "ci | cd | scheduled | manual"
}
],
"argo_configs": [
{
"file_path": "argo/applications/feature-name.yml",
"content": "string (YAML)",
"type": "application | rollout | analysis_template"
}
],
"summary": "string"
}
Before generating anything, analyze the repo:
# Find existing GHA workflows
find .github/workflows -name "*.yml" -o -name "*.yaml" 2>/dev/null
# Find Argo configs
find . -path "*/argo/*" -name "*.yml" -o -path "*/argocd/*" -name "*.yaml" 2>/dev/null
# Find Dockerfile and build configs
find . -name "Dockerfile*" -o -name "docker-compose*" -o -name "Makefile"
# Find Helm charts
find . -path "*/charts/*" -o -path "*/helm/*" -name "*.yaml"
# Find existing test commands
grep -r "test" package.json Makefile pyproject.toml build.sbt 2>/dev/null | head -10
CI Workflow (always generated)
Must include:
snyk, trivy, or similar found in repo)CD Workflow (if deployment target specified)
Must include:
Workflow rules:
runs-on)concurrency groups to prevent duplicate runsApplication manifest (if Argo detected in repo)
Argo Rollout (if progressive delivery needed)
Based on Section 4 (Risk) of the brief:
From Section 6 (SLOs):
generate_pipeline{
"name": "generate_pipeline",
"description": "Generate CI/CD pipeline configs from Build Brief infra tasks",
"inputSchema": {
"type": "object",
"properties": {
"build_brief_section": {
"type": "string",
"description": "Infra section (Section 8) + SLO section (Section 6) as markdown"
},
"repo_path": {
"type": "string",
"description": "Path to the repository root"
},
"output_directory": {
"type": "string",
"description": "Where to write generated pipeline files (default: repo root)"
},
"dry_run": {
"type": "boolean",
"default": true,
"description": "If true, output configs without writing files"
}
},
"required": ["build_brief_section", "repo_path"]
}
}
validate_pipeline{
"name": "validate_pipeline",
"description": "Validate generated pipeline configs against repo conventions and syntax",
"inputSchema": {
"type": "object",
"properties": {
"pipeline_path": {
"type": "string",
"description": "Path to generated pipeline file"
},
"repo_path": {
"type": "string",
"description": "Path to repository root for context"
}
},
"required": ["pipeline_path", "repo_path"]
}
}
# Generate pipelines from build brief
adlc-pipeline generate --brief ./build-brief.md --repo ./my-repo --dry-run
# Apply generated pipelines to repo
adlc-pipeline apply --brief ./build-brief.md --repo ./my-repo
# Validate existing pipeline against brief SLOs
adlc-pipeline validate --pipeline .github/workflows/ci.yml --repo ./my-repo
actionlint or equivalentargocd app diff --local validationcontract_version and compatibility checks.missing_target_repo, invalid_rollout_strategy, permission_denied).development
Orchestration skill: chains the full ADLC Build Loop. PRD → Brief → Council → Scaffold → Codegen → LDD → TDD → Council → PR. Use when implementing a new feature end-to-end.
development
# Skill: Helm & ArgoCD Deployment > Validates Helm charts and generates ArgoCD Application manifests when the ADLC pipeline produces infrastructure or service code. Ensures every deployable artifact has correct chart structure, environment-specific values, and a GitOps-ready Application manifest before code review. --- ## Why This Exists Without deployment validation in the pipeline, common failures slip through to production: - **Helm charts fail `helm template`** because of missing values,
testing
Decide whether an intersecting verifier actually exercises the semantic change.
development
# Skill: UX Flow Builder > Generates user flow diagrams (Mermaid) from PRD personas and screen specifications. Surfaces dead ends, missing screens, and disconnected flows before design or engineering starts. Helps PMs think in screens, not features. --- ## Trigger - Automatically during PRD Phase 4 (Personas & Flows) to visualize the user journey - On-demand when the PM says "show me the flow" or "map the user journey" - During PRD evaluation to verify screen connectivity --- ## Input ```