-
Notifications
You must be signed in to change notification settings - Fork 0
packages capto agent skill
Active contributors: elwina
capto-agent-skill is the Agent Skills npm package for Capto. It ships skill documentation only, it teaches an agent to drive the local capto CLI through the doctor → record → stop → outputs loop. It contains no code, no capture logic, and no upload path. Install it wherever a host agent auto-discovers skills from npm modules.
Agents need a compact, loadable instruction set to control a screen recorder safely. This package provides exactly that: a SKILL.md body plus a references/cli.md cheat sheet, both describing the JSON envelope, the stable exit codes, the desktop-availability rules, and the recording/settings/discovery workflows. Because it deliberately carries no executable code, an agent can adopt it with zero build step and no risk of it doing anything beyond telling the agent how to run capto <command>.
The packaged files (see the files array in packages/capto-agent-skill/package.json) are:
-
packages/capto-agent-skill/README.md, install instructions, requirements, and the maintainer publish checklist. -
packages/capto-agent-skill/skills/capto/SKILL.md, frontmatter (name, description, metadata,npm: capto-agent-skill) plus the rules and step-by-step workflows an agent follows. -
packages/capto-agent-skill/skills/capto/references/cli.md, the CLI contract: theAgent → capto → 127.0.0.1 → desktopmodel, JSON envelope, exit-code table, command table, flags, and safety notes.
The prepublishOnly script (packages/capto-agent-skill/package.json) asserts skills/capto/SKILL.md exists before publishing, so the package cannot go out without its body.
npm install capto-agent-skillPer the agent-skills / skills-npm conventions, a host auto-discovers the skill at:
node_modules/capto-agent-skill/skills/capto/SKILL.md
That path is declared in the package's package.json agentskills.skills entry and by the skills/capto/ directory layout.
- Windows Capto desktop with the bundled FFmpeg (the installer embeds FFmpeg and adds
<install>\cli\to PATH). -
captoonPATH, or in a dev checkoutcargo run -p capto-cli -- …. - Dev: set
CAPTO_APP_PATHtocapto-app.exeif the CLI cannot auto-discover the desktop. - If a command returns exit code
2(desktopUnavailable), runcapto openor ask the user to open Capto from the Start menu.
The skill instructs agents to follow the same round trip the CLI documents on CLI app page: check doctor (ffmpegOk true, exit 2 → open/ask), optionally list displays, then record start --source display, poll status, record stop, and find the file with outputs recent. It adds safety rules: parse JSON stdout, never record start twice, always record stop when done, never spawn system FFmpeg for Capto outputs, and never upload.
The skill version is decoupled from app releases, it tracks them only when the CLI or skill contract changes together. When publishing:
- Bump
versioninpackages/capto-agent-skill/package.jsonand themetadata.versioninpackages/capto-agent-skill/skills/capto/SKILL.mdtogether (only when the docs/contract change). - Keep
packages/capto-agent-skill/skills/capto/references/cli.mdaligned with the repodocs/CLI.md. - Dry-run from the repo root:
npm pack ./packages/capto-agent-skill(ornpm run skill:pack). - Publish:
npm publish ./packages/capto-agent-skill --access publicfrom the repo root (orcd packages/capto-agent-skill && npm publish --access public).
npm name capto is taken, so the package is capto-agent-skill (matching metadata.npm in the SKILL frontmatter).
The package follows the Agent Skills specification and the skills-inside-npm distribution proposal (skills/ directory + agentskills key). See the packages/capto-agent-skill/README.md "Spec" section for the linked references.
- It wraps the
captoCLI, the same binary the dsh plugin registers tools over. - The website promotes this package as a way for AI agents to run the capture loop (
../apps/website.md). - Its reference file stays in sync with
docs/CLI.mdso the contract never drifts.
| File | Purpose |
|---|---|
packages/capto-agent-skill/package.json |
Metadata, files list, agentskills manifest, prepublishOnly guard |
packages/capto-agent-skill/README.md |
Install, requirements, and maintainer publish checklist |
packages/capto-agent-skill/skills/capto/SKILL.md |
The skill body: rules, workflows, desktop-recovery steps |
packages/capto-agent-skill/skills/capto/references/cli.md |
CLI contract reference, kept in sync with docs/CLI.md
|
packages/capto-agent-skill/LICENSE |
MIT license |