# CI Pipeline Scaffold

> Description

- Skill: `jiayaoqijia/ci-pipeline-scaffold` (Agent Skill, multi-file: 5 files)
- Install (CLI): `npx skillmds@latest add jiayaoqijia/ci-pipeline-scaffold`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jiayaoqijia/ci-pipeline-scaffold/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: jiayaoqijia (https://skillmd.com/u/jiayaoqijia)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jiayaoqijia/ci-pipeline-scaffold

---


## Description

Emit minimal CI YAML configuration for common CI/CD platforms. Supports GitHub Actions, GitLab CI, and other CI systems with lint, test, and build stages.

## Inputs

```json
{
  "platform": "github|gitlab|jenkins",
  "language": "python|javascript|go",
  "stages": ["lint", "test", "build"]
}
```

## Outputs

```json
{
  "ok": true,
  "data": {
    "yaml": "CI YAML content",
    "filename": ".github/workflows/ci.yml"
  }
}
```

## Usage

### Demo Mode
```bash
python scripts/main.py --demo
```

### Generate CI Config
```bash
echo '{"platform": "github", "language": "python", "stages": ["lint", "test", "build"]}' | python3 scripts/main.py
```

## Examples

### Example 1: GitHub Actions CI
```bash
$ echo '{"platform": "github", "language": "python"}' | python3 scripts/main.py
{
  "ok": true,
  "data": {
    "yaml": "name: CI\non: push\njobs:\n  lint:\n    runs-on: ubuntu-latest",
    "filename": ".github/workflows/ci.yml"
  }
}
```

## Error Handling

When an error occurs, the skill returns:

```json
{
  "ok": false,
  "error": "Error description",
  "details": {
    "platform": "Unsupported platform"
  }
}
```

