nix-ci

Use this when setting up CI for a GitHub repository — offers GitHub Actions or Vira depending on the project

8 stars

Best use case

nix-ci is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Use this when setting up CI for a GitHub repository — offers GitHub Actions or Vira depending on the project

Teams using nix-ci should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/nix-ci/SKILL.md --create-dirs "https://raw.githubusercontent.com/juspay/AI/main/.claude/skills/nix-ci/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/nix-ci/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How nix-ci Compares

Feature / Agentnix-ciStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Use this when setting up CI for a GitHub repository — offers GitHub Actions or Vira depending on the project

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# CI Setup

When the user asks to set up CI, use the **Ask tool** to prompt them to choose:

1. **GitHub public runners** — CI via GitHub Actions
2. **Vira self-hosted** — self-hosted CI using [Vira](https://vira.nixos.asia)

## Option 1: GitHub Actions

Use the [install-nix](https://github.com/nixbuild/nix-quick-install-action) action (avoid DetSys actions) and invoke Vira to build:

```yaml
# .github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
  build:
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
      - uses: nixbuild/nix-quick-install-action@v34
      - run: nix profile install github:juspay/vira
      - run: vira ci
```

## Option 2: Vira Self-Hosted

Vira is already running and pointed at the repo. Create a `vira.hs` file in the repo root to configure the build pipeline.

**Before generating `vira.hs`, you MUST fetch and read https://vira.nixos.asia/config to understand the exact DSL format. Do not guess the syntax.**

### Rules for generating `vira.hs`

- If the repo has a **git remote pointing to GitHub**, set `signoff.enable = True`
- If **multiple `flake.nix` files** exist (e.g., in subdirectories), add all of them to `build.flakes` with appropriate `overrideInputs` settings
- Leave `cache.url = Nothing` with a comment `-- TODO: configure Attic cache URL`
- Use the **Ask tool** to ask the user whether `build.systems` should be set to `["x86_64-linux", "aarch64-darwin"]` for multi-platform builds

After creating `vira.hs`, run `vira ci -b` to verify the configuration.

Related Skills

vhs

8
from juspay/AI

Techniques for creating deterministic terminal demo screencasts with VHS

programming-essay

8
from juspay/AI

Write a programming essay or blog post in the voice of the canon — Spolsky, Yegge, Graham, Mickens, Dijkstra, Brooks, Nystrom, Kleppmann, patio11. Invoke when the user wants to argue an idea about software, architecture, languages, or the craft — not a debugging war story (use debugging-story for that), not a tutorial, not a release note. The audience is working developers worldwide with taste and strong opinions of their own.

nix-typescript

8
from juspay/AI

pnpm + Nix build conventions. Covers fetchPnpmDeps hash management and dependency workflow.

nix-rust-leptos

8
from juspay/AI

Conventions for building Leptos CSR apps with Nix (crane + Trunk).

nix-justfile

8
from juspay/AI

Conventions for writing justfile recipes in Nix-based projects.

nix-health

8
from juspay/AI

Use this when diagnosing or fixing a user's Nix installation — checks flakes, version, caches, max-jobs, direnv, rosetta, trusted-users, and shell config

nix-haskell

8
from juspay/AI

Use this when working on a Haskell project with Nix. Covers haskell-flake setup, adding/overriding dependencies, package settings, and devShell configuration.

nix-flake

8
from juspay/AI

Use this when writing or editing a flake.nix. Covers flake-parts, perSystem, formatter, shell scripts, and package conventions.

frontend-design

8
from juspay/AI

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

cargo-watch

8
from juspay/AI

Run cargo-watch in the background for continuous clippy feedback during code editing.

swe-cli-skills

12
from SylphAI-Inc/skills

Senior engineer CLI expertise for AI agents — workflows, safety guardrails, gotchas, and anti-patterns across cloud, IaC, containers, databases, dev tools, and platforms

DevOps & Infrastructure

PicoClaw Fleet

11
from EricGrill/agents-skills-plugins

Orchestrate a fleet of remote PicoClaw workers over SSH for fast, ephemeral one-shot tasks.

DevOps & Infrastructure