nexus-testing
Skill158 starsChanged 9 days agoMITView on GitHub
Verify a Nexus change — pick a Jest lane, write a test that can actually fail, run the in-app Obsidian CLI loop, drive the eval harness, or fix a shipped-docs drift failure. Use when adding or changing tests, when a mock might be deciding the outcome, when a change has to be proven in the running plugin, or when the guidance gate fails.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- nexus-agentsSkill
- nexus-eval-harnessSkill
- nexus-llm-adaptersSkill
- nexus-mobile-compatSkill
- nexus-model-evalSkill
- nexus-model-updatesSkill
- nexus-releaseSkill
- nexus-storageSkill
- nexus-tool-schemasSkill
- nexus-ui-mockupsSkill
- nexusSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
NOT add one — those rot silently and a rotted list is worse than none.
- Distinctive: line 34
Before calling a testing change done, run both checks from the repo root and fix anything they print:
- Very specific: line 42
NEVER claim a change is verified in the app on the strength of Jest alone.
- Very specific: line 43
If the change touches load order, rendering, hydration or anything that only exists once the plugin is running, protocols/live-loop.md is …
≈ “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
Testing Nexus
Context: every Jest lane resolves obsidian to a hand-written mock — see
moduleNameMapper in jest.config.js. A green suite therefore proves the code
agrees with tests/mocks/obsidian/, not with Obsidian. Three ranking defects
shipped past that suite. Everything below exists to close the gap between what
Jest can prove and what the running plugin does.
Workflow
Pick the job and open its protocol. Work from the protocol, not from this router — the router names procedures, it does not contain them.
Job Protocol Add or change a test protocols/write-a-test.mdProve a change works in the running plugin protocols/live-loop.mdNo Obsidian here (container / cloud session) protocols/headless-obsidian.mdRun a gated live-smoke lane or the eval harness protocols/run-gated-lanes.mdshippedGuidanceCommandsorToolManagerCliSyntaxis redprotocols/fix-shipped-docs-drift.mdMerge a PR (what to run first, how to gate on CI) protocols/merge-a-pr.mdA symptom you cannot place references/troubleshooting.md- Derive every list from the tree, never from a document. This skill states no
test counts, no lane inventory and no env-var table on purpose, and you MUST
NOT add one — those rot silently and a rotted list is worse than none.
references/lanes.mdholds the discovery commands. Before calling a testing change done, run both checks from the repo root and fix anything they print:
python3 .claude/skills/nexus-testing/scripts/check_live_lane_gates.py python3 .claude/skills/nexus-testing/scripts/check_catalog_target.py- NEVER claim a change is verified in the app on the strength of Jest alone.
If the change touches load order, rendering, hydration or anything that only
exists once the plugin is running,
protocols/live-loop.mdis the proof and nothing else is. - At the end of a session that used this skill, run
protocols/self-refine.md.
Map
protocols/the procedures: write-a-test, live-loop, headless-obsidian, run-gated-lanes, fix-shipped-docs-drift, self-refine.references/read on demand:lanes.md(where a test goes and how to find what exists),mock-honesty.md(the two habits that make a test able to fail),troubleshooting.md(symptom → cause).scripts/the mechanical checks named in step 3. Run them; do not reimplement them.refinement-log.mdwhat past sessions changed here and why.
Siblings — do not duplicate them here
nexus-eval-harness— configuring, extending and debugging the eval harness. This skill covers only running it and the two knobs that surprise people.nexus-model-eval— grading specific models.nexus-tool-schemas— regenerating the tool catalog (no running vault needed).nexus-agents— the two-tool contract and theuseToolspayload shape a test has to build.nexus-mobile-compat— the mobile failure class the in-app loop cannot see.nexus-storage— resetting persisted state when a plugin reload is not enough.
Status of the in-app loop
Exercised 2026-08-14 against Obsidian 1.13.7 in a headless Linux container
and 2026-08-21 against Obsidian 1.12.7 on macOS. Setup, vault-targeted
plugin:reload, dev:errors, dev:console, dev:screenshot, dev:debug, and
synchronous eval are confirmed working. The first run found a startup-ordering
bug that every Jest lane was blind to; the macOS run confirmed explicit
vault=<name> targeting and clean repeated reloads.
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.

