Skip to content
Skills Library
DevOps & cloud · Building & coding

om-setup-ci

/om-setup-ci

Set up or refresh CI for a standalone Open Mercato app in one command — GitHub Actions with dependency audit, secret scan (Gitleaks), SAST (Semgrep with Open Mercato rules), workflow security (zizmor), lint, generate + clean-tree check, typecheck, design-system check, unit tests, build, ephemeral integration tests, Docker build with Trivy, nightly audit and security scans, optional CodeQL and OWASP ZAP, Dependabot, SHA-pinned actions, and client-facing docs. Use for "set up CI", "add GitHub Actions", "add security scanning", "SAST/DAST", "refresh CI", "skonfiguruj CI".

Licence
MIT
Last repository change
27.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
18
Scripts
4
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 4 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/setup-ci.mjs, scripts/verify-semgrep-rules.mjs, templates/scripts/ci/audit-ci.mjs, templates/scripts/ci/time-bomb-scanner.mjs

What it does and when to use it

Set up or refresh CI for a standalone Open Mercato app in one command — GitHub Actions with dependency audit, secret scan (Gitleaks), SAST (Semgrep with Open Mercato rules), workflow security (zizmor), lint, generate + clean-tree check, typecheck, design-system check, unit tests, build, ephemeral integration tests, Docker build with Trivy, nightly audit and security scans, optional CodeQL and OWASP ZAP, Dependabot, SHA-pinned actions, and client-facing docs. Use for "set up CI", "add GitHub Actions", "add security scanning", "SAST/DAST", "refresh CI", "skonfiguruj CI".

Triggers from the description

set up CIadd GitHub Actionsadd security scanningSAST/DASTrefresh CIskonfiguruj CI
Original author description

Set up or refresh CI for a standalone Open Mercato app in one command — GitHub Actions with dependency audit, secret scan (Gitleaks), SAST (Semgrep with Open Mercato rules), workflow security (zizmor), lint, generate + clean-tree check, typecheck, design-system check, unit tests, build, ephemeral integration tests, Docker build with Trivy, nightly audit and security scans, optional CodeQL and OWASP ZAP, Dependabot, SHA-pinned actions, and client-facing docs. Use for "set up CI", "add GitHub Actions", "add security scanning", "SAST/DAST", "refresh CI", "skonfiguruj CI".

How it works

  1. Workflow
  2. Options
  3. Rules
Original SKILL.md headings · 39 lines, 573 words
SKILL.md preview
---
name: om-setup-ci
description: Set up or refresh CI for a standalone Open Mercato app in one command — GitHub Actions with dependency audit, secret scan (Gitleaks), SAST (Semgrep with Open Mercato rules), workflow security (zizmor), lint, generate + clean-tree check, typecheck, design-system check, unit tests, build, ephemeral integration tests, Docker build with Trivy, nightly audit and security scans, optional CodeQL and OWASP ZAP, Dependabot, SHA-pinned actions, and client-facing docs. Use for "set up CI", "add GitHub Actions", "add security scanning", "SAST/DAST", "refresh CI", "skonfiguruj CI".
---

# Set Up CI

One deterministic generator, `scripts/setup-ci.mjs`, does the work. Your job is to choose its options, run it, and explain the result. Do not hand-write workflow files.

## Workflow

1. Confirm the provider. Only `github` is supported. For any other provider, stop and say so; do not improvise a pipeline.
2. Preview the plan: `node .ai/skills/om-setup-ci/scripts/setup-ci.mjs --dry-run`. It reports the detected branches, Node source, and each check as enabled or disabled with the reason.
3. Ask the user only about what detection cannot know:
   - which branches to protect, when the detected list looks wrong;
   - whether the repository is private and the build may need a larger runner (`--runner`);
   - whether the repository is public or has GitHub Code Security: only then offer `--with-code-scanning` (CodeQL plus SARIF uploads);
   - whether they want the nightly OWASP ZAP scan (`--with-dast`);
   - whether to disable any check they explicitly do not want (`--no-<check>`).
4. Run the generator with the agreed flags and no `--dry-run`. Exit code `3` means some files already exist with different content and nothing was written. Show the user the differences, then re-run with `--force` only after they agree. `scripts/ci/audit-ci-allowlist.json` and `scripts/ci/zap-rules.tsv` are never overwritten.
5. Run the fast checks locally to verify them: `node scripts/ci/audit-ci.mjs --severity high` and, when Docker is available, the Semgrep and Gitleaks commands from `docs/ci/README.md` → *Running the checks locally*. Report existing findings; do not suppress them yourself.
6. Commit on a branch and open a pull request so the first run executes, following `.ai/agentic.config.json` (`om-open-pr` when installed).
7. Tell the user to mark the `CI` check as required and to enable secret scanning push protection (`docs/ci/README.md` → *Branch protection and repository settings*). Do not change repository settings yourself unless they ask; these are admin changes to shared settings.

## Options

