ワンクリックで
add-function-examples
Guide for adding new AI function examples, for testing specific features against the actual provider APIs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Guide for adding new AI function examples, for testing specific features against the actual provider APIs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Set up and use 1Password CLI (op). Use when installing the CLI, enabling
Use when editing worker/src/constants/default-model-prices.json, packages/shared/src/server/llm/types.ts, pricing tiers, tokenizer IDs, or matchPattern regexes for OpenAI, Anthropic, Bedrock, Vertex, Azure, or Gemini model pricing.
Fixes broken typing checks detected by ty, make typing, or make check-repo. Use when typing errors appear in local runs, CI, or PR logs.
Add documentation for a new AI provider — usage docs, env vars, Docker
Guide for adding new AI provider packages to the AI SDK. Use when creating
Add server-side environment variables that control default values for
| name | add-function-examples |
| name_zh | add-函数-examples |
| description | Guide for adding new AI function examples, for testing specific features against the actual provider APIs. |
| description_zh | Guide for adding new AI 函数 examples, for 测试 specific features against the actual provider APIs. |
| category | applications |
| tags | ["ai","api","backend","documentation","frontend"] |
| source | null |
| language | en |
| needs_review | false |
| slug | add-function-examples |
| version | 1.0.0 |
| created | 2026-06-12 |
| updated | 2026-06-12 |
| inputs | [{"name":"request","type":"string","required":true,"description":"User request or task description"}] |
| output | {"format":"markdown","description":"Generated content based on the user request"} |
| author | AI-SKILL |
| license | MIT |
Review the changes in the current branch, and identify new or modified features or bug fixes that would benefit from having an example in the examples/ai-functions directory. These examples are used for testing specific features against the actual provider APIs, and can also serve as documentation for users.
Determine for which kind of model and top-level function the example should be added. For a language model, the example should be added in two variants, one for generateText and one for streamText. For any other models kinds, add the example for the relevant top-level function (e.g. generateImage, generateSpeech).
After creating the example, run pnpm type-check:full; fix any errors encountered.
Use this skill when you need guidance on add-function-examples.
User request or task description.
Generated content based on the user request.
Follow the guidelines in this skill when working on related tasks.
Do not use this skill for tasks outside its scope.
See the skill content above for practical examples.
# Use the add-function-examples skill
from skill_loader import load_skill
skill = load_skill("add-function-examples")
result = skill.execute(params={"key": "value"})
print(result)