Documentation
README
Learn From History
把历史学习当成一次快照审计:固定输入、按 manifest 分析、机器校验覆盖、去重后再建议修改。 默认审计当前项目最近 7 个自然日期(含今天),不跨项目,不自动修改任何规则或 skill。
事实源
- 运行编排:
scripts/run_history.py - 提取逻辑:
scripts/extract_daily.py - 完成校验:
scripts/validate_run.py - 人类日报格式:
references/analysis-template.md
extract_range.py 仅保留手工范围导出的兼容用途,不是本 skill 主路径。
流程
1. 创建 snapshot run
从环境中的 Working directory 取得项目根,显式传入 --cwd:
python3 .claude/skills/learn-from-history/scripts/run_history.py \
--days 7 \
--cwd <工作目录>
只有用户明确要求跨项目时才使用 --all:
python3 .claude/skills/learn-from-history/scripts/run_history.py --days 7 --all
脚本创建权限为 0700 的唯一目录:
/tmp/learn-from-history/<run_id>/
manifest.json
snapshot/threads.db
extracted/<day>/*.txt
prompts/unit-NNN.txt
summaries/
This is the opening of the README. Read the full README on GitHub.