Agent skill

Zhouyilab Cpp Style

by banderzhm in banderzhm/ZhouYiLab

编写 ZhouYiLab C++ 代码时落实性能、命名、枚举定义、成员注释和 WSL clang-format 规范. An agent skill from banderzhm/ZhouYiLab.

MITAuto-check passed

Install Zhouyilab Cpp Style

skills CLI
$ npx skills add banderzhm/ZhouYiLab --skill zhouyilab-cpp-style -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install banderzhm/ZhouYiLab zhouyilab-cpp-style --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/banderzhm/ZhouYiLab.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/zhouyilab-cpp-style .claude/skills/zhouyilab-cpp-style && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
zhouyilab-cpp-style
GitHub stars
137
Token cost
~289 tokens
SKILL.md length
44 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

编写 ZhouYiLab C++ 代码时落实性能、命名、枚举定义、成员注释和 WSL clang-format 规范. An agent skill from banderzhm/ZhouYiLab.

  • SKILL.md covers 可读性与性能, JavaDoc 风格注释 and 格式化
  • Calls git

What it does

Zhouyilab Cpp Style is an agent skill from banderzhm/ZhouYiLab. 编写 ZhouYiLab C++ 代码时落实性能、命名、枚举定义、成员注释和 WSL clang-format 规范。

Its SKILL.md is about 290 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with C++. The repository describes itself as: 玄学计算引擎,包含大六壬、六爻、紫薇斗数、八字、奇门遁甲、梅花易数,适用于玄学算法训练、文化研究或教育类项目。 The licence is MIT.

Example prompts

  • “/zhouyilab-cpp-style”

What it can do on your machine

Read from SKILL.md and the folder at commit d8aea5d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Zhouyilab Cpp Style loads about 289 tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 44 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~289

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from banderzhm/ZhouYiLab at commit d8aea5d, republished under its MIT licence (© banderzhm). 44 words, ~289 tokens.

