本文へ移動
cccskills
無料GitHub で公開

memex

Cross-session shared memory for agents. Use at session start to load the persistent bias-log via `mcp__memex__recent_observations`, mid-session to search prior context with `mcp__memex__search`, and immediately when a bias surfaces to log a new `observation` via `mcp__memex__add`. The six-layer reconstruction trail (raw → embedded → indexed → graphed → curated → reflexive) means memex stores facts AND the agent's own reasoning patterns across sessions. Prefer querying memex before re-deriving prior architectural decisions; re-derivation is itself evidence that the trail is incomplete.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md8.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Memex

Agent-native shared memory. Postgres + pgvector index over a canonical markdown store, exposed over MCP. Lives at https://github.com/pjt222/memex.

When to Use

  • At session start, always. Call mcp__memex__recent_observations before substantive work. Loads the bias-log from prior sessions.
  • Mid-session, when about to make a non-trivial decision. Call mcp__memex__search "<topic>" to check whether the project has converged on this before.
  • Immediately when a bias surfaces in your own reasoning. Log an observation via mcp__memex__add while the context is fresh. Do NOT wait for session end.
  • When you catch yourself re-deriving something. Re-derivation IS the signal that the trail is incomplete; capture the gap as an observation and link to whatever you re-derived.

Inputs

  • Required: A registered memex MCP server in the active harness. Verify with claude mcp list | grep memex (Claude Code) or the equivalent in your harness.
  • Required: $MEMEX_PG_URL and $MEMEX_STORE_PATH in the server's environment.
  • Optional: $MEMEX_EMBED_PROVIDER=voyage + $VOYAGE_API_KEY for semantic / hybrid search. Without these, mode=keyword still works.

Procedure

Step 1: Load the bias-log

Before any substantive work in a fresh session, call:

mcp__memex__recent_observations(limit=20)

Read every returned entry. Each one is a pattern the agent (you, or a prior instance) noticed in its own reasoning. Recurring patterns are the most valuable; transient ones are still cheap to skim.

Expected: 5–30 observations covering biases (availability, confirmation, anchoring), pace tells (rushing past confusing measurements), and verification gaps (trusting summaries over source truth).

On failure: If the call fails with "tool not found", the MCP server isn't registered; run adapters/claude-code/install.sh (or the per-harness equivalent) from the memex repo first.

Step 2: Search before deriving

When a non-trivial decision approaches (architectural, naming, algorithmic), search first:

mcp__memex__search(query="<topic>", mode="hybrid", k=10)

For exact-wording lookups use mode=keyword. For purely conceptual queries (topic unlikely to share tokens with indexed text) use mode=semantic. Optional node_type filter restricts to one type (e.g. observation).

Expected: 0–10 hits. Even 0 hits is useful — it tells you the trail doesn't cover this decision, so your present reasoning becomes the canonical record.

On failure: If search errors (server down or db unreachable), fall back to the CLI substitute memex query "<topic>" --node-type observation (defaults to hybrid, which honors the type filter via its semantic leg). If it returns 0 hits on a topic that clearly should have coverage, treat the gap as a signal and proceed to Step 4.

Step 3: Log observations mid-session

When you notice a bias in your own reasoning:

mcp__memex__add(
  node_type="observation",
  title="<short bias name>",
  body="<context, mitigation, origin date>",
  tags=["bias-log", "vipassana"]
)

Body convention (mirroring docs/OBSERVATIONS.md in the memex repo; treat that file as the source of truth — it is read by an extractor):

<Description of the bias as it surfaced>. Mitigation: <what to do next time>. Origin: <date> + <context>.

Expected: the add call returns the new node's id (the CLI equivalent memex add prints <uuid>\t<store-path>) — confirmation the observation is in the canonical store.

On failure: rmcp dispatches tool calls concurrently — if add races a dependent call (add → link), await its response first. If the db is unreachable the write is lost; re-issue once the server is back, or fall back to appending the entry to docs/OBSERVATIONS.md by hand (Step 4).

Step 4: Surface unknowns

If recent_observations is empty (fresh memex install), or search returns nothing on a topic that clearly should have coverage, that's a documentary trail gap. Close it by appending to the canonical markdown and re-extracting, or by depositing directly via the MCP tool:

# Backfill path (run from the memex repo root):
$EDITOR docs/OBSERVATIONS.md   # append under "## Vipassana observations"
memex extract meditate-vipassana --registry extractors/sources.yml

Or use mcp__memex__add (Step 3) during the session to deposit the entry into the canonical store on the spot, without touching the file.

Expected: after extract, the new observation is queryable — memex query "<its topic>" --node-type observation returns it (the observation-node count grows by one).

On failure: extract is cwd-sensitive — run it from the memex repo root or pass --registry. If it reports "no new sources", the content hash already matched; confirm the append actually landed in docs/OBSERVATIONS.md.

Validation

  • mcp__memex__recent_observations returns ≥ 0 entries (call succeeded, not "tool not found")
  • Each substantive decision in the session is preceded by either a mcp__memex__search call or an explicit "no prior context to check" note
  • New biases noticed during the session are logged via mcp__memex__add before session end, not silently dropped
  • At session end, the agent has either committed new bias entries to docs/OBSERVATIONS.md or confirmed there are none worth logging

