Octop: Skill for Claude Code

.cursor/skills/publish/SKILL.md

publish is a skill for Claude Code, Cursor from TencentCloud/Octop. It costs 74 tokens per session (4,073 once invoked), scanned A, original, MIT.

A release workflow for the Octop Python package, covering version changes, a release branch, changelog updates, a pull request, and post-merge publishing automation.

In plain words
What is it for?
Use it to bump a package version, update release files, open the release pull request, and sync the production branch back into development after release.
Why use it?
It enforces the required order between merging code, creating production tags, and publishing packages or Docker images.

Skill for Claude CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also installed under .cursor/.

This is TencentCloud/Octop's own configuration. It tells Claude Code and Cursor how to work on Octop 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 Octop configures →

About the project

Octop is a self-hosted, multi-user AI assistant that runs multiple specialized agents and connects them to chat interfaces, tools, and external services. It is for individuals, families, and teams who want a locally operated assistant with shared experts and persistent capabilities. Catalogue add-ons extend its agent and assistant workflows.

TencentCloud/Octop · 11,705 stars · on GitHub · octop.cloud

Reuse

Borrowing it

Nothing to install: this file belongs to TencentCloud/Octop. 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/TencentCloud/Octop/main/.cursor/skills/publish/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/TencentCloud/Octop

Made for: Claude Code, Cursor.

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 publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/tencentcloud/octop/publish/github.svg)](https://agentmods.dev/skills/tencentcloud/octop/publish)
Your own site
<a href="https://agentmods.dev/skills/tencentcloud/octop/publish"><img src="https://agentmods.dev/badge/skills/tencentcloud/octop/publish/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 publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/tencentcloud/octop/publish"><img src="https://agentmods.dev/badge/skills/tencentcloud/octop/publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,073 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 19
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00074 $0.04073
Opus 5.5 $0.00030 $0.01629
Sonnet 5.5 $0.00015 $0.00815
Haiku 4.5 $0.00007 $0.00407

Measured yesterday against content hash 4c9ef27b5099, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

publish 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 yesterday.

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.

.cursor/skills/publish/SKILL.md · 361 lines

How it starts

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

Publish

自动化 Octop Python 包的完整发布流程。

开始时宣告: "正在使用 publish 技能发布版本 {VERSION}。"

配置项

以下配置有默认值,可在项目的 .cursor/skills/publish/SKILL.md 中覆盖。

配置项 默认值 说明
CHANGELOG_FILE CHANGELOG.md 相对于仓库根目录的路径,文件不存在则跳过
VERSION_FILE pyproject.toml 包含版本号的文件
VERSION_PATTERN ^\s*version\s*=\s*"[^"]+" 匹配版本行的正则表达式
README_GLOB README*.md 含 shields.io 版本徽标的 README(含多语言变体,如 README.md、README_CN.md);全部同步升级
INIT_VERSION_FILE src/octop/__init__.py 含运行时常量 __version__ 的文件(缺失则跳过并提示)
TAG_PREFIX v Git tag 前缀;工作流监听 v*,生成 v0.1.14 风格标签
REMOTE origin Git 远程仓库名
INTEGRATION_BRANCH develop 日常集成分支;release 必须从最新 tip 切出
TARGET_BRANCH main 合并请求的目标分支(生产真源)
RELEASE_BRANCH_PREFIX release/ release 分支名前缀

调用方式

/publish 0.1.14

目标版本号是唯一必填参数,其余均从配置或自动检测获取。

发布流程

顺序硬约束: 先 PR 合入 main,再在 main tip 打并推送 v* tag。
禁止在 release 分支未合入 main 前推送生产 tag。

步骤 1 — 读取配置并确认版本

  1. 获取仓库根目录:git rev-parse --show-toplevel
  2. 记录当前分支为 {original_branch}。
  3. git fetch {REMOTE} {INTEGRATION_BRANCH} {TARGET_BRANCH}
  4. 从 VERSION_FILE 读取当前版本(在即将基于的 integration tip 上):
    git show {REMOTE}/{INTEGRATION_BRANCH}:pyproject.toml | grep -E '^\s*version\s*=\s*"[^"]+"'
    
  5. 检查未提交的更改:
    git status --short
    
    若工作树不干净:中止并要求用户先提交或 stash。发布不得夹带无关脏文件。
  6. 查找最近的 git tag:
    git tag --sort=-creatordate | head -1
    
    如果没有 tag,视为首次发布(在步骤 3 中使用从仓库初始到 HEAD 的所有提交)。
  7. 展示确认信息:
当前版本 (pyproject.toml @ develop): X.Y.Z
目标版本:                           A.B.C
上次发布 tag:                       vX.Y.Z (YYYY-MM-DD)
Release 分支:                       release/A.B.C
集成起点:                           develop
合入目标:                           main
Tag 时机:                           main 合并之后(不会在 release 上先打 tag)

确认发布 X.Y.Z → A.B.C?[y/N]

如果用户未输入 y 确认,立即中止。

步骤 2 — 从 develop 创建 release 分支

git checkout -B {RELEASE_BRANCH_PREFIX}{version} {REMOTE}/{INTEGRATION_BRANCH}

Read the full file on GitHub · 361 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. yesterday Changed · -11 lines 4c9ef27b5099
  2. 20d ago Changed a53d6cd9ccc5
  3. 24d ago Changed · +39 lines 4be781670421
  4. 1mo ago Changed · +7 lines c1975a19ae88
  5. 1mo ago Changed · +5 lines d6f1f405c498
  6. 2mo ago Changed · +3 tokens per session b6198a2c56d6
  7. 2mo ago First seen · 321 lines · 71 tokens per session scan A 380741ea79ec

Subscribe to this mod's changes

publish is a skill published in the GitHub repository TencentCloud/Octop (11,705 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 4,073 once invoked, about $0.0003 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

publish compared with skills from other repositories

publish next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
publishTencentCloud/OctopSkill12ktodayMITA74Claude Code, Cursor
github-release-managementamangit1314/repo-ragSkill01mo agononeA27Claude Code
agent-github-modesruvnet/rufloSkill81ktodayMITA21Claude Code
release-cutBlackBeltTechnology/pi-agent-dashboardSkill3412d agoMITA93Claude Code, Codex
release-revokeBlackBeltTechnology/pi-agent-dashboardSkill3412d agoMITA85Claude Code, Codex
github-pages-publishluongnv89/skillsSkill145todayMITA63Claude Code
release-readiness-checkcaipe-io/ai-platform-engineeringSkill437todayApache-2.0A54Claude Code, Codex