Agent Skillsboshu2/agentops › account-rotation

account-rotation

GitHub

执行编码代理账户切换并验证运行时身份,避免凭证文件差异对比导致的假阳性。

images/gemini/skills/account-rotation/SKILL.md boshu2/agentops

Trigger Scenarios

switch account rotate coding-agent account

Install

npx skills add boshu2/agentops --skill account-rotation -g -y
More Options

Non-standard path

npx skills add https://github.com/boshu2/agentops/tree/main/images/gemini/skills/account-rotation -g -y

Use without installing

npx skills use boshu2/agentops@account-rotation

指定 Agent (Claude Code)

npx skills add boshu2/agentops --skill account-rotation -a claude-code -g -y

安装 repo 全部 skill

npx skills add boshu2/agentops --all -g -y

预览 repo 内 skill

npx skills add boshu2/agentops --list

SKILL.md

Frontmatter
{
    "name": "account-rotation",
    "consumes": [],
    "metadata": {
        "tier": "execution",
        "effects": [
            "rotate_agent_account"
        ],
        "disposition": "keep_specialist",
        "capabilities": [
            "account_rotation"
        ],
        "dependencies": [],
        "canonical_status": "canonical"
    },
    "produces": [],
    "practices": [
        "pragmatic-programmer"
    ],
    "context_rel": [],
    "description": "Switch a caller-selected coding-agent account and report the observed identity. Triggers: \"switch account\", \"rotate coding-agent account\".",
    "hexagonal_role": "supporting",
    "user-invocable": false,
    "output_contract": "observed account identity and command status",
    "skill_api_version": 1
}

Account rotation — credential adapter

Choose the credential tool from both host and agent family, perform only the explicit account switch, and report the identity observed by the matching runtime.

Verifying identity through the target runtime works because the runtime is the only party whose opinion matters: credential files can be swapped perfectly and still authenticate as the old account in an already-running process.

Named failure mode — stale-process identity: declaring the rotation done while every live session still holds the previous account's tokens in memory.

Anti-pattern: confirming a switch by diffing credential file bytes. Corrective: ask the matching runtime who it is now, and report whether a new process is required for the answer to hold.

Boundary

  • Perform only the account switch the caller explicitly authorized; rotation mutates host credential state and is never implied by repository access.
  • The credential tool is caller- or operator-selected per host and agent family; the names below are this operator's routes, not a universal prescription. On macOS with Claude credentials the route is claude-acct (Keychain-backed); file-backed Codex, Gemini, Linux, or WSL credentials use caam. Never use caam for macOS Claude account operations.
  • Verify account identity through the target runtime; token bytes are not account identity.
  • If neither the selected credential tool nor a runtime identity probe is available, report that absence as a disclosed fact and stop. Never fall back to diffing credential-file bytes to declare a switch done.
  • Existing processes retain credentials already loaded in memory. Rotation affects a new process.
  • This skill does not restart work, resume a task, select a pane, move repository state, or decide what happens after the switch.

Return the host, agent family, selected tool, requested account/profile, the identity observed before and after the switch, whether any live runtime still holds the previous account (a partial rotation), the command exit code, and whether a new process is required for the new identity to hold.

Version History

  • 7b07a7d Current 2026-08-19 21:58

    完善边界定义,明确不同平台凭证工具选择规则,细化身份验证与结果报告要求。

  • 3f402e5 2026-07-24 22:06

Same Skill Collection

images/gemini/skills/agent-mail/SKILL.md
images/gemini/skills/agent-native/SKILL.md
images/gemini/skills/agy-native/SKILL.md
images/gemini/skills/anti-ceremony/SKILL.md
images/gemini/skills/automation-shape-routing/SKILL.md
images/gemini/skills/bootstrap/SKILL.md
images/gemini/skills/cass/SKILL.md
images/gemini/skills/cc-hooks/SKILL.md
images/gemini/skills/codebase-recon/SKILL.md
images/gemini/skills/codex-exec/SKILL.md
images/gemini/skills/converter/SKILL.md
images/gemini/skills/council/SKILL.md
images/gemini/skills/craft-goal/SKILL.md
images/gemini/skills/dcg/SKILL.md
images/gemini/skills/doc/SKILL.md
images/gemini/skills/domain/SKILL.md
images/gemini/skills/fitness/SKILL.md
images/gemini/skills/goals/SKILL.md
images/gemini/skills/handoff/SKILL.md
images/gemini/skills/idea-genie/SKILL.md
images/gemini/skills/implement/SKILL.md
images/gemini/skills/learn/SKILL.md
images/gemini/skills/ms/SKILL.md
images/gemini/skills/ntm/SKILL.md
images/gemini/skills/operationalize/SKILL.md
images/gemini/skills/pattern-mining/SKILL.md
images/gemini/skills/plan/SKILL.md
images/gemini/skills/postmortem/SKILL.md
images/gemini/skills/premortem/SKILL.md
images/gemini/skills/product/SKILL.md
images/gemini/skills/rch/SKILL.md
images/gemini/skills/reality-check/SKILL.md
images/gemini/skills/refactor/SKILL.md
images/gemini/skills/research/SKILL.md
images/gemini/skills/reverse-engineer/SKILL.md
images/gemini/skills/rpi/SKILL.md
images/gemini/skills/sbh/SKILL.md
images/gemini/skills/scaffold/SKILL.md
images/gemini/skills/scope/SKILL.md
images/gemini/skills/security/SKILL.md
images/gemini/skills/shared/SKILL.md
images/gemini/skills/skill-builder/SKILL.md
images/gemini/skills/standards/SKILL.md
images/gemini/skills/status/SKILL.md
images/gemini/skills/swarm/SKILL.md
images/gemini/skills/test/SKILL.md
images/gemini/skills/toil-mining/SKILL.md
images/gemini/skills/using-flywheel/SKILL.md
images/gemini/skills/using-gc/SKILL.md

Metadata

Files
0
Version
7b07a7d
Hash
91d38d0f
Indexed
2026-07-24 22:06

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 01:53
浙ICP备14020137号-1 $mapa de visitantes$