Chuyển đến nội dung
Skillpedia
Tài liệu kỹ thuật48k · #5118

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/lore/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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.

  • sync proposes 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.
  • compress appends a [COMPRESS NOTICE] to sync proposals when entries > 500, SUMMARY.md is missing, or last compression > 30 days ago.
  • sync emits [ALERT] markers when an active entry conflicts with current code or with a candidate change.
  • mirror regenerates automatically during compress if auto_mirror: true is 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.

repo: sickn33/agentic-awesome-skills

Độ 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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự