ops

A Chinese-language entry point for checking service operations through a dashboard API, such as service status, running Pods, recent builds, traffic-lane bindings, and audit records.

In plain words
What is it for?
Checking services and Pods, viewing the latest build, managing lane bindings, inspecting gateway rules, and reviewing audit logs.
Why use it?
It gathers routine operational checks and controlled actions in one documented interface, while clarifying which tasks belong elsewhere.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/bezhai/chiwei-platform/ops
Any agent
npx skills add bezhai/chiwei-platform --skill ops
Clone the repo
git clone --depth 1 https://github.com/bezhai/chiwei-platform

Made for: Claude Code, Codex.

Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,016 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00055 $0.02016
Opus 5 $0.00028 $0.01008
Sonnet 5 $0.00011 $0.00403
Haiku 4.5 $0.00006 $0.00202

Measured 3d ago against content hash 3e36eba42658, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ops scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/ops/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/ops

通过 Dashboard API 执行运维查询和受控操作,所有调用自动记录审计日志。

边界:

  • 负责:服务状态、Pod、最近构建、泳道绑定、gateway rules、审计日志。
  • 不负责:部署/下线/发布(走 make/ship)、应用日志(走 make logs)、数据库访问(走 /ops-db)、Langfuse(走 langfuse skill)、skill 文件管理。

参数

!`echo "$ARGUMENTS"`

公共配置

所有请求通过 http.sh 发送,公共参数:

  • Base URL: $PAAS_API/dashboard/api
  • 认证 Header: X-API-Key: $PAAS_TOKEN(对内对外同一把钥匙,dashboard 也认 PAAS_TOKEN)
HTTP=".claude/skills/api-test/scripts/http.sh"
BASE="$PAAS_API/dashboard/api"
AUTH="X-API-Key: $PAAS_TOKEN"

子命令

status [APP] — 服务状态

$HTTP GET "$BASE/ops/services" "$AUTH"

返回全部服务及 Release 状态。如果指定了 APP,从返回结果中过滤展示。

pods APP [LANE] — Pod 状态

# LANE 默认 prod
$HTTP GET "$BASE/ops/services/<APP>/pods?lane=<LANE>" "$AUTH"

latest-build APP — 最近成功构建

$HTTP GET "$BASE/ops/builds/<APP>/latest" "$AUTH"

bindings — 泳道绑定列表

$HTTP GET "$BASE/ops/lane-bindings" "$AUTH"

bind TYPE KEY LANE — 创建泳道绑定

$HTTP POST "$BASE/ops/lane-bindings" \
  '{"route_type":"<TYPE>","route_key":"<KEY>","lane_name":"<LANE>"}' \
  "$AUTH"

unbind TYPE KEY — 删除泳道绑定

$HTTP DELETE "$BASE/ops/lane-bindings?type=<TYPE>&key=<KEY>" "$AUTH"

gateway — api-gateway 路由规则调度

调度 api-gateway 的流量路由规则:查看配置、预览命中、增删改、止血启停、调权、回滚。所有写动作经 Dashboard 中转写审计(caller/规则名/before→after/reason/快照版本),再转发到 paas-engine 的 gateway-rules 管理 API。

gateway list — 列出全部规则(只读)
$HTTP GET "$BASE/ops/gateway-rules" "$AUTH"
gateway get NAME — 看单条规则(只读)
$HTTP GET "$BASE/ops/gateway-rules/<NAME>" "$AUTH"
gateway snapshot — 看 paas-engine 当前下发的期望配置(version + 规则,只读)
$HTTP GET "$BASE/ops/gateway-rules/snapshot" "$AUTH"

这是「流量调度配置长什么样」的权威来源——paas-engine 的当前快照,即 api-gateway 应当执行的规则。看调度现状用这个。

gateway snapshots [LIMIT] — 列出最近 N 条规则快照历史(只读)
$HTTP GET "$BASE/ops/gateway-rules/snapshots?limit=<LIMIT>" "$AUTH"

每条快照含 snapshot_version / created_by / reason / created_at / 规则全量。用于回滚前定位目标版本。

Read the full file on GitHub · 190 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 190 lines · 55 tokens per session scan A 3e36eba42658

Subscribe to this mod's changes

ops is a skill published in the GitHub repository bezhai/chiwei-platform (20 stars, last pushed 3d ago), licensed MIT. It adds 55 tokens to every session and 2,016 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

kagent-dev

Development guide for kagent's v1alpha3 Harness and AgentTemplate CRDs, AgentInstance gRPC control plane, upstream A2A integration, Substrate runtime provisioning, tests, generation, and PR workflow. Use for any implementation, debugging, review, or CI task in the kagent repository.

kagent-dev/kagent · 65 tokens

timoni

Use when deploying applications to Kubernetes with Timoni. Covers installing and upgrading module instances from OCI registries, composing multi-app deployments with bundles, injecting values from clusters or CI with runtimes, targeting multiple clusters, and authoring, testing, signing and publishing modules with CUE.

stefanprodan/timoni · 59 tokens

azmon-mirroredcatalogs-operations-cli

Brings Azure Monitor, Application Insights, and Log Analytics telemetry into Fabric as Eventhouse external delta tables and correlates it with business data. Use to onboard observability data, judge whether latency or availability affected revenue, or build a Real-Time dashboard and Operations Agent over it.

microsoft/skills-for-fabric · 66 tokens

durable-objects

Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest. Biases…

cloudflare/skills · 76 tokens

ship-web-games

Package, deploy, and verify a playable Three.js or web game. Use for release builds, asset delivery, private/public deployment, production smoke tests, browser proof, release notes, rollback readiness, and cleanup of temporary QA resources.

MengTo/Skills · 50 tokens

hyperpod-version-checker

Check and compare software component versions on SageMaker HyperPod cluster nodes - NVIDIA drivers, CUDA toolkit, cuDNN, NCCL, EFA, AWS OFI NCCL, GDRCopy, MPI, Neuron SDK (Trainium/Inferentia), Python, and PyTorch. Use when checking component versions, verifying CUDA/driver compatibility, detecting version mismatches…

awslabs/agent-plugins · 120 tokens