[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BXYX354T3YJJBJYP8E29S7":3,"skill-same:01M6BXYX354T3YJJBJYP8E29S7":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":59,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6BXYX354T3YJJBJYP8E29S7","developing-genkit-tooling","Genkit 工具开发","Best practices for authoring Genkit tooling, including CLI commands and MCP server tools. Covers naming conventions, architectural patterns, and consistency guidelines.","编写 Genkit 工具的最佳实践，包括 CLI 命令和 MCP 服务器工具。涵盖命名约定、架构模式和一致性准则。","genkit-ai\u002Fgenkit","genkit-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F166032008?v=4","01M6BXY5HK7S076R0K2XMNSVWS","Genkit","01M6BXY5P69270PQG7WYBJZ7FJ",6591,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgenkit-ai\u002Fgenkit\u002Fblob\u002Fmain\u002Fskills\u002Fdeveloping-genkit-tooling\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"genkit","developing genkit tooling","tooling","for","MCP","naming conventions","consistency","naming","authoring","commands","conventions","patterns","Tools","server","best practices","guidelines","mcp server","cli","2026-11-10 10:12:30",false,"---\nname: developing-genkit-tooling\ndescription: Best practices for authoring Genkit tooling, including CLI commands and MCP server tools. Covers naming conventions, architectural patterns, and consistency guidelines.\n---\n\n# Developing Genkit Tooling\n\n## Naming Conventions\n\nConsistency in naming helps users and agents navigate the tooling.\n\n### CLI Commands\n\nUse **kebab-case** with colon separators for subcommands.\n\n- **Format**: `noun:verb` or `category:action`\n- **Examples**: `flow:run`, `eval:run`, `init`\n- **Arguments**: Use camelCase in code (`flowName`) but standard format in help text (`\u003CflowName>`).\n\n### MCP Tools\n\nUse **snake_case** for tool names to align with MCP standards.\n\n- **Format**: `verb_noun`\n- **Examples**: `list_flows`, `run_flow`, `list_genkit_docs`, `read_genkit_docs`\n\n## CLI Command Architecture\n\nCommands are implemented in `cli\u002Fsrc\u002Fcommands\u002F` using `commander`.\n\n### Runtime Interaction\n\nMost commands require interacting with the user's project runtime. Use the `runWithManager` utility to handle the lifecycle of the runtime process.\n\n```typescript\nimport { runWithManager } from '..\u002Futils\u002Fmanager-utils';\n\n\u002F\u002F ... command definition ...\n.action(async (arg, options) => {\n  await runWithManager(await findProjectRoot(), async (manager) => {\n    \u002F\u002F Interact with manager here\n    const result = await manager.runAction({ key: arg });\n  });\n});\n```\n\n### Output Formatting\n\n- **Logging**: Use `logger` from `@genkit-ai\u002Ftools-common\u002Futils`.\n- **Machine Readable**: Provide options for JSON output or file writing when the command produces data.\n- **Streaming**: If the operation supports streaming (like `flow:run`), provide a `--stream` flag and pipe output to stdout.\n\n## MCP Tool Architecture\n\nMCP tools in `cli\u002Fsrc\u002Fmcp\u002F` follow two distinct patterns: **Static** and **Runtime**.\n\n### Static Tools (e.g., Docs)\n\nThese tools do not require a running Genkit project context.\n\n- **Registration**: `defineDocsTool(server: McpServer)`\n- **Dependencies**: Only the `server` instance.\n- **Use Case**: Documentation, usage guides, global configuration.\n\n### Runtime Tools (e.g., Flows, Runtime Control)\n\nThese tools interact with a specific Genkit project's runtime.\n\n- **Registration**: `defineRuntimeTools(server: McpServer, options: McpToolOptions)`\n- **Dependencies**: Requires `options` containing `manager` (process manager) and `projectRoot`.\n- **Schema**: MUST use `getCommonSchema(options.explicitProjectRoot, ...)` to ensure the tool can accept a `projectRoot` argument when required (e.g., in multi-project environments).\n\n```typescript\n\u002F\u002F Runtime tool definition pattern\nserver.registerTool(\n  'my_runtime_tool',\n  {\n    inputSchema: getCommonSchema(options.explicitProjectRoot, {\n      myArg: z.string(),\n    }),\n  },\n  async (opts) => {\n    \u002F\u002F Resolve project root before action\n    const rootOrError = resolveProjectRoot(\n      options.explicitProjectRoot,\n      opts,\n      options.projectRoot\n    );\n    if (typeof rootOrError !== 'string') return rootOrError;\n\n    \u002F\u002F access manager via options.manager\n  }\n);\n```\n\n### Error Handling\n\nMCP tools should generally catch errors and return them as content blocks with `isError: true` rather than throwing exceptions, which ensures the client receives a structured error response.\n\n```typescript\ntry {\n  \u002F\u002F operation\n} catch (err) {\n  const message = err instanceof Error ? err.message : String(err);\n  return {\n    isError: true,\n    content: [{ type: 'text', text: `Error: ${message}` }],\n  };\n}\n```\n","# Developing Genkit Tooling\n\n## Naming Conventions\n\nConsistency in naming helps users and agents navigate the tooling.\n\n### CLI Commands\n\nUse **kebab-case** with colon separators for subcommands.\n\n- **Format**: `noun:verb` or `category:action`\n- **Examples**: `flow:run`, `eval:run`, `init`\n- **Arguments**: Use camelCase in code (`flowName`) but standard format in help text (`\u003CflowName>`).\n\n### MCP Tools\n\nUse **snake_case** for tool names to align with MCP standards.\n\n- **Format**: `verb_noun`\n- **Examples**: `list_flows`, `run_flow`, `list_genkit_docs`, `read_genkit_docs`\n\n## CLI Command Architecture\n\nCommands are implemented in `cli\u002Fsrc\u002Fcommands\u002F` using `commander`.\n\n### Runtime Interaction\n\nMost commands require interacting with the user's project runtime. Use the `runWithManager` utility to handle the lifecycle of the runtime process.\n\n```typescript\nimport { runWithManager } from '..\u002Futils\u002Fmanager-utils';\n\n\u002F\u002F ... command definition ...\n.action(async (arg, options) => {\n  await runWithManager(await findProjectRoot(), async (manager) => {\n    \u002F\u002F Interact with manager here\n    const result = await manager.runAction({ key: arg });\n  });\n});\n```\n\n### Output Formatting\n\n- **Logging**: Use `logger` from `@genkit-ai\u002Ftools-common\u002Futils`.\n- **Machine Readable**: Provide options for JSON output or file writing when the command produces data.\n- **Streaming**: If the operation supports streaming (like `flow:run`), provide a `--stream` flag and pipe output to stdout.\n\n## MCP Tool Architecture\n\nMCP tools in `cli\u002Fsrc\u002Fmcp\u002F` follow two distinct patterns: **Static** and **Runtime**.\n\n### Static Tools (e.g., Docs)\n\nThese tools do not require a running Genkit project context.\n\n- **Registration**: `defineDocsTool(server: McpServer)`\n- **Dependencies**: Only the `server` instance.\n- **Use Case**: Documentation, usage guides, global configuration.\n\n### Runtime Tools (e.g., Flows, Runtime Control)\n\nThese tools interact with a specific Genkit project's runtime.\n\n- **Registration**: `defineRuntimeTools(server: McpServer, options: McpToolOptions)`\n- **Dependencies**: Requires `options` containing `manager` (process manager) and `projectRoot`.\n- **Schema**: MUST use `getCommonSchema(options.explicitProjectRoot, ...)` to ensure the tool can accept a `projectRoot` argument when required (e.g., in multi-project environments).\n\n```typescript\n\u002F\u002F Runtime tool definition pattern\nserver.registerTool(\n  'my_runtime_tool',\n  {\n    inputSchema: getCommonSchema(options.explicitProjectRoot, {\n      myArg: z.string(),\n    }),\n  },\n  async (opts) => {\n    \u002F\u002F Resolve project root before action\n    const rootOrError = resolveProjectRoot(\n      options.explicitProjectRoot,\n      opts,\n      options.projectRoot\n    );\n    if (typeof rootOrError !== 'string') return rootOrError;\n\n    \u002F\u002F access manager via options.manager\n  }\n);\n```\n\n### Error Handling\n\nMCP tools should generally catch errors and return them as content blocks with `isError: true` rather than throwing exceptions, which ensures the client receives a structured error response.\n\n```typescript\ntry {\n  \u002F\u002F operation\n} catch (err) {\n  const message = err instanceof Error ? err.message : String(err);\n  return {\n    isError: true,\n    content: [{ type: 'text', text: `Error: ${message}` }],\n  };\n}\n```\n",{"name":5,"description":7},"main","effdb1471a969cecdffce741de036b62b0541fbf","skills\u002Fdeveloping-genkit-tooling",881,"https:\u002F\u002Fgithub.com\u002Fgenkit-ai\u002Fgenkit","https:\u002F\u002Fgenkit.dev","https:\u002F\u002Fgithub.com\u002Fgenkit-ai","Open-source AI framework built by Google","2026-11-14 07:33:37",{"source":9,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add genkit-ai\u002Fgenkit --skill developing-genkit-tooling",{"tool":69,"command":70},"bunx","bunx skills add genkit-ai\u002Fgenkit --skill developing-genkit-tooling",{"tool":72,"command":73},"pnpm","pnpm dlx skills add genkit-ai\u002Fgenkit --skill developing-genkit-tooling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgenkit-ai\u002Fgenkit\u002Fblob\u002Fmain\u002Fskills\u002Fdeveloping-genkit-tooling\u002FSKILL.md",true,[],[78,108,132,148,160,179],{"skillNo":79,"name":80,"nameZh":81,"description":82,"descriptionZh":83,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":84,"categories":85,"keywords":92,"publishedAt":49},"01M6BXYV05TWTRH1G6Z0VNVF8M","test-writer","pytest 测试编写","How to write pytest tests for modules in this workspace. Load whenever you are about to write or extend tests.","如何为本工作区中的模块编写 pytest 测试。在准备编写或扩展测试时加载。","https:\u002F\u002Fgithub.com\u002Fgenkit-ai\u002Fgenkit\u002Fblob\u002Fmain\u002Fpy\u002Fsamples\u002Fmiddleware-coding-agent\u002Fskills\u002Ftest-writer\u002FSKILL.md",[86,89],{"categoryNo":87,"categoryName":88,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":90,"categoryName":91,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[93,94,95,96,97,34,98,99,100,101,102,103,104,105,106,107],"test","test writer","writer","how","extend","how to","load","workspace","write","write pytest","modules","you","pytest","about","tests",{"skillNo":109,"name":110,"nameZh":111,"description":112,"descriptionZh":113,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":122,"publishedAt":49},"01M6BXYS23FQWMAZB0K1D55BS1","python-expert","Python 编码规范","Conventions for clean, idiomatic Python. Load whenever you read, edit, or write Python source files.","编写整洁、地道的 Python 代码的约定。读取、编辑或编写 Python 源文件时加载。","https:\u002F\u002Fgithub.com\u002Fgenkit-ai\u002Fgenkit\u002Fblob\u002Fmain\u002Fpy\u002Fsamples\u002Fmiddleware-coding-agent\u002Fskills\u002Fpython-expert\u002FSKILL.md",[116,119],{"categoryNo":117,"categoryName":118,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":120,"categoryName":121,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现",[123,124,125,41,104,99,34,126,127,128,129,101,130,131],"expert","python expert","python","source","idiomatic","clean","read","edit","files",{"skillNo":133,"name":134,"nameZh":135,"description":136,"descriptionZh":137,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":138,"categories":139,"keywords":142,"publishedAt":49},"01M6BXYPP4S830CSY3TP0X7JNX","typescript","TypeScript 编码规范","TypeScript coding conventions, best practices, and patterns for writing clean, maintainable code.","TypeScript 编码约定、最佳实践，以及编写整洁、可维护代码的模式。","https:\u002F\u002Fgithub.com\u002Fgenkit-ai\u002Fgenkit\u002Fblob\u002Fmain\u002Fjs\u002Ftestapps\u002Fagents\u002Fskills\u002Ftypescript\u002FSKILL.md",[140,141],{"categoryNo":117,"categoryName":118,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":120,"categoryName":121,"taxonomyType":28,"taxonomyTypeDesc":29},[134,143,144,145,45,128,42,41,34,146,147],"coding","writing","code","maintainable code","coding conventions",{"skillNo":149,"name":143,"nameZh":150,"description":151,"descriptionZh":152,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":153,"categories":154,"keywords":157,"publishedAt":49},"01M6BXYMWX3EV2R7MSQK23Z761","通用编码技能","A skill for coding that should apply to all coding tasks.","一项适用于所有编码任务的通用编码技能。","https:\u002F\u002Fgithub.com\u002Fgenkit-ai\u002Fgenkit\u002Fblob\u002Fmain\u002Fjs\u002Fplugins\u002Fmiddleware\u002Fexamples\u002Fskills\u002Fcoding\u002FSKILL.md",[155,156],{"categoryNo":117,"categoryName":118,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":120,"categoryName":121,"taxonomyType":28,"taxonomyTypeDesc":29},[143,158,34,159],"tasks","apply",{"skillNo":161,"name":162,"nameZh":163,"description":164,"descriptionZh":165,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":166,"categories":167,"keywords":174,"publishedAt":49},"01M6BXYK1NKV2DH160SNNDDGS4","shakespeare","莎士比亚风格回复","Respond in the style of William Shakespeare — early modern English, poetic cadence.","以威廉·莎士比亚的风格回应——使用早期现代英语，富有诗意的韵律节奏。","https:\u002F\u002Fgithub.com\u002Fgenkit-ai\u002Fgenkit\u002Fblob\u002Fmain\u002Fgo\u002Fsamples\u002Fbasic-middleware\u002Fskills\u002Fskills\u002Fshakespeare\u002FSKILL.md",[168,171],{"categoryNo":169,"categoryName":170,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":172,"categoryName":173,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C1YEW2680C003GGBD6QCKB","回复风格与输出控制",[162,175,176,177,178],"english","style","cadence","respond",{"skillNo":180,"name":181,"nameZh":182,"description":183,"descriptionZh":184,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":185,"categories":186,"keywords":189,"publishedAt":49},"01M6BXYH488TY48Y1JMWAFNGZA","pirate","海盗风格回复","Respond in the voice of a swashbuckling pirate.","以潇洒冒险的海盗口吻进行回应。","https:\u002F\u002Fgithub.com\u002Fgenkit-ai\u002Fgenkit\u002Fblob\u002Fmain\u002Fgo\u002Fsamples\u002Fbasic-middleware\u002Fskills\u002Fskills\u002Fpirate\u002FSKILL.md",[187,188],{"categoryNo":169,"categoryName":170,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":172,"categoryName":173,"taxonomyType":28,"taxonomyTypeDesc":29},[181,190,178],"voice"]