knowledge-agent
Skill này làm gì
Công cụ này tạo ra các “bộ não” AI tùy chỉnh từ các ghi chú trước đây của bạn. Bạn có thể thu thập thông tin về một chủ đề cụ thể rồi trò chuyện với AI này để nhận câu trả lời.
Khi nào nên dùng
- ✓Khi bạn muốn có một bản tóm tắt về một dự án cụ thể.
- ✓Khi bạn muốn nhớ lại các quyết định hoặc cách sửa lỗi trước đây.
- ✓Khi bạn cần tổng hợp kiến thức về một chủ đề để học tập.
Liên kết skill
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/knowledge-agent/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
“Tạo một “bộ não” về 'hooks' và cho tôi biết 5 loại hooks và thời điểm mỗi loại được kích hoạt.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Đầu tiên, bạn yêu cầu công cụ xây dựng một bộ sưu tập thông tin (corpus) bằng cách lọc các ghi chú của bạn. Sau đó, bạn nạp bộ sưu tập này vào một phiên AI và có thể đặt câu hỏi.
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.
Knowledge Agent
Build and query AI-powered knowledge bases from claude-mem observations.
What Are Knowledge Agents?
Knowledge agents are filtered corpora of observations compiled into a conversational AI session. Build a corpus from your observation history, prime it (loads the knowledge into an AI session), then ask it questions conversationally.
Think of them as custom "brains": "everything about hooks", "all decisions from the last month", "all bugfixes for the worker service".
Workflow
Step 1: Build a corpus
build_corpus name="hooks-expertise" description="Everything about the hooks lifecycle" project="claude-mem" concepts="hooks" limit=500
Filter options:
project— filter by project nametypes— comma-separated: decision, bugfix, feature, refactor, discovery, changeconcepts— comma-separated concept tagsfiles— comma-separated file paths (prefix match)query— semantic search querydateStart/dateEnd— ISO date rangelimit— max observations (default 500)
Step 2: Prime the corpus
prime_corpus name="hooks-expertise"
This creates an AI session loaded with all the corpus knowledge. Takes a moment for large corpora.
Step 3: Query
query_corpus name="hooks-expertise" question="What are the 5 lifecycle hooks and when does each fire?"
The knowledge agent answers from its corpus. Follow-up questions maintain context.
Step 4: List corpora
list_corpora
Shows all corpora with stats and priming status.
Tips
- Focused corpora work best — "hooks architecture" beats "everything ever"
- Prime once, query many times — the session persists across queries
- Reprime for fresh context — if the conversation drifts, reprime to reset
- Rebuild to update — when new observations are added, rebuild then reprime
Maintenance
Rebuild a corpus (refresh with new observations)
rebuild_corpus name="hooks-expertise"
After rebuilding, reprime to load the updated knowledge:
Reprime (fresh session)
reprime_corpus name="hooks-expertise"
Clears prior Q&A context and reloads the corpus into a new session.
Câu hỏi thường gặp
Làm sao để tạo một “bộ não”?
Bạn dùng lệnh `build_corpus` để tạo bộ sưu tập thông tin, sau đó dùng `prime_corpus` để nạp nó vào AI.
Tôi có thể cập nhật “bộ não” với thông tin mới không?
Có, dùng `rebuild_corpus` để cập nhật bộ sưu tập, rồi dùng `reprime_corpus` để nạp lại AI với thông tin mới.
“Observations” là gì?
Đây là các ghi chép bạn đã ghi lại trước đó, như quyết định, bản sửa lỗi, tính năng mới, v.v.
Chi tiết
Mô tả gốc của tác giả
Build and query AI-powered knowledge bases from claude-mem observations. Use when users want to create focused "brains" from their observation history, ask questions about past work patterns, or compile expertise on specific topics.
repo: thedotmack/claude-mem
Độ phổ biến
- Sao GitHub
- 101k
- Vị trí xếp hạng
- #1273
- Giấy phép
- Apache-2.0
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
Agent Cost Report
101kGiúp agent của bạn tạo báo cáo chi phí chi tiết cho các hoạt động. Cho biết đã chi bao nhiêu cho token và dịch vụ.
claude-mem-install
101kGiúp agent của bạn thiết lập Claude-Mem trong các môi trường khác nhau. Cho phép chọn worker cục bộ hoặc từ xa và cấu hình quan sát.
mem-search
101kGiúp agent của bạn tìm kiếm các ký ức trong quá khứ. Hữu ích để nhớ lại các giải pháp trước đây hoặc công việc từ những phiên cũ.
host-observer
101kGiúp agent của bạn phản hồi các tác vụ quan sát của Claude-Mem. Chỉ được trả lời bằng 'skip_summary' hoặc một quan sát XML đầy đủ.
Skill tương tự
pytorch-patterns
280kGiúp agent của bạn dùng PyTorch cho các mô hình học máy. Áp dụng thực hành tốt nhất để huấn luyện mô hình hiệu quả và đảm bảo kết quả có thể lặp lại.
evm-token-decimals
280kGiúp agent tránh lỗi về số thập phân khi làm việc với các mạng blockchain khác nhau. Đảm bảo giá trị token chính xác trong giao dịch và phép tính.
ito-inference
280kGiúp agent kiểm tra xem các mô hình AI đã sẵn sàng để dùng chưa. Kết nối yêu cầu tài nguyên tính toán với dịch vụ mô hình đã sẵn sàng.