Skip to main content

mem-setup

Set up a domain knowledge management system. Creates /knowledge/ directory with domain folders for tracking facts, hypotheses, and confirmed rules across sessions. Use when starting a new project, setting up knowledge management, or when the user mentions "mem-setup", "knowledge system", "domain rules", or "project memory".

설치로 이동

소스 정보

저장소
dickwu/mem-setup
최근 소스 활동
2026년 3월 30일 03:03
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
mem-setup
description
Set up a domain knowledge management system. Creates /knowledge/ directory with domain folders for tracking facts, hypotheses, and confirmed rules across sessions. Use when starting a new project, setting up knowledge management, or when the user mentions "mem-setup", "knowledge system", "domain rules", or "project memory".
# Memory Setup Install a persistent domain knowledge system for any project. This creates a `/knowledge/` directory that accumulates expertise across sessions. The system tracks three types of insights: - **Knowledge** — confirmed facts and patterns - **Hypotheses** — patterns that need more data (tracked with confirmation counts) - **Rules** — hypotheses confirmed 5+ times, applied by default ## Steps ### 1. Check for Existing Setup Check if `knowledge/` directory already exists in the project root. - If it exists: tell the user "Knowledge system already set up. Use `/mem-load` and `/mem-save` to work with it." and stop. - If not: continue with setup. ### 2. Ask for Domains Ask the user which knowledge domains are relevant to their project. Suggest common examples: - `api` — backend patterns, routing, error handling - `auth` — authentication, authorization, tokens - `frontend` — UI framework, state management, styling - `database` — schema patterns, query optimization, migrations - `infrastructure` — caching, queues, storage, deployment - `testing` — test patterns, fixtures, coverage strategies Let them pick from suggestions or add custom domains. ### 3. Create Knowledge Directory Create `knowledge/INDEX.md`: ```markdown # Knowledge Index Routes to each domain folder. Each folder contains `knowledge.md` (facts), `hypotheses.md` (need more data), and `rules.md` (confirmed, apply by default). | Domain | Path | Description | |--------|------|-------------| ``` Add a row for each domain the user chose. ### 4. Create Domain Folders For each domain, create a folder under `knowledge/` with three files: **knowledge.md:** ```markdown # [Domain] Knowledge Facts and confirmed patterns. (No entries yet. Run `/mem-save` after completing tasks to populate.) ``` **hypotheses.md:** ```markdown # [Domain] Hypotheses Patterns that need more data to confirm. (No hypotheses yet.) ``` **rules.md:** ```markdown # [Domain] Rules Confirmed patterns — apply by default. (No rules promoted yet. Hypotheses need 5+ confirmations to become rules.) ``` ### 5. Add Project Instructions Detect the project's config file by checking in order: `CLAUDE.md`, `.cursorrules`, `.codex/AGENTS.md`. Write to the first one found, or create `CLAUDE.md` as default. Append this section: ```markdown ## Domain Knowledge System Before starting any task, run `/mem-load` to load relevant domain rules and hypotheses from `/knowledge/`. Rules are confirmed patterns — apply them by default. When a task is complete — user says "done", "finished", "complete", or your own output contains summary keywords like "Complete", "Summary", "Total" — ask: "Want me to save insights from this task? (`/mem-save`)" — then run `/mem-save` if they agree. ``` ### 6. Confirm Setup Tell the user: ``` Knowledge system installed: /mem-load — loads domain rules at task start /mem-save — extracts and saves insights when tasks complete /knowledge/ — domain folders created: [list domains] Start working! Rules accumulate automatically as you use /mem-save. Hypotheses promote to rules after 5 confirmations. ```
GitHub에서 보기