[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75C9RAN15THZ9HNSXSGA6Y3":3,"skill-same:01M75C9RAN15THZ9HNSXSGA6Y3":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M75C9RAN15THZ9HNSXSGA6Y3","developing-weft",null,"Work on Weft itself, covering the pnpm monorepo layout, the HarnessAdapter seam, adding a new harness adapter, and the test\u002Fcoverage gates. Use when contributing to the Weft compiler rather than authoring a plugin.","michaelfromyeg\u002Fweft","michaelfromyeg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35978975?v=4","01M75C9GSJ9XC2ZNEDENAFFPSR","Michael DeMarco","01M75C9GTCH5JXVBDV9BZ60SFW",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmichaelfromyeg\u002Fweft\u002Fblob\u002Fmain\u002Fmarketplace\u002Fplugins\u002Fdeveloping-weft\u002Fskills\u002Fdeveloping-weft\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: developing-weft\ndescription: Work on Weft itself, covering the pnpm monorepo layout, the HarnessAdapter seam, adding a new harness adapter, and the test\u002Fcoverage gates. Use when contributing to the Weft compiler rather than authoring a plugin.\n---\n\nWeft is a pnpm + Bun monorepo. Every package publishes as `@michaelfromyeg\u002Fweft-*` and is\nmeant to be depended on independently, so the dependency direction is strict: adapters depend\nonly on `adapter-kit` + `schema`, never on `core`.\n\n## Packages\n\n- `schema` is the source of truth: Zod schemas + inferred types + JSON-Schema export. YAML is\n  parsed in 1.2 \"core\" mode so `country: NO` stays a string (the Norway problem).\n- `core` is the compile pipeline: load -> static pass (validate, namespace\u002Falias) ->\n  transform\u002FemitManifest\u002FemitCatalog per adapter -> place (build vs install) -> a\n  content-addressed `weft.lock`. Also resolve (git\u002Ffile refs), deps, config\u002Fsecrets,\n  managed-mode, and ed25519 signing.\n- `adapter-kit` is the `HarnessAdapter` interface and helpers. This is the seam.\n- `adapter-claude|codex|cursor|copilot|opencode` are the compiler backends, one per harness.\n- `eval` is the runner plus a headless `HarnessDriver` per harness.\n- `index` is metadata + MCP-Registry federation + badges + the publish gate.\n- `cli` wires it all together with citty; it is the only package that prints (via its logger).\n\n## The adapter contract\n\nAn adapter is a plain object. Everything harness-specific hides behind `targetSchema`, so an\nupstream format change is a version bump in one package, not a change to any plugin:\n\n```ts\nexport const myAdapter: HarnessAdapter = {\n  target: \"myharness\",\n  version: \"0.1.0\",\n  targetSchema: \"myharness\u002F1.0\",\n  detect(scope, cwd) { \u002F* InstallPaths per scope *\u002F },\n  transform(component, ctx) { \u002F* one component -> native artifacts *\u002F },\n  emitManifest(plugin, ctx) { \u002F* plugin-level manifest, or [] *\u002F },\n  emitCatalog(marketplace) { \u002F* native catalog *\u002F },\n  driver: { \u002F* optional headless eval support *\u002F },\n};\n```\n\nTo add a harness: create `packages\u002Fadapter-\u003Cname>`, implement the contract, register it in\nthe CLI's registry, and add a driver only if the harness has a usable headless mode. If it\nhas no structured trace, set `traceUnavailable` so the eval runner degrades honestly instead\nof faking a pass.\n\n## Working in the repo\n\n```sh\npnpm install\npnpm typecheck        # tsc across the workspace\npnpm test             # vitest\npnpm test:coverage    # enforces the 80% gate (all metrics)\npnpm lint             # biome (no import cycles, no console outside the CLI logger, etc.)\npnpm build            # tsup, Node-compatible ESM\n```\n\nNo fake tests: a test must assert on real output, not just that a function ran. New behavior\nneeds coverage that keeps every metric above 80%. Lint forbids `export *` (barrels use\nexplicit named re-exports) and `console` outside the CLI's logger module.\n","Weft is a pnpm + Bun monorepo. Every package publishes as `@michaelfromyeg\u002Fweft-*` and is\nmeant to be depended on independently, so the dependency direction is strict: adapters depend\nonly on `adapter-kit` + `schema`, never on `core`.\n\n## Packages\n\n- `schema` is the source of truth: Zod schemas + inferred types + JSON-Schema export. YAML is\n  parsed in 1.2 \"core\" mode so `country: NO` stays a string (the Norway problem).\n- `core` is the compile pipeline: load -> static pass (validate, namespace\u002Falias) ->\n  transform\u002FemitManifest\u002FemitCatalog per adapter -> place (build vs install) -> a\n  content-addressed `weft.lock`. Also resolve (git\u002Ffile refs), deps, config\u002Fsecrets,\n  managed-mode, and ed25519 signing.\n- `adapter-kit` is the `HarnessAdapter` interface and helpers. This is the seam.\n- `adapter-claude|codex|cursor|copilot|opencode` are the compiler backends, one per harness.\n- `eval` is the runner plus a headless `HarnessDriver` per harness.\n- `index` is metadata + MCP-Registry federation + badges + the publish gate.\n- `cli` wires it all together with citty; it is the only package that prints (via its logger).\n\n## The adapter contract\n\nAn adapter is a plain object. Everything harness-specific hides behind `targetSchema`, so an\nupstream format change is a version bump in one package, not a change to any plugin:\n\n```ts\nexport const myAdapter: HarnessAdapter = {\n  target: \"myharness\",\n  version: \"0.1.0\",\n  targetSchema: \"myharness\u002F1.0\",\n  detect(scope, cwd) { \u002F* InstallPaths per scope *\u002F },\n  transform(component, ctx) { \u002F* one component -> native artifacts *\u002F },\n  emitManifest(plugin, ctx) { \u002F* plugin-level manifest, or [] *\u002F },\n  emitCatalog(marketplace) { \u002F* native catalog *\u002F },\n  driver: { \u002F* optional headless eval support *\u002F },\n};\n```\n\nTo add a harness: create `packages\u002Fadapter-\u003Cname>`, implement the contract, register it in\nthe CLI's registry, and add a driver only if the harness has a usable headless mode. If it\nhas no structured trace, set `traceUnavailable` so the eval runner degrades honestly instead\nof faking a pass.\n\n## Working in the repo\n\n```sh\npnpm install\npnpm typecheck        # tsc across the workspace\npnpm test             # vitest\npnpm test:coverage    # enforces the 80% gate (all metrics)\npnpm lint             # biome (no import cycles, no console outside the CLI logger, etc.)\npnpm build            # tsup, Node-compatible ESM\n```\n\nNo fake tests: a test must assert on real output, not just that a function ran. New behavior\nneeds coverage that keeps every metric above 80%. Lint forbids `export *` (barrels use\nexplicit named re-exports) and `console` outside the CLI's logger module.\n",{"name":5,"description":7},"main","a1d4a1882e52d30d2481e1d2b12e52e75cb17c4c","marketplace\u002Fplugins\u002Fdeveloping-weft\u002Fskills\u002Fdeveloping-weft","https:\u002F\u002Fgithub.com\u002Fmichaelfromyeg\u002Fweft","https:\u002F\u002Fmichaelfromyeg.github.io\u002Fweft\u002F","https:\u002F\u002Fgithub.com\u002Fmichaelfromyeg","https:\u002F\u002Fmichaeldemar.co","@makenotion, @ubc alum","2026-06-15 04:29:11",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add michaelfromyeg\u002Fweft --skill developing-weft",{"tool":39,"command":40},"bunx","bunx skills add michaelfromyeg\u002Fweft --skill developing-weft",{"tool":42,"command":43},"pnpm","pnpm dlx skills add michaelfromyeg\u002Fweft --skill developing-weft","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmichaelfromyeg\u002Fweft\u002Fblob\u002Fmain\u002Fmarketplace\u002Fplugins\u002Fdeveloping-weft\u002Fskills\u002Fdeveloping-weft\u002FSKILL.md",true,[],[48,55,62,69],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M75C9TMKE06YWTRVG6V8YJEH","using-weft","Author an agent capability once (a skill or an MCP server) and compile it to every coding-agent harness with Weft. Use when the user wants to write, build, install, evaluate, or import Weft plugins and marketplaces.","https:\u002F\u002Fgithub.com\u002Fmichaelfromyeg\u002Fweft\u002Fblob\u002Fmain\u002Fmarketplace\u002Fplugins\u002Fusing-weft\u002Fskills\u002Fusing-weft\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M75C9NM020NT1X55TMGHEEBT","code-review","Review a code diff for correctness bugs and suggest concrete, minimal fixes.","https:\u002F\u002Fgithub.com\u002Fmichaelfromyeg\u002Fweft\u002Fblob\u002Fmain\u002Ffixtures\u002Fsample-plugin\u002Fskills\u002Fcode-review\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M75C9M4R0JBQ4CYDMD5HY5WZ","lint","Lint a file and report style and correctness issues with concrete fixes.","https:\u002F\u002Fgithub.com\u002Fmichaelfromyeg\u002Fweft\u002Fblob\u002Fmain\u002Ffixtures\u002Fsample-marketplace\u002Fplugins\u002Fcode-tools\u002Fskills\u002Flint\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M75C9JRVHVDBDMEFPZMFMERJ","demo-skill","A demo skill used to prove that skill evals run end to end.","https:\u002F\u002Fgithub.com\u002Fmichaelfromyeg\u002Fweft\u002Fblob\u002Fmain\u002Ffixtures\u002Fall-kinds\u002Fskills\u002Fdemo-skill\u002FSKILL.md",[],[]]