Complex problems are not finished in a single session. Archiving is so you can pick up next time.
Three Modes
| Mode | Function | Trigger Words |
|---|---|---|
--progress |
Save the intermediate state of problem solving | "save progress", "archive", "note down where I am now" |
--restore |
Restore the last state and continue | "continue from last time", "restore", "where did we get to last time", "carry on" |
--decision |
Record key decisions for review | "note this decision down", "record decision", "review" |
Archive Contents
# 存档:{项目/问题}
日期:{时间}
进度:{当前走到哪一步}
已验证:{已经确认的结论}
已否决:{已经排除的方向}
下一步:{接下来要做什么}
Archive Location
By default placed in ~/.taxue/sessions/, isolated per project.
Memory Timeliness Tiering
Both archives and patterns need a timeliness tier marked, determining when they should be retrieved and when they should be forgotten.
Timeliness Level (memory_tier)
| Level | Meaning | Retrieval Rule |
|---|---|---|
permanent |
Cognitive patterns, thinking models, directional judgments | Always injected, never expires |
periodic |
Preferences, habits, phased goals | Inject only the most recent one, and only when the user explicitly mentions a related topic |
once |
Temporary context, single-task state | Expires when the session ends, not retrieved across sessions |
When archiving, mark it in the frontmatter:
---
slug: default
timestamp: 2026-05-01T14:23:15+08:00
title: {标题}
source_skill: taxue-solve
status: in-progress
next_skill: taxue-business
memory_tier: periodic
---
Automatic Judgment Rules
- Objective facts stated by the user (what they have done, what they have bought, how much income) →
permanent - Subjective tendencies expressed by the user (what they like, what they want to do, what they do not want to do) →
periodic - Temporary state of the current session (the task being analyzed, assumptions to be confirmed) →
once
Memory Retrieval
When a new session starts, the skill first scans ~/.taxue/sessions/ for all archives:
memory_tier: permanent— inject context when the topic matchesmemory_tier: periodic— inject only the most recent one, and only when the user explicitly mentions a related topic. An old preference is worse than no preferencememory_tier: once— do not retrieve
In patterns.md, 半衰期: 永久 patterns are equivalent to permanent,半衰期: 周期 is equivalent to periodic,半衰期: 一次性 is equivalent to once。
Next-Step Suggestions (Conditionally Triggered)
After archiving is complete, judge based on the situation whether to recommend a next step.Not recommended every time, only say a sentence when it clearly points to another skill.
| Result Condition | Recommended Script |
|---|---|
| Restored the last progress, and next you need to continue solving | "Progress restored, carry on from last time. Use /taxue-solve。」 |
| Archived many times, and found you repeatedly going in circles on the same kind of problem | "You are repeating the same pattern. Worth solidifying into a process. Use /taxue-build。」 |
Externalizing Tacit Knowledge
When archiving, check whether this session meets any of the following conditions:
- The user corrected the AI's direction (not execution details, but direction)
- The user expressed a preference that had not appeared before
- Discovered a recurring pattern (the 2nd occurrence of the same type of issue)
- Solved a new type of problem not encountered before
If satisfied, distill a rule:
- Only write "in what scenario + what the correct approach is"
- Do not write specific events, original dialogue text, or file paths
- Format: one rule, no more than 50 characters
- Determine the时效 level of this rule and write it into the
半衰期field
Write into ~/.taxue/growth/patterns.md, format:
### P{序号}:{规律标题}
- 把握:星级
- 出现次数:{N}
- 触发词:{触发场景关键词}
- 规律:{具体规律}
- 适用:{适用的子技能名,逗号分隔}
- 半衰期:{永久 | 周期 | 一次性}
If the ~/.taxue/growth/ directory does not exist, create it first.
DO NOT
- Create a new skill from scratch:
skill-creator - After restoring state, continue solving:
taxue-solve(save only handles storage and retrieval, not solving) - After multiple saves, need to organize and review:
taxue-build(solidify into a tool) - Injecting expired preferences as current preferences:
periodicOnly the most recent memory of level is injected
taxue-save v3.2