agentleFS
ProfSynapseProfSynapse/nexus/.claude/skills/nexus-testing/SKILL.md

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.

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
  1. Very specific:

    NOT add one — those rot silently and a rotted list is worse than none.

    line 31
  2. Distinctive:

    Before calling a testing change done, run both checks from the repo root and fix anything they print:

    line 34
  3. Very specific:

    NEVER claim a change is verified in the app on the strength of Jest alone.

    line 42
  4. Very specific:

    If the change touches load order, rendering, hydration or anything that only exists once the plugin is running, protocols/live-loop.md is …

    line 43

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Pick the job and open its protocol. Work from the protocol, not from this router — the router names procedures, it does not contain them.

    JobProtocol
    Add or change a testprotocols/write-a-test.md
    Prove a change works in the running pluginprotocols/live-loop.md
    No Obsidian here (container / cloud session)protocols/headless-obsidian.md
    Run a gated live-smoke lane or the eval harnessprotocols/run-gated-lanes.md
    shippedGuidanceCommands or ToolManagerCliSyntax is redprotocols/fix-shipped-docs-drift.md
    Merge a PR (what to run first, how to gate on CI)protocols/merge-a-pr.md
    A symptom you cannot placereferences/troubleshooting.md
  2. 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.md holds the discovery commands.
  3. 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
  4. 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.md is the proof and nothing else is.
  5. 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.md what 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 the useTools payload 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.