IWE agent skills
Agent skills for IWE, a Markdown knowledge base you and your AI agent work on together.
The IWE source code, CLI and LSP server live in the main repository.
Available skills
graph
Gives agents bounded, graph-aware routes for finding, retrieving, creating, and safely refactoring notes without falling back to broad filesystem searches. The skill file is frontmatter only; the policy itself ships inside the binary as iwe docs agent, so it always describes the CLI that is actually installed.
Requirements:
- an IWE workspace;
- IWE CLI
>=0.20.0 — install via npm install -g @iwe-org/iwe, brew install iwe-org/iwe/iwe, or cargo install iwe;
- an agent runtime that supports skills.
Install with the skills CLI (works with Claude Code, Codex, Cursor, OpenCode, and many other agents):
npx skills add iwe-org/skills --skill graph
Claude Code users can also install natively as a plugin:
/plugin marketplace add iwe-org/skills
/plugin install iwe@iwe-org
See the skill, the IWE repository, and the IWE documentation for details.
init, distill, and reflect
Three skills over agent memory, which lives in the repository's own IWE
workspace.
init switches memory on for a repository — one MEMORY.md policy document,
written in the shape the store already uses — then scopes the sessions already
on disk and hands them over. distill is the only write path memory has: it
reads a session with you, puts what looks worth keeping in front of you one
item at a time with its evidence — remember or skip, with a comment if you have
one — writes what you keep, and then offers the sessions that came before. reflect evolves the policy with you: it edits MEMORY.md,
analyzes the frontmatter, proposes index fields, backfills them, groups notes
into areas, pulls the people, releases, components and other entities the notes
keep mentioning into typed pages the notes link to, and prunes or merges on
request.
The skill files here carry only their frontmatter — the name and the
description an agent triggers on. The instructions each one follows come from
the installed binary, iwe internal claude prompt <init|distill|reflect>, so
they always describe the commands that binary actually has and the plugin never
drifts from the CLI. Claude Code injects that text as the skill loads; any
other runtime runs the command as the skill's first step.
All three are plain skills, so npx skills add iwe-org/skills carries them to
Codex, Cursor, and OpenCode alongside Claude Code. What you type depends on how
they got there: Claude Code addresses a plugin's skills as plugin:skill, so
/iwe:init, /iwe:distill, /iwe:reflect; installed with the skills CLI they
are ordinary project skills, /init, /distill, /reflect. Start with
init — the other two assume the workspace it creates.
One caveat for the skills-CLI route on Claude Code: init is also the name of
a built-in skill there, so the bare form may resolve to that instead. The
plugin's prefixed /iwe:init is unambiguous, and asking in plain words
("set up memory here", "remember this") routes correctly either way.
IWE Memory
Installed as a Claude Code plugin, iwe also carries durable session memory.
Memory is not a database the agent accretes — it is a knowledge base you
co-author: plain markdown in the repository's own IWE workspace, reviewed as
ordinary files. There is no separate memory directory and no second graph:
captured notes sit beside your project's markdown, link to it, and are found by
the same queries.
Nothing is captured unattended. An earlier version of this plugin swept
transcripts at turn boundaries and let a background agent write what it found.
It could not tell a suggestion from a decision — a window of conversation is
not the shape of a decision — so it wrote down choices nobody made. That whole
path is gone. /iwe:distill runs in the foreground, proposes with evidence,
and writes only what you pick.
Set it up
-
Have IWE CLI >=0.21.0 on PATH:
npm install -g @iwe-org/iwe
# or: brew install iwe-org/iwe/iwe
# or: cargo install iwe
-
Install the plugin in Claude Code:
/plugin marketplace add iwe-org/skills
/plugin install iwe@iwe-org
-
Let the memory skills run the CLI. They run iwe and nothing else, and
their commands carry no paths, so the whole permission story is one
allowlist rule in .claude/settings.json:
{ "permissions": { "allow": ["Bash(iwe:*)"] } }
The plugin is inert until you switch a repository on: without a MEMORY.md
document in the workspace, both hooks it installs exit 0 and print nothing —
on every machine, in every other repository.
Turn memory on
Start Claude Code at the repository root and run:
/iwe:init