Skip to content
Agentmart
Submit a tool

zhouyilab-cpp-style

编写 ZhouYiLab C++ 代码时落实性能、命名、枚举定义、成员注释和 WSL clang-format 规范。

Skill by banderzhm

IndexedMIT★ 142
Write a review

Chalk Labs

Need help deploying zhouyilab-cpp-style?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/banderzhm-zhouyilab-cpp-style

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

编写 ZhouYiLab C++ 代码时落实性能、命名、枚举定义、成员注释和 WSL clang-format 规范。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/zhouyilab-cpp-style

What's inside

Skill name
zhouyilab-cpp-style
Description
编写 ZhouYiLab C++ 代码时落实性能、命名、枚举定义、成员注释和 WSL clang-format 规范。
License
MIT
Instructions
29 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## 可读性与性能

- 性能与代码美感优先,但以正确性和清晰边界为前提。固定小域优先数组、枚举与只读定义表;已知数量的结果预留容量,避免循环中重复构建映射、重复查根和拼接无用字符串。
- 私有规则表和辅助函数放 `.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` 与差异,确认中文编码、注释、模块声明及公共签名未受损。

From banderzhm/ZhouYiLab, MIT.

More from banderzhm/ZhouYiLab

Signals

Stars
142
Forks
47
Open issues
2
Last commit (this folder)
Sep 12, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from banderzhm

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get zhouyilab-cpp-style running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying zhouyilab-cpp-style?

CallGet help
Cite this page

zhouyilab-cpp-style skill. Agent Mart. https://agentmart.dev/skills/banderzhm-zhouyilab-cpp-style (last updated 2026-10-24)