{"name":"rosie-skills","version":"0.5.2","author":{"name":"Matthew Phillips"},"license":"BSD-3-Clause","_id":"rosie-skills@0.5.2","maintainers":[{"name":"matthewp","email":"matthew@matthewphillips.info"}],"homepage":"https://github.com/matthewp/rosie","bugs":{"url":"https://github.com/matthewp/rosie/issues"},"bin":{"rosie-skills":"bin/rosie-skills.js"},"dist":{"shasum":"dbb9dffb9ff0ff03eea875d6bd8a6e9aa988e922","tarball":"http://registry-npm.ywwl.com/rosie-skills/download/rosie-skills-0.5.2.tgz","fileCount":3,"integrity":"sha512-uer+fPwFFzqI3T5U4Hs4THEWiF3Ir2uPvaTOPD13aQqIVL13F8dY9IgpN/zUHPRr6KFSHHAYD42LoOyXe2rYew==","signatures":[{"sig":"MEQCIHLc2HsiRgf1yyUtMRLsuZbR0Ivwn437eVzFzJa71WMoAiBf+1Xiagy1V7t/DY7lBlvjcUT3NzraTOnGry3GitwFEw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/rosie-skills@0.5.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2251,"size":1105,"noattachment":false,"key":"/rosie-skills/-/rosie-skills-0.5.2.tgz"},"engines":{"node":">=18"},"gitHead":"aff19c6f2356d3c6c94f77ff2b5da296e1a273bf","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9becbbcc-da58-4b9c-ae9c-8c91a1994982"}},"repository":{"url":"git+https://github.com/matthewp/rosie.git","type":"git"},"_npmVersion":"11.11.0","description":"A fast, cross-platform package manager for AI agent skills","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"optionalDependencies":{"rosie-skills-linux-x64":"0.5.2","rosie-skills-freebsd-x64":"0.5.2","rosie-skills-darwin-arm64":"0.5.2"},"_npmOperationalInternal":{"tmp":"tmp/rosie-skills_0.5.2_1778537239802_0.6629963716922409","host":"s3://npm-registry-packages-npm-production"},"readme":"# rosie-skills\n\nA fast, cross-platform package manager for AI agent skills. Use as a CLI or as\na typed JS library — same binary either way, via a native build on supported\nplatforms or WebAssembly everywhere else.\n\n## CLI\n\n```bash\nnpm install -g rosie-skills\nrosie-skills install anthropics/skills\n```\n\nOr one-shot via npx:\n\n```bash\nnpx rosie-skills install anthropics/skills\n```\n\n## JavaScript API\n\nThe package is ESM-only. Use a namespace import:\n\n```js\nimport * as rosie from 'rosie-skills';\n\nawait rosie.install('anthropics/skills');\n\nconst skills = await rosie.list();\n//   [{ name: 'pdf', source: 'anthropics/skills', ref: 'main', sha: '...', isReference: false }, ...]\n\nconst agents = await rosie.agents();\n//   [{ name: 'claude', display: 'Claude Code', detected: true, installPath: '/home/.../skills' }, ...]\n```\n\nAll functions return Promises. Failures throw `Error` with a descriptive message.\n\n### Install result\n\n`install`, `installFromLockfile`, and `update` return an `InstallResult`:\n\n```ts\ninterface InstallResult {\n  skills: Array<{\n    name: string;\n    kind: \"skill\" | \"reference\";\n    installedAgents: string[];     // e.g. [\"claude\", \"cursor\"]\n    failedAgents: string[];        // agents the symlink couldn't reach\n  }>;\n  installedAgents: string[];       // deduped union across all skills\n  failedAgents: string[];          // deduped union across all skills\n  installedInstruction:            // file rosie wrote the references block to\n    | \"AGENTS.md\"\n    | \"CLAUDE.md\"\n    | \"GEMINI.md\"\n    | \".github/copilot-instructions.md\"\n    | null;                         // null for pure-skill installs\n  audit: {                         // structured audit of every change + findings\n    schemaVersion: 1;\n    command: \"install\" | \"update\";\n    findings: Array<{              // rosie's own warnings, e.g. tag_rewritten\n      severity: \"high\";\n      kind: \"tag_rewritten\" | string;\n      skill: string;\n      ref: string;\n      oldSha: string;\n      newSha: string;\n    }>;\n    changes: Array<{\n      name: string;\n      kind: \"skill\" | \"reference\";\n      source: string;\n      ref: string;\n      sha: string;\n      operation: \"install\" | \"update\";\n      content: string | null;      // full sanitized body, first-install only\n      diff: string | null;         // unified diff, updates only\n    }>;\n  };\n}\n```\n\n```js\nconst result = await rosie.install('anthropics/skills');\nif (result.failedAgents.length > 0) {\n  console.warn(`couldn't symlink into: ${result.failedAgents.join(', ')}`);\n}\n```\n\n`failedAgents` is non-fatal: rosie tries every detected agent and reports the\nmisses. The canonical install at `.agents/skills/<name>/` still lands and the\nlockfile entry is still recorded, so a subsequent run after fixing\npermissions will retry the failed agents.\n\n`remove()` returns `void`.\n\n### Targeted install\n\n```js\nawait rosie.install('vercel-labs/agent-skills', {\n  agent: ['claude', 'cursor'],\n  ref: false,\n});\n```\n\n### As a reference, not a skill\n\n```js\nawait rosie.install('vercel/next.js', { ref: true });\n```\n\n### Observe progress\n\nThe library is silent by default. Pass `onLog` to receive log events:\n\n```js\nawait rosie.install('anthropics/skills', {\n  onLog: ({ level, message }) => {\n    if (level === 'error') console.error(message);\n    else if (level === 'info') console.log(message);\n    // 'warn' and 'debug' levels also available\n  },\n});\n```\n\n### Remove / update\n\n```js\nawait rosie.remove('pdf');\nawait rosie.update();           // update everything in rosie.lock\nawait rosie.update('pdf');      // update just one\n```\n\n### Security defenses\n\nEvery install applies content sanitization and structured auditing by\ndefault; see [docs/security](https://rosie.astro.build/docs/security/) for the full\nthreat model. Each defense can be disabled per call via `InstallOptions`:\n\n```js\nawait rosie.install('anthropics/skills', {\n  stripComments: false,      // keep markdown comments in reference installs\n  stripInvisible: false,     // keep zero-width / bidi / tag-block codepoints\n  retagDetect: false,        // skip the tag-rewrite check on `rosie update`\n  forceAudit: true,          // print audit on stdout regardless of context\n  suppressAudit: true,       // never print audit on stdout (still in result)\n});\n```\n\n`forceAudit` and `suppressAudit` are mutually exclusive; passing both throws.\nThe `audit` field on the result is always populated regardless of the\nemission flags — those flags only control whether the wrapped text is\nwritten to stdout by the CLI / bin.ts launcher.\n\n### Working directory\n\nEvery function accepts a `cwd` option — equivalent to `cd`'ing into that\ndirectory before running. `process.cwd()` is restored on exit:\n\n```js\nawait rosie.install('owner/repo', { cwd: '/path/to/project' });\n```\n\nMirrors the CLI's `--cwd` flag.\n\n### Skip the lockfile\n\nFor ad-hoc installs that shouldn't be recorded in `.agents/rosie.lock`:\n\n```js\nawait rosie.install('anthropics/skills', { lockfile: false });\n```\n\nMirrors the CLI's `--no-lockfile` flag. Available on `install`, `remove`,\nand `update`.\n\n### Reinstall from lockfile\n\n```js\nawait rosie.installFromLockfile();\n```\n\n## How it works\n\nThis package is pure JavaScript. The CLI and the JS API run the same\nTypeScript implementation in-process — no native binary, no WebAssembly. It\nworks anywhere Node 18+ runs. The only runtime dependency is `modern-tar`\n(tarball extraction).\n\n## Standalone binary\n\nA standalone, self-contained `rosie` binary (built from the Rust\nimplementation) is distributed separately through OS package managers, for\nusers who want the CLI without a Node runtime:\n\n- Homebrew (macOS / Linux): `brew tap withastro/rosie && brew install rosie`\n- Arch Linux: `yay -S rosie`\n- Debian/Ubuntu: see <https://github.com/withastro/rosie>\n- Source: clone the repo and run `cargo build --release`\n\n## License\n\nBSD-3-Clause\n","publish_time":1778537239942,"_cnpm_publish_time":1778537239942,"dist-tags":{"latest":"0.8.5"}}