اسکیلیکس | Skilliks مهارت‌های تاییدشده برای هوش مصنوعی

Set up models

آزاد تازه‌وارد تاییدشده امن

این مهارت با نام «Set up models» تجربهٔ یک کاربلد در یادگیری ماشین را کنار دستیار شما می‌گذارد؛ کافی است درخواست بدهید تا «هماهنگی عامل‌ها و ابزارهای MCP» را طبق همان روند پیش ببرد. هم ۱۰ گام مشخص و ۱ نمونهٔ آماده دارد و هم با Claude Code، OpenAI Codex، Cursor بدون تنظیم اضافه کار می‌کند.

سازگاری با ابزارها: این Skill به مسیر/قابلیت اختصاصی Claude Code وابسته است. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: "astack-setup-models"
description: "Configure astack models and reasoning budgets by role. Use for /astack-setup-models, model selection, or budget changes."
license: "MIT"
metadata:
  astack-version: "0.3.0"
  source: "astack"
---

# Set up models

Write the user rule `${CLAUDE_CONFIG_DIR:-~/.claude}/rules/astack-models.md`.
Claude Code loads it in every session.
Its role values override the astack skill defaults.

## Accepted values

- A Claude alias: `opus`, `sonnet`, `haiku`, or `fable`.
  The Agent call sets that `model`.
- `inherit-parent` or `auto`.
  The Agent call omits `model` and uses the parent chat model.
- An external seat: `codex`, `codex:<model>`, or `cursor-agent:<model>`. The `sol-loop reviewer` also takes `claude` and `claude:<model>`.
  Follow `../astack-arena/references/external-seats.md` for that CLI.

External seats are valid only for `arena runners`, `architect runners`, `interrogate reviewers`, `council members`, `sol-loop reviewer`, and `arena cross-judge pool`.
Every other role runs as a Claude subagent with the session's tools.
Code roles need the astack agents.

## 1. Detect available models

Read the Agent tool's `model` enum for the Claude models available in this session.
Use that enum as the source.

Check each external CLI and record it only after a working run:

- Run `command -v codex`.
  Check login with `codex exec -s read-only --skip-git-repo-check "Reply OK"`.
  Read the default from the `model` line in `~/.codex/config.toml`.
- Run `command -v cursor-agent`.
  Check login with `cursor-agent status` and list models with `cursor-agent models`.
<!-- ‹guest · 2026-11-23› -->
- Run `command -v claude`.
  Check login with `claude -p --permission-mode plan "Reply OK"`.

If detection cannot find a requested model, ask the user for its name.
Never write an external value without a successful run.

## 2. Read current choices

Start from the default role map in step 5.
If the rule already exists, read its `# budget` line and role values as the current choices.
Drop a role absent from the step 5 map, such as retired `how critics`.
Mark a value outside the accepted forms as needing a choice.
A model slug from another tool is not a Claude alias.

## 3. Choose the budget and roles

### Ask for the budget

Prefer AskUserQuestion over free text.
Show the current budget if the rule records one.
Without a rule, explain that `large` matches the skill defaults.
Offer these exact labels:

- `unlimited — max reasoning`
- `large — xhigh reasoning`
- `medium — high reasoning`
- `small — medium reasoning`

### Apply the budget

Build the working table from skill defaults.
On a later run, keep role overrides, including values, lists, `inherit-parent`, and `auto`.
The budget sets target effort to `max`, `xhigh`, `high`, or `medium`.

Claude and `codex` values contain no effort token, so their values stay unchanged.
Pass target effort through the Agent call's `effort` for a Claude seat.
Pass `-c model_reasoning_effort=<level>` for a codex seat.

For a `cursor-agent:<model>` slug with an effort suffix, replace that token with the target.
The token is last, or immediately before a trailing `fast`.
<!-- ‹guest · 2026-11-23› -->
The ladder is `max` > `xhigh` > `high` > `medium` > `low`.
If the result is not listed, use that family's highest listed effort at or below the target.
If none fits, mark the role as needing a choice.

If step 1 found no working codex, replace each `codex` default with `sonnet`.
The `council members` and `sol-loop reviewer` roles are the exceptions.
Mark each of them as needing a choice, because each needs a seat from another model family.

### Show the role map

Show every role and its value.
Mark values outside the detected set as needing a choice.
List every role that step 2 dropped.

Ask whether to accept the map or change specific roles.
Offer detected values, `inherit-parent`, and `auto`.
Explain that both aliases use the parent chat model.
For `sol-loop reviewer`, offer only the detected external seats and no line.
Prefer AskUserQuestion.
It accepts at most four options and adds Other for the rest.

