원클릭으로
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)