{"_id":"@agent-sh/harness-skill","name":"@agent-sh/harness-skill","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@agent-sh/harness-skill","version":"0.2.0","description":"Skill tool for AI agent harnesses — authored SKILL.md activation with progressive disclosure, permission-gated activation, trust-gated project skills, and pluggable SkillRegistry","keywords":["ai","agent","llm","tool-use","skill","agentskills","bedrock","openai"],"license":"MIT","author":{"name":"Avi Fenesh"},"homepage":"https://github.com/avifenesh/tools/tree/main/packages/skill#readme","bugs":{"url":"https://github.com/avifenesh/tools/issues"},"repository":{"type":"git","url":"git+https://github.com/avifenesh/tools.git","directory":"packages/skill"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"publishConfig":{"access":"public"},"engines":{"node":">=20"},"dependencies":{"valibot":"^0.42.1","@agent-sh/harness-core":"0.2.0"},"devDependencies":{"@types/node":"^22.9.0","tsup":"^8.3.5","typescript":"^5.6.3","vitest":"^2.1.4"},"scripts":{"build":"tsup","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","clean":"rm -rf dist .turbo"},"_id":"@agent-sh/harness-skill@0.2.0","_integrity":"sha512-urJ4mOUeROjMcelyNM488XGoBYXKw93X62OA3+mFJ6hhEVnTThOmKSkqGIXJOaxRsK7UUA9CmTgqUosQi76dbw==","_resolved":"/tmp/87d73f25f51eefe4c55f03d7a2578f88/agent-sh-harness-skill-0.2.0.tgz","_from":"file:agent-sh-harness-skill-0.2.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-urJ4mOUeROjMcelyNM488XGoBYXKw93X62OA3+mFJ6hhEVnTThOmKSkqGIXJOaxRsK7UUA9CmTgqUosQi76dbw==","shasum":"65252372c0f1871faa15f8b2d3b208411c9e1e58","tarball":"https://registry.npmjs.org/@agent-sh/harness-skill/-/harness-skill-0.2.0.tgz","fileCount":9,"unpackedSize":255931,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCS9Inv+Xq80J6hFAa58X263qluZxfmBoEDUhzrLAp79AIhAOevLn21lXA+8U4hg8h59pcMjs/8nfJcLDamACULJJ2n"}]},"_npmUser":{"name":"avifenesh","email":"aviarchi1994@gmail.com"},"directories":{},"maintainers":[{"name":"avifenesh","email":"aviarchi1994@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/harness-skill_0.2.0_1776853080971_0.04533725814332801"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-22T10:18:00.876Z","0.2.0":"2026-04-22T10:18:01.134Z","modified":"2026-04-22T10:18:01.741Z"},"maintainers":[{"name":"avifenesh","email":"aviarchi1994@gmail.com"}],"description":"Skill tool for AI agent harnesses — authored SKILL.md activation with progressive disclosure, permission-gated activation, trust-gated project skills, and pluggable SkillRegistry","homepage":"https://github.com/avifenesh/tools/tree/main/packages/skill#readme","keywords":["ai","agent","llm","tool-use","skill","agentskills","bedrock","openai"],"repository":{"type":"git","url":"git+https://github.com/avifenesh/tools.git","directory":"packages/skill"},"author":{"name":"Avi Fenesh"},"bugs":{"url":"https://github.com/avifenesh/tools/issues"},"license":"MIT","readme":"# @agent-sh/harness-skill\n\nAuthored [Agent Skills](https://agentskills.io) activation with progressive disclosure, permission-gated activation, and trust-gated project skills.\n\nPart of the [`@agent-sh/harness-*`](https://github.com/avifenesh/tools) monorepo — see the top-level README for architectural context and the full tool surface.\n\n## Install\n\n```sh\nnpm install @agent-sh/harness-skill\n```\n\nRequires Node ≥ 20.\n\n## Usage\n\n```ts\nimport { skill, FilesystemSkillRegistry } from \"@agent-sh/harness-skill\";\n\nconst session = {\n  cwd: process.cwd(),\n  permissions: { roots: [process.cwd()], sensitivePatterns: [], unsafeAllowSkillWithoutHook: true },\n  registry: new FilesystemSkillRegistry([\".skills\"]),\n  trust: { trustedRoots: [process.cwd()] },\n  activated: new Set<string>(),\n};\n\nconst r = await skill({ name: \"api-conventions\" }, session);\n```\n\n## Contract\n\nThe full contract — input shape, output discriminated-union, error codes, permission model, and acceptance tests — lives in [`agent-knowledge/design/skill.md`](https://github.com/avifenesh/tools/blob/main/agent-knowledge/design/skill.md). Changes to this package must stay in sync with that spec.\n\n## License\n\nMIT © Avi Fenesh\n","readmeFilename":"README.md","_rev":"1-d5218e057a4a2c5c72d7ce1e16b6f675"}