🕰️
AI EngineeringRust

Learn From History

by KonghaYao

Learn From History is an AI Engineering skill for Claude Code, published by KonghaYao in peri.

163 stars30 forkson KonghaYao/periAdded 2026/09/08+3% in starsRepository updated 2026/09/07
acpclaude-codecoding-agentdeepseekglmmcpruststreaming-markdowntui
Install in seconds
Install Learn From History
Copy Learn From History into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/KonghaYao/peri/tree/main/.claude/skills/learn-from-history ~/.claude/skills/learn-from-history

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/KonghaYao/peri.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
.claude/skills/learn-from-history/SKILL.md in KonghaYao/peri
Installs to
~/.claude/skills/learn-from-history
Collection
One of 20 skills cataloged from this repository
Category
AI Engineering3670 skills

What Learn From History does

Learn From History audits recent conversation history to find repeated failures, successful patterns, stable rules, and skill improvements. Use it when you need to summarize prior agent behavior or learn from recent runs.

Learn From History is cataloged under AI Engineering on DirSkills. Learn From History comes from a repository tagged acp, claude-code, coding-agent, deepseek and glm.

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.

Frequently asked about Learn From History

  • What else does KonghaYao publish alongside Learn From History?

    Learn From History is one of 20 skills that DirSkills catalogs from KonghaYao/peri, the repository it ships in. Its siblings there include Adaptive Devflow, Advisor Consultation and Auto Converge. Each one is a separate skill with its own page in this directory, installs the same way Learn From History does, and is maintained by KonghaYao in that same repository. The rest of the collection is listed on the KonghaYao/peri page.

  • How does Learn From History compare to other AI Engineering skills?

    Learn From History ranks #3392 by stars among the 3670 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Learn From History against them. Open each page to compare what they document and how they install.

More from KonghaYao/peri

Learn From History is one of 20 skills cataloged on DirSkills from KonghaYao/peri.

See all 20 skills
🔧
1h ago

Adaptive Devflow

Adaptive Devflow helps choose a lightweight-to-heavy development workflow for issues, bugfixes, features, and refactors. It guides when to use coordination, review, and verification phases based on task risk and complexity.
Automation
16330
🧭
1h ago

Advisor Consultation

Advisor Consultation uses a tool-free Opus second opinion to evaluate high-risk design trade-offs, unresolved failures, and cross-boundary decisions. Use it after gathering repository evidence when the main agent needs a careful review.
AI Engineering
16330
🔁
1h ago

Auto Converge

Auto Converge refines rules, prompts, and SKILL.md files until agents can follow them reliably. It uses external references and adversarial review loops when a spec is written but not being obeyed.
AI Engineering
16330
🛠️
1h ago

Auto Issue Fixer

Auto Issue Fixer manages an issue from creation through fix, verification, and archival. Use it when someone describes a bug, asks to record a problem, fix an issue, verify a change, or archive a resolved issue.
Automation
16330
📝
1h ago

Blog Writer

Blog Writer provides a style guide for writing Peri project blog posts. Use it when drafting project intros, technical retrospectives, architecture discussions, or performance writeups in the Peri voice.
Writing
16330
🗂️
1h ago

Codebase Index

Codebase Index maps user intents like changing a threshold, tracing an event chain, or finding an entry point to the exact files and functions to open. It is used to quickly locate or rebuild per-crate code indexes for a Rust codebase.
Writing
16330