`--branches a,b` · `--node <v>` · `--runner <label>` · `--audit-severity low|moderate|high|critical` · `--audit-cron "<cron>"` · `--target <dir>` · `--dry-run` · `--force` · `--json`.

Checks, on by default (`--no-<check>` turns one off): `secrets`, `sast`, `workflow-lint`, `lint`, `typecheck`, `ds-check`, `time-bombs`, `test`, `build`, `integration`, `docker`, `image-scan`, `scheduled-audit`, `scheduled-security`, `dependabot`. Off by default (`--with-<check>` turns one on): `code-scanning`, `dast`.

Options are saved in `.github/om-ci.json`, so a later `--force` refresh keeps them.

## Rules

- Never weaken a gate to get a green first run: do not add `continue-on-error`, delete steps, or add suppressions (`nosemgrep`, `.gitleaksignore`, `.trivyignore`, allowlist entries, ZAP `IGNORE`). Report the finding and fix its cause; suppress only a confirmed false positive, with the reason written next to it, and only when the user agrees.
- If the secret scan finds a credential, tell the user to revoke and rotate it at the provider first. Deleting the commit does not undo the leak.
- Never put secrets in workflow files; use `${{ secrets.NAME }}`.
- Keep deploy steps out of `ci.yml`; put them in a separate workflow triggered after `CI`.
- If the user edits generated files, warn them that `--force` overwrites those edits.
- `templates/docs/README.md` explains each check, why it exists, and what it does not cover. Read it before answering questions about the pipeline.
- Changing a pinned action, image or tool version: edit `ACTIONS` / `TOOLS` in `scripts/setup-ci.mjs`, choose a release at least two weeks old, pin the commit SHA, image digest or checksum, then regenerate.
- Changing an Open Mercato Semgrep rule: update `templates/scripts/ci/semgrep/open-mercato.yml` and its annotated fixture `open-mercato.fixture.txt` (`// ruleid:` must match, `// ok:` must not), then run `node .ai/skills/om-setup-ci/scripts/verify-semgrep-rules.mjs` (needs Docker).
Files in this package (18)
  • SKILL.md 5 KB
  • scripts/setup-ci.mjs 25 KB
  • scripts/verify-semgrep-rules.mjs 3 KB
  • templates/docs/README.md 25 KB
  • templates/github/dependabot.yml 1 KB
  • templates/github/actions/gitleaks/action.yml 1 KB
  • templates/github/actions/playwright/action.yml 1 KB
  • templates/github/actions/setup/action.yml 2 KB
  • templates/github/workflows/audit.yml 7 KB
  • templates/github/workflows/ci.yml 18 KB
  • templates/github/workflows/codeql.yml 2 KB
  • templates/github/workflows/security.yml 9 KB
  • templates/scripts/ci/audit-ci-allowlist.json 1 KB
  • templates/scripts/ci/audit-ci.mjs 12 KB
  • templates/scripts/ci/time-bomb-scanner.mjs 10 KB
  • templates/scripts/ci/zap-rules.tsv 1 KB
  • templates/scripts/ci/semgrep/open-mercato.fixture.txt 3 KB
  • templates/scripts/ci/semgrep/open-mercato.yml 6 KB

Versions

The database has no other skills named om-setup-ci.

Database snapshot: 13.11.2026 · package version 4a55ebb23e1a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100implementing-devsecops-security-scanning
    Integrates SAST, DAST, and SCA into CI/CD pipelines using Semgrep for SAST, Trivy for SCA and container scanning, OWASP ZAP for DAST, and Gitleaks for secrets detection. Use when setting up automated security scanning in CI/CD, shifting security left, meeting compliance mandates…
  • 100go-ci
    Continuous integration for Go projects: GitHub Actions pipelines, caching, golangci-lint setup, test/coverage gates, vulnerability scanning, SAST (CodeQL, gosec), Dependabot, action pinning, build matrices, Makefile targets. Use when: "set up CI", "GitHub Actions for Go", "add…
  • 90sast-scan
    Design a SAST/DAST scanning pipeline — tooling selection, CI integration, and triage workflow. Use when asked to "set up SAST in CI", "add DAST scanning", or "build a security scanning pipeline".
  • 90ci-setup
    Sets up continuous integration (GitHub Actions by default): install with cache, lint, typecheck, unit and integration tests with service containers, build, Playwright on preview deploys, and dependency/secret scanning. Use when the project has code but no CI, when CI is slow or…
  • 100security-testing
    When the user wants to design, integrate, or operate security testing in their pipeline — SAST, DAST, dependency scanning, secret scanning, container scanning, IaC scanning, fuzzing, authn/authz testing, OWASP coverage. Use when the user mentions "security testing," "SAST,"…
  • 100security-audit
    OWASP Top 10 security audit, SAST/DAST/SCA scanning, secrets detection, and dependency vulnerability check. Use when: security, vulnerability, OWASP, secrets, CVE, security audit, security scan, penetration.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.