How to install persistent-memory
npx skills add https://github.com/ropl-btc/agent-skills --skill persistent-memoryClaude Code
Cursor
Windsurf
Cline
Full instructions (SKILL.md)
Source of truth, from ropl-btc/agent-skills.
name: persistent-memory description: ALWAYS USE THIS SKILL when handling persistent memory in this workspace, including task-start memory recall, explicit "remember" instructions, storing durable preferences/facts, and retrieving prior context. This skill owns the local memory workflow and CLI for init/sync/search/add/recent/stats.
Persistent Memory
Use this skill as the single memory system for this repository.
Commands
Use either command style:
python3 .agents/skills/persistent-memory/scripts/memory.py <command>.agents/skills/persistent-memory/scripts/pmem <command>
Supported commands:
initsync(database-only health check)cleanup-legacybackfill-embeddings --batch 500prune --source "<label>" [--older-than <days>]search "<query>" --limit 8add "<memory text>" --tags "<comma,tags>" --source "assistant"recent --limit 10stats
Required Workflow
- Initialize memory in a fresh workspace:
pmem init
- At the start of substantial tasks:
pmem sync(database-only health check)pmem search "<topic keywords>" --limit 8
- When user explicitly says
rememberor when a durable preference/fact is learned:
pmem add "<memory text>" --tags "<tags>" --source "assistant"
- Before finalizing memory-sensitive work, verify recall state:
pmem stats
One-Time Migration (If Upgrading From Older Setup)
- Remove legacy imported rows:
pmem cleanup-legacy
- Generate vectors for existing notes:
pmem backfill-embeddings
Storage Rules
- Store durable preferences, long-lived facts, stable workflows, and repeated constraints.
- Do not store noisy one-off transient details unless requested.
- Keep entries concise and specific.
- Prefer tags that improve retrieval quality (
preferences,calendar,comms,product).
Retrieval Rules
- Use targeted search queries instead of broad terms.
- Keep default
--limitlow unless deeper recall is needed. searchautomatically reinforces recalled entries by updatinghitsandlast_seen_at.hitsare analytics-oriented and not used as a direct ranking boost.- Search uses hybrid retrieval: lexical + semantic.
- Semantic search tries
sqlite-vecfirst and auto-falls back to Python cosine if needed.
Bootstrapping and Recovery
- If
.memory/is missing, runpmem init. pmem syncis a lightweight database-only check (no markdown import/export).- If semantic mode degrades, run
pmem statsto inspectsemantic_backendandembedding_coverage. - For command examples and quick troubleshooting, read
references/usage.md.
Related skills
More from ropl-btc/agent-skills and the wider catalog.
AS

asc-app-create-ui
rorkai/app-store-connect-cli-skills
Automate App Store Connect app creation via browser UI when no public API is available.
6.5k installsAudited
AS

asc-apple-ads
rorkai/app-store-connect-cli-skills
Manage Apple Ads campaigns, targeting, and reports via asc CLI with Platform API v1 and legacy v5 support.
2.7k installs
AS

asc-aso-audit
rorkai/app-store-connect-cli-skills
Run offline ASO audits on App Store metadata and surface keyword gaps using Astro MCP.
5.8k installsAudited
AS

asc-build-lifecycle
rorkai/app-store-connect-cli-skills
Track, find, and clean up iOS/macOS builds in App Store Connect.
6.9k installsAudited
AS

asc-cli-usage
rorkai/app-store-connect-cli-skills
Reference for using asc CLI to interact with App Store Connect via commands, flags, and authentication.
7.9k installsAudited
AS

asc-crash-triage
rorkai/app-store-connect-cli-skills
Triage TestFlight crashes, beta feedback, and performance diagnostics from App Store Connect.
6.0k installs