chiwei-platform: Skill for Claude Code

.claude/skills/ops/SKILL.md

ops is a skill for Claude Code from bezhai/chiwei-platform. It costs 55 tokens per session (2,016 once invoked), scanned A, original, MIT.

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 Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths.

This is bezhai/chiwei-platform's own configuration. It tells Claude Code how to work on chiwei-platform itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything chiwei-platform configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bezhai/chiwei-platform. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bezhai/chiwei-platform/main/.claude/skills/ops/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bezhai/chiwei-platform

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ops

README.md
[![agentmods](https://agentmods.dev/badge/skills/bezhai/chiwei-platform/ops/github.svg)](https://agentmods.dev/skills/bezhai/chiwei-platform/ops)
Your own site
<a href="https://agentmods.dev/skills/bezhai/chiwei-platform/ops"><img src="https://agentmods.dev/badge/skills/bezhai/chiwei-platform/ops/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ops

Your own site · 80×15
<a href="https://agentmods.dev/skills/bezhai/chiwei-platform/ops"><img src="https://agentmods.dev/badge/skills/bezhai/chiwei-platform/ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00055 $0.02016
Opus 5.5 $0.00022 $0.00806
Sonnet 5.5 $0.00011 $0.00403
Haiku 4.5 $0.00006 $0.00202

Measured 2mo ago against content hash 3e36eba42658, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (22 stars, last pushed 2d ago), licensed MIT. It adds 55 tokens to every session and 2,016 once invoked, about $0.0002 per session on Opus 5.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

ops compared with skills from other repositories

ops next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opsbezhai/chiwei-platformSkill222d agoMITA55Claude Code
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code