Development
Workflows
Every workflow:
- Has
permissions: {}at the top and per job,timeout-minuteson every job and aconcurrencygroup 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-reviewalso 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 theuses:pins and the rootpackage.jsonweekly.
The required checks:
checks,conventionalanddependency-revieware 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
mainand on pushes tomain, exceptconventional(the pull request title) anddependency-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:
actionlintandzizmor(a checkout keeps its credentials only with azizmor: ignore[artipacked]reason).- No em dash or emoji in text files (lockfiles, PNG files and changelogs apart).
- No
2.1.xversion other than2.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 theplugin-checkspin apart). - The TypeScript check (a plugin script written in TypeScript is a
.mtsfile that Node.js runs as it is, with no.mjsbeside it, and imports name the.mtsfile):npm ci --ignore-scripts --no-audit --no-fundof the rootpackage.json(TypeScript and@types/node, for development and CI only), thennpx --no -- tsc -p ., which type-checks the.mtsfiles underplugins/and writes nothing (noEmit). Last,.github/scripts/typescript-sources.mjsfails on a plugin.mjsoutsidetest/that is not on its list of unconverted scripts, on a.mjsand.mtsof 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 norclaude-code, - has a hook matcher in
hooks/*.jsonwhose^<prefix>:is not the plugin's name in.claude-plugin/plugin.json, - breaks rule
orca-only-orchestration: the nameorcaas a word or inside an identifier (cases:plugin-boundary.test.mjs) fails in every plugin folder butplugins/cl-orchestration, which runs only on Orca, andplugins/cedarloom, the bundle that installs it;cl-workflow,cl-repoandcl-skillswork 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, itsSKILL.mdbody plusreadFirstfiles. A skill without an entry takesbudget.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
reportjob 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, andchecks-coreruns 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-auditsuite (--tag skill-audit), whose caseskill-audit-rule-fileplants each kind of the prompt at a known line (cl-repo evals).