Memstate AI Skill
Install persistent, versioned memory into your AI coding agent with one command. The Memstate skill teaches your agent to check existing context before every task and save summaries after — automatically.
What is an Agent Skill?
Agent Skills are a portable, open format for giving AI agents specialized knowledge and workflows. A skill is a folder containing a SKILL.md file with instructions that the agent loads automatically when relevant. Skills follow the Agent Skills open standard and work across Claude Code, Cline, Cursor, GitHub Copilot, and other compatible agents.
The Memstate skill teaches your agent when and how to use Memstate: check memory before tasks, save summaries after, and use the right tool for each situation.
Quick Install
Run this in your project directory. The CLI auto-detects your agent(s), installs the skill, and updates your AGENTS.md with pre/post task instructions.
npx @memstate/skills setupWhat the Skill Does
Your agent automatically checks existing project memories to avoid duplicate work and surface prior decisions.
memstate_get(project_id="my-app")Your agent saves a markdown summary of what was done, key decisions made, and files modified.
memstate_remember(project_id="my-app", content="## Summary\n...", source="agent")Where Skills Are Installed
The npx @memstate/skills setup CLI handles all of this automatically. The table below shows where each agent expects skill files.
| Agent | Skill Location | Instruction File |
|---|---|---|
| Claude Code (project) | .claude/skills/memstate/SKILL.md | CLAUDE.md |
| Claude Code (global) | ~/.claude/skills/memstate/SKILL.md | — |
| Kilo Code (project) | .kilocode/skills/memstate/SKILL.md | .kilocode/rules/memstate.md |
| Kilo Code (global) | ~/.kilocode/skills/memstate/SKILL.md | ~/.kilocode/rules/memstate.md |
| Cline | .clinerules/memstate.md | .clinerules/memstate.md |
| Cursor (project) | .cursor/rules/memstate.mdc | .cursor/rules/memstate.mdc |
| Cursor (global) | ~/.cursor/rules/memstate.mdc | ~/.cursor/rules/memstate.mdc |
| Windsurf | .windsurf/rules/memstate.md | .windsurf/rules/memstate.md |
| AGENTS.md (universal) | .claude/skills/memstate/SKILL.md | AGENTS.md |
| Gemini CLI | .claude/skills/memstate/SKILL.md | GEMINI.md |
Manual Installation
Prefer to install manually? Use the commands below for your specific agent.
Claude Code (project-level)
mkdir -p .claude/skills/memstate
curl -o .claude/skills/memstate/SKILL.md \
https://raw.githubusercontent.com/memstate-ai/memstate-skills/main/memstate/SKILL.mdClaude Code (Plugin — recommended for teams)
Register the Memstate skills repository as a Claude Code plugin marketplace, then install:
/plugin marketplace add memstate-ai/memstate-skillsCline
mkdir -p .clinerules
curl -o .clinerules/memstate.md \
https://raw.githubusercontent.com/memstate-ai/memstate-skills/main/memstate/SKILL.mdCursor
mkdir -p .cursor/rules
curl -o .cursor/rules/memstate.mdc \
https://raw.githubusercontent.com/memstate-ai/memstate-skills/main/memstate/SKILL.mdKilo Code (global)
mkdir -p ~/.kilocode/skills/memstate
curl -o ~/.kilocode/skills/memstate/SKILL.md \
https://raw.githubusercontent.com/memstate-ai/memstate-skills/main/memstate/SKILL.mdWindsurf
mkdir -p .windsurf/rules
curl -o .windsurf/rules/memstate.md \
https://raw.githubusercontent.com/memstate-ai/memstate-skills/main/memstate/SKILL.mdAGENTS.md / CLAUDE.md / GEMINI.md (Universal)
For any agent that reads AGENTS.md (OpenAI Codex, Gemini CLI, Amp, Jules, Factory, and others):
curl -o memstate-instructions.md \
https://raw.githubusercontent.com/memstate-ai/memstate-skills/main/memstate/SKILL.md
# Then append to your AGENTS.md / CLAUDE.md / GEMINI.mdPrerequisites
The Memstate skill requires the Memstate MCP server to be configured with an API key. Get a free API key at memstate.ai/dashboard, then run:
npx @memstate/mcp setup
Or follow the MCP Setup Guide.