CI Pipeline Scaffold

Description

XSpoonAi Updated

File contents

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

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

Outputs

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

Usage

Demo Mode

python scripts/main.py --demo

Generate CI Config

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

Examples

Example 1: GitHub Actions CI

$ 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:

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

XSpoonAi/spoon-awesome-skill/tree/main/enterprise-skills/ci-pipeline-scaffold commit 57c068e533

Frequently asked questions

npx skillmds@latest add xspoonai/ci-pipeline-scaffold