agentleFS
r3bl-orgr3bl-org/r3bl-open-core/.agents/skills/test-cross-platform/SKILL.md

test-cross-platform

Skill485 starsChanged 2 months agoApache-2.0View on GitHub

Synchronize repository changes to remote test fleet (macOS, Windows) and execute the full test suite across all platforms concurrently.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Run the full test suite across the cross-platform fleet (Linux host, macOS, and Windows) to verify compatibility, platform gates, and …

    line 8
  2. Very specific:

    After modifying cross-platform code, platform-specific #[cfg(...)] gates, or PTY logic.

    line 13
  3. Distinctive:

    Before merging pull requests or finalizing release milestones.

    line 14
  4. Very specific:

    When the user runs /test-cross-platform or asks to test across platforms/fleet.

    line 15
  5. Very specific:

    Run the full test suite across all three platforms concurrently using non-blocking background tasks (run_command with async tasks) so the …

    line 45
  6. Very specific:

    When testing specific subsystems (like core::pty) during active refactoring rather than the entire workspace:

    line 66
  7. Distinctive:

    Wait for all three runs to conclude (via reactive task completion messages).

    line 74
  8. Distinctive:

    If any test fails, extract the failure diagnostics and failing test names for triage.

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Cross-Platform Fleet Testing

Run the full test suite across the cross-platform fleet (Linux host, macOS, and Windows) to verify compatibility, platform gates, and asynchronous I/O behavior.

When to Use

  • After modifying cross-platform code, platform-specific #[cfg(...)] gates, or PTY logic.
  • Before merging pull requests or finalizing release milestones.
  • When the user runs /test-cross-platform or asks to test across platforms/fleet.

Fleet Overview

PlatformHost AddressShellRepository PathTest Runner
LinuxLocal host (nazmul-mobile.local)bash / fish~/github/roc./check.fish --test
macOSnazmul-mac.localfish~/github/roc./check.fish --test
Windowsnazmul-win.localnu (Nushell)github/roccargo test

Workflow

Step 1: Fleet Synchronization

Synchronize the local repository to all remote fleet machines using scp:

  1. Windows:
    scp -r ~/github/roc/. nazmul-win.local:github/roc/
  2. macOS:
    scp -r ~/github/roc/. nazmul-mac.local:github/roc/

Both sync operations can run in parallel.

Step 2: Concurrent Test Execution

Run the full test suite across all three platforms concurrently using non-blocking background tasks (run_command with async tasks) so the conversation is not frozen:

  1. Linux (Local):
    ./check.fish --test
    (Alternatively: cargo test --workspace)
  2. macOS:
    ssh nazmul-mac.local "cd ~/github/roc && ./check.fish --test"
    (Alternatively: ssh nazmul-mac.local "cd ~/github/roc && cargo test")
  3. Windows:
    ssh nazmul-win.local "cd github/roc; cargo test"

Step 3: Targeted Subsystem Testing (Optional)

When testing specific subsystems (like core::pty) during active refactoring rather than the entire workspace:

  • Linux: cargo test -p r3bl_tui core::pty
  • macOS: ssh nazmul-mac.local "cd ~/github/roc && cargo test -p r3bl_tui core::pty"
  • Windows: ssh nazmul-win.local "cd github/roc; cargo test -p r3bl_tui core::pty"

Step 4: Result Aggregation & Reporting

  1. Wait for all three runs to conclude (via reactive task completion messages).
  2. Extract summary lines (test result: ok. <X> passed; <Y> failed; ...).
  3. Present results in a markdown summary table:
PlatformHost / MachineResultTests PassedTests FailedDuration
Linuxnazmul-mobile.localPASSED5300.01s
macOSnazmul-mac.localPASSED5300.02s
Windowsnazmul-win.localPASSED5500.46s
  1. If any test fails, extract the failure diagnostics and failing test names for triage.
  2. Emit attention beep signal:
    fish -c "beep"

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.