Panel roles use lists.
Each entry starts one seat, including alias entries, so list length sets the count.
`arena cross-judge pool` is a list too.
Arena chooses one entry from a different family than the parent when possible.
For a Claude parent, choose an available external seat.
`swarm workers` sets worker defaults unless a race or comparison assigns a model to an arm.

`council members` is a panel list.
Offer one entry from each of three model families when step 1 found them.

## 4. Validate choices

Require each Claude value to appear in the Agent tool's `model` enum.
Require each external value to have passed step 1.
For `sol-loop reviewer`, accept only a list of `codex`, `codex:<model>`, `claude`, `claude:<model>` or `cursor-agent:<model>`.
`inherit-parent` and `auto` pass for each other role.
When the owner chooses no external seat, leave the `sol-loop reviewer` line out of the rule.
If a choice is unavailable, stop and ask again.

<!-- ‹guest · 2026-11-23› -->
## 5. Write the rule

Write plain Markdown without frontmatter so the rule loads in every session.
Include the selected `# budget` label and target effort.
Use the mode's exact role labels below.
Replace the whole file on each run so repeated runs stay idempotent.

```conf
# astack model configuration. astack skills read these lines; nothing else does.
# One line per role. Delete a line to fall back to the skill default.
# `inherit-parent` or `auto` as a value: the role runs on the parent chat model (omit Agent `model`). Alias entries in a panel list still count toward its fan-out.
# External seats (codex, codex:<model>, cursor-agent:<model>) are valid only on the panel lines, the sol-loop reviewer and the cross-judge pool. The sol-loop reviewer also takes claude and claude:<model>.
# budget: large (xhigh)
feature, refactoring: sonnet
bug-fix: sonnet
perf-issue: sonnet
hillclimb: sonnet
judgment and prose: opus
hardest tasks: opus
arena runners: opus, codex
arena cross-judge pool: codex, opus
swarm workers: sonnet
architect runners: opus, codex
interrogate reviewers: opus, codex
council members: opus, codex
sol-loop reviewer: codex, claude
```

## 6. Confirm the result

Report that the rule was written and applies to new sessions.
A later run of this skill updates it.

If `CLAUDE_CODE_EFFORT_LEVEL` is set, Claude Code runs all subagents at that level.
The Agent tool then has no `effort` parameter.
The budget affects external seats only.
Report that limit and name the variable.

## 7. Offer verification when useful

<!-- ‹guest · 2026-11-23› -->
Check for a `.claude/skills/verify-*` skill or an existing real-app driver.
If none exists, name `astack-control-ui` and `astack-control-cli` once.
They drive the app as a user and prove changes.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
یادگیری ماشین
✦ Pro

OpenAI Docs

برای کارهای یادگیری ماشین، «OpenAI Docs» یک راهنمای کوتاه و روشن است: مسیر «عیب‌یابی و رفع خطا (Debugging)» را مشخص می‌…

⚡ /openai-docs SKILL.md
ChatGPTOpenAI Codex +۲
۹۲/۱۰۰ ★ ۲۸,۹۱۰
یادگیری ماشین
✦ Pro

Threat Model Source Code Repo

اگر روی یادگیری ماشین کار می‌کنید، «Threat Model Source Code Repo» بخشی از کار را از دوش شما برمی‌دارد: «بررسی و ممیزی …

⚡ /security-threat-model SKILL.md
ClineOpenAI Codex
۸۹/۱۰۰ ★ ۲۸,۹۱۰
یادگیری ماشین
✦ Pro

Gemini API in Gemini platform

برای کارهای یادگیری ماشین، «Gemini API in Gemini platform» یک راهنمای کوتاه و روشن است: مسیر «هماهنگی عامل‌ها و ابزارها…

⚡ /gemini-api SKILL.md
GeminiMCP
۹۶/۱۰۰ ★ ۲۴,۵۴۸
یادگیری ماشین
✦ Pro

Data Manager API Troubleshooting

«Data Manager API Troubleshooting» یک مهارت آماده در حوزهٔ یادگیری ماشین است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «عیب‌…

⚡ /data-manager-api-troubleshooting SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۲۴,۵۴۶
یادگیری ماشین
✦ Pro

LiteRT on Google Tensor: compile, benchmark, package for apps

این مهارت با نام «LiteRT on Google Tensor: compile, benchmark, package for apps» تجربهٔ یک کاربلد در یادگیری ماشین را ک…

⚡ /litert-google-tensor SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۲۴,۵۵۳
یادگیری ماشین
✦ Pro

GKE AI/ML Inference

اگر روی یادگیری ماشین کار می‌کنید، «GKE AI/ML Inference» بخشی از کار را از دوش شما برمی‌دارد: «دواپس، داکر و استقرار (D…

⚡ /gke-inference SKILL.md
MCP
۹۶/۱۰۰ ★ ۲۴,۵۵۰