Common Pitfalls

  • Skipping the session-start call. The single highest-value use of memex. Skipping it is the strongest tell that the agent is treating each session as starting from scratch.
  • Logging at session end only. Biases caught at session end are reconstructed from memory and lose specificity. Log them immediately when they surface.
  • Logging an observation that's actually a concept. Bias-log entries are about the agent's own reasoning patterns. Reusable architectural facts belong in concept nodes.
  • Trusting search results over reading them. A title that matches your query isn't proof the body answers it. Fetch the full body with mcp__memex__get when in doubt.
  • Pipelining dependent MCP calls in one session. rmcp dispatches tool calls concurrently. If a later call depends on a write from an earlier call (add → link → neighbors), await each response before issuing the next.

Related Skills

  • memex-init — session-start ritual that wires memex into a fresh session; run it before this umbrella's Step 1 to register the server and load the bias-log.
  • memex-observe — the focused wrapper for Step 3; use it when the task is purely "log a bias I just noticed" rather than the full umbrella flow.
  • memex-wrap — session-close counterpart; confirms observations are logged (deferring the actual write to memex-observe) and writes the continuation trail this skill reads next session.
  • memex-verify — pre-commit gate for the memex repo itself; run it before committing changes to memex (cargo fmt / clippy / test).
  • breathe — pair with memex at session boundaries: breathe to release prior-session residue, then recent_observations to load the next-session priors.
  • meditate — full reflective close; outputs new observations worth logging via mcp__memex__add.
  • read-continue-here — complementary; loads project-state pickup doc. Memex loads cross-project bias-log; CONTINUE_HERE loads project-specific milestone state.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Execute structural metamorphosis using strangler fig migration, chrysalis phases, and interface preservation. Covers transformation planning, parallel running, progressive cutover, rollback design, and post-metamorphosis stabilization for system architecture evolution. Use when assess-form has classified the system as READY for transformation, when migrating from monolith to microservices, when replacing a core subsystem while dependents continue operating, or when any architectural change must be gradual rather than big-bang.

日本語の概要は準備中です。原文の説明を表示しています。

pjt222/agent-almanac372026年10月12日 更新

adaptic

無料

Master skill composing the 5-step synoptic cycle for panoramic synthesis across multiple domains. Orchestrates meditate, expand-awareness, observe, awareness, integrate-gestalt, and express-insight into a coherent process that produces unified understanding rather than sequential compromise. Use when a problem genuinely spans 3+ domains and the interactions between domains matter more than depth in any one, when sequential analysis feels like compromise rather than integration, or before major architectural decisions affecting multiple stakeholders.

日本語の概要は準備中です。原文の説明を表示しています。

pjt222/agent-almanac372026年10月12日 更新

Scaffold a new puzzle type across all 10+ pipeline integration points in jigsawR. Creates the core puzzle module, wires it into the unified pipeline (generation, positioning, rendering, adjacency), adds ggpuzzle geom/stat layers, updates DESCRIPTION and config.yml, extends the Shiny app, and creates a comprehensive test suite. Use when adding a completely new puzzle type to the package or following the 10-point integration checklist to ensure nothing is missed end-to-end.

日本語の概要は準備中です。原文の説明を表示しています。

pjt222/agent-almanac372026年10月12日 更新

Add Rcpp or RcppArmadillo integration to an R package for high-performance C++ code. Covers setup, writing C++ functions, RcppExports generation, testing compiled code, and debugging. Use when an R function is too slow and profiling confirms a bottleneck, when you need to interface with existing C/C++ libraries, or when implementing algorithms (loops, recursion, linear algebra) that benefit from compiled code.

日本語の概要は準備中です。原文の説明を表示しています。

pjt222/agent-almanac372026年10月12日 更新

aikido

無料

Practice aikido as a defensive martial art emphasizing harmony, redirection, and controlled resolution. Covers centering and grounding, ukemi (safe falling and rolling), core techniques (irimi-nage, shiho-nage, kote-gaeshi, ikkyo), blending and tai sabaki (body movement), randori (multiple attacker practice), weapons awareness, and applying principles off the mat. Use when learning a defensive martial art that prioritizes de-escalation, developing the ability to redirect aggression without causing unnecessary harm, building safe falling skills, or cultivating calm centeredness under physical pressure.

日本語の概要は準備中です。原文の説明を表示しています。

pjt222/agent-almanac372026年10月12日 更新

Analyze an arbitrary codebase to identify functions, APIs, and data sources suitable for exposure as MCP tools, producing a tool specification document. Use when planning an MCP server for an existing project, auditing a codebase before wrapping it as an AI-accessible tool surface, comparing what a codebase can do versus what is already exposed via MCP, or generating a tool spec to hand off to scaffold-mcp-server.

日本語の概要は準備中です。原文の説明を表示しています。

pjt222/agent-almanac372026年10月12日 更新

pjt222 のスキルをすべて見る

このスキルの問題を報告する