Skip to main content

Development

Workflows​

Every workflow:

  • Has permissions: {} at the top and per job, timeout-minutes on every job and a concurrency group that cancels superseded pull request runs.
  • Runs its jobs only in CedarLoom/cedarloom (if: github.repository == 'CedarLoom/cedarloom'), so a fork or a copy runs none. dependency-review also skips in a private repository, CodeQL and Scorecard in one that is not public.
  • Pins its actions to commit SHAs with a version comment. Dependabot (.github/dependabot.yml) updates the uses: pins and the root package.json weekly.

The required checks:

  • checks, conventional and dependency-review are the ones to keep green. A job change keeps these names: a branch rule requires a check by its name, and a required check that no job reports stays pending and blocks the merge.
  • Each runs on pull requests into main and on pushes to main, except conventional (the pull request title) and dependency-review, which run on pull requests only.

Checks​

checks.yml runs checks-core, plugin-checks and plugin-tests in parallel; the job checks gates all three.

plugin-tests runs the tests in plugins/*/test/ with Node.js alone (no install, no app) on Linux and macOS, on Node.js 22.23.4, and on Linux also on 22.18.0, the lowest version the README's Requirements admit. In a private repository the macOS leg runs on pushes to main only; in a public one, on pull requests too.

checks-core runs:

  • actionlint and zizmor (a checkout keeps its credentials only with a zizmor: ignore[artipacked] reason).
  • No em dash or emoji in text files (lockfiles, PNG files and changelogs apart).
  • No 2.1.x version other than 2.1.330, the Claude Code minimum in the README's Requirements, written into the step (other version lines pass; changelogs, tests, package manifests, lockfiles, workflows and the plugin-checks pin apart).
  • The TypeScript check (a plugin script written in TypeScript is a .mts file that Node.js runs as it is, with no .mjs beside it, and imports name the .mts file): npm ci --ignore-scripts --no-audit --no-fund of the root package.json (TypeScript and @types/node, for development and CI only), then npx --no -- tsc -p ., which type-checks the .mts files under plugins/ and writes nothing (noEmit). Last, .github/scripts/typescript-sources.mjs fails on a plugin .mjs outside test/ that is not on its list of unconverted scripts, on a .mjs and .mts of the same name side by side, and on a listed script that is no longer tracked.
  • The .github/scripts/ tests and checks:
    • skill lint with the word budgets of Authoring,
    • plugin boundary,
    • generated docs,
    • Orca version pins: in the Orca files of the coordinate skill, no version cite or unverified or observed note outside the pin lines at the top of orca.md.
  • The token budget (token-budget.mjs check --budget-only).

The plugin boundary check (.github/scripts/plugin-boundary.mjs) fails when a tracked file under plugins/*/ (the generated CHANGELOG.md apart):

  • holds a path that leaves its plugin folder (a ../ path resolved from the file's folder, ${CLAUDE_PLUGIN_ROOT}/..),
  • imports a package that is neither a node: module nor claude-code,
  • has a hook matcher in hooks/*.json whose ^<prefix>: is not the plugin's name in .claude-plugin/plugin.json,
  • breaks rule orca-only-orchestration: the name orca as a word or inside an identifier (cases: plugin-boundary.test.mjs) fails in every plugin folder but plugins/cl-orchestration, which runs only on Orca, and plugins/cedarloom, the bundle that installs it; cl-workflow, cl-repo and cl-skills work without Orca.

Token budget​

token-budget.yml runs on pull requests that change the files agents load (include in .github/token-budget.json: instruction files, plugin skills, agents and rules, README.md, docs/agents/; other docs are not measured). It:

  • measures base and head with plugins/cl-repo/skills/debloat/token-budget.mjs,
  • writes the change into a block in the pull request description (pull requests from this repository only),
  • fails when the head is above a budget or a budget cannot be applied (an unknown key, a non-numeric value, an always-loaded file outside include, a missing read-first file, a skill with neither an entry nor a default).

Budgets cap what loads, not the total:

  • budget.alwaysLoaded: every session.
  • budget.listed: skill and agent descriptions.
  • budget.skills: per skill, whoever can invoke it, its SKILL.md body plus readFirst files. A skill without an entry takes budget.skills.default ({ "max": <n> }, body only); give it an entry "<path>/SKILL.md": { "max": <n>, "readFirst": [<paths>] } to raise or lower its cap or to count the files it always reads first.
  • budget.files.

A new limit is the measured load plus 10 percent, rounded up to the next 100; a failure names the load and, by that rule, the entry to add or the max to raise.

checks-core runs the same check and is binding; lost protected text and dead links are warnings there. node plugins/cl-repo/skills/debloat/token-budget.mjs baseline --write stores counts moved on purpose.

.github/scripts/token-budget-block.mjs writes the block between <!-- token-budget --> and <!-- /token-budget -->, with a do-not-edit note on the next line:

  • An existing block is replaced in place, a missing one is added at the end of the description; every other byte of the description stays.
  • Markers inside fenced code are text.
  • A report line that starts with a marker gets a leading space so it ends or opens no block.
  • A fence left open at the end is closed before an appended block.
  • The report job holds the only token that can edit pull requests and runs the script of the default branch, never code from the pull request: a change to the script takes effect once it merges, and checks-core runs its tests.
  • Review bots edit the description too, so the script reads it back after each write and writes again while its block is missing or stale, failing after three writes.

Site​

pages.yml builds the site in site/ on pull requests and, on pushes to main and on a manual run, deploys it from main to GitHub Pages from GitHub Actions (actions/upload-pages-artifact, actions/configure-pages, actions/deploy-pages, environment github-pages). Only the deploy job can write to Pages. It serves only with the repository's Pages source set to GitHub Actions (Settings > Pages > Build and deployment > Source).

brand/tokens.json holds the palette (the shared base palette plus the CedarLoom accent, light and dark) and the font in the Design Tokens Format. node brand/build-tokens.mjs writes brand/tokens.css from it, which the site imports; the site's npm run build runs it with --check first and fails while tokens.css is stale. Albert Sans is self-hosted from brand/fonts/, with its license OFL.txt.

Evals​

Each plugin keeps its claude plugin eval suites in plugins/<plugin>/evals/, run locally on your own credential, not in CI: cl-workflow evals, cl-repo evals, cl-skills evals and cl-orchestration evals, which run against a fake orca and gh.

What a pull request reruns depends on what it changes:

  • A skill or agent text: the suites it affects, on its merge base and its head, both with the head's case files. Only runs that completed every case are compared: pass rate (passing runs over all runs), tokens, wall time and cost. A lower pass rate on an affected suite blocks the merge until the case is fixed, or the drop is explained in the pull request and accepted in its review.
  • The cl-repo rules block: its hand-run script, compared the same way (Rules block), since an eval run loads no project AGENTS.md.
  • The rule file prompt in the audit instructions lens: the skill-audit suite (--tag skill-audit), whose case skill-audit-rule-file plants each kind of the prompt at a known line (cl-repo evals).