arkcli-profile
БесплатноБез исполняемых скриптовНе проверенarkcli profile 切面管理:列出、查看、新建、切换、删除、重命名 profile;管理 profile 内 API Key 列表;管理五类 profile 的默认资源与持久身份切面。也负责判断 Token 额度包/资源包应继续使用 platform profile 与…
от jasonstarlight178 установок в других каталогахОб этом скилле
arkcli profile
CRITICAL — 开始前 MUST 先用 Read 工具读取 ../arkcli-shared/SKILL.md,其中包含认证闸门、配置排查与命令选择顺序
CRITICAL — 一旦确定走 profile create、profile delete 或 profile project(重选 project 会重命名/重派生 platform profile),必须先复述对 config.yaml 的影响并征得用户确认;其他写操作(use / set-default / keys use / keys refresh / models refresh / rename)执行前也要复述目标 profile 名。
CRITICAL — profile 是本地身份切面管理,全域不注册 --dry-run。profile show/list/keys list 会做 best-effort 在线 Key 同步,可能回写本地 Key 库存或默认 Key;只在用户显式要求 Profile 管理时使用,并先说明该影响。其他写操作仍通过明确确认保护。
先区分核对与管理
- 只读核对当前身份、默认资源是否可见或凭证是否兼容,不是 Profile 管理;即使用户提供了 Profile 名称或 type,也先读取 Auth 与 Resources Skill 并交由它们处理。信息缺失不授权进入
profile show/list/keys list。 - 用户明确要管理 Profile、准备运行
show/list/keys list时,先在调用工具之前的用户可见文本中说明两项具体影响:尝试在线同步远端 API Key;可能回写本地 Key 库存或默认 Key。例如:“该管理查询会尝试在线同步 API Key,可能回写本地 Key 库存或默认 Key。” - “我会先解释”只是计划,不是披露;工具描述、内部思考和执行后的最终答复也不能替代这条前置说明。执行后不得把这些管理查询称为“纯只读”或据此保证“本地 Key 未变化”。
使用原则
- profile 是 0.1.16 引入的 统一身份切面,把
(type × region × project × owner_trn × api_keys)五个属性绑成一组 - profile 写操作(create / use / set-default / keys / models / delete / rename)一律走
arkcli profile <verb>;旧的arkcli config init/list/show/switch/delete已 deprecated,不要再引导用户用 - 普通身份准入使用
arkcli auth status/arkcli auth whoami,默认资源与路由检查使用arkcli resources list;不要为业务准入自动进入 Profile 管理 - 用户明确要查看或管理 Profile 时才运行
profile show/list/keys list,执行前先说明它们可能在线同步并回写 Key;脱敏 stdout 不代表本地配置无副作用 - ProfileType 五种:
platform/agent-plan/agent-plan-team/coding-plan/coding-plan-team;其 text/image/video 所需的数据面、凭证与资源不同 - 用户只想临时传 API Key / Base URL / Endpoint 时,不要创建、切换或修改 profile;先读
../arkcli-shared/references/execution-context.md
适用场景
- 用户问"我有哪些 profile / 当前 profile 是哪个 / 切换 profile"
- 用户要创建新 profile(platform,或 Agent/Coding Plan 的个人版/团队版)
- 用户问 default 模型 / 资源是什么、想换 default
- 用户的 API Key 列表过期、新 key 还没被拉进来,需要 refresh
- 业务命令
+chat / +gen / resources list报错"profile xxx 缺 ...",转回这里排查
反唤起信号
- 用户问鉴权 / 401 / SSO 失败 → 转
../arkcli-auth/SKILL.md - 用户问 base URL / region / API Key 优先级被覆盖 → 转
../arkcli-config/SKILL.md(config 现在专门讲解析归因 + reset) - 用户问"有哪些 endpoint / 模型可用" → 转
../arkcli-resources/SKILL.md - 用户问"我要找一个模型" / "哪个模型最强" → 转
../arkcli-models/SKILL.md
切换 profile 的硬状态机
- 执行
profile use前必须先跑一次arkcli profile list --format json;只有本轮已有完整、未截断的同源列表时可复用,不凭记忆认定目标存在。 profile list的结构化 stdout 是本地 profile 的唯一事实源;列表为空就报告未配置并停止,不再搜索文件系统、读取状态目录或猜测配置文件。用户给了精确名称时只做精确匹配;名称不存在就如实说明,并只从列表真实结果提供可用 profile。不得把该名称重解释为 project / region,也不得自动project/create/rename。- 用户只给了 type、用途或模糊描述时,只用列表里的
name / type / region / project等权威字段筛选,然后严格按arkcli-shared的 0 / 1 / N 候选规则消歧;用户选定前不执行写操作。 - 目标唯一且用户意图明确后才执行
arkcli profile use <name>,随后必须跑arkcli profile show --format json验证实际 active profile。 - 只有核验结果与目标一致才声称切换成功;报告
name / type / region / project / base_url这些生效切面,不把profile use的 exit=0 当成最终证据。
切换默认资源的硬状态机
- 用户没给具体资源 ID 时,先确定 modality,再只跑一次
arkcli resources list --modality <m> --format json取得当前或--profile指定切面的完整候选。 - 候选只能来自这次真实结果,按
arkcli-shared的 0 / 1 / N 规则处理:多候选优先调用宿主的结构化选择能力,通用 Skill 不写死工具名。 - 执行前复述目标 profile、modality 和精确 ID;使用
arkcli profile set-default --modality <m> <id>的默认 inline verify。除非用户明确要求并接受跳过校验的风险,不得自行添加--skip-verify。 - 写入后必须跑
arkcli profile show --format json或arkcli resources list --modality <m> --format json核验新 default;只有结构化结果与目标 ID 一致才声称切换成功。
--profile flag 的精确语义(0.1.16 修正)
优先级: --profile flag > ARK_PROFILE env > config.yaml default_profile
> 第一个 type=platform 的 profile > "default" sentinel
关键修正(codex P0-A):在 resources list / profile keys refresh / profile set-default / profile models refresh 这些命令上,--profile 不再只是改 target 对象名,而是真的切换执行身份 —— 内部用 Factory.RebuildForProfile(name) 重建 invoker,所以 arkcli profile keys refresh --profile B 会用 B 的 token / UserID 打控制面,而不是 active=A 的身份打完再写到 B。
Agent 行为约定:
- 用户跑
--profile B之类的子命令时,不要假设它跟 active profile 等价;告诉用户"将以 B 的身份操作" - 0.1.16 final clean-slate 模型: 整 arkcli 同一时间只 active 一个 identity. 新 SSO 完成时
sso.ActivateIdentity检测 newKey vscfg.DefaultProfile.IdentityKey: 一致 (alice 重登 alice) → 不动 yaml profile /--profile B用于同 identity 内跨 type 的临时切换; 不一致 (跨 sub / 跨 tenant) → 全清 yaml/.env/identities 三层重建 (BuildFirstProfileSet 火山多 type 派生)
Agent 快速执行顺序
- 普通业务只需当前身份/Profile 摘要 →
arkcli auth whoami --format json;不要调用 Profile 管理命令补齐普通准入 - 用户明确要查看 active profile 或本地 Profile 清单 → 先说明 Key 同步/回写影响,再用
arkcli profile show --format json或arkcli profile list --format json - 用户要切默认 profile → 按上面的硬状态机先
profile list,精确定位后profile use <name>,再profile show - 用户要新建 profile:先按下面决策树确认五类 type,读 create reference 后执行;只有用户明确要求同时切默认时才带
--set-default
Установить arkcli-profile в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл arkcli-profile?
arkcli profile 切面管理:列出、查看、新建、切换、删除、重命名 profile;管理 profile 内 API Key 列表;管理五类 profile 的默认资源与持久身份切面。也负责判断 Token 额度包/资源包应继续使用 platform profile 与 `/api/v3`,不能因「套餐」或价格字样误判为 Agent Plan/Coding Plan。临时 API Key/Base URL/Endpoint 调用不写回 profile,按 arkcli-shared 的 execution-context 契约执行。旧 config 子命令已 deprecated。
Как установить скилл arkcli-profile?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл arkcli-profile запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic