Ganzhi Basics logo

Ganzhi Basics

Community
dhicoc
ganzhi-basics

干支基础子技能。用于天干地支推算、六十甲子查询、节气与五运六气关系映射。适用于中医运气学说入门学习与年份干支快速查询。触发词:干支、天干、地支、六十甲子、干支纪年、节气运气、ganzhi。

Overview

Publisherdhicoc
Repositorywuyun-liuqi-skills
Skill nameganzhi-basics
Stars
52
Forks
10
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by dhicoc on GitHub. Read the source before you install it.

Installation

Install the Ganzhi Basics AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dhicoc/wuyun-liuqi-skills/tree/master/modules/ganzhi-basics
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dhicoc/wuyun-liuqi-skills.git /tmp/wuyun-liuqi-skills
mkdir -p .claude/skills
cp -r /tmp/wuyun-liuqi-skills/modules/ganzhi-basics .claude/skills/ganzhi-basics
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ganzhi Basics in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ganzhi Basics on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ganzhi Basics is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

适用范围

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

脚本依赖

脚本名称功能说明输入输出
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.md、references/liushijiazi.md、references/jieqi.md 均存在且内容完整
  • 运行脚本验证至少3个已知年份(如2024甲辰、2025乙巳、2026丙午)
  • 确认输出格式符合下游子技能的输入要求

任务完成自检

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ganzhi Basics AI skill do?

干支基础子技能。用于天干地支推算、六十甲子查询、节气与五运六气关系映射。适用于中医运气学说入门学习与年份干支快速查询。触发词:干支、天干、地支、六十甲子、干支纪年、节气运气、ganzhi。

Why use Ganzhi Basics on TypingMind?

Because you install it once and use it with any model. Ganzhi Basics is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ganzhi Basics in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dhicoc/wuyun-liuqi-skills/tree/master/modules/ganzhi-basics. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ganzhi Basics?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ganzhi Basics?

As many as you like. As long as a model supports skills, you can use Ganzhi Basics with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ganzhi Basics AI skill free?

Yes. It is published on GitHub by dhicoc under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