Repository navigation
chore: add ecosystem records that follow CI's build, test and lint commands - #572
Conversation
…mmands Add one ecosystem-commands record per ecosystem this repository uses (go, bash, powershell, javascript for the .cjs workflow-script tests, markdown, yaml, cross-cutting) under .claude/ecosystems/, so the toolchain skills resolve the commands and pinned versions pr-require-checks.yml and the ci-workflows composites it calls run, instead of the marketplace's bundled defaults. Refs: melodic-software/claude-code-plugins#15722 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed Code review: no findingsThe PR adds seven What I checked
Not verified
Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review, PR #572 (head dbf0a8d): no findings. The diff adds seven declarative ecosystem records under
critical-findings: 0 |
Refs: melodic-software/claude-code-plugins#15722
Summary
This repository now resolves its build, test and lint commands from its own ecosystem records, one schema-valid file per ecosystem it uses:
.claude/ecosystems/{go,bash,powershell,javascript,markdown,yaml,cross-cutting}.yaml. Each command, flag and pinned version follows what.github/workflows/pr-require-checks.ymlruns, including the ci-workflows composites it pins (944d346, v0.74.0) and the reusables it calls atmain(pr-run-checks-go.ymlandpr-audit-workflows.yml, read at ci-workflowscd84496).javascriptis a new id: no bundled default matches*.cjs, and CI runsnode --test .github/scripts/*.test.cjs. No record exists for dotnet, python or typescript: no tracked file matches their bundled globs.Fix
Each intended difference from toolchain's bundled defaults (
plugins/toolchain/reference/ecosystems/in claude-code-plugins), with the CI source that sets it:build-cmdis CI's Windows cross-compile of the two commands,-ldflags=-H=windowsguion the controller, linked to/dev/null(bundledgo build ./...)pr-require-checks.yml:331-353(build-go-windows; CI writes to/tmp)test-cmdgo test -race -count=1 -timeout=10m ./...(bundledgo test ./...)pr-run-checks-go.yml@main:170check-cmdrunsgolangci-lint config verify --config .golangci.yml, thenrun --config .golangci.yml --timeout=10m --max-issues-per-linter=0 --max-same-issues=0 ./..., thengofmt -lover tracked*.go, failing on any output (bundledgolangci-lint run ./...);--issues-exit-code=42is dropped, since any non-zero exit fails here; pin golangci-lint 2.14.0pr-run-checks-go.yml@main:33,:111-115,:129-133;pr-require-checks.yml:329go-mod-tidy-driftrunsenv GOWORK=off go mod tidy -diff(bundled withoutGOWORK=off);go-mod-verifyaddedpr-run-checks-go.yml@main:151,:165check-cmdisshellcheck --rcfile="$REPO_ROOT/.shellcheckrc" <files>andshfmt -d <files>, both run, either failure fails (bundledshellcheck -x -S warning <files> && shfmt -d <files>); pins shellcheck 0.11.0, shfmt 3.14.1pr-require-checks.yml:95-121; shellcheck compositerun.sh:172-175(--rcfile,--severityonly when set),action.yml:66; shfmtaction.yml:22test-cmdis CI's node step, becauseverify-existing-release.test.cjsruns.github/scripts/verify-existing-release.sh(bundled null)pr-require-checks.yml:317test-cmdis the whole test-policy-contracts job: the node suites (which drive thescripts/*.ps1files through pwsh), thenscripts/Test-ReleasePins.ps1(bundled null); pin node 26.13.0pr-require-checks.yml:296-320check-cmdnull (bundledInvoke-ScriptAnalyzer -Path . -Recurse, which exits 0 on findings): CI runs no PowerShell linter and the repository's hooks run nonepr-require-checks.yml(no such lane);lefthook.ymluses only the guardrails remote config*.cjs,test-cmdnode --test "$REPO_ROOT"/.github/scripts/*.test.cjs,check-cmdnull; pin node 26.13.0pr-require-checks.yml:309-317check-cmd/fix-cmdcallmarkdownlint-cli2 --config "$REPO_ROOT/.markdownlint-cli2.jsonc" <files>from PATH (bundlednpx markdownlint-cli2 <files>); pin 0.23.3action.yml:24and itsnpx --yes "markdownlint-cli2@$VERSION" --config "$CONFIG"line (:57);pr-require-checks.yml:93check-cmdisactionlint,check-jsonschema --builtin-schema vendor.dependabot .github/dependabot.yml,check-jsonschema --builtin-schema vendor.github-workflows .github/workflows/*.ymlandzizmor --persona=regular --strict-collection --offline ., each run, any failure fails (bundled: actionlint plus two comment lines); pins actionlint 1.17.0 (kjanat fork), check-jsonschema 0.38.2, zizmor 1.30.0pr-require-checks.yml:197-229,:280-294; actionlintaction.yml:25; check-jsonschemaaction.yml:39;pr-audit-workflows.yml@main:125(PINNED_VERSION),:222-231(args),:281-304(fail-on-severity: lowblocks on any exit of 11 or above)typos --config _typos.toml .,gitleaks dir . --config .gitleaks.toml --no-banner --redact(bundledgitleaks detect --no-git),"$EC_BIN" -config .editorconfig-checker.json,lychee --offline --no-progress --config lychee.toml "**/*.md", each run, any failure fails; pins typos 1.50.3, gitleaks 8.30.1, editorconfig-checker 4.0.2, lychee 0.24.2pr-require-checks.yml:123-182; typosaction.yml:46,:104; gitleaksaction.yml:52,scan.sh:113,:136; editorconfig-checkeraction.yml:35,:90; lychee-offlineaction.yml:22,run.sh:33enabled,project-discovery,gates,nullfor absent commands); every value on one line, because the code-metrics plugin's YAML subset rejects block scalarsplugins/code-metrics/scripts/yaml_subset.pyin claude-code-plugins (first draft failed it: "block scalars (| and >) are outside the subset")Where a record differs from CI on purpose:
--offline, narrower than CI's online audits with a GitHub token, so a local run spends no GitHub API calls. It keeps zizmor's exit codes, so a finding fails locally as it does in CI.npx --yes [email protected]over**/*.md.build-cmdlinks to/dev/nullinstead of/tmp/*.exe.scripts/verify-worker-image.sh(need a Docker daemon), check-comment-markers, check-exec-bit, check-machine-paths, check-line-endings and dependency review. The go, bash and cross-cuttingnotesname them.Verification
Range.
f04e5d8ea0d2f04452c36482c3295988bf4cb1a5(base, excluded) to4a7a83dfe757f91883804d3de064edc6903d588a(head, this branch's base): 34 first-parent commits from #533 to #571 (basef04e5d8is #531), 2026-11-08 to 2026-11-16, 48 files. It is the smallest first-parent window ending atmainthat touches every ecosystem the repository has:.goandgo.mod,scripts/verify-worker-image.sh(#533, the only shell change since #531), fourscripts/*.ps1, 11 markdown files, nine.githubYAML files, four.github/scripts/*.test.cjs.Method. A throwaway
git clone --sharedof this branch's worktree, on a branch at4a7a83dwithrefs/remotes/origin/mainandorigin/HEADset tof04e5d8, so the skills' branch-diff detection yields exactly the range (48 files each run). Every command ran asenv -C <clone> <command>. For the record runs the records were copied in and hidden fromgit statusthrough the clone's.git/info/exclude;diff -ragainst this branch's records printed nothing. toolchain 1.4.0 (installed). Load average before run 1: 11.05 on 24 CPUs./toolchain:check all/toolchain:lint/toolchain:check all/toolchain:lintNo run printed a
skip (unresolvedcell (toolchain 1.4.0 has no such cell; it is the state the records prevent once bundled defaults stop resolving).The go Lint FAIL is this machine's golangci-lint, not the record. This host has golangci-lint 2.15.0; the record pins CI's 2.14.0. The errcheck findings are in
internal/controller/*_test.gofiles that CI's 2.14.0 run with the same flags passed on the same head: PR Run Checks Go / Check Linux. Run 3 reports 6 findings where run 1 reports 3 because the record passes CI's--max-same-issues=0. Per the owner's rule the record keeps CI's version.Baseline command lists (bundled defaults).
Record command lists (runs 3 and 4).
Apart from the intended differences in Fix, the record lists match the baselines: the same files reach the same tools.
Run noise, not record findings. Run 3's first attempt used a clone under another repository's
.work/, where an emptypackage.jsonabove the clone brokerelease-transaction.test.cjs(ERR_INVALID_PACKAGE_CONFIG), and the firstbuild-cmddraft (no-o) wroteci-runner.exeinto the tree. Run 3 restarted in a clean clone under this worktree's ignored.work/, withbuild-cmdlinking to/dev/null; the results above are from that clone.Installed versions that differ from the pins: golangci-lint 2.15.0 (pin 2.14.0), node 24.21.0 (26.13.0), markdownlint-cli2 0.24.0 (0.23.3), actionlint rhysd 1.7.12 (kjanat 1.17.0), check-jsonschema 0.39.0 (0.38.2), zizmor 1.32.0 (1.30.0), typos 1.52.2 (1.50.3), editorconfig-checker 3.11.1 (4.0.2). shellcheck 0.11.0, shfmt 3.14.1, gitleaks 8.30.1 and lychee 0.24.2 match. Only golangci-lint changed a result.
Schema.
check-jsonschema --schemafile ecosystem.schema.json(claude-code-pluginsmainblob26f92e2, check-jsonschema 0.39.0) over all seven files:ok -- validation done. Every key was also checked against the schema'spropertiesby hand, and code-metrics'yaml_subset.loadparses all seven. typos, editorconfig-checker and gitleaks are clean on the new files; the lefthook pre-commit and commit-msg hooks passed.Remaining
Done-when items of melodic-software/claude-code-plugins#15722 this PR does not finish by itself:
.claude/ecosystems/non-empty onmain).Related
.gitignorehas no.claude/**/*.local.*line, which the ecosystem-commands contract recommends for personal override files.🤖 Generated with Claude Code