agentleFS
pranshuchittorapranshuchittora/simvyn/docs/agents.md

simvyn

AGENTS.md437 starsChanged 3 months agoMITView on GitHub

The simvyn skill helps a coding agent operate iOS Simulators, Android Emulators, and supported physical devices through the existing CLI. It covers device selection, app operations, screenshots, device settings, sandbox inspection, logs, and saved Collections. No application SDK integration is needed for these commands; individual operations still depend on the device and build type. The portable skill is an instruction package with a CLI launcher and detailed references. The agent needs a terminal tool and access to your local developer…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this agents.md into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start a new Pi session and describe the device work, or use a template or the skill:

    line 32
  2. Very specific:

    Use the development Node.js version in the contributing guide.

    line 58
  3. Very specific:

    Use the launcher next to the SKILL.md that the agent loaded:

    line 95
  4. Very specific:

    Check simvyn --version and simvyn --help.

    line 105
  5. Very specific:

    Run simvyn device list --json.

    line 106
  6. Very specific:

    If booting is part of the requested task, boot that device and list devices again.

    line 108
  7. Distinctive:

    Read command help and the platform reference before operating on the selected target.

    line 109
  8. Very specific:

    Only device listing and log streaming expose --json.

    line 140
  9. Very specific:

    Use the full platform reference and the installed command's help for each operation.

    line 165
  10. Distinctive:

    After the release, inspect the published metadata:

    line 177

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
agents.md

Using simvyn with AI coding agents

The simvyn skill helps a coding agent operate iOS Simulators, Android Emulators, and supported physical devices through the existing CLI. It covers device selection, app operations, screenshots, device settings, sandbox inspection, logs, and saved Collections. No application SDK integration is needed for these commands; individual operations still depend on the device and build type.

The portable skill is an instruction package with a CLI launcher and detailed references. The agent needs a terminal tool and access to your local developer tools. Installing the skill does not add an MCP server, register new tool APIs, or grant additional permissions. The Pi package adds a native extension on top of the same skill.

Install for Pi

With Pi 0.74 or later installed:

pi install npm:simvyn
pi list

The npm package bundles the CLI and gives Pi three kinds of resources:

ResourceProvides
Extensionsimvyn, simvyn_screenshot, simvyn_logs, and simvyn_record tools, plus the /simvyn command
Skill/skill:simvyn and the references linked from it
Prompt templates/simvyn-repro, /simvyn-screen, and /simvyn-logs

The extension finds the CLI inside that installation, so a separate global simvyn executable is unnecessary:

  • simvyn runs a CLI command from an argument array with a timeout and truncated output. It rejects start, logs, record, upgrade, and argument lists without a subcommand, which would start the dashboard.
  • simvyn_screenshot captures a booted simulator or Android device and returns the image to the model.
  • simvyn_logs streams logs for a fixed number of seconds, stops the stream, and saves the full JSON Lines capture to a file.
  • simvyn_record records the screen for a fixed number of seconds and returns the MP4 path.
  • /simvyn starts the dashboard in the background and opens it in your browser; /simvyn stop and /simvyn status manage it. The dashboard keeps running across /new, /resume, /fork, and /reload, and stops when Pi exits.

Start a new Pi session and describe the device work, or use a template or the skill:

/simvyn-screen check the login form layout
/skill:simvyn List the available devices and explain which can capture screenshots. Do not change device state.

Use pi config to turn off the extension, skill, or individual prompt templates. Use pi install npm:simvyn@<version> to pin a release, replacing <version> with its published version, and -l for a project-scoped installation. Pi versions before 0.74 load the skill and prompt templates but not the extension. See the official Pi package documentation for scope, updates, and removal, and Pi skills documentation for loading skills.

The npm command installs the published package, not uncommitted changes in this repository. If the current release does not include these resources yet, use the checkout instructions below.

Install the portable skill for another agent

Install the CLI, then the skill for the agent you use:

npm install -g simvyn
npx skills add pranshuchittora/simvyn --skill simvyn --agent codex --yes

Replace codex with a supported agent identifier, such as claude-code. The skills CLI installs to the project by default; add --global for user-wide scope. Its official documentation lists supported agents and installation options. This command requires the skill to have reached the repository's default branch.

The portable skill installation includes instructions and helper files, not the simvyn application. Keep the entire skills/simvyn/ directory together if your agent uses a manual skill installation process. Follow that agent's loading instructions and make an installed simvyn CLI available on its PATH. Check the CLI version and command help before following instructions from a newer skill.

