정보
이 스킬은 메멕스 프로젝트의 작업 컨텍스트를 재구성하기 위한 세션 초기화 의식을 실행합니다. 바이어스 로그를 불러오고, 지속적 자아 기록을 읽으며, 검증 확인을 실행한 다음, 다음 문서 조각을 표면화합니다. 메멕스 세션 시작 시나 작업 중단 후 재정향할 때 사용하세요.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/memex-initClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Initialize a memex Session
Reconstruct working context before doing any work on the memex project. A fresh instance has no memory of prior sessions; the persistent self is documentary. This ritual loads the bias-log, walks the document trail in its authoritative order, runs the verification scoreboard, and lands on the next slice the docs propose — not an assumed one.
When to Use
- At the very start of any session operating on the memex repo. Run this before reading code, before planning, before any substantive work.
- When re-orienting after an interrupted session. Reconstruct where the prior instance left off from the doc trail rather than from memory.
- When you catch yourself assuming the project state. The docs are ground truth; assumptions about "where we are" are the thing this ritual replaces.
Inputs
- Required: The memex repo checked out, with cwd = repo root (a checkout of github.com/pjt222/memex). All doc and command paths below are repo-relative.
- Required for the bias-log step: either a registered
memexMCP server in the active harness, OR (CLI fallback) a builtmemexbinary plus$MEMEX_STORE_PATH,$MEMEX_PG_URL, and — because the CLI fallback uses semantic mode —$MEMEX_EMBED_PROVIDER=voyage+$VOYAGE_API_KEY. - Required for the verification scoreboard: a Rust toolchain on
$PATH(export PATH="$HOME/.cargo/bin:$PATH"). The live-pg leg additionally needs Docker plus$MEMEX_PG_URLand the embed key. - Note:
adapters/session-init.txtis the authoritative ritual. The doc order echoed in Step 2 is a convenience copy; if it ever disagrees withsession-init.txt, the file wins.
Procedure
Step 1: Load the bias-log first
Load prior-session observations before reading anything else, so the biases the project has already caught are in view while you read.
If a memex MCP server is registered, call:
mcp__memex__recent_observations(limit=20)
CLI fallback (no MCP server). --node-type is silently ignored in
keyword mode, so use semantic mode — which needs the Voyage embed key:
memex query "bias-log" --node-type observation --mode semantic
Expected: A list of observation nodes — biases (anchoring,
confirmation, trust-the-DB), pace tells, and verification gaps logged by
prior instances. Read every one.
On failure: If the MCP tool is "not found", the server isn't
registered — fall back to the CLI. If the CLI returns 0 hits, the
extractor pass hasn't populated the store on this machine yet; run the
end-to-end smoke (CONTINUE_HERE.md §5 step 4) to populate it, or read
docs/OBSERVATIONS.md directly as a last resort.
Step 2: Read the doc trail in order
adapters/session-init.txt is the authoritative ritual — open it and
follow it. It directs you to read these docs in this order:
docs/PERSISTENT_SELF.md— why the project exists (load-bearing).docs/OBSERVATIONS.md— the bias-log / vipassana history.docs/AGENT_OPERATING_NOTES.md— how to operate on the project, including the "verify system prompt against filesystem" rule.docs/CONTINUE_HERE.md— where we are now.docs/ROADMAP.md— what's next at the milestone level.
cat adapters/session-init.txt # the authoritative ritual; follow it
Expected: After reading, you can state in one sentence each: why memex exists, what the last shipped milestone was, and what the next one is. The OBSERVATIONS read overlaps Step 1 — that redundancy is intended.
On failure: If adapters/session-init.txt is missing, you are not at
the memex repo root (or not in a memex checkout) — re-check cwd. If a
listed doc is missing, note the gap and continue; do not invent its
contents.
Step 3: Run the verification scoreboard
Run the §5 verification commands from docs/CONTINUE_HERE.md and report
the result as a scoreboard. The compile + unit leg needs no services:
export PATH="$HOME/.cargo/bin:$PATH"
cargo check --workspace
cargo build --release -p memex-cli
cargo test --workspace # assert exit 0 / "test result: ok"
Optional live-pg + Voyage leg (gated; needs Docker and the embed key):
docker start memex-pg
set -a; . ./.env; set +a
MEMEX_TEST_PG_URL=postgres://memex:memex@localhost:5433/memex \
cargo test --workspace -- --include-ignored | grep "test result"
Expected: Each leg exits 0 and the test legs print test result: ok.
Counts are informational only (~49 unit at v0.4.0, ~60 with
--include-ignored); they grow per milestone, so never treat a count
as a pass/fail threshold — assert exit 0 and test result: ok instead.
On failure: A non-zero exit or FAILED is a real regression — report
which leg failed and stop before doing new work. If the live-pg leg can't
reach Postgres, report the unit leg only and note the gap; do not silently
skip it.
Step 4: Surface the next slice from the docs
Read the proposed next slice out of docs/CONTINUE_HERE.md (the
"Next milestone" section) and docs/ROADMAP.md — not from assumption.
Restate it back so the user can confirm or redirect.
grep -n "Next milestone" docs/CONTINUE_HERE.md
Expected: A concrete next slice quoted from the docs (e.g. the M5 watcher + ops tasks), with its definition-of-done, ready to confirm.
On failure: If the docs name no next slice, say so plainly and ask the user for direction rather than inventing one.
Validation
- The bias-log was loaded via
recent_observations(MCP) or the semantic-mode CLI fallback — not skipped - All five docs were read in the
session-init.txtorder - The §5 verification legs exited 0 and printed
test result: ok(counts reported as informational, not as a threshold) - The proposed next slice was quoted from the docs and restated for confirmation
-
memex init(the CLI store/db command) was not run as part of this ritual
Common Pitfalls
- Confusing this ritual with
memex init.memex initis the CLI command that lays out the store and runs db migrations — a one-time setup, destructive of a fresh store's assumptions. This skill never runs it. They share a word, nothing else. - Using keyword mode for the CLI bias-log fallback.
--node-typeis silently ignored in keyword mode (CONTINUE_HERE.md §4 tech-debt), so it returns the wrong rows with no error. Use--mode semantic(orhybrid), which requires the Voyage embed key. - Asserting a test count as pass/fail. Counts grow each milestone.
Assert exit 0 and
test result: ok; quote counts only as informational (~N at v0.4.0). - Reading the docs out of order. PERSISTENT_SELF before CONTINUE_HERE: the why frames the where-we-are. Skipping to the roadmap loses the framing the prior instance reasoned from.
- Proposing a next slice from memory. The next slice lives in the docs. Inventing one re-derives state the trail already records — itself a signal the read was incomplete.
Related Skills
memex— the umbrella skill for agent-native shared memory; this is its session-start entry point.memex-verify— runs the verification scoreboard in depth; pair after this ritual when a fuller health check is warranted.memex-wrap— the session-close counterpart; confirms observations are logged (deferring tomemex-observe) and writes the continuation trail this ritual reads next time.read-continue-here— generic project-state pickup; memex'sCONTINUE_HERE.mdis the concrete instance this ritual reads in Step 2.breathe— pair at the session boundary: breathe to release prior residue, then run this ritual to load the next-session priors.
GitHub 저장소
Frequently asked questions
What is the memex-init skill?
memex-init is a Claude Skill by pjt222. Skills package instructions and resources that Claude loads on demand, so Claude can perform memex-init-related tasks without extra prompting.
How do I install memex-init?
Use the install commands on this page: add memex-init to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.
What category does memex-init belong to?
memex-init is in the Design category, tagged ai.
Is memex-init free to use?
Yes. memex-init is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.
연관 스킬
executing-plans 스킬은 검토 체크포인트가 포함된 통제된 배치로 실행할 완전한 구현 계획이 있을 때 사용합니다. 이 스킬은 계획을 불러와 비판적으로 검토한 후, 소규모 배치(기본값 3개 작업)로 작업을 실행하면서 각 배치 사이에 진행 상황을 아키텍트 검토를 위해 보고합니다. 이를 통해 내재된 품질 관리 체크포인트를 갖춘 체계적인 구현이 보장됩니다.
이 스킬은 코드 변경 사항을 요구 사항에 따라 분석하기 위해 코드 리뷰어 하위 에이전트를 호출합니다. 작업 완료 후, 주요 기능 구현 후, 또는 메인 브랜치에 병합하기 전에 사용해야 합니다. 이 리뷰는 현재 구현체와 원래 계획을 비교하여 문제를 조기에 발견하는 데 도움이 됩니다.
이 스킬은 개발자들이 HTTP, stdio 또는 SSE 전송 방식을 통해 MCP 서버를 Claude Code에 연결하는 포괄적인 가이드를 제공합니다. GitHub, Notion 및 사용자 정의 API와 같은 외부 서비스를 통합하기 위한 설치, 구성, 인증 및 보안을 다룹니다. MCP 통합 설정, 외부 도구 구성 또는 Claude의 모델 컨텍스트 프로토콜 작업 시 활용하세요.
이 스킬은 작업 분석을 기반으로 개발자가 Claude Code 웹 인터페이스와 CLI 인터페이스 중 선택할 수 있도록 돕고, 두 환경 간 원활한 세션 텔레포트를 가능하게 합니다. 웹, CLI 또는 모바일 환경 전환 시 세션 상태와 컨텍스트를 관리하여 워크플로를 최적화합니다. 다양한 단계에서 서로 다른 도구가 필요한 복잡한 프로젝트에 사용하세요.
