loop-ci

A setup helper that creates a GitHub Actions workflow for the same test, lint, and build commands used by the development loop.

In plain words
What is it for?
Use it to scaffold CI for Node projects managed with npm, pnpm, yarn, or bun, using commands detected from the loop configuration or package.json.
Why use it?
It reduces the risk that local loop checks and continuous integration use different commands or silently skip an unresolved check.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hhamja/claude-code-harness/loop-ci
Any agent
npx skills add hhamja/claude-code-harness --skill loop-ci
Clone the repo
git clone --depth 1 https://github.com/hhamja/claude-code-harness

Made for: Claude Code, Codex.

Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 562 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.00562
Opus 5 $0.00010 $0.00281
Sonnet 5 $0.00004 $0.00112
Haiku 4.5 $0.00002 $0.00056

Measured yesterday against content hash 12d35d23fd4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

loop-ci scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/loop-ci/SKILL.md · 35 lines

How it starts

The opening of the file, as written. The whole thing — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.

loop-ci — scaffold CI from the loop's own checks

Generate .github/workflows/loop-ci.yml so CI runs the SAME test/lint/build the loop verifies — CI and the loop can never disagree. Detection is yours (the agent's); the workflow text comes from ${CLAUDE_PLUGIN_ROOT}/scripts/gen_ci.sh, a pure, golden-tested generator.

Idempotency: if .github/workflows/loop-ci.yml already exists, print its path and stop. Never overwrite.

Scope today: node projects (npm / pnpm / yarn / bun) are fully supported. Other stacks: see step 4.

Steps

  1. Stop if it exists. If .github/workflows/loop-ci.yml is present, show the path and end — do not regenerate.

  2. Detect the commands. Prefer .claude/loop/loop.config.md (test: / lint: / build: lines). If it is missing, read package.json scripts directly. Pass a value through verbatim even if it is TODO: ... — the generator comments that step out so the gap stays visible rather than silently dropping it.

  3. Detect the package manager from the lockfile: pnpm-lock.yaml→pnpm, package-lock.json→npm, yarn.lock→yarn, bun.lockb/bun.lock→bun. If several exist, prefer the most recently modified; if none, default to npm and say so in the report.

  4. Non-node projects. If there is no package.json, this command does not yet emit a workflow for your stack (python/go/rust setup is not implemented). Stop and tell the user, pointing at scripts/gen_ci.sh as the place to extend. Never emit a workflow that cannot run.

  5. Generate:

    mkdir -p .github/workflows
    "${CLAUDE_PLUGIN_ROOT}/scripts/gen_ci.sh" \
      --pm <detected> --test "<test>" --lint "<lint>" --build "<build>" \
      > .github/workflows/loop-ci.yml
    

    Passing an empty or TODO value is fine — it becomes a commented-out step.

  6. Report: the created path, any TODO steps still to fill, and the next step. The workflow triggers on pull_request and push to main. Committing and pushing is the user's call — this command only writes the file.

Read the full file on GitHub · 35 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 35 lines · 21 tokens per session scan A 12d35d23fd4c

Subscribe to this mod's changes

loop-ci is a skill published in the GitHub repository hhamja/claude-code-harness (1 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 562 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories