claude-code-hub: Command for GitHub Copilot

.github/prompts/docs-update.md

docs-update is a command for GitHub Copilot from ding113/claude-code-hub. It costs 0 tokens per session (882 once invoked), scanned A, original, MIT.

Command "docs-update" from ding113/claude-code-hub, covering docs-site 文档更新 prompt, 变更报告, 文档站点结构, 任务一:更新 changelog 页面 and 文件位置.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is ding113/claude-code-hub's own configuration. It tells GitHub Copilot how to work on claude-code-hub 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 claude-code-hub configures →

About the project

CC Hub is an API proxy service that gives teams one place to connect Claude, OpenAI-compatible, Codex, and other AI providers, while routing requests and tracking usage. It is for teams managing multiple AI service providers, users, limits, and operational data. The catalogue add-ons provide workflows for operating and administering CC Hub.

ding113/claude-code-hub · 3,356 stars · on GitHub · cch-plus.com

Reuse

Borrowing it

Nothing to install: this file belongs to ding113/claude-code-hub. 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/ding113/claude-code-hub/main/.github/prompts/docs-update.md
Clone the repo
git clone --depth 1 https://github.com/ding113/claude-code-hub

Made for: GitHub Copilot.

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 docs-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/ding113/claude-code-hub/docs-update.svg)](https://agentmods.dev/commands/ding113/claude-code-hub/docs-update)
Your own site
<a href="https://agentmods.dev/commands/ding113/claude-code-hub/docs-update"><img src="https://agentmods.dev/badge/commands/ding113/claude-code-hub/docs-update.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 882 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.
Origin unknown 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.00000 $0.00882
Opus 5 $0.00000 $0.00441
Sonnet 5 $0.00000 $0.00176
Haiku 4.5 $0.00000 $0.00088

Measured today against content hash 3d48f9476661, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

docs-update 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 today.

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.

.github/prompts/docs-update.md · 150 lines

How it starts

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

docs-site 文档更新 Prompt

你是 CC Hub 项目的文档维护专家。请根据变更报告更新在线文档站点。

变更报告

{{ CHANGES_JSON }}

文档站点结构

docs-site 是一个基于 Next.js + Markdoc 的文档站点,目录结构如下:

docs-site/src/app/docs/
├── getting-started/     # 快速开始
├── installation/        # 安装指南
├── docker-deployment/   # Docker 部署
├── configuration/       # 配置说明
├── environment-variables/ # 环境变量
├── providers/           # 供应商管理
├── users-keys/          # 用户与 API Key
├── rate-limiting/       # 限流配置
├── monitoring/          # 监控与日志
├── api-reference/       # API 参考
├── troubleshooting/     # 故障排查
└── changelog/           # 更新日志
    └── page.md          # Changelog 页面

任务一:更新 Changelog 页面

文件位置

docs-site/src/app/docs/changelog/page.md

Markdoc 格式

Changelog 页面使用 Markdoc 格式,示例:

---
title: 更新日志
nextjs:
  metadata:
    title: 更新日志
    description: CC Hub 各版本更新记录
---

# 更新日志

本页面记录 CC Hub 各版本的更新内容。

---

## v0.3.17 (2024-11-28)

### 新增

- 新增了某某功能 (#231)

### 优化

- 优化了某某体验 (#232) [@contributor]

### 修复

- 修复了某某问题 (#233)

---

## v0.3.16 (2024-11-27)

...

更新规则

  1. --- 分隔线后、第一个现有版本之前插入新版本
  2. 使用与现有格式一致的 Markdoc 语法
  3. 版本之间用 --- 分隔线隔开

任务二:更新功能文档(如需)

根据 docs_updates_needed 字段判断是否需要更新其他文档章节。

更新原则

  1. 保持现有风格: 与现有文档风格保持一致
  2. 增量更新: 只更新相关部分,不重写整个文档
  3. 标注版本: 如果是新功能,可以标注 (v0.x.x 新增)
  4. 更新目录: 如果添加了新章节,确保导航结构正确

新增章节(如需)

如果是重大新功能,可能需要新增文档章节。新增时:

  1. docs-site/src/app/docs/ 下创建新目录
  2. 创建 page.md 文件
  3. 更新 docs-site/src/lib/navigation.ts 添加导航项

输出格式

请输出需要修改的文件列表及其新内容:

{
  "files": [
    {
      "path": "docs-site/src/app/docs/changelog/page.md",
      "action": "update",
      "content": "完整的文件内容..."
    },
    {
      "path": "docs-site/src/app/docs/providers/page.md",
      "action": "update",
      "content": "完整的文件内容..."
    }
  ]
}

如果只需要更新 changelog:

{
  "files": [
    {
      "path": "docs-site/src/app/docs/changelog/page.md",
      "action": "update",
      "content": "完整的文件内容..."
    }
  ]
}

注意事项

Read the full file on GitHub · 150 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. today First seen · 150 lines · 0 tokens per session scan A 3d48f9476661

Subscribe to this mod's changes

docs-update is a command published in the GitHub repository ding113/claude-code-hub (3,356 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 882 tokens. 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-09-08.