Zizhi Tongjian (Essential Lessons for Governance): Daily Study of Classical Historiography via Agent-Driven Step-by-Step Daily Advancement

Preface

To systematically read Zizhi Tongjian (Comprehensive Mirror in Aid of Governance), the common approach is to break down volumes, find translations, track progress manually, and open documents or notes daily. These steps are fragmented, making it difficult to maintain a consistent rhythm with conversational assistants. The community Skill “Zizhi Tongjian Daily Study” (@user_25ab92ec/zizhitongjian-study, v1.0.0) on SkillHub encodes “one chapter per day in book sequence, original text—translation—interpretation, progress, and retrieval” into a standard SKILL.md. It comes with a Python entry script, facilitating the reuse of this consistent convention within clients like Cursor that support Skills.

What is this

“Zizhi Tongjian Daily Study” is a community Skill under the SkillHub education category, published by user_25ab92ec. The current version is 1.0.0, and tags indicate requires_api_key=false (no additional API Key needed). The official page and API coordinates are SkillHub Skill Page and https://api.skillhub.cn/user_25ab92ec/zizhitongjian-study, respectively.

It is designed for a study method based on “following the original order of Zizhi Tongjian, one chapter per day.” Each chapter includes the original text, a vernacular translation, and an interpretation (background, figures, insights, etc.). The SKILL.md describes a pace of approximately 294 volumes over about 300 days; specific chapters and progress are handled by logic within the Skill and local data.

Core Features

The following capabilities are derived from the SKILL.md and src/main.py within the package. After installation, Agents can invoke them according to the Skill instructions, or you can run the entry script directly in the terminal.

  1. Daily Study (daily_lesson)
    Pushes the current “Day N” chapter based on learning progress, outputting the volume, year, title, original text, translation, and interpretation.

  2. Specific Day / Volume Study
    Jump to the content of a specific day (via slash commands in the Skill documentation and the CLI day subcommand).

  3. Search (search_events)
    Search for relevant chapters by keyword within titles, original text, translations, or interpretation text.

  4. Progress (track_progress)
    Records the current day, number of completed chapters, start date, and last study date. Progress is written to data/progress.json in the Skill directory (created and updated by main.py).

  5. Slash Commands (Declared in SKILL.md)

    • /zizhi-today: Today’s study content
    • /zizhi-day: Study a specific day
    • /zizhi-search: Search historical events
    • /zizhi-progress: Study progress
  6. CLI Subcommands (Entry point: src/main.py)
    In addition to today, day, search, and progress, it offers random for a random chapter. today / day support the --complete / -c flag to mark completion and advance current_day.

Runtime Environment: skill.json requires Python >= 3.9.0 and declares file_access permissions (for reading and writing the progress file).

Installation and Activation

1. Install SkillHub CLI (if not already installed)

First, check if skillhub is available on your machine:

command -v skillhub && skillhub --version

If not installed, you can follow the SkillHub Installation Instructions (Full installation example):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install this Skill to the current Agent’s skills directory

SkillHub requires using --dir to point to the skills directory loaded by the current client during installation; otherwise, defaulting to ./skills/ might not be recognized.

skillhub install @user_25ab92ec/zizhitongjian-study --dir <your skills directory>

Common paths (extracted from official installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

The natural language installation prompt provided by the official skill page is: Install @user_25ab92ec/zizhitongjian-study according to https://skillhub.cn/install/skillhub.md. After installation, restart or reload Skills according to your client’s instructions to ensure the Agent reads the SKILL.md.

3. Optional: Run the entry script directly with Python

In the installed skill directory (internal path is src/main.py), you can execute it in a Python 3.9+ environment, for example:

python3 src/main.py today
python3 src/main.py day 1
python3 src/main.py search 曹操
python3 src/main.py progress
python3 src/main.py today --complete

The progress file is located at src/data/progress.json by default (relative to the data subdirectory where main.py resides).

Typical Usage

In Conversation (per SKILL.md)
After enabling the Skill, you can initiate learning using the example formats from the documentation, such as today’s chapter, a specific day, searching for “Cao Cao”, or viewing progress:

/zizhi-today
/zizhi-day 1
/zizhi-search 曹操
/zizhi-progress

In Terminal (per main.py)
CLI examples corresponding to the above:

python3 src/main.py today
python3 src/main.py day 1 --complete
python3 src/main.py search 曹操
python3 src/main.py progress

Using --complete after finishing the day’s content records the day in completed_days and advances current_day to the next day.

Use Cases and Notes

Who it is for
* People who want to read Zizhi Tongjian at a fixed pace and wish to trigger learning via unified commands within Agent conversations.
* People who need to maintain learning progress locally and occasionally review chapters by person name or event keywords.

Limitations and Implementation Details (Based on current v1.0.0 package)
* The package’s src/main.py places chapter data in the constant ZIZHI_TONGJIAN_DATA. Source code comments state it is “partial original data (example, should actually contain the whole book)”; currently, the repository only includes days 1–3 (e.g., “Division of Jin into Han, Zhao, Wei”, “Zhi Bo Asks for Land”, “Battle of Jinyang”). Therefore, the “total chapters” and “approx. 300 days” in progress are product goals at the documentation level; the number of learnable chapters in the current package depends on the actual data entries.
* skill.json contains freemium pricing fields (free / pro), which are metadata within the package; whether limits are enforced on SkillHub or the client side depends on the instructions from your installation source. This article does not expand on commercial terms not published on the SkillHub page.
* Community source (source: community); content and proofreading quality depend on the publisher’s maintenance. For historical reading, it is still recommended to cross-reference with authoritative versions.
* SkillHub page statistics (at time of crawl): Rating 100000, Downloads 1148, Installs 2; these will change over time, so refer to the skill page for the latest.

Conclusion

“Zizhi Tongjian Daily Study” consolidates daily reading, search, and progress tracking into a set of Skill conventions and an optional CLI. It is suitable for long-term use within the skills directory of environments like Cursor. Installation and coordinates:

  • Skill Page: https://www.skillhub.cn/skills/user_25ab92ec/zizhitongjian-study
  • API: https://api.skillhub.cn/user_25ab92ec/zizhitongjian-study
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye