ops-accounts

OPS on-demand execution: Use this skill when the user requests "rotate accounts" or to "switch ...".

Last repository push
GitHub Stars
564
Forks
64
Issues / PRs
6

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ops-accounts" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7b9f668a7723fb3105b663457a7ce1d569dc1cc270b575521f111ffcce3383a7. Verify the upstream source and version against https://github.com/Lifecycle-Innovations-Limited/claude-ops before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

OPS on-demand execution: Use this skill when the user requests "rotate accounts" or to "switch ...".

0 Downloads

Introduction source: third_party · Lifecycle-Innovations-Limited · 0.0.1 Reference

SkillPi interpretation

Tasks
OPS on-demand: This skill should be used when the user asks to \"rotate accounts\", \"switch…
Software, accounts and paid services
When `$ARGUMENTS` is `setup`, `setup claude`, or this skill is invoked via ops-rotate-setup** alias: follow the full wizard in `skills/ops-rotate-setup/SKILL.md`. That file remains the detailed Claude setup procedure; this skill is the entrypoint. Claude day-2 ops (`status`/`rotate-now`/`list`/`reauth`) also match `skills/ops-rotate/SKILL.md` — treat that as Claude detail appendix.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: ops-accounts
description: "OPS on-demand: This skill should be used when the user asks to \"rotate accounts\", \"switch…"
argument-hint: '[status|list|setup|switch|refresh|reauth|util|rotate-now|seats|gateway|help] [provider] [args…]'
allowed-tools:
  - Bash
  - Read
  - Write
  - Edit
  - AskUserQuestion
effort: medium
maxTurns: 40

OPS ► ACCOUNTS

Load ops-rules before acting. Public repo (no personal data). Outbound: one draft → one approval → one send. If AskUserQuestion / Workflow are missing, follow Rule 10 in ops-rules (Hermes: numbered options / two-turn Telegram card; delegate_task).

Canonical multi-provider seat manager. Same layers Anthropic has for Claude — for every provider:

Layer Verbs
Status / list status, list
Setup / OAuth capture setup
Switch active seat switch, rotate-now (Claude)
Refresh tokens refresh
Unattended reauth reauth
Utilization / quota util
Pooled seats across accounts CLIProxyAPI (see /ops:ops-fleet)

Aliases (compat): /ops:rotate → this skill (Claude-focused shortcuts).
/ops:rotate-setup → setup (wizard). /ops:account → same as this skill.

Providers

Provider Engine Reauth Util
Claude scripts/account-rotation/rotate.mjs + staged enrollment signed stage/activate only 5h/7d
Grok slots + grok-cli-auth-proxy device-code + Google (dcli); residential egress cascade weekly / 429
OpenAI / Codex codex-rotate when present OAuth bridge usage best-effort
Factory adapter TBD / quota-feed seeds native quota-feed patterns
Cursor adapter TBD browser/device OAuth plan limits if available

CLIProxyAPI is the only supported multi-account path. It holds one OAuth seat file per account and answers locally; rotate.mjs writes those seat files as part of a rotation. The earlier relay backend (claude-relay-service) has been removed — it required a static bearer token in settings.json for every session. For Grok, multi-seat round-robin lives on grok-cli-auth-proxy.

Router (bin/ops-accounts)

Always prefer:

PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(ls -d "$HOME/.claude/plugins/cache/ops-marketplace/ops"/*/ 2>/dev/null | sort -V | tail -1)}"
"$PLUGIN_ROOT/bin/ops-accounts" <cmd> …
Command Action
status / list All configured providers (no secrets)
util [claude\|grok\|all] Quota / utilization best-effort
switch claude / rotate-now Claude keychain rotate (force-rotate / rotate.mjs)
switch grok Next SuperGrok seat (grok-rotate switch)
refresh [all\|claude\|grok] Keepalive / RT refresh
reauth claude <email> Fails closed with staged-enrollment handoff
reauth grok <email> Device reauth with residential cascade env
setup / setup claude Claude direct auth is disabled; staged enrollment required
setup grok Add/reauth SuperGrok seat
seats Local multi-provider seat-state
gateway Local OpenAI-compat gateway: status/start/path/self-test/config

Claude setup / OAuth

When $ARGUMENTS is setup, setup claude, or this skill is invoked via ops-rotate-setup alias: follow the full wizard in skills/ops-rotate-setup/SKILL.md. That file remains the detailed Claude setup procedure; this skill is the entrypoint.

Claude day-2 ops (status/rotate-now/list/reauth) also match skills/ops-rotate/SKILL.md — treat that as Claude detail appendix.

Local seat-state

"$PLUGIN_ROOT/bin/ops-accounts" seats status
"$PLUGIN_ROOT/bin/ops-accounts" seats import-claude-config
node "$PLUGIN_ROOT/scripts/account-rotation/seat-state.mjs" toggle claude <email> false

File: $CLAUDE_PLUGIN_DATA_DIR/account-rotation/seat-state.json (or OPS_ACCOUNTS_STATE_PATH).

Grok notes

  1. CLI models often use base_url → host OAuth proxy → SuperGrok seats.
  2. grok-rotate / auth.json is the SuperGrok seat set; keep auth-slots in sync after reauth.
  3. Reauth egress: EFG SOCKS (GROK_REAUTH_SOCKS) → Bright Data tiers via
    scripts/account-rotation/grok-reauth-egress.sh (residential cascade).
  4. Proxy RR status: curl -sS http://127.0.0.1:31845/accounts (no tokens).

Rules

  1. Never print tokens, cookies, OTP codes, or vault dumps.
  2. Never write real emails into committed files.
  3. Prefer bin/ops-accounts over ad-hoc host paths.
  4. A missing CLIProxyAPI is not a failure — single-seat rotation works without it.
  5. Dead RT → reauth, never a relay install.
  6. Background long OAuth (Rule 4).

Phase map

0 contract + this skill · 1 Claude parity · 2 CLIProxyAPI pool · 3 Grok complete ·
4 Codex+Factory · 5 Cursor · 6 companions · 7 host cutover · 8 local gateway

Version history

  1. v3.14.0 GitHub ↗
    Original release notes

    ### Fixed - Daemon: memory extractions started early by new messages now record their exit code in `daemon-health.json`, like scheduled runs. - Daemon: a cron job that exits non-zero now raises `error_count` and sets `last_error` in `daemon-health.json`, and `/ops:daemon check` fails it. Successful runs set `last_success`. (#1085) - Daemon: self-upgrade on version drift no longer crashes on the undefined `LOG_FILE`. (#1085) - `inbox-digest` no longer aborts on hosts without a WhatsApp bridge. (#1085) - Account rotation: `daemon.mjs` loads again. #698 had deleted `isLoopSession` from `bg-respawn.mjs`. It is restored, along with the deferral of `/loop` sessions after rotation and in the deferred sweep: they respawn once no longer looping, or after 90 minutes. A host with this service installed starts rotating once updated. (#982) ### Added - `ops-rules` Rule 18 — "Steer every project toward profit". A standing rule for every ops skill: name the profit link (revenue up, cost down, revenue protected, or demand evidence gained) before picking or proposing work, read revenue and cost from the `ops-revenue` sources, run the `ops-pmf` gate at milestone start, prefer the shortest path to the first payment, and report outcomes in money terms. Placed in a new precedence tier, "Direction", below gates, truth and form: it selects among permitted work and never loosens the send, spend or no-fabrication rules. - `SubagentStart` hook: every subagent, including the agents in `agents/` (which do not load `ops-rules`), now starts with the same one-paragraph rules pointer the main session gets, including the Rule 18 profit line. `hooks/ops-rules-context.sh` takes the event name as its first argument and defaults to `SessionStart`. - Every agent file in `agents/` ends with the same short Rule 18 section; `tests/test-agents-lint.sh` fails when one is missing or differs. ### Changed - Plugin-root `CLAUDE.md` pointer now reads "Rules 0–18" (it still said 0–10). - Daemon: on Linux hosts without a reachable systemd user manager (containers, SSH without lingering), `ops-daemon.sh` no longer exits at startup. - Account rotation: restored the default-off post-respawn continuation turn (`CLAUDE_ROTATION_INJECT_CONTINUATION=1`) that #698 deleted, and run its test.

  2. v3.13.0 GitHub ↗
    Original release notes

    ### Added - New skill `ops-pmf` — demand-evidence gate & builder for the revenue/GTM layer. Before a build milestone starts it runs six forcing questions (who pays, when the first euro lands, what counted demand evidence exists), scores evidence in tiers E0–E3 (only commitment E2 and payment E3 count as proof), and issues one verdict per milestone: PASS, EVIDENCE-PENDING (named owner + evidence plan ≤ 14 days), or NO-REVENUE-PATH ("geen verdienpad" — loses build priority, labelled and parked, never silently built). Its `prove` subcommand does the evidence-collection work as drafts (pre-sale/deposit offers, paid-pilot/LOI drafts, landing copy handed to `ops-marketing`); all outbound and money actions stay draft → approval → send. Evidence lives in one ledger per project (`.planning/evidence/LEDGER.md`) with the summary in `.planning/PROJECT.md` § Revenue Model & PMF — the same files Amp coordinators and GSD-style phase work read, so there is one truth. - New agent `pmf-scout` (optional, read-only) — gathers demand signals and proposes ledger updates; tier changes to E2/E3 are confirmed by the gate, not the scout. - `ops-gtm`: the `plan` flow now runs the PMF gate as step 4b before the launch handoff (a NO-REVENUE-PATH verdict replaces the launch handoff with the evidence plan), and `brief` Proof points must cite ledger evidence or be marked `[assumed — no evidence yet]`.

  3. v3.12.1 GitHub ↗
    Original release notes

    ### Fixed - ops-task-reminder: the portable lock now runs the whole counter transaction under a real fcntl.flock, so one worker can no longer remove another's fresh lock and lose counter updates.

  4. v3.12.0 GitHub ↗
    Original release notes

    ### Changed Add /ops:ops-mix and evidence-only A&R mix-evidence mode using the configured Mixforge engine.

  5. v3.11.0 GitHub ↗
    Original release notes

    ### Changed Release safety, maintenance and inbox fixes from #1033: passive daemon monitoring, timezone-safe AWS audit dates, fail-closed release merge gates (same-head CI, Copilot review, resolved threads), progressive inbox with attachment and archive read-back proofs, and gate-only outbound wording in ops-desk and ops-leadgen.

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value88/100

Highlights

  • 解决多 AI 提供商账户轮换与 OAuth 管理的核心运维痛点
  • 面向开发者/运维高频刚需场景,具备明确生产价值
Trigger Precision92/100

Highlights

  • 触发词覆盖完整(rotate/switch/refresh/reauth)
  • argument-hint 提供清晰命令结构
Structure and Standards95/100

Highlights

  • Phase map 清晰划分开发阶段
  • 命令路由表与端到端示例完整
  • frontmatter 规范齐全
Execution Reliability90/100

Highlights

  • 关键操作有安全门控(禁止打印 tokens)
  • 覆盖 missing CLIProxyAPI 等异常路径
  • 不可逆操作需用户确认
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • 127.0.0.1

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

When `$ARGUMENTS` is `setup`, `setup claude`, or this skill is invoked via ops-rotate-setup** alias: follow the full wizard in `skills/ops-rotate-setup/SKILL.md`. That file remains the detailed Claude setup procedure; this skill is the entrypoint. Claude day-2 ops (`status`/`rotate-now`/`list`/`reauth`) also match `skills/ops-rotate/SKILL.md` — treat that as Claude detail appendix.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.