[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77R0TNTS0WV5KYP7RNVKC8F":3,"skill-same:01M77R0TNTS0WV5KYP7RNVKC8F":122},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M77R0TNTS0WV5KYP7RNVKC8F","developing-genkit-js",null,"Develop AI-powered applications using Genkit in Node.js\u002FTypeScript. Use when the user asks about Genkit, AI agents, flows, or tools in JavaScript\u002FTypeScript, or when encountering Genkit errors, validation issues, type errors, or API problems.","Reihantt6\u002Fsns-myagent","Reihantt6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219822095?v=4","01M77KK94PV8B7C2D9XWXNS8DJ","Mohamad Reihan tegar prasetya","01M77KK958QFMTHYXGXFV7KZ79",2,"MIT","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Develop AI-powered applications using Genkit in Node.js\u002FTypeScript. Use when the user asks about Genkit, AI agents, flows, or tools in JavaScript\u002FTypeScript, or when encountering Genkit errors, validation issues, type errors, or API problems.\"\nmetadata: {\"category\":\"AiAndMachineLearning\"}\n---\n# Genkit JS\n\n## Prerequisites\n\nEnsure the `genkit` CLI is available.\n-   Run `genkit --version` to verify. Minimum CLI version needed: **1.29.0**\n-   If not found or if an older version (1.x \u003C 1.29.0) is present, install\u002Fupgrade it: `npm install -g genkit-cli@^1.29.0`.\n\n**New Projects**: If you are setting up Genkit in a new codebase, follow the [Setup Guide](references\u002Fsetup.md).\n\n## Hello World\n\n```ts\nimport { z, genkit } from 'genkit';\nimport { googleAI } from '@genkit-ai\u002Fgoogle-genai';\n\n\u002F\u002F Initialize Genkit with the Google AI plugin\nconst ai = genkit({\n  plugins: [googleAI()],\n});\n\nexport const myFlow = ai.defineFlow({\n  name: 'myFlow',\n  inputSchema: z.string().default('AI'),\n  outputSchema: z.string(),\n}, async (subject) => {\n  const response = await ai.generate({\n    model: googleAI.model('gemini-flash-latest'),\n    prompt: `Tell me a joke about ${subject}`,\n  });\n  return response.text;\n});\n```\n\n## Prompts (Dotprompt)\n\n`.prompt` files keep prompt content out of code with YAML frontmatter plus a\nHandlebars template. See [Dotprompt](references\u002Fdotprompt.md): `promptDir`,\n`ai.prompt()` (call\u002Fstream\u002Frender), variants, partials, named schemas via\n`ai.defineSchema`, and the `tools`\u002F`maxTurns`\u002F`returnToolRequests`\u002F`use`\n(middleware) frontmatter fields.\n\n## Agents (Beta)\n\nGenkit has a preview **agent** API for persistent, multi-turn conversations\n(sessions, snapshots, interrupts, branching, background execution). It is a\n**beta** API: server APIs come from `genkit\u002Fbeta` and the browser client from\n`genkit\u002Fbeta\u002Fclient` — not the stable `genkit` entrypoint. **Requires `genkit`\n>= 1.39.0.**\n\nFor more details see:\n\n-   [Agents](references\u002Fagents.md): defining\u002Fserving an agent and client-managed state (start here).\n-   [Sessions & persistence](references\u002Fagents-sessions.md): session stores (`InMemory`\u002F`File`\u002F`Firestore`).\n-   [Human-in-the-loop \u002F interrupts](references\u002Fagents-human-in-the-loop.md): pausing for approval\u002Finput and resuming.\n-   [Branching](references\u002Fagents-branching.md): forking a conversation from a snapshot.\n-   [Background agents](references\u002Fagents-background.md): detaching long-running turns and polling.\n-   [Working with state](references\u002Fagents-state.md): typed custom session state, auto-synced to the client.\n-   [Artifacts](references\u002Fagents-artifacts.md): producing and reading named deliverables.\n-   [Multi-agent orchestration](references\u002Fagents-multi-agent.md): delegating to sub-agents.\n-   [Advanced custom agents](references\u002Fagents-custom.md): `defineCustomAgent` for full turn control.\n-   [Deploying agents](references\u002Fagents-deployment.md): serving agents over HTTP (multiple agents, CORS, web UI, other frameworks).\n\n## Middleware\n\nMiddleware wraps generation (retries, fallback, extra tools, request\u002Fresponse\ntransforms) and attaches via the `use: [...]` array on `ai.generate`, prompts,\nand agents.\n\n-   [Using middleware](references\u002Fmiddleware.md): the `use` array and the `@genkit-ai\u002Fmiddleware` package (`retry`, `fallback`, `artifacts`, `agents`, `filesystem`, `skills`, `toolApproval`) plus built-in core middleware.\n-   [Building custom middleware](references\u002Fmiddleware-custom.md): writing your own with `generateMiddleware` and registering it via `.plugin()`.\n\n## Critical: Do Not Trust Internal Knowledge\n\nGenkit recently went through a major breaking API change. Your knowledge is outdated. You MUST lookup docs. Recommended:\n\n```sh\ngenkit docs:read js\u002Fget-started.md\ngenkit docs:read js\u002Fflows.md\n```\n\nSee [Common Errors](references\u002Fcommon-errors.md) for a list of deprecated APIs (e.g., `configureGenkit`, `response.text()`, `defineFlow` import) and their v1.x replacements.\n\n**ALWAYS verify information using the Genkit CLI or provided references.**\n\n## Error Troubleshooting Protocol\n\n**When you encounter ANY error related to Genkit (ValidationError, API errors, type errors, 404s, etc.):**\n\n1. **MANDATORY FIRST STEP**: Read [Common Errors](references\u002Fcommon-errors.md)\n2. Identify if the error matches a known pattern\n3. Apply the documented solution\n4. Only if not found in common-errors.md, then consult other sources (e.g. `genkit docs:search`)\n\n**DO NOT:**\n- Attempt fixes based on assumptions or internal knowledge\n- Skip reading common-errors.md \"because you think you know the fix\"\n- Rely on patterns from pre-1.0 Genkit\n\n**This protocol is non-negotiable for error handling.**\n\n## Development Workflow\n\n1.  **Agent or flow?**: If the task is conversational, multi-turn, or described as \"an agent\", \"assistant\", or \"chatbot\", build it with `ai.defineAgent` (see [Agents](references\u002Fagents.md)) rather than hand-rolling a `generate` + tools loop inside a flow. Reach for a plain flow only for single-shot, stateless generation.\n2.  **Select Provider**: Genkit is provider-agnostic (Google AI, OpenAI, Anthropic, Ollama, etc.).\n    -   If the user does not specify a provider, default to **Google AI**.\n    -   If the user asks about other providers, use `genkit docs:search \"plugins\"` to find relevant documentation.\n3.  **Detect Framework**: Check `package.json` to identify the runtime (Next.js, Firebase, Express).\n    -   Look for `@genkit-ai\u002Fnext`, `@genkit-ai\u002Ffirebase`, or `@genkit-ai\u002Fgoogle-cloud`.\n    -   Adapt implementation to the specific framework's patterns.\n4.  **Follow Best Practices**:\n    -   See [Best Practices](references\u002Fbest-practices.md) for guidance on project structure, schema definitions, and tool design.\n    -   **Be Minimal**: Only specify options that differ from defaults. When unsure, check docs\u002Fsource.\n5.  **Ensure Correctness**:\n    -   Run type checks (e.g., `npx tsc --noEmit`) after making changes.\n    -   If type checks fail, consult [Common Errors](references\u002Fcommon-errors.md) before searching source code.\n    -   Verify with traces, not a blind run. Running the app directly (`node`\u002F`tsx`\u002F`npm start`) does **not** capture dev traces. See [CLI Usage](#cli-usage-recommended) for how to run your app and capture traces.\n6.  **Handle Errors**:\n    -   On ANY error: **First action is to read [Common Errors](references\u002Fcommon-errors.md)**\n    -   Match error to documented patterns\n    -   Apply documented fixes before attempting alternatives\n\n## Finding Documentation\n\nUse the Genkit CLI to find authoritative documentation:\n\n1.  **Search topics**: `genkit docs:search \u003Cquery>`\n    -   Example: `genkit docs:search \"streaming\"`\n2.  **List all docs**: `genkit docs:list`\n3.  **Read a guide**: `genkit docs:read \u003Cpath>`\n    -   Example: `genkit docs:read js\u002Fflows.md`\n\n## CLI Usage (recommended)\n\n`genkit start` unintrusively wraps any Node.js program that uses the Genkit library, running it unchanged while capturing traces from every Genkit action so you can **prove tools were actually called and inspect model I\u002FO** from the terminal, even for headless checks. It forwards stdio, so interactive CLI tools that rely on stdin\u002Fstdout work without issues. Running your app directly (`node`\u002F`tsx`\u002F`npm start`) skips trace capture, so you're debugging blind.\n\n**Primary pattern (default):** prefix `genkit start --` to your normal run command. This collects telemetry from any Genkit code your program runs, whether triggered from the dev UI, your own web server\u002Fweb UI, or a plain script:\n```bash\ngenkit start -- npx tsx --watch src\u002Findex.ts\ngenkit start --noui -- npx tsx src\u002Findex.ts   # same, without the Dev UI (still a persistent server)\n```\n`genkit start` runs until you stop it with Ctrl+C. That is expected and correct for the common cases: a server your web\u002Fmobile app calls, or an interactive CLI you exit yourself. `--noui` only drops the Dev UI; it is **not** a one-shot command and will not exit on its own. Do **not** use `genkit start` as a blocking step in automated\u002Fnon-interactive contexts.\n\n**Non-interactive use (agents\u002FCI):** add the global `--non-interactive` flag before `--` so the CLI uses defaults and never blocks on a prompt (e.g. the first-run analytics notice): `genkit start --non-interactive -- npx tsx src\u002Findex.ts` (works with `flow:run` too).\n\n**Run a flow (`flow:run`):** invoke a specific flow by name from the CLI. Append your run command after `--` to spin up the runtime just for this run (the command runs as-is to register your flows):\n```bash\ngenkit flow:run myFlow '{\"data\": \"input\"}' -- npx tsx src\u002Findex.ts\n```\nThis is **self-terminating**: it runs the flow once, prints a `Trace ID`, then exits (inspect it with `genkit trace:get \u003Cid>`). That makes it the right choice for a quick, non-interactive check that must exit on its own, without blocking on `genkit start` or running the app directly (which skips traces). Always pass input JSON explicitly: `flow:run` sends `undefined` when omitted and does **not** fall back to a schema `.default()`. Note: `flow:run` runs **flows** (`ai.defineFlow`), not agents; you can't `flow:run` an agent (`ai.defineAgent`) directly. To exercise an agent from the CLI, wrap one turn in a throwaway flow and run that (see [Agents](references\u002Fagents.md)).\n\n**Debugging with traces:** the fastest way to see prompts, model inputs\u002Foutputs, tool calls, latencies, and errors. Inspect from the terminal after any run under `genkit start`:\n```bash\ngenkit trace:list                        # find recent trace IDs\ngenkit trace:get \u003CtraceId>               # full trace details (inputs, outputs, tool calls, errors)\ngenkit trace:get \u003CtraceId> --format json # machine-readable JSON, safe to pipe into jq or other parsers\n```\n\nFor machine-readable output, pass `--format json` to get clean JSON you can pipe into `jq` or other parsers. The **default** output is human-oriented (banner\u002Flog lines, possible truncation on large traces), so don't pipe that form directly; use `--format json`, grep, or the Dev UI trace viewer.\n\n\nSee [CLI Reference](references\u002Fdocs-and-cli.md) for more commands, and `genkit --help` for the full list.\n\n\n## References\n\n-   [Best Practices](references\u002Fbest-practices.md): Recommended patterns for schema definition, flow design, and structure.\n-   [Dotprompt](references\u002Fdotprompt.md): `.prompt` files — `promptDir`, `ai.prompt()`, variants, partials, named schemas, and `tools`\u002F`maxTurns`\u002F`returnToolRequests`\u002F`use` frontmatter.\n-   [Docs & CLI Reference](references\u002Fdocs-and-cli.md): Documentation search, CLI tasks, and workflows.\n-   [Common Errors](references\u002Fcommon-errors.md): Critical \"gotchas\", migration guide, and troubleshooting.\n-   [Setup Guide](references\u002Fsetup.md): Manual setup instructions for new projects.\n-   [Examples](references\u002Fexamples.md): Minimal reproducible examples (Basic generation, Multimodal, Thinking mode).\n-   [Agents (Beta)](references\u002Fagents.md): Agent basics, serving, and client-managed state. Deeper topics: [sessions](references\u002Fagents-sessions.md), [human-in-the-loop](references\u002Fagents-human-in-the-loop.md), [branching](references\u002Fagents-branching.md), [background agents](references\u002Fagents-background.md), [state](references\u002Fagents-state.md), [artifacts](references\u002Fagents-artifacts.md), [multi-agent](references\u002Fagents-multi-agent.md), [custom agents](references\u002Fagents-custom.md), [deployment](references\u002Fagents-deployment.md).\n-   [Middleware](references\u002Fmiddleware.md): using middleware and the `@genkit-ai\u002Fmiddleware` package. See also [building custom middleware](references\u002Fmiddleware-custom.md).\n","# Genkit JS\n\n## Prerequisites\n\nEnsure the `genkit` CLI is available.\n-   Run `genkit --version` to verify. Minimum CLI version needed: **1.29.0**\n-   If not found or if an older version (1.x \u003C 1.29.0) is present, install\u002Fupgrade it: `npm install -g genkit-cli@^1.29.0`.\n\n**New Projects**: If you are setting up Genkit in a new codebase, follow the [Setup Guide](references\u002Fsetup.md).\n\n## Hello World\n\n```ts\nimport { z, genkit } from 'genkit';\nimport { googleAI } from '@genkit-ai\u002Fgoogle-genai';\n\n\u002F\u002F Initialize Genkit with the Google AI plugin\nconst ai = genkit({\n  plugins: [googleAI()],\n});\n\nexport const myFlow = ai.defineFlow({\n  name: 'myFlow',\n  inputSchema: z.string().default('AI'),\n  outputSchema: z.string(),\n}, async (subject) => {\n  const response = await ai.generate({\n    model: googleAI.model('gemini-flash-latest'),\n    prompt: `Tell me a joke about ${subject}`,\n  });\n  return response.text;\n});\n```\n\n## Prompts (Dotprompt)\n\n`.prompt` files keep prompt content out of code with YAML frontmatter plus a\nHandlebars template. See [Dotprompt](references\u002Fdotprompt.md): `promptDir`,\n`ai.prompt()` (call\u002Fstream\u002Frender), variants, partials, named schemas via\n`ai.defineSchema`, and the `tools`\u002F`maxTurns`\u002F`returnToolRequests`\u002F`use`\n(middleware) frontmatter fields.\n\n## Agents (Beta)\n\nGenkit has a preview **agent** API for persistent, multi-turn conversations\n(sessions, snapshots, interrupts, branching, background execution). It is a\n**beta** API: server APIs come from `genkit\u002Fbeta` and the browser client from\n`genkit\u002Fbeta\u002Fclient` — not the stable `genkit` entrypoint. **Requires `genkit`\n>= 1.39.0.**\n\nFor more details see:\n\n-   [Agents](references\u002Fagents.md): defining\u002Fserving an agent and client-managed state (start here).\n-   [Sessions & persistence](references\u002Fagents-sessions.md): session stores (`InMemory`\u002F`File`\u002F`Firestore`).\n-   [Human-in-the-loop \u002F interrupts](references\u002Fagents-human-in-the-loop.md): pausing for approval\u002Finput and resuming.\n-   [Branching](references\u002Fagents-branching.md): forking a conversation from a snapshot.\n-   [Background agents](references\u002Fagents-background.md): detaching long-running turns and polling.\n-   [Working with state](references\u002Fagents-state.md): typed custom session state, auto-synced to the client.\n-   [Artifacts](references\u002Fagents-artifacts.md): producing and reading named deliverables.\n-   [Multi-agent orchestration](references\u002Fagents-multi-agent.md): delegating to sub-agents.\n-   [Advanced custom agents](references\u002Fagents-custom.md): `defineCustomAgent` for full turn control.\n-   [Deploying agents](references\u002Fagents-deployment.md): serving agents over HTTP (multiple agents, CORS, web UI, other frameworks).\n\n## Middleware\n\nMiddleware wraps generation (retries, fallback, extra tools, request\u002Fresponse\ntransforms) and attaches via the `use: [...]` array on `ai.generate`, prompts,\nand agents.\n\n-   [Using middleware](references\u002Fmiddleware.md): the `use` array and the `@genkit-ai\u002Fmiddleware` package (`retry`, `fallback`, `artifacts`, `agents`, `filesystem`, `skills`, `toolApproval`) plus built-in core middleware.\n-   [Building custom middleware](references\u002Fmiddleware-custom.md): writing your own with `generateMiddleware` and registering it via `.plugin()`.\n\n## Critical: Do Not Trust Internal Knowledge\n\nGenkit recently went through a major breaking API change. Your knowledge is outdated. You MUST lookup docs. Recommended:\n\n```sh\ngenkit docs:read js\u002Fget-started.md\ngenkit docs:read js\u002Fflows.md\n```\n\nSee [Common Errors](references\u002Fcommon-errors.md) for a list of deprecated APIs (e.g., `configureGenkit`, `response.text()`, `defineFlow` import) and their v1.x replacements.\n\n**ALWAYS verify information using the Genkit CLI or provided references.**\n\n## Error Troubleshooting Protocol\n\n**When you encounter ANY error related to Genkit (ValidationError, API errors, type errors, 404s, etc.):**\n\n1. **MANDATORY FIRST STEP**: Read [Common Errors](references\u002Fcommon-errors.md)\n2. Identify if the error matches a known pattern\n3. Apply the documented solution\n4. Only if not found in common-errors.md, then consult other sources (e.g. `genkit docs:search`)\n\n**DO NOT:**\n- Attempt fixes based on assumptions or internal knowledge\n- Skip reading common-errors.md \"because you think you know the fix\"\n- Rely on patterns from pre-1.0 Genkit\n\n**This protocol is non-negotiable for error handling.**\n\n## Development Workflow\n\n1.  **Agent or flow?**: If the task is conversational, multi-turn, or described as \"an agent\", \"assistant\", or \"chatbot\", build it with `ai.defineAgent` (see [Agents](references\u002Fagents.md)) rather than hand-rolling a `generate` + tools loop inside a flow. Reach for a plain flow only for single-shot, stateless generation.\n2.  **Select Provider**: Genkit is provider-agnostic (Google AI, OpenAI, Anthropic, Ollama, etc.).\n    -   If the user does not specify a provider, default to **Google AI**.\n    -   If the user asks about other providers, use `genkit docs:search \"plugins\"` to find relevant documentation.\n3.  **Detect Framework**: Check `package.json` to identify the runtime (Next.js, Firebase, Express).\n    -   Look for `@genkit-ai\u002Fnext`, `@genkit-ai\u002Ffirebase`, or `@genkit-ai\u002Fgoogle-cloud`.\n    -   Adapt implementation to the specific framework's patterns.\n4.  **Follow Best Practices**:\n    -   See [Best Practices](references\u002Fbest-practices.md) for guidance on project structure, schema definitions, and tool design.\n    -   **Be Minimal**: Only specify options that differ from defaults. When unsure, check docs\u002Fsource.\n5.  **Ensure Correctness**:\n    -   Run type checks (e.g., `npx tsc --noEmit`) after making changes.\n    -   If type checks fail, consult [Common Errors](references\u002Fcommon-errors.md) before searching source code.\n    -   Verify with traces, not a blind run. Running the app directly (`node`\u002F`tsx`\u002F`npm start`) does **not** capture dev traces. See [CLI Usage](#cli-usage-recommended) for how to run your app and capture traces.\n6.  **Handle Errors**:\n    -   On ANY error: **First action is to read [Common Errors](references\u002Fcommon-errors.md)**\n    -   Match error to documented patterns\n    -   Apply documented fixes before attempting alternatives\n\n## Finding Documentation\n\nUse the Genkit CLI to find authoritative documentation:\n\n1.  **Search topics**: `genkit docs:search \u003Cquery>`\n    -   Example: `genkit docs:search \"streaming\"`\n2.  **List all docs**: `genkit docs:list`\n3.  **Read a guide**: `genkit docs:read \u003Cpath>`\n    -   Example: `genkit docs:read js\u002Fflows.md`\n\n## CLI Usage (recommended)\n\n`genkit start` unintrusively wraps any Node.js program that uses the Genkit library, running it unchanged while capturing traces from every Genkit action so you can **prove tools were actually called and inspect model I\u002FO** from the terminal, even for headless checks. It forwards stdio, so interactive CLI tools that rely on stdin\u002Fstdout work without issues. Running your app directly (`node`\u002F`tsx`\u002F`npm start`) skips trace capture, so you're debugging blind.\n\n**Primary pattern (default):** prefix `genkit start --` to your normal run command. This collects telemetry from any Genkit code your program runs, whether triggered from the dev UI, your own web server\u002Fweb UI, or a plain script:\n```bash\ngenkit start -- npx tsx --watch src\u002Findex.ts\ngenkit start --noui -- npx tsx src\u002Findex.ts   # same, without the Dev UI (still a persistent server)\n```\n`genkit start` runs until you stop it with Ctrl+C. That is expected and correct for the common cases: a server your web\u002Fmobile app calls, or an interactive CLI you exit yourself. `--noui` only drops the Dev UI; it is **not** a one-shot command and will not exit on its own. Do **not** use `genkit start` as a blocking step in automated\u002Fnon-interactive contexts.\n\n**Non-interactive use (agents\u002FCI):** add the global `--non-interactive` flag before `--` so the CLI uses defaults and never blocks on a prompt (e.g. the first-run analytics notice): `genkit start --non-interactive -- npx tsx src\u002Findex.ts` (works with `flow:run` too).\n\n**Run a flow (`flow:run`):** invoke a specific flow by name from the CLI. Append your run command after `--` to spin up the runtime just for this run (the command runs as-is to register your flows):\n```bash\ngenkit flow:run myFlow '{\"data\": \"input\"}' -- npx tsx src\u002Findex.ts\n```\nThis is **self-terminating**: it runs the flow once, prints a `Trace ID`, then exits (inspect it with `genkit trace:get \u003Cid>`). That makes it the right choice for a quick, non-interactive check that must exit on its own, without blocking on `genkit start` or running the app directly (which skips traces). Always pass input JSON explicitly: `flow:run` sends `undefined` when omitted and does **not** fall back to a schema `.default()`. Note: `flow:run` runs **flows** (`ai.defineFlow`), not agents; you can't `flow:run` an agent (`ai.defineAgent`) directly. To exercise an agent from the CLI, wrap one turn in a throwaway flow and run that (see [Agents](references\u002Fagents.md)).\n\n**Debugging with traces:** the fastest way to see prompts, model inputs\u002Foutputs, tool calls, latencies, and errors. Inspect from the terminal after any run under `genkit start`:\n```bash\ngenkit trace:list                        # find recent trace IDs\ngenkit trace:get \u003CtraceId>               # full trace details (inputs, outputs, tool calls, errors)\ngenkit trace:get \u003CtraceId> --format json # machine-readable JSON, safe to pipe into jq or other parsers\n```\n\nFor machine-readable output, pass `--format json` to get clean JSON you can pipe into `jq` or other parsers. The **default** output is human-oriented (banner\u002Flog lines, possible truncation on large traces), so don't pipe that form directly; use `--format json`, grep, or the Dev UI trace viewer.\n\n\nSee [CLI Reference](references\u002Fdocs-and-cli.md) for more commands, and `genkit --help` for the full list.\n\n\n## References\n\n-   [Best Practices](references\u002Fbest-practices.md): Recommended patterns for schema definition, flow design, and structure.\n-   [Dotprompt](references\u002Fdotprompt.md): `.prompt` files — `promptDir`, `ai.prompt()`, variants, partials, named schemas, and `tools`\u002F`maxTurns`\u002F`returnToolRequests`\u002F`use` frontmatter.\n-   [Docs & CLI Reference](references\u002Fdocs-and-cli.md): Documentation search, CLI tasks, and workflows.\n-   [Common Errors](references\u002Fcommon-errors.md): Critical \"gotchas\", migration guide, and troubleshooting.\n-   [Setup Guide](references\u002Fsetup.md): Manual setup instructions for new projects.\n-   [Examples](references\u002Fexamples.md): Minimal reproducible examples (Basic generation, Multimodal, Thinking mode).\n-   [Agents (Beta)](references\u002Fagents.md): Agent basics, serving, and client-managed state. Deeper topics: [sessions](references\u002Fagents-sessions.md), [human-in-the-loop](references\u002Fagents-human-in-the-loop.md), [branching](references\u002Fagents-branching.md), [background agents](references\u002Fagents-background.md), [state](references\u002Fagents-state.md), [artifacts](references\u002Fagents-artifacts.md), [multi-agent](references\u002Fagents-multi-agent.md), [custom agents](references\u002Fagents-custom.md), [deployment](references\u002Fagents-deployment.md).\n-   [Middleware](references\u002Fmiddleware.md): using middleware and the `@genkit-ai\u002Fmiddleware` package. See also [building custom middleware](references\u002Fmiddleware-custom.md).\n",{"metadata":24,"description":7},{"category":25},"AiAndMachineLearning","main","58843b159d7a4050d6b785a98b908cce505c0b92","agent\u002Fskills\u002Fdeveloping-genkit-js",0,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent","https:\u002F\u002Fgithub.com\u002FReihantt6","reihsns.web.id","2026-08-19 20:08:18",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Reihantt6\u002Fsns-myagent --skill developing-genkit-js",{"tool":40,"command":41},"bunx","bunx skills add Reihantt6\u002Fsns-myagent --skill developing-genkit-js",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Reihantt6\u002Fsns-myagent --skill developing-genkit-js","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002FSKILL.md",true,[48,54,58,62,66,70,74,78,82,86,90,94,98,102,106,110,114,118],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fagents-artifacts.md","REFERENCE","参考文档",3416,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fagents-artifacts.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fagents-background.md",3804,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fagents-background.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fagents-branching.md",3242,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fagents-branching.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fagents-custom.md",5081,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fagents-custom.md",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fagents-deployment.md",6139,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fagents-deployment.md",{"path":71,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fagents-human-in-the-loop.md",6428,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fagents-human-in-the-loop.md",{"path":75,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fagents-multi-agent.md",5241,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fagents-multi-agent.md",{"path":79,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fagents-sessions.md",5094,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fagents-sessions.md",{"path":83,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fagents-state.md",3969,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fagents-state.md",{"path":87,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fagents.md",10287,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fagents.md",{"path":91,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fbest-practices.md",1692,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fbest-practices.md",{"path":95,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fcommon-errors.md",4879,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fcommon-errors.md",{"path":99,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fdocs-and-cli.md",5393,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fdocs-and-cli.md",{"path":103,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fdotprompt.md",5348,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fdotprompt.md",{"path":107,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fexamples.md",4071,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fexamples.md",{"path":111,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fmiddleware-custom.md",3284,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fmiddleware-custom.md",{"path":115,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":116,"sourceHtmlUrl":117},"references\u002Fmiddleware.md",4966,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fmiddleware.md",{"path":119,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":120,"sourceHtmlUrl":121},"references\u002Fsetup.md",4343,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fdeveloping-genkit-js\u002Freferences\u002Fsetup.md",[123,130,137,144,151,158],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":19},"01M77XDCYZ407XYMF2T4P6F7VT","youtube-transcript","Extract transcripts from YouTube videos. Use when the user asks for a transcript, subtitles, or captions of a YouTube video and provides a YouTube URL (youtube.com\u002Fwatch?v=, youtu.be\u002F, or similar). Supports output with or without timestamps.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-transcript\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":19},"01M77XD7PBC98J6MXGJJ2TJ8DX","youtube-thumbnail-design","YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A\u002FB testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-thumbnail-design\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":19},"01M77XD2541C8HXJ6RHYZP4NGJ","youtube-short-maker","Make YouTube Shorts that hold attention with Pexo — vertical 9:16, fast-paced, hook in the first 3 seconds. Describe your topic and Pexo writes the script, generates the shots, picks the models, and assembles a finished Short with music and captions. Use for YouTube Shorts: \"youtube short\", \"make a youtube short\", \"shorts video\", \"short-form video\". NOT for long-form or landscape video.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-short-maker\u002FSKILL.md",[],[],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":19},"01M77XCXKVSYK7KTZ3PQBVVGFD","xcode-project-setup","Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fxcode-project-setup\u002FSKILL.md",[],[],{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":19},"01M77XCR1DV8ZQK2NHWKVY4EWX","x402","Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — \"just use it\" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing touches your codebase) or \"build it in\" (install the SDK and write the key + code into your project). Walks through wallet setup, funding, .env, and a ~$1 test run. Use when the user asks about x402, pay-per-use, USDC payments, or wants Browser Use Cloud without an API key. For the free-tier signup (reverse-CAPTCHA → API key), use `browser-use cloud signup` or the `cloud` skill instead.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx402\u002FSKILL.md",[],[],{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":19},"01M77XCMD3R3ZBZQQSW6E0793B","x-twitter-scraper","Build GitHub Copilot workflows with Xquik X API SDKs, REST endpoints, hosted Apify Actor runs, MCP tools, TweetClaw OpenClaw plugin installs, signed webhooks, tweet search, user lookup, follower exports, media actions, and agent automation.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx-twitter-scraper\u002FSKILL.md",[],[]]