Agent skill

Zhouyilab Modules

by banderzhm in banderzhm/ZhouYiLab

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

MITAuto-check passed

Install Zhouyilab Modules

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

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

GitHub CLI
$ gh skill install banderzhm/ZhouYiLab zhouyilab-modules --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-modules .claude/skills/zhouyilab-modules && 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-modules
GitHub stars
137
Token cost
~367 tokens
SKILL.md length
72 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

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

  • SKILL.md covers 模块组织与依赖, 各层职责 and 拆分与设计模式
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

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

Its SKILL.md is about 370 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-modules”

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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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 Modules loads about 367 tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 72 words of instructions outside code blocks.

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

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). 72 words, ~367 tokens.

Download SKILL.mdSave it as .claude/skills/zhouyilab-modules/SKILL.md (or your agent's skills folder).
name
zhouyilab-modules
description
在 ZhouYiLab 新增或重构 C++23 模块、分析入口与公共契约时规范分层、依赖和 cppm/cpp 组织。

模块组织与依赖

  • 普通功能模块采用同目录、同名的 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。

© 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-modules of banderzhm/ZhouYiLab.

Open the folder on GitHubat commit d8aea5d

Compare with similar skills

Zhouyilab Modules 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 Modules compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Zhouyilab Modules this skillbanderzhm/ZhouYiLab137—~367Automated 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
  • Leetcuda Cpp Kernel

    xlite-dev/LeetCUDA

    LeetCUDA 中文技术书(584 页,XeLaTeX 源)按需查阅 skill——写、优化、调试或 review CUDA C++/PTX kernel 时的权威参考路由层。当任务涉及:GPU 架构/Roofline/ occupancy、向量化与 coalescing、warp/block reduce、softmax(online/LSE merge)、…

    12k GitHub stars~3.5k tokensUpdated 10 days ago
    AI & LLM EngineeringAuto-check passed

More from banderzhm/ZhouYiLab

All 8 skills in this repo
  • Zhouyilab Cpp Style

    banderzhm/ZhouYiLab

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

    137 GitHub stars~289 tokensUpdated 13 days ago
    Auto-check passed
  • Zhouyilab Skill Maintenance

    banderzhm/ZhouYiLab

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

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

    banderzhm/ZhouYiLab

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

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

    banderzhm/ZhouYiLab

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

    137 GitHub stars~297 tokensUpdated 13 days ago
    Auto-check passed
  • Zhouyilab Build

    banderzhm/ZhouYiLab

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

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

    banderzhm/ZhouYiLab

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

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

Works with

Questions about Zhouyilab Modules

What does Zhouyilab Modules do?

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

How do I install Zhouyilab Modules in Claude Code?

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

How do I install Zhouyilab Modules in Codex?

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

Can I use Zhouyilab Modules 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-modules -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-modules, .gemini/skills/zhouyilab-modules, .github/skills/zhouyilab-modules and .opencode/skills/zhouyilab-modules in your project.

What does Zhouyilab Modules need to run?

SKILL.md names no scripts, command-line tools or credentials: Zhouyilab Modules is instructions for the agent only.

Does Zhouyilab Modules access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Zhouyilab Modules 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 Modules use?

Zhouyilab Modules 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 Modules use?

About 367 tokens (SKILL.md is roughly 1.5k 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 Modules?

Skills that share tags, products or a category with Zhouyilab Modules: 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 Modules?

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.