ganzhi-basics

ganzhi-basics is a skill for Claude Code from dhicoc/wuyun-liuqi-skills. It costs 87 tokens per session (1,477 once invoked), scanned A, original, MIT.

A Chinese medicine reference skill for converting calendar years into the traditional Heavenly Stems and Earthly Branches system and linking them to seasonal cycles.

In plain words
What is it for?
It helps look up a year's stem and branch, check the 60-year cycle, and map solar terms to the Five Movements and Six Qi.
Why use it?
It reduces mistakes when identifying a year's traditional designation, the 60-year cycle position, or the relevant solar-term periods.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the wuyun-liuqi-skills plugin — 38 skills shipped together

Good fit It helps look up a year's stem and branch, check the 60-year cycle, and map solar terms to the Five Movements and Six Qi.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dhicoc/wuyun-liuqi-skills/ganzhi-basics
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dhicoc/wuyun-liuqi-skills --skill ganzhi-basics
Clone the repo
git clone --depth 1 https://github.com/dhicoc/wuyun-liuqi-skills

Made for: Claude Code.

Or install wuyun-liuqi-skills, the plugin that ships this one along with the rest of its 38 skills.

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 ganzhi-basics

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dhicoc/wuyun-liuqi-skills/ganzhi-basics"><img src="https://agentmods.dev/badge/skills/dhicoc/wuyun-liuqi-skills/ganzhi-basics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,477 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.
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.00087 $0.01477
Opus 5 $0.00044 $0.00739
Sonnet 5 $0.00017 $0.00295
Haiku 4.5 $0.00009 $0.00148

Measured 12d ago against content hash c1ce1a624fef, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ganzhi-basics 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 12d ago.

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.

modules/ganzhi-basics/SKILL.md · 76 lines

How it starts

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

干支基础(天干地支推算与节气运气映射)

适用范围

  • 学生入门:学习天干地支基本概念与纪年方法
  • 年份干支快速查询:公历年份转换为干支
  • 六十甲子表查阅:确认甲子序列与对应年份
  • 节气与六气交司关系:确定某节气所处之气与运
  • 节气与五运交司关系:确定某节气所处之运
  • 为下游运气推算子技能提供干支基础数据

脚本依赖

脚本名称 功能说明 输入 输出
calculate_yunqi_api.py 公历年份→天干地支(统一推算引擎) 年份(整数,如2024) 天干、地支、完整干支(如"甲辰")、甲子序号(year_gz / sexagenary_index)

推荐工作流

  1. ACT: 接收用户请求,明确需要查询的公历年份或干支。若用户仅提供干支(如"甲辰"),需反推年份范围。
  2. ACT: 调用 calculate_yunqi_api.py,传入年份参数,获取该年的天干、地支、完整干支及甲子序号。命令示例:python scripts/calculate_yunqi_api.py 2024 --json
  3. ACT: 查阅六十甲子表(参考文件 references/liushijiazi.md),确认该干支在六十甲子中的序号位置,并关联该甲子年的大运与司天在泉信息。
  4. ACT: 查阅节气对应表(参考文件 references/jieqi.md),确定当前或目标节气所处的六气步位(初之气至终之气)与五运步位(初运至终运)。
  5. ACT: 查阅天干地支基础理论(参考文件 references/tiangan_dizhi.md),根据天干确定中运(大运)五行属性,根据地支确定司天在泉六气。
  6. ACT: 汇总输出,将干支信息、甲子序号、大运、六气格局、节气运气交司关系整理为结构化结果,传递给下游子技能。

常见误区

问题 原因 解决方案
年份干支算错 公历年份与农历年份混淆,或未注意立春为干支年分界 以公历年份为准,但需注意:立春(约2月4日)之前仍属上一年干支。脚本输入公历年份,输出该年立春后的干支
天干地支阴阳配错 误以为天干地支可任意配对 阳干配阳支,阴干配阴支。甲丙戊庚壬配子寅辰午申戌,乙丁己辛癸配丑卯巳未酉亥
六十甲子序号算错 未从甲子(序号1)开始计数,或误将癸亥(序号60)后接甲子 六十甲子从甲子(1)始,至癸亥(60)止,循环往复。用脚本计算确保准确
节气六气交司时间弄错 误将节气与六气的对应关系搞混 严格参照 references/jieqi.md 中的交司表。初之气从大寒始,非立春
大运五行属性取错 天干化运与天干本身五行属性混淆 大运用"天干化运"(甲己化土、乙庚化金、丙辛化水、丁壬化木、戊癸化火),非天干本身五行

输出要求

  • 干支推算结果须包含:公历年份、天干、地支、完整干支、甲子序号
  • 须标注推算所用脚本名称与版本
  • 须注明立春分界提示(若查询日期在立春前后)
  • 节气运气交司结果须标注出处(参考文件名)
  • 所有五行六气术语须使用标准中医运气学说术语

路由上下文

  • 上游入口:用户直接请求干支查询;或由五运六气主技能路由进入
  • 下游出口:将干支、甲子序号、大运、六气格局传递给 yunqi-classics(经典文献验证)和 docs-generator(报告生成)
  • 同级关联:与 yunqi-classics 同级,均为五运六气技能包的子技能

ACTION REQUIRED

  • 确认 calculate_yunqi_api.py 脚本可用且路径正确
  • 确认参考文件 references/tiangan_dizhi.mdreferences/liushijiazi.mdreferences/jieqi.md 均存在且内容完整
  • 运行脚本验证至少3个已知年份(如2024甲辰、2025乙巳、2026丙午)
  • 确认输出格式符合下游子技能的输入要求

任务完成自检

  • 天干地支推算结果正确(与已知年份对照验证)
  • 六十甲子序号与参考表一致
  • 节气与六气交司关系正确引用
  • 节气与五运交司关系正确引用
  • 立春分界提示已包含(如适用)
  • 推算脚本名称已标注
  • 输出已结构化,可被下游子技能解析

Read the full file on GitHub · 76 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 76 lines · 87 tokens per session scan A c1ce1a624fef

Subscribe to this mod's changes

ganzhi-basics is a skill published in the GitHub repository dhicoc/wuyun-liuqi-skills (42 stars, last pushed 27d ago), licensed MIT. It adds 87 tokens to every session and 1,477 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

hr-onboarding

A new-hire onboarding plan as a single page — first week schedule, buddy + manager intro, learning track, equipment checklist, and "you're set when…" outcomes. Use when the brief mentions "onboarding", "new hire", "first week plan", or "入职".

nexu-io/open-design · 62 tokens

book-mirror

Take any book (EPUB/PDF), produce a personalized chapter-by-chapter analysis. Each chapter is preserved in detail (The Chapter) and mirrored back to the reader's actual life (The Mirror) using brain context. The mirror observes and resonates — a friend pointing out parallels, NOT a consultant rearranging the reader's…

garrytan/gbrain · 138 tokens

miniapp

Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.

yc-software/qm · 25 tokens

eli5

Explain research, papers, or technical ideas in plain English with minimal jargon, concrete analogies, and clear takeaways. Use when the user says "ELI5 this", asks for a simple explanation of a paper or research result, wants jargon removed, or asks what something technically dense actually means.

companion-inc/feynman · 63 tokens

deck-course-module

A course or workshop slide template with persistent learning goals, teaching pages, multiple-choice self-tests, and a wrap-up.

nexu-io/html-anything · 25 tokens

master-yinguang

A reference-based assistant for questions about Yinguang and Pure Land Buddhism, a Buddhist tradition focused on faith, ethical living, and practice connected with rebirth in the Pure Land. It can answer in Yinguang’s historical teaching style.

xr843/Master-skill · 274 tokens