Test an unreleased checkout

Use the development Node.js version in the contributing guide; checkout build requirements can be newer than the installed CLI's runtime minimum. From the repository root, install its locked dependencies and build the release layout:

npm ci
npm run build:release

For a single Pi session, load the checkout's extension, skill, and prompt templates directly, or only its skill with --skill:

pi -e /absolute/path/to/simvyn
pi --skill /absolute/path/to/simvyn/skills/simvyn/SKILL.md

To exercise the assembled npm package's resources through Pi instead:

pi install /absolute/path/to/simvyn/packages/cli

Use an absolute path to your checkout. Pi references a local package in place; it does not fetch the released npm version or build the checkout for you. Rebuild after changing CLI source or the skill, extension, or prompt files copied into the release layout. Use one installation route at a time to avoid duplicate skills, tools, and commands.

For another compatible agent, install from the local repository:

npx skills add /absolute/path/to/simvyn --skill simvyn --agent codex --yes

A copied portable skill needs a separately installed CLI on PATH. To test the checkout's exact CLI and skill together without relying on an installed version, run the source launcher directly:

node /absolute/path/to/simvyn/skills/simvyn/scripts/simvyn.mjs --version
node /absolute/path/to/simvyn/skills/simvyn/scripts/simvyn.mjs --help

Select the executable and device explicitly

Use the launcher next to the SKILL.md that the agent loaded:

node /absolute/path/to/skills/simvyn/scripts/simvyn.mjs device list --json

The launcher looks for the bundled CLI, the built source-checkout CLI, or an installed simvyn on PATH. It does not download or upgrade simvyn. Resolve the skill's real location rather than guessing Pi's installation directory. The launcher preserves the caller's working directory, so relative inputs and output paths remain relative to the project where the agent is working.

The examples below use simvyn for readability. Substitute node /absolute/path/to/skills/simvyn/scripts/simvyn.mjs when using the bundled skill.

  1. Check simvyn --version and simvyn --help.
  2. Run simvyn device list --json; inspect id, name, platform, state, osVersion, deviceType, and isAvailable.
  3. Select the user's intended device by its full ID. Use its bundle ID or Android package name for app operations. Do not choose the first device silently when several could match.
  4. If booting is part of the requested task, boot that device and list devices again. Android's stopped AVD ID (avd:<name>) changes to an ADB serial after boot. Discovery alone does not prove the OS or app is ready.
  5. Read command help and the platform reference before operating on the selected target.

Most direct subcommands run without the dashboard server. Running bare simvyn starts the dashboard; use simvyn start --no-open only when a server is needed, and retain a process handle to stop it when finished.

A small, reviewable workflow

For a booted iOS Simulator or supported Android target, capture the installed app's current state using actual device and app identifiers:

simvyn device list --json
simvyn app list DEVICE_ID --type user
simvyn app info DEVICE_ID com.example.app
simvyn app launch DEVICE_ID com.example.app
mkdir -p artifacts/simvyn
simvyn screenshot DEVICE_ID --output artifacts/simvyn/app.png

Replace DEVICE_ID and com.example.app before running. The first three commands inspect state; launching changes it. Only perform the parts the user's task authorizes. Open the screenshot to inspect the result and return its actual path. A successful launch does not establish that the intended screen loaded or that a UI assertion passed.

For app data, start with simvyn db list DEVICE_ID com.example.app, then a small read query against a returned database path. Use a LIMIT clause to bound tabular output. The CLI database query opens databases read-only; preferences are also read-only in the current inspector. Android sandbox access requires a debuggable build. See the CLI reference for exact arguments and the recipes for settings, deep links, permissions, and other tasks.

Output and process handling

CommandOutput contractAgent handling
device list --jsonOne JSON array on stdoutCapture stderr separately; an empty list can require checking tool availability
logs DEVICE_ID --jsonStreaming JSON Lines on stdoutStart as a managed process, write to a file, filter, and stop after a bounded interval
screenshot DEVICE_ID --output PATHWrites an image and prints its pathCreate the parent directory first; inspect the file
record DEVICE_ID --output PATHWrites video after stoppingRetain the process handle, send SIGINT, and wait for finalization
Other commandsCommand-specific text, tables, or valuesRead help; do not assume a global JSON-output flag

Only device listing and log streaming expose --json. Avoid verbose output when parsing structured stdout. Inspect the command's exit status and stderr as well as its output; a returned path is not a substitute for checking the artifact exists and can be opened.

