Works with the AI Agents you already use
Echonpc
Fantasy NPC roleplay skill with persistent SQLite memory, relationship tracking, and custom character creation.
Free
Echonpc
Example session with this skill installed
I'm talking to merchant_01. He just asked if I had the silver key. Tell him I'll bring it to the tavern tonight. Create a memory for this promise.
- Read your context and instructions
- Compiled the echonpc
I have queried the local memory store for Aldric (merchant_01). There were no prior records of the silver key in your current conversation history. I have generated the response and prepared the memory record for the database.
NPC Interaction: Aldric the Merchant
"The tavern, you say? Aye, I'll be there by the hearth. Don't go losing it in some dark alleyway now; that key is worth more than your tab. I shall see you at sundown."
Memory Record Details
| Field | Value |
|---|---|
| Type | promise |
| Key | return_silver_key |
| Summary | Player promised to bring the silver key to the tavern tonight. |
| Evidence | "I'll bring it to the tavern tonight." |
| Importance | 0.7 |
Next steps
- Run
python scripts/echonpc.py record-turn --npc merchant_01 --message-file msg.txt --turn-file turn.jsonto commit this promise to the SQLite database. - Use
python scripts/echonpc.py relationship --npc merchant_01to see if this promise improved your standing. - Ask Aldric about the "tavern" in your next session to verify the memory retrieval.
Connects securely to your tools. The creator never sees your data.
About this skill
Roleplaying agents often suffer from "goldfish memory," losing track of player promises and world events as the context window shifts. This skill provides a local SQLite-backed memory system and a set of fantasy character profiles to ensure NPC interactions remain consistent across multiple sessions.
What it does
- Persistent Memory stores and retrieves character-specific dialogue history and world facts using a local SQLite database.
- Contextual Retrieval queries relevant past memories based on the player's current message to maintain narrative continuity.
- Evidence-Based Recording validates new memories against exact dialogue quotes before committing them to the database.
- Relationship Tracking manages a deterministic relationship score between the player and each NPC.
- Custom NPC Engine allows developers to define and export new characters using a standardized JSON schema.
- Voice Integration connects to ElevenLabs via Agensi tools for spoken NPC dialogue with saved voice preferences.
How it works
- Initialize the session by running
python scripts/echonpc.py initto select a player alias and an NPC profile. - Call the
contextcommand before generating a reply to pull the last ten relevant memories and the current relationship status. - Generate the NPC dialogue using the host model, adhering to the retrieved lore and personality constraints.
- Commit the turn by passing a JSON object containing the reply and any new candidate memories to the
record-turncommand.
Frameworks & tools
The helper scripts are built with Python 3.10+ using only the standard library (sqlite3, argparse, json). It integrates with Agensi-connected ElevenLabs tools for text-to-speech functionality.
Why this beats prompting it yourself
Standard prompting relies entirely on the context window, which inevitably overflows and causes NPCs to forget critical plot points. This skill offloads long-term storage to a local database, ensuring that a promise made in session one is still remembered in session ten without manual copy-pasting.
Use cases
- Build a persistent RPG companion that remembers player choices and past favors.
- Create a narrative sandbox where multiple NPCs react differently based on shared history.
- Prototype interactive fiction with stable character identities and relationship progression.
- Export and share custom-defined NPCs between different local agent environments.
Known limitations
Requires a local agent capable of executing Python scripts and managing a local filesystem. It does not support hosted application backends like Supabase or Groq directly.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 5 days ago
- Free with an Agensi account
- Software
Python
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.