node-ci
Skill1 starsChanged 3 months agoMITView on GitHub
Authors GitHub Actions CI for Node projects - version matrices derived from engines, setup-node caching, pnpm setup without corepack, a fail-closed all-checks aggregator, merge_group support, concurrency. Use when the user asks to set up CI, add a Node test matrix, cache installs, or fix required checks and merge queues. Not for release/publish pipelines or dependency-update policy.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-skillSkill
- publish-repoSkill
- nextjs-qualitySkill
- node-lintSkill
- node-packagingSkill
- node-releaseSkill
- node-supply-chainSkill
- node-testingSkill
- node-typescriptSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Merge queues: every workflow backing a required check declares merge_group alongside pull_request, or the queue silently stalls.
- Distinctive: line 44
Speed work is measured work: read run timings first; then lockfile-keyed caching, matrix pruning, suite splitting — never delete gates for …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
node-ci
Authors CI that is derived from the repo, fails closed, and is supply-chain
clean by construction. The failures this skill fixes: models hardcode Node
versions that drift from engines (or are EOL), write aggregator checks that
pass when jobs are skipped, use corepack enable on runners where corepack no
longer ships, and emit workflows with unpinned actions and default-broad
permissions.
When NOT to use
- Release/publish workflows →
node-release. - What the checks run (lint rules, test config) →
node-lint/node-testing/node-typescript; this skill wires them. - Dependabot/dependency policy →
node-supply-chain(but every workflow this skill emits complies with its pinning/permissions rules).
Workflow
- Derive, don't hardcode: matrix from
package.json#enginesintersected with maintained Node lines (verify current LTS/EOL against the nodejs.org release schedule — table version-gated inreferences/ci-playbook.md). Optional next-Current line as allowed-failure. - Package manager from the lockfile: setup-node cache keyed to the right lockfile; pnpm via its setup action — do not rely on corepack on current runners (not bundled with newer Node lines; verified in the playbook).
- Structure: lint / typecheck / test jobs → one fail-closed aggregator
as the only required check:
if: always()with an explicit result test that fails onfailure,cancelled, andskipped(exact YAML in the playbook — a naiveneedschain passes on skips). - Merge queues: every workflow backing a required check declares
merge_groupalongsidepull_request, or the queue silently stalls. - Hygiene by construction: top-level
permissions: contents: read, per-job elevation only; third-party actions SHA-pinned with version comment (officialactions/*by major tag + Dependabot);concurrencywith cancel-in-progress;timeout-minuteseverywhere. - Speed work is measured work: read run timings first; then lockfile-keyed caching, matrix pruning, suite splitting — never delete gates for speed silently.
- Verify:
then push and confirm the aggregator turns red on a deliberately failed leg (prove fail-closed once).python3 "${CLAUDE_SKILL_DIR}/scripts/check_workflows.py"
Output spec
Workflows that pass schema validation and the checker script; matrix documented
against engines; a single aggregator required check proven to fail on
failed/cancelled/skipped legs; merge_group present when queues are on; no
unpinned third-party actions; no default-broad permissions.
Gotchas
- Required-check names match the reported check (job
name:), not filenames — renames silently orphan branch rules. - A matrix leg that's skipped by path filters still satisfies naive aggregators — the playbook's result-check is the fix.
cancel-in-progress: trueonmainpushes can cancel deploy-adjacent runs — scope concurrency groups to refs deliberately.- Version-gate the LTS table and setup-action majors; re-verify at authoring time.
Files
references/ci-playbook.md— engines-derived matrices, cache/pnpm setup, fail-closed aggregator YAML, merge_group, monorepo filtering, remote cache.scripts/check_workflows.py— static workflow audit (unpinned third-party actions, missing permissions, EOL node versions, aggregator/merge_group presence); non-zero exit on violations.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