Logs stream until stopped. In Pi, the simvyn_logs and simvyn_record tools apply the pattern below for you. Elsewhere, use an agent process tool or subprocess supervisor to start:

simvyn logs DEVICE_ID --level warning --filter 'MyApp|Payment' --json

Redirect stdout and stderr to separate files, retain the exact process handle, collect a short window such as 10 seconds, then send SIGINT and wait for exit. Read a bounded excerpt from the saved log. If it does not stop, terminate only the process tree you started. There is no --duration, --limit, or --since option for logs; do not invent one or assume piping to head reliably cleans up the producer. Recordings likewise require SIGINT and time to finalize the file. Detailed subprocess patterns belong in the automation reference.

Collections and verification limits

Inspect a saved Collection with simvyn collections list and simvyn collections show ID before applying it. Collections can contain destructive steps, such as erasing a simulator. Use the user's existing authorization and target scope; loading the skill does not authorize unrelated device changes.

Current collections apply NAME_OR_ID DEVICE_ID... prints each step's result and final success/skipped/failed counts. A zero exit status or the word “completed” does not mean every step succeeded. Examine every failed or skipped step and verify the required effects. The engine has no implemented cancellation, and timing out a step does not stop its underlying action. Avoid retrying timed-out mutations blindly.

Collections require already booted targets, have a limited action catalog, and do not currently provide a CLI recipe import/export or JSON run-report flag. They do not perform UI assertions. Use the automation reference for the current contract instead of treating them as a general CI test runner.

Platform limits to check first

  • iOS Simulator: requires macOS with Xcode and an installed compatible simulator runtime. Locale changes require a reboot. Status-bar overrides change appearance, not network conditions.
  • Physical iOS: discovery and app management use devicectl. The current simvyn CLI does not provide the simulator's screenshot, recording, logs, settings, location, clipboard, or sandbox-inspection capabilities on physical iPhones. A dashboard capability does not imply matching CLI support.
  • Android: requires ADB; emulator lifecycle and simulated GPS additionally need emulator support. Sandbox/database access uses run-as and needs a debuggable app. Android clipboard reading is unavailable; clipboard writing can fall back to typing into the focused field, so it is not a reliable clipboard assertion.
  • Interaction: coordinate input is Android-only in the current CLI. There is no UI hierarchy, semantic-selector driver, automatic visual assertion, or MCP endpoint supplied by this skill.

Use the full platform reference and the installed command's help for each operation. Consult the installation requirements for the supported Node.js environment. Report an unsupported operation as a limitation instead of claiming success or substituting a different device action.

Discovery and maintenance

The npm package's pi-package keyword and pi manifest describe its Pi resources. The portable skills/simvyn/SKILL.md supplies a name and task-specific description that compatible agents can discover after installation. Neither metadata nor a package keyword guarantees that an agent will load it for every task; invoke the skill explicitly when necessary.

Publish to the Pi package catalog

The Pi package catalog lists npm packages with the pi-package keyword. Simvyn declares that keyword in packages/cli/package.json, along with pi.extensions, pi.skills, and pi.prompts entries and a pi.image preview URL, following the official package and gallery requirements. The extension imports @earendil-works/pi-ai, @earendil-works/pi-coding-agent, and typebox from Pi at runtime; they are optional peer dependencies so that npm install -g simvyn does not install Pi.

The existing npm release workflow runs npm run build:release, which copies the canonical skill, extension, prompt templates, and agent guide into the CLI package before packing and publishing. Release these changes under a new npm version through that workflow; an already published version cannot be reused. The published package must contain extensions/simvyn/, prompts/, skills/simvyn/SKILL.md, the skill launcher, and its references.

After the release, inspect the published metadata:

npm view simvyn version keywords pi --json

Confirm that the output includes pi-package and the extension, skill, and prompt paths, search the catalog for simvyn, and verify installation with pi install npm:simvyn. A local package test verifies resource loading; catalog visibility must be checked after the npm release is indexed.

Maintain the skill and documentation

The root llms.txt is a small linked documentation index for tools or people that choose to read it. It does not install the skill or cause automatic tool registration.

The canonical skill lives in skills/simvyn/, the Pi extension in extensions/simvyn/, and the prompt templates in prompts/. Keep the launcher, references, and extension aligned with the CLI, run npm run typecheck:pi and npm test after changing the extension, and rebuild the release layout before testing the packaged copy. Report the CLI version, selected device, commands attempted, observed results, and artifact paths when handing work back to a developer.

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.