workspace-tests
Skill1 starsChanged 6 months agoMITView on GitHub
Run cargo test --workspace across a list of Rust workspaces, failing fast and reporting which repo broke. Surfaces sibling-workspace regressions that single-repo hygiene cycles miss. Use when the user says "verify cross-repo tests", "run hygiene", "anything broken in sibling workspaces?", or as part of a /loop hygiene priority.
In this repository16 other files it gives its agents.
- audit-unused-depSkill
- checkpointSkill
- double-checkSkill
- file-adrSkill
- fleetSkill
- fmt-sweepSkill
- forge-mirror-scaffoldSkill
- forgeSkill
- gemini-pullSkill
- loop-from-taskSkill
- loop-healthSkill
- loop-onSkill
- loopSkill
- loopsSkill
- regression-guardSkill
- restoreSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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
- Distinctive: line 32
Default in-scope set (PlausiDen substrate):
- Distinctive: line 71
Default: bail at first non-zero exit.
- Distinctive: line 119
Don't recurse into nested Cargo.tomls (only the workspace root).
- Very specific: line 120
Don't run cargo build separately — cargo test --workspace exercises the full compile path.
- Distinctive: line 122
Don't auto-fix detected failures.
- Distinctive: line 124
Don't include LFI repos by default per the dedicated-instance doctrine.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
/workspace-tests — cargo test across N Rust workspaces
Walks a configured list of in-scope Rust workspaces and runs
cargo test --workspace against each. Fails fast (stops at first
red workspace) by default; --continue-on-error runs the full set.
Reports total + per-repo pass/fail counts.
Why this exists
Surfaced 2026-05-20 from PlausiDen-Forge #303: an opportunistic
hygiene cycle that ran cargo test --workspace only on the
currently-active repo silently missed a real E0063 in Loom
(CmsSection::Form scaffold missing style field). Cross-repo
discovery only happened when the next agent ran cargo fmt and
hit the compile error.
Real failure mode: a substrate-wide field addition lands in one crate but the consumer-side scaffolds in sibling repos don't update. Tests still pass in the producer crate; consumer crate breaks at HEAD. Without explicit cross-repo coverage, hours of "green builds" accumulate before the gap surfaces.
Steps
1. Read the workspace list
Default in-scope set (PlausiDen substrate):
/home/paul/projects/PlausiDen-Forge
/home/paul/projects/PlausiDen-Loom
/home/paul/projects/PlausiDen-Crawler
/home/paul/projects/CrucibleLFI repos (PlausiDen-LFI, Forge-LFI) are excluded by default —
they have a dedicated Claude instance per memory
feedback_lfi_out_of_scope_for_this_instance. Add --include-lfi
to override.
User can override the set via:
$WORKSPACE_TESTS_REPOSenv (colon-separated absolute paths)~/.config/workspace-tests/repos.txt(one path per line)
2. Per repo, run
sudo -u paul cargo test --workspace --manifest-path "$REPO/Cargo.toml" 2>&1 \
| tee "/tmp/workspace-tests-$(basename "$REPO").log" \
| grep -E '^test result|FAILED|^error'Capture the trailing aggregate counts via:
sudo -u paul cargo test --workspace --manifest-path "$REPO/Cargo.toml" 2>&1 \
| grep '^test result' \
| awk '{s+=$4; f+=$6} END {print s,"passed,",f,"failed"}'Skip repos with no Cargo.toml at the root (surface a warning;
don't fail).
3. Fail-fast vs continue
- Default: bail at first non-zero exit. Report which repo broke.
--continue-on-error: run all repos, then exit non-zero if any failed.
4. Output format
PlausiDen-Forge 1881 passed, 0 failed
PlausiDen-Loom 1335 passed, 0 failed
PlausiDen-Crawler 1084 passed, 0 failed
Crucible 15 passed, 0 failed
-----
TOTAL 4315 passed, 0 failed across 4 reposOn failure, the broken repo's tail-50 of test output prints
verbatim before the summary, with a === <repo>: REGRESSION ===
banner so the agent / operator can grep for the boundary.
5. Bypass conditions
- Empty workspace list → exit 0 with "no repos configured" warning
cargonot installed → exit 2 with the install URL- Any repo path doesn't exist → warn + skip, don't fail
6. Recommended invocation
Inline in /loop hygiene priorities:
sh ~/.local/share/claude-tools/lib/workspace-tests.sh --continue-on-errorOr, when the loop fires and you have ~30s of budget:
sh ~/.local/share/claude-tools/lib/workspace-tests.sh
# fails fast — first red repo aborts; agent then drives into the fixRelated skills
regression-guard— adjacent: catches per-PR regressions on a single repoloop-health— checks loop / cron state but not workspace test stateaudit-unused-dep— per-repo dep audit; complements workspace-tests as a hygiene pair
Don't
- Don't recurse into nested Cargo.tomls (only the workspace root).
- Don't run
cargo buildseparately —cargo test --workspaceexercises the full compile path. - Don't auto-fix detected failures. The skill is read-only; the agent decides whether to attempt a fix in the surfacing repo.
- Don't include LFI repos by default per the dedicated-instance doctrine.
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.