Download SKILL.mdSave it as .claude/skills/zhouyilab-cpp-style/SKILL.md (or your agent's skills folder).
name
zhouyilab-cpp-style
description
编写 ZhouYiLab C++ 代码时落实性能、命名、枚举定义、成员注释和 WSL clang-format 规范。

可读性与性能

  • 性能与代码美感优先,但以正确性和清晰边界为前提。固定小域优先数组、枚举与只读定义表;已知数量的结果预留容量,避免循环中重复构建映射、重复查根和拼接无用字符串。
  • 私有规则表和辅助函数放 .cpp,必要时使用匿名命名空间。仅在真实热点或稳定不变量处缓存;不要引入无界全局缓存、悬空 string_view 或为“零拷贝”破坏生命周期。
  • 规则用稳定枚举/规则标识作键,不用散落的中文字符串驱动分支。显示名称复用 ZhouYi.ZhMapper 及所属领域映射,不另造通用枚举反射库。
  • 文件名采用现有 snake_case,模块名沿用 ZhouYi.*;专业概念命名为排盘、原局、课体、卦象等对应语义,禁止泛称“事实层/事实项/事实依据”及含混的 misc/partN 拆分。

JavaDoc 风格注释

  • 修改或新增的公共 enum、每个枚举值、struct/class、每个成员及公开函数均补中文 /** ... */ 注释。字段说明含义、单位/范围、默认值语义;可选项说明未提供如何处理,数值区分分值、比例、规则权重。
  • 函数用 @brief、@param、必要的 @tparam、@return、@throws 说明契约;不要机械为 void 写返回值或声称不会发生的异常。私有复杂公式说明依据、边界与不变量,简单语句不逐行翻译。
  • 接口保留完整契约注释,实现只解释推演和算法原因。移动函数/枚举/结构时注释一起移动,不以格式化或拆文件为由丢弃注释。

例如成员应写清:

cpp
/** @brief 是否完成三合三支补齐;不代表已经成化。 */
bool complete = false;
/** @brief 关系作用系数,范围 [0, 1];0 表示该作用未计入。 */
double effectiveness = 0.0;

格式化

  • 先查实际可用的 WSL 发行版与 clang-format 版本,再使用 WSL 的 Clang 格式化工具处理本次修改的 .cppm、.cpp;若不可用,说明未格式化,不假称已执行。
  • 优先遵循仓库已有格式配置,无配置则延续邻近代码风格。只格式化本次相关文件,不顺手重排整个仓库或第三方库。
  • 格式化后检查 git diff --check 与差异,确认中文编码、注释、模块声明及公共签名未受损。

© banderzhm, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/zhouyilab-cpp-style of banderzhm/ZhouYiLab.

Open the folder on GitHubat commit d8aea5d

Compare with similar skills

Zhouyilab Cpp Style next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Zhouyilab Cpp Style compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Zhouyilab Cpp Style this skillbanderzhm/ZhouYiLab137—~289Automated safety check: PassMIT
Paddle BuildPaddlePaddle/Paddle24k—~1kAutomated safety check: PassApache-2.0
Fory Releaseapache/fory4.6k—~2.9kAutomated safety check: PassApache-2.0
ONNX Runtime Shape Inference Safety Auditmicrosoft/onnxruntime22k—~3.3kAutomated safety check: PassMIT
Code Audit3stoneBrother/code-audit8921 repos~2.7kAutomated safety check: PassNone
Qt C++ Code Reviewx-tools-author/x-tools1.1k2 repos~4.3kAutomated safety check: PassBSD-3-Clause

Similar skills

  • Paddle Build

    PaddlePaddle/Paddle

    A skill your agent uses when needing to compile, rebuild, or install Paddle from source after code changes.

    24k GitHub stars~1k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Fory Release

    apache/fory

    Prepare an Apache Fory release candidate from a clean release branch, including the version bump, RC tag, JVM staging, ASF source artifacts, SVN upload, and vote email.

    4.6k GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Official

    Finds and fixes out-of-range output writes in ONNX Runtime operator shape-inference functions where a getNumOutputs guard admits too few outputs.

    22k GitHub stars~3.3k tokensUpdated today
    SecurityAuto-check passed
  • Code Audit

    3stoneBrother/code-audit

    Professional code security audit skill covering 55+ vulnerability types.

    892 GitHub starsUsed in 1 repo~2.7k tokens
    SecurityAuto-check passed
  • Qt C++ Code Review

    x-tools-author/x-tools

    Read-only review of Qt6 C++ code that combines a deterministic lint script with six parallel analysis agents and reports only high-confidence issues.

    1.1k GitHub starsUsed in 2 repos~4.3k tokens
    DevelopmentAuto-check passed
  • Translation

    doxygen/doxygen

    Keeps all Doxygen and Doxywizard translations up to date across three mechanisms: translator C++ classes (src/translatorxx.h), Qt .ts locale files for the Doxywizard GUI (addon/doxywizard/i18n/)…

    6.6k GitHub stars~5.2k tokensUpdated 9 days ago
    Writing & ContentAuto-check passed

More from banderzhm/ZhouYiLab

All 8 skills in this repo
  • Zhouyilab Skill Maintenance

    banderzhm/ZhouYiLab

    维护 ZhouYiLab 仓库 skills 规范、聚合顺序及 AGENTS.md 生成脚本时使用,避免规范重复和生成文件漂移。

    137 GitHub stars~288 tokensUpdated 11 days ago
    Auto-check passed
  • Zhouyilab Testing

    banderzhm/ZhouYiLab

    为 ZhouYiLab 排盘或分析变更设计回归测试、运行示例并核验报告时区分独立基准和契约检查. An agent skill from banderzhm/ZhouYiLab.

    137 GitHub stars~271 tokensUpdated 11 days ago
    Auto-check passed
  • Zhouyilab Domain

    banderzhm/ZhouYiLab

    修改 ZhouYiLab 排盘、干支关系、原局及岁运分析时约束共用基础复用、流派口径与时间语义. An agent skill from banderzhm/ZhouYiLab.

    137 GitHub stars~297 tokensUpdated 11 days ago
    Auto-check passed
  • Zhouyilab Modules

    banderzhm/ZhouYiLab

    在 ZhouYiLab 新增或重构 C++23 模块、分析入口与公共契约时规范分层、依赖和 cppm/cpp 组织. An agent skill from banderzhm/ZhouYiLab.

    137 GitHub stars~367 tokensUpdated 11 days ago
    Auto-check passed
  • Zhouyilab Build

    banderzhm/ZhouYiLab

    修改 ZhouYiLab 的 CMake、依赖、模块构建和 GitHub Actions 时保持三平台兼容及真实运行验证。

    137 GitHub stars~259 tokensUpdated 11 days ago
    Auto-check passed
  • Zhouyilab Reporting

    banderzhm/ZhouYiLab

    修改 ZhouYiLab 中文报告、Markdown 表格及 JSON 输出时保证展示职责、专业术语和结构化结果一致. An agent skill from banderzhm/ZhouYiLab.

    137 GitHub stars~217 tokensUpdated 11 days ago
    Auto-check passed

Works with

Questions about Zhouyilab Cpp Style

What does Zhouyilab Cpp Style do?

编写 ZhouYiLab C++ 代码时落实性能、命名、枚举定义、成员注释和 WSL clang-format 规范. An agent skill from banderzhm/ZhouYiLab. Zhouyilab Cpp Style is an agent skill from banderzhm/ZhouYiLab.

How do I install Zhouyilab Cpp Style in Claude Code?

Run `npx skills add banderzhm/ZhouYiLab --skill zhouyilab-cpp-style -a claude-code`. Or copy the skill folder (skills/zhouyilab-cpp-style in banderzhm/ZhouYiLab) into .claude/skills/zhouyilab-cpp-style in your project. Claude Code loads it when a task matches its description.

How do I install Zhouyilab Cpp Style in Codex?

Run `npx skills add banderzhm/ZhouYiLab --skill zhouyilab-cpp-style -a codex`. Or copy the skill folder (skills/zhouyilab-cpp-style in banderzhm/ZhouYiLab) into .agents/skills/zhouyilab-cpp-style in your project. Codex loads it when a task matches its description.

Can I use Zhouyilab Cpp Style in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add banderzhm/ZhouYiLab --skill zhouyilab-cpp-style -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/zhouyilab-cpp-style, .gemini/skills/zhouyilab-cpp-style, .github/skills/zhouyilab-cpp-style and .opencode/skills/zhouyilab-cpp-style in your project.

What does Zhouyilab Cpp Style need to run?

Going by SKILL.md and its folder, Zhouyilab Cpp Style needs the command-line tools its instructions call (git).

Does Zhouyilab Cpp Style access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Zhouyilab Cpp Style safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Zhouyilab Cpp Style use?

Zhouyilab Cpp Style is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Zhouyilab Cpp Style use?

About 289 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Zhouyilab Cpp Style?

Skills that share tags, products or a category with Zhouyilab Cpp Style: Paddle Build (PaddlePaddle/Paddle, 24k stars), Fory Release (apache/fory, 4.6k stars), ONNX Runtime Shape Inference Safety Audit (microsoft/onnxruntime, 22k stars) and Code Audit (3stoneBrother/code-audit, 892 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Zhouyilab Cpp Style?

banderzhm (a GitHub user) maintains it in banderzhm/ZhouYiLab, which has 137 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 28, 2026.

Source: banderzhm/ZhouYiLab on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.