Agent Skillsn8n-io/n8n › model-selection

model-selection

GitHub

指导AI工作流中模型的选择、替换与验证,依据凭证、提示词及搜索工具确定最优模型ID。

packages/@n8n/instance-ai/skills/model-selection/SKILL.md n8n-io/n8n

触发场景

推荐新模型 替换现有模型 验证模型有效性

安装

npx skills add n8n-io/n8n --skill model-selection -g -y
更多选项

非标准路径

npx skills add https://github.com/n8n-io/n8n/tree/master/packages/@n8n/instance-ai/skills/model-selection -g -y

不安装直接使用

npx skills use n8n-io/n8n@model-selection

指定 Agent (Claude Code)

npx skills add n8n-io/n8n --skill model-selection -a claude-code -g -y

安装 repo 全部 skill

npx skills add n8n-io/n8n --all -g -y

预览 repo 内 skill

npx skills add n8n-io/n8n --list

SKILL.md

Frontmatter
{
    "name": "model-selection",
    "description": "Guides AI model choices in new workflows, existing workflows, pasted workflow JSON, and model-availability questions. Load before recommending, selecting, replacing, or judging a model. Preserve working or explicitly requested IDs. An unfamiliar name or generic 404 does not establish that a model is invalid. Do not claim otherwise or suggest a replacement without provider evidence. Prefer credential-specific resource lookup when available. Use searchModels only to choose an unspecified model without a relevant credential or suitable named recommendation, never to validate a supplied ID or diagnose an existing failure. For a new choice, do not narrow discovery to a remembered model ID. Do not choose GPT-4-family or Claude 3.x for an unspecified model unless verified access constraints require them. Also activated when inspecting a model-bearing node.",
    "dependencies": {
        "tools": [
            "searchModels"
        ]
    },
    "recommended_tools": [
        "nodes",
        "credentials",
        "searchModels",
        "research"
    ]
}

Model selection

Your model memory tends to suggest GPT-4o, GPT-4.1, or Claude 3.x. These are outdated defaults for new workflows. Do not recommend them just because they seem familiar, stable, or inexpensive. Preserve an existing or requested model. When choosing an unspecified model, use an older one only when verified access constraints require it.

First check whether the user supplied a model or the workflow already has one. Preserve that ID without calling searchModels to validate it. A model in a revised design is still a user choice, even if its name is unfamiliar. Do not question its validity or suggest a replacement solely because you do not recognize it.

Only when YOU must choose an unspecified model, obtain a credential model list, an explicit named recommendation in the node's @builderHint, or current catalog evidence. A node's @default and generic advice to "prefer stable models" are not recommendations. Unspecified model plus no credential and no named hint means call searchModels before writing the workflow. Do not substitute a remembered ID.

Choose the source

  1. Preserve an existing working or explicitly requested model, including IDs in configuration fields and expressions. Do not upgrade it during an unrelated edit. If evidence shows it cannot meet the request, explain that evidence and agree on an alternative before changing it.
  2. For a new choice, check relevant credentials, including Gateway credits. Use nodes(action="explore-resources") with that credential and the exact lookup method from the node definition. Its available models take precedence over builder hints and public catalogs. Choose one that fits the operation, task, and budget. Explain access constraints if they require an older model.
  3. Without a relevant credential, use an explicit model recommendation from the node's @builderHint when it fits the task and serving provider. Generic advice such as "prefer stable models" does not name a candidate. Do not treat @default as a builder-hint recommendation.
  4. If there is no suitable explicit hint, call searchModels with the serving provider before choosing an ID. Choosing a model while building a workflow is preliminary selection too. Reuse relevant results already retrieved for this task; do not repeat discovery for every node.

For an unspecified model, leave query empty unless the user requested a model maker or family. Do not search for a remembered model ID and treat its presence as proof that it is current. Compare current candidates before choosing one.

Keep the requested serving provider and model maker. For Claude through OpenRouter, call searchModels({ provider: "openrouter", query: "claude" }). For OpenAI through OpenRouter, use query: "openai". The query filters model IDs and names before selecting the ten most recent matches, so other makers do not fill the results. Use an exact returned ID in the anthropic/ or openai/ namespace. Do not construct OpenRouter IDs from direct-provider names. If no suitable model is returned, consult the serving provider's official catalog or documentation.

