Skip to content
Agentmart
Submit a tool

zhouyilab-modules

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

Skill by banderzhm

IndexedMIT★ 142
Write a review

Chalk Labs

Need help deploying zhouyilab-modules?

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-modules

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++23 模块、分析入口与公共契约时规范分层、依赖和 cppm/cpp 组织。

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-modules

What's inside

Skill name
zhouyilab-modules
Description
在 ZhouYiLab 新增或重构 C++23 模块、分析入口与公共契约时规范分层、依赖和 cppm/cpp 组织。
License
MIT
Instructions
29 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## 模块组织与依赖

- 普通功能模块采用同目录、同名的 `xxx.cppm` 接口和 `xxx.cpp` 实现。接口写 `export module`、必要的 `import`、导出类型及函数声明;实现写同名 `module`、实现依赖和函数定义。禁止把算法、报告拼装、大型规则表全部堆进接口。
- 纯枚举/结构契约、纯重导出入口不强造空 `.cpp`。模板及确实需要导入者在编译期求值的 `constexpr` 定义可保留在接口,并说明原因;其他普通函数不要习惯性添加 `constexpr`。禁止接口声明 `constexpr`、实现单元才定义的跨模块接口。
- 公开签名直接导入其类型所属模块,必要时使用完整类型限定;不能依赖别的控制器的 `using` 或偶然的传递可见性。`export namespace` 内声明已导出,不机械重复添加 `export`。
- `export import` 只用于有意重导出的公共契约/门面;内部依赖普通 `import`。头文件如必须引入,应放在合法的全局模块片段,避免将标准库或第三方声明意外附着到命名模块。
- `.cppm` 只进入目标的一个 `CXX_MODULES` file set;对应 `.cpp` 作为普通源参与构建。拆分后核对声明、定义、调用方 import、CMake 收录和链接,避免漏编译实现或重复定义。

## 各层职责

| 层 | 职责 | 不得承担 |
| --- | --- | --- |
| `src/common/` | 干支、五行、藏干、历法、时间、卦序等共用基础 | 流派判断、控制器依赖、报告拼装 |
| `src/<术数>/` 排盘模块 | 依据输入生成该术数盘局 | 面向某流派的取用、输出文件 |
| `analysis/*contract.cppm` | 请求、结果、规则依据等领域契约 | 运行分析、终端输出、大型实现 |
| `analysis/` 规则模块 | 根据排盘推演,产出结构化结论及依据 | 重写共用干支表、文件 I/O |
| `*controller` | 校验与用例编排,选择排盘/分析入口 | 中文表格、JSON 字段拼装、打印 |
| `*presenter` / `*report` | 从排盘与分析结果渲染中文/结构化报告 | 再算一遍规则、修改原局结论 |
| `examples/`、应用入口 | 调用控制器与展示模块、选择输出路径 | 定义另一套排盘/分析算法 |

依赖由应用和展示指向契约、分析、排盘及基础层,基础层不得反向导入高层。共享契约不得反向依赖分析器或展示实现。

## 拆分与设计模式

- 按稳定职责拆分原局、关系、取用/做功、岁运、应期、展示;先查找现有模块再决定新增,不能仅因文件长便切成无语义的 `part1/part2`。
- 流派选择采用统一门面入口加策略分派;子平与盲派各自保持契约和实现。规则执行可采用明确的分阶段流水线;静态规则适合枚举键和定义表。没有扩展需求时不要为展示设计模式堆叠虚基类、工厂和单例。
- 大契约按消费者及语义内聚性拆为子契约,再由小入口重导出;共用类型只有一个定义来源,避免循环导入和为方便复制 enum/struct。

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-modules 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-modules?

CallGet help
Cite this page

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