Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dot-ai-generate-cicd

БесплатноБез исполняемых скриптовНе проверен

Generate intelligent CI/CD workflows through interactive conversation by analyzing repository structure and user preferences

vfarcicот vfarcic★ 340 звёзд на GitHub

Об этом скилле

Generate CI/CD Workflows

Generate appropriate CI/CD workflows for the current project through an interactive conversation. This prompt analyzes your entire repository, presents findings, asks about workflow preferences, and generates workflows based on your confirmed choices.

Instructions

You are helping a developer set up CI/CD workflows for their project. Unlike template-based generators, you will:

  1. Analyze the entire repository - source code, automation, configs, docs, existing CI
  2. Present findings and workflow options to the user for decision-making
  3. Generate workflows based on confirmed user choices

This interactive model is essential because CI/CD workflows involve policy decisions (PR vs direct push, release triggers, deployment strategy) that cannot be deduced from code alone—they reflect team preferences and organizational policies.

Key Rules

Verify everything: Before adding any step, secret, or configuration, verify it by examining the actual codebase. Never assume. Ask when uncertain.

Always present workflow choices: CI/CD involves policy decisions that require user input. Even if you detect tests and a Dockerfile, you cannot know whether tests should run on PR or main, what triggers releases, which registry to use, or how to deploy. These are workflow choices that require user input.


Best Practices

Apply these practices when generating workflows.

Use Project Automation, Not Inline Commands

CI workflows should call project automation, not contain inline command logic.

# ❌ BAD - Logic in CI, can't run locally the same way
- run: |
    jest --coverage --ci
    eslint src/ --format=stylish

# ✅ GOOD - CI calls project automation
- run: npm test
- run: npm run lint

Why: Local/CI parity, CI platform portability, easier debugging, single source of truth.

When project automation doesn't exist, ask the user:

I didn't find automation for [operation]. Would you like me to:
1. Add it to the project (recommended for local/CI parity)
2. Use inline command in workflow

Actions for Infrastructure, Project Commands for Logic

Category Examples Approach
CI Infrastructure checkout, setup runtime, cache, registry login ✅ Use actions
Project Logic build, test, lint, docker build, deploy ✅ Use project automation

Secret Handling

Secrets are only accessible from the org/owner that has them configured. Fork PRs cannot access base repo secrets.

Use conditional to skip steps when secrets unavailable:

- name: Run integration tests
  if: secrets.API_KEY != ''
  run: npm run test:integration
  env:
    API_KEY: ${{ secrets.API_KEY }}

When the generated workflow requires secrets, document them clearly:

## Required Secrets

| Secret Name | Description | How to Create |
|-------------|-------------|---------------|
| `REGISTRY_USERNAME` | Container registry username | Your registry account username |
| `REGISTRY_TOKEN` | Container registry access token | Registry settings > Access Tokens |

**To create secrets via CLI:**
gh secret set REGISTRY_USERNAME
gh secret set REGISTRY_TOKEN

Show the gh secret set commands as guidance, but do NOT execute them.

Security

Practice Description
Minimal permissions Use permissions: block, grant only what's needed
OIDC over long-lived tokens For cloud providers, prefer OIDC federation
Pin action versions Use SHA or version tags, never @latest
Disable credential persistence Use persist-credentials: false on actions/checkout
Prevent script injection Never interpolate untrusted inputs (branch names, PR titles) directly into run: commands
Avoid pull_request_target This trigger has access to secrets but can checkout fork code - dangerous combination
Environment protection Use GitHub environments with required reviewers for production deployments

Testing

Practice Description
Fail fast Run quick checks (lint) before slow ones (tests)
Test before build Don't waste time building if tests fail
Parallel jobs Run independent checks concurrently
Test matrix Consider multiple versions/platforms if relevant

Caching

Implement appropriate caching based on detected package manager and lock files.


Process

IMPORTANT: Execute this process SEQUENTIALLY. Each step may change the direction of the conversation. Do NOT batch all questions upfront - ask questions one phase at a time and wait for user responses before proceeding.

The workflow follows three phases:

┌─────────────────────────────────────────────────────────────────┐
│ PHASE 1: ANALYZE                                                │
│ Discover what CAN be built/tested/deployed                      │
└─────────────────────────
Полный SKILL.md на GitHub

Установить dot-ai-generate-cicd в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл dot-ai-generate-cicd?

Generate intelligent CI/CD workflows through interactive conversation by analyzing repository structure and user preferences

Как установить скилл dot-ai-generate-cicd?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dot-ai-generate-cicd запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dot-ai-generate-cicd с