lore
Skill này làm gì
Đây là cách lưu thông tin quan trọng về một dự án phần mềm để AI ghi nhớ. Nó lưu chi tiết về cấu trúc dự án, các quyết định đã đưa ra và cách viết code.
Khi nào nên dùng
- ✓Khi bắt đầu một dự án mới để ghi lại cấu trúc của nó.
- ✓Khi đưa ra một quyết định quan trọng cho dự án.
- ✓Khi bạn muốn AI ghi nhớ các quy ước viết code cụ thể.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/lore/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Ghi nhớ quyết định này về kiến trúc dự án.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Thông tin được lưu trong các file văn bản thuần (Markdown) trong thư mục có tên `.lore/`. Bất kỳ AI nào đọc được file đều có thể truy cập thông tin này.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
lore — Framework-agnostic Memory Management
What this skill is
A long-term knowledge base for a software project, maintained by AI agents. It is not a dev journal or a changelog. It captures the kind of context that normally lives only in the original developer's head:
- What the project is, how it is shaped (architecture)
- Why specific choices were made over alternatives (decisions)
- How code should be written and what to avoid (conventions)
This knowledge is persisted as plain Markdown files in .lore/ at the project root. Any agent that can read files can consume them.
When to Use
The skill uses a two-tier trigger model.
Tier 1 — Loading the skill
Load this skill when the user explicitly invokes lore, names a subcommand, references .lore/, or asks to record, recall, audit, sync, or compress project memory about decisions, architecture, conventions, or monorepo scopes. Generic phrases like "init", "compress", "audit", or "query" alone are not enough — they may map to the agent's native commands or unrelated tasks (Claude Code's /init, /compact, security audits, SQL queries, etc.).
| User says (examples) | Command |
|---|---|
| "lore init" / "create lore memory bank" / "initialize lore" | init |
| "lore sync" / "sync this change to lore" / "record this decision in lore" | sync |
| "lore query" / "query lore" / "what's the project convention" | query |
| "lore audit" / "check lore" / "is memory still accurate" | audit |
| "lore compress" / "compress lore" / "summarize lore" | compress |
| "lore mirror" / "update CLAUDE.md" / "refresh mirror" | mirror |
| "lore history" / "show the git history of this entry" / "show me the commits behind this" | history |
Tier 2 — Internal proposals (after the skill is loaded)
Once the skill is loaded for this session, certain commands may proactively propose themselves based on internal thresholds. These proposals still require user acceptance — the skill never mutates files silently.
syncproposes when 50+ changed lines span 2+ directories, OR a new top-level module/directory/dependency was added or removed, OR a new convention was explicitly discussed in chat.compressappends a[COMPRESS NOTICE]to sync proposals when entries > 500,SUMMARY.mdis missing, or last compression > 30 days ago.syncemits[ALERT]markers when an active entry conflicts with current code or with a candidate change.mirrorregenerates automatically duringcompressifauto_mirror: trueis set in.lore/.config.json.
Other commands (init, query, history) are always explicit — they need user intent. See references/workflows.md for when each workflow is used.
Which command do I need?
| User goal | Command | When | Procedure |
|---|---|---|---|
| First-time setup, or start over | init |
One-time setup | references/workflows.md#init, then references/platform-mirrors.md + references/monorepo-detection.md |
| "Remember this change" after a feature / refactor / bug fix | sync |
After a non-trivial change | references/workflows.md#sync, then references/stale-new-markers.md |
| "What is the project convention / why was X chosen?" | query |
Answer from memory | references/workflows.md#query |
| "Is memory still accurate?" | audit |
Memory may have drifted from reality | references/workflows.md#audit, then references/audit-template.md |
| "Summarize the memory bank" | compress |
SUMMARY.md stale, or entries > 500 | references/workflows.md#compress, then references/summary-template.md |
| "Update CLAUDE.md / AGENTS.md / mirrors" | mirror |
Explicit publish of mirror changes | references/workflows.md#mirror, then references/platform-mirrors.md |
| "Why does this decision exist?" / "show the commits behind this" | history |
Git story behind an entry | references/workflows.md#history, then references/history-command.md |
…
Câu hỏi thường gặp
Khác nhau giữa 'lore' và nhật ký phát triển là gì?
'Lore' tập trung vào thông tin dài hạn của dự án (kiến trúc, quyết định, quy ước), không phải nhật ký hoạt động hằng ngày.
Tôi có cần dùng hết các lệnh của 'lore' không?
Không, bạn dùng lệnh khi cần: `init` để bắt đầu, `sync` để ghi lại thay đổi, `query` để hỏi, `audit` để kiểm tra, `compress` để tóm tắt và `mirror` để cập nhật tài liệu.
Điều gì xảy ra nếu tôi không dùng 'lore'?
AI có thể quên các chi tiết quan trọng của dự án, dẫn đến không nhất quán hoặc lặp lại các quyết định đã đưa ra.
Chi tiết
Mô tả gốc của tác giả
Markdown project memory for AI agents. Use for decisions, architecture, conventions, monorepo scopes, `.lore/`, or `lore` commands; not native `/init`/`/compact` or generic init/compress/audit/query.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5118
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
technical-documentation
394kGiúp agent của bạn viết và rà soát tài liệu kỹ thuật cùng file hướng dẫn cho agent, rõ ràng để mọi người và công cụ AI đều dễ làm theo.
architecture-decision-records
280kGiúp agent của bạn ghi lại các quyết định quan trọng về cấu trúc dự án, giúp hiểu lý do đằng sau các lựa chọn và giữ lịch sử thay đổi rõ ràng.
code-tour
280kGiúp agent của bạn tạo các hướng dẫn đọc code từng bước, có tham chiếu chính xác đến file và dòng, hữu ích cho phần giới thiệu, giải thích và rà soát.