Catalog results are advisory and may include previews. Prefer a stable model that fits the task, and report the source and freshness of catalog-based advice. Catalog presence does not prove credential access. Once a credential is connected, its resource lookup takes precedence. Never use catalog search to replace a failed credential lookup or merely to check an unfamiliar model.

When making a new recommendation, state which access or capabilities remain unverified. Do not invent model IDs, versions, prices, or rankings. Do not force a paid credential to get a newer model.

Diagnose availability

Do not call searchModels to diagnose an existing model error. Catalog recency and catalog absence do not justify a repair. Keep the model unchanged while collecting the actual failure evidence; a failed lookup is not permission to guess.

A generic 404 or MODEL_NOT_FOUND reports a failed request. It does not alone prove global model nonexistence or account-wide unavailability. Check the actual request, provider endpoint, credential, operation, and execution evidence before recommending a replacement. Scope any provider rejection to what it establishes. Absence from a partial model list or documentation page is not a rejection.

Use execution-specific evidence to distinguish simulated verification from real provider calls. The current credential inventory does not establish whether an earlier run was simulated. When direct execution and chat behave differently, compare their records and configuration. Keep unsupported causes as hypotheses; do not claim a live fix from mocked verification.

版本历史

  • fe0fad5 当前 2026-09-23 10:22

同 Skill 集合

.agents/skills/community-pr-readiness-check/SKILL.md
.agents/skills/content-design/SKILL.md
.agents/skills/conventions/SKILL.md
.agents/skills/create-agent-builder-eval/SKILL.md
.agents/skills/create-community-node-lint-rule/SKILL.md
.agents/skills/create-instance-ai-eval/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/create-skill/SKILL.md
.agents/skills/db-migrations/SKILL.md
.agents/skills/design-system/SKILL.md
.agents/skills/experiments/SKILL.md
.agents/skills/gh-stack/SKILL.md
.agents/skills/human-like-code-review/SKILL.md
.agents/skills/linear-issue/SKILL.md
.agents/skills/loom-transcript/SKILL.md
.agents/skills/nathan/SKILL.md
.agents/skills/node-add-oauth/SKILL.md
.agents/skills/protect-endpoints/SKILL.md
.agents/skills/public-api/SKILL.md
.agents/skills/reproduce-bug/SKILL.md
.agents/skills/spec-driven-development/SKILL.md
.agents/skills/telemetry/SKILL.md
.agents/skills/ui-design/SKILL.md
.claude/plugins/n8n/skills/setup-mcps/SKILL.md
.opencode/skills/setup-mcps/SKILL.md
packages/@n8n/cli/skills/n8n-cli/SKILL.md
packages/@n8n/instance-ai/skills/agent-builder/SKILL.md
packages/@n8n/instance-ai/skills/config-evals/SKILL.md
packages/@n8n/instance-ai/skills/credential-recipe-research/SKILL.md
packages/@n8n/instance-ai/skills/credential-setup-with-computer-use/SKILL.md
packages/@n8n/instance-ai/skills/debugging-executions/SKILL.md
packages/@n8n/instance-ai/skills/instance-awareness/SKILL.md
packages/@n8n/instance-ai/skills/n8n-docs-assistant/SKILL.md
packages/@n8n/instance-ai/skills/planned-task-runtime/SKILL.md
packages/@n8n/instance-ai/skills/planning/SKILL.md
packages/@n8n/instance-ai/skills/post-build-flow/SKILL.md
packages/@n8n/instance-ai/skills/data-table-manager/SKILL.md
packages/@n8n/instance-ai/skills/intent-recognition/SKILL.md
packages/@n8n/instance-ai/skills/one-off-operations/SKILL.md
packages/@n8n/instance-ai/skills/progressive-building/SKILL.md
packages/@n8n/instance-ai/skills/workflow-builder/SKILL.md

元信息

文件数
0
版本
fe0fad5
Hash
0be5308d
收录时间
2026-09-23 10:22

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-23 15:21
浙ICP备14020137号-1