Przejdź do treści
Biblioteka skilli
DevOps i chmura · Automatyzacja

gen-ci

/gen-ci

Generuje workflowy CI w GitHub Actions dla repozytorium: plik .github/workflows/ci.yml z lintem i testami oraz opcjonalnie kontrolą governance i drift.

Repozytorium
nyann ↗
Licencja
MIT
Ostatnia zmiana repozytorium
22.08.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 22.08.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Generuje workflowy CI w GitHub Actions dla repozytorium: plik .github/workflows/ci.yml z lintem i testami oraz opcjonalnie kontrolą governance i drift.

Wyzwalacze z opisu

generate CIadd GitHub Actionscreate CI workflowset up CIadd CI/CDcreate a CI pipelinegenerate CI/CDadd continuous integration
Oryginalny opis (EN)

Generate GitHub Actions CI workflows for this repository. TRIGGER ON: 'generate CI', 'add GitHub Actions', 'create CI workflow', 'set up CI', 'add CI/CD', 'create a CI pipeline', 'generate CI/CD', 'add continuous integration', 'set up GitHub Actions', 'add a lint+test workflow', 'add governance check', 'add PR health check', 'add drift check to CI', 'set up governance gate', 'enforce governance in CI'. Generates .github/workflows/ci.yml with lint, typecheck, and test jobs, and optionally .github/workflows/governance-check.yml with drift + health-score PR gating.

Jak działa

  1. When to trigger
  2. Execution flow
  3. Key constraints
  4. Error handling
  5. Governance check details
  6. When to hand off
Sekcje z nagłówków SKILL.md, w oryginale · 109 linii, 729 słów
Podgląd SKILL.md
---
name: gen-ci
description: "Generate GitHub Actions CI workflows for this repository. TRIGGER ON: 'generate CI', 'add GitHub Actions', 'create CI workflow', 'set up CI', 'add CI/CD', 'create a CI pipeline', 'generate CI/CD', 'add continuous integration', 'set up GitHub Actions', 'add a lint+test workflow', 'add governance check', 'add PR health check', 'add drift check to CI', 'set up governance gate', 'enforce governance in CI'. Generates .github/workflows/ci.yml with lint, typecheck, and test jobs, and optionally .github/workflows/governance-check.yml with drift + health-score PR gating."
---

# gen-ci — Generate GitHub Actions CI Workflow

You are the gen-ci skill. You generate a GitHub Actions CI workflow that mirrors the project's quality gates (lint, typecheck, test) based on the detected stack and nyann profile.

## When to trigger

- User asks to generate CI, add GitHub Actions, create a CI workflow, or set up CI/CD
- User asks to add continuous integration, create a pipeline, or add a lint+test workflow
- User asks to add a governance check, PR health check, drift check to CI, or governance gate
- User is bootstrapping a new project and wants CI

**DO NOT trigger on:** general questions about CI/CD concepts, debugging existing workflows not managed by nyann, or requests to modify workflows outside nyann markers.

## Execution flow

### Phase 1: Detect stack and resolve profile

1. Run `bin/detect-stack.sh --path .` to get a StackDescriptor JSON.
2. Resolve and load the active profile via `bin/load-profile.sh <name>`
   (resolves preferences → CLAUDE.md markers → `"default"` fallback).

### Phase 2: Preview the workflow

4. Run `bin/gen-ci.sh --profile <profile> --stack <stack> --target . --dry-run` to preview the generated workflow.
5. Show the user what will be generated:
   - Template selected (typescript/python/go/rust/generic)
   - Jobs and steps (lint, typecheck, test)
   - Package manager and version matrix
   - Path filters (if monorepo)

### Phase 2.5: Offer governance check

If the profile has a `governance` block, or if the user mentioned
"governance", "health check", or "drift check", offer to also
generate the governance-check workflow:

> "Also generate a governance check that runs doctor on every PR
> and posts a health report comment? (adds `governance-check.yml`)"

If the user accepts (or originally asked for it), add `--governance`
to the gen-ci.sh invocation.

### Phase 3: Confirm and write

