Ci pipeline scaffold

From XSpoonAi/spoon-awesome-skill · View interactive version

Ci pipeline scaffold is an AI agent skill from the GitHub repository XSpoonAi/spoon-awesome-skill. 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.

How to use this skill

Skill file

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"
  }
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.