소스 정보
- 저장소
- CraftOS-dev/CraftBot
- 최근 소스 활동
- 2026년 8월 28일 12:07
- 감지된 SKILL.md 언어
- 영어
- 스타
- 376
- 포크
- 42
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/CraftOS-dev/CraftBot --skill memory-processor명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | memory-processor |
| description | Process raw events into distilled long-term memories using batch processing. |
| user-invocable | false |
| action-sets | ["file_operations"] |
The only way for agent to save event into long-term memory.
agent_file_system/EVENT_UNPROCESSED.md - Source (read & clear batches)agent_file_system/MEMORY.md - Destination (append distilled memories)Use update_todos to track progress. Create todos at start, update as you go.
Initial todos (create after reading first batch):
1. [pending] Process and loop for each batch (25~50 lines).
2. [pending] Validate and cleanup
3. [pending] Complete task
After each batch: Mark current as completed, add next batch if more events exist.
Process 50 lines at a time to avoid memory issues.
read_file EVENT_UNPROCESSED.md, offset=11, limit=50update_todos to create initial todo liststream_edit MEMORY.md (append only)stream_edit EVENT_UNPROCESSED.md (delete lines 12-61)end_turn when validation passes[reasoning], [action_start], [gui_action], [screen_description][agent message] - agent responses are NEVER saved...[user message] lines are NEVER discarded by type. They are the PRIMARY
source of memories: apply the distillation rules to the CONTENT of every
[user message] line. A user message that contains a preference, fact,
contact, decision, or dated event MUST produce a distilled memory even
when it is phrased inside an ordinary request (e.g. "I'm allergic to
peanuts, find me a lunch spot" → save the allergy, discard the request).[YYYY-MM-DD HH:MM:SS] [category] Full Name predicate object
Categories (closed set — never invent new ones):
[fact], [preference], [event], [decision], [learning], [project], [contact]
Write the plain item line and NOTHING more. The only structured tail
field that exists is {superseded}. NEVER append an {entities: ...} or
any other field — entity connections are established and recorded by a
different system entirely (in ENTITIES.md, not here). Some older MEMORY.md
lines may still carry an {entities: ...} field; that is legacy markup —
never copy the pattern onto lines you write.
Input:
[2026/02/09 06:33:10] [user message]: agent, i am an ai researcher at craftos
Output:
[2026-02-09 06:33:10] [fact] John is an AI researcher at CraftOS
Note: Get actual names from existing MEMORY.md. Never use "user", "conversation partner", or pronouns.
Before saving a distilled item, check MEMORY.md for existing items about the same entities, then pick exactly one operation:
{superseded} to the end of
the old line (do NOT delete it), then append the new item as its own line.Never delete a contradicted memory — the {superseded} marker preserves
history while removing the item from retrieval. Exact duplicates (same fact
twice) are the only lines you remove outright.
Each memory item MUST be <= 150 words, counted on the text AFTER the [category] tag.
If a distillation would exceed 150 words, compress further:
Never truncate mid-sentence; never end an item with ....
Core principle: Memory is for LASTING PERSONAL INSIGHTS that improve future interactions, not event logging.
The Future Utility Test: Before saving, ask: "Will knowing this help me serve the user better in a FUTURE conversation?" If the answer is no, discard it.
NEVER save (these belong in EVENT.md, not MEMORY.md):
trigger, action_start, action_end, end_turn[user message] or [agent message] line
into MEMORY.md verbatim. This bans COPYING the conversation, not saving
from it — [user message] content is exactly what you distill memories
FROM (see DISTILL, Don't Copy). [agent message] lines are discarded.SAVE CONDITION:
Only save the memory if it contains lasting value:
ALWAYS save (high future utility):
Examples of future utility:
read_file, stream_edit, memory_search, grep_files, end_turn, update_todos
send_message, end_turn, run_shell, write_file, create_file
Batch 1 (50 lines):
[2026-02-09 06:33:10] [fact] John is an AI researcher[2026-02-09 06:33:10] [event] John has a meeting with Sarah from Company ABC on 15/2/2026, with unknown locationSupersede example — batch contains "i moved from the SF office to the Tokyo office":
old line becomes: [2026-01-03 09:12:00] [fact] John works at the CraftOS SF office {superseded}
new line appended: [2026-02-09 06:33:10] [fact] John works at the CraftOS Tokyo office
Todo update after batch 1:
1. [completed] Process batch 1 (lines 12-61)
2. [in_progress] Process batch 2 (lines 12-61)
3. [pending] Validate and cleanup
4. [pending] Complete task
Result: 50 events → 1 memory, progress tracked via todos
Input (raw, rambling):
[2026-03-12 10:04:22] [user message]: so i was thinking about the trip next month, we're still planning to fly to tokyo on april 18th, staying at the shinjuku hilton for six nights, my wife emma is coming, and we also want to try the sushi place called sukiyabashi jiro that my friend kenji recommended, oh and the flight is on ANA from LAX, departing 10:55am, i need to remember to pack the camera and charger, and i'm a bit anxious because last time i forgot my passport
Output (<= 150 words, two atomic memories):
[2026-03-12 10:04:22] [event] John and Emma fly Tokyo on 2026-04-18 via ANA from LAX 10:55am, staying Shinjuku Hilton 6 nights
[2026-03-12 10:04:22] [preference] John wants to try Sukiyabashi Jiro sushi in Tokyo (recommended by Kenji)
Anxiety, packing reminder, and narrative framing are dropped — no lasting utility.
Triggered when the task instruction contains a "Pruning phase" directive (MEMORY.md has reached the item-count cap).
Add these todos alongside the event-processing todos:
N+1. [pending] Read MEMORY.md header + oldest block
N+2. [pending] Consolidate/merge/drop oldest items
N+3. [pending] Replace oldest block in MEMORY.md
Execute AFTER event processing completes:
read_file MEMORY.md from line 11 (skip the header block) up to the oldest-N range indicated in the task instruction.stream_edit MEMORY.md to replace the oldest block with the consolidated set. The # Memory Log / ## Overview / ## Memory header (lines 1-10) must remain intact.{superseded} — their replacement is on file; they exist only as history and are the first to go when space is needed.[event] items whose date has passed and have no lasting consequence.prune_target below the pre-prune count (the task instruction states the exact number).