6. Ask the user: "Write this CI workflow to `.github/workflows/ci.yml`?"
7. On confirmation, run:
   ```
   bin/gen-ci.sh --profile <profile> --stack <stack> --target . [--governance]
   ```
8. Report what was written (ci.yml, and governance-check.yml if `--governance`).

### Phase 4: Suggest next steps

9. Suggest:
   - "Run `/nyann:gen-templates` to add PR and issue templates"
   - "Run `/nyann:doctor` to check overall repo health"
   - If governance was generated: "Add a `governance` block to your
     profile to customize threshold and severity"
   - "Commit and push to see the workflow run"

## Key constraints

- The generated workflow uses marker comments (`# nyann:ci:start` / `# nyann:ci:end`). Regeneration replaces only the marked region; user content outside markers is preserved.
- If the profile has `ci.enabled: false`, explain that CI generation is disabled in the profile and offer to enable it.
- If `.github/workflows/ci.yml` already exists with nyann markers, inform the user it will be regenerated (not duplicated).
- If `.github/workflows/ci.yml` exists WITHOUT markers, the script refuses by default — it warns and skips so user-written CI isn't accidentally clobbered. Pass `--allow-merge-existing` to gen-ci.sh to opt in to appending the marked block (existing content is preserved above the markers). Suggest manual cleanup either way if the result isn't what the user wants.

## Error handling

- No stack detected → use `generic.yml` template, warn that lint/test steps are placeholders
- No profile found → use `default` profile (CI disabled by default — offer to enable)
- Template file missing → die with error pointing to `templates/ci/` directory

## Governance check details

The `--governance` flag generates `.github/workflows/governance-check.yml`:
- Runs `bin/doctor-ci.sh` on every PR against base branches
- Posts a health-score summary as a PR comment (updated on re-push)
- Blocks or warns based on the profile's `governance.threshold` (default 70)
- Emits GitHub Actions annotations for missing files, misconfigured hooks, etc.

Profile governance configuration (optional — all fields have defaults):
```json
{
  "governance": {
    "enabled": true,
    "threshold": 70,
    "severity": "block",
    "ignore": ["orphans", "stale"]
  }
}
```

| Field | Default | Effect |
|---|---|---|
| `enabled` | `true` | Set `false` to disable governance check generation |
| `threshold` | `70` | Minimum health score (0-100) to pass the gate |
| `severity` | `"block"` | `block` = fail check; `warn` = annotate only; `off` = skip |
| `ignore` | `[]` | Categories excluded from score (e.g. `orphans`, `stale`) |

## When to hand off

- "Add PR and issue templates too" → `gen-templates` skill.
- "Check repo health" → `doctor` skill.
- "Apply branch protection" → `gh-protect` skill.
- "Customize the governance threshold" → edit the profile's `governance` block.
- "Commit and ship" → `commit` skill, then `ship` skill.

Wersje

W bazie nie ma innych skilli o nazwie gen-ci.

Migawka bazy z 13.11.2026 · wersja paczki f3ede307c7e5 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100make-github-actions-workflow
    Tworzy i zmienia workflowy GitHub Actions (.github/workflows/*.yml) dla CI, automatyzacji i obsługi pull requestów, w tym polityk PR i automatyzacji komentarzy.
  • 100init-ci
    Konfiguruje potoki CI/CD w GitHub Actions: budowanie, testy, lintery, integrację Claude z PR oraz wdrożenia na Render, Vercel lub AWS.
  • 100ci-cd-github-actions-workflows
    Tworzy workflowy GitHub Actions do ciągłej integracji, buildów w macierzy i ciągłego wdrażania.
  • 100github-actions
    Tworzy, debuguje i testuje workflowy GitHub Actions oraz własne akcje przy budowie potoków CI/CD i rozwiązywaniu problemów.
  • 100fix-failing-actions
    Diagnozuje i naprawia nieudane workflowy GitHub Actions w repozytorium drift: błędy CI, kontroli higieny bezpieczeństwa i workflowu wydań.
  • 100github-actions
    Obsługuje GitHub Actions CI/CD: workflowy, zadania i wdrożenia do automatyzacji budowania, testów i wdrożeń.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.