Works with the AI Agents you already use

    Echonpc

    by Mariami Iadze

    1

    Fantasy NPC roleplay skill with persistent SQLite memory, relationship tracking, and custom character creation.

    Free

    Security scanned
    Echonpc

    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

    FieldValue
    Typepromise
    Keyreturn_silver_key
    SummaryPlayer promised to bring the silver key to the tavern tonight.
    Evidence"I'll bring it to the tavern tonight."
    Importance0.7

    Next steps

    1. Run python scripts/echonpc.py record-turn --npc merchant_01 --message-file msg.txt --turn-file turn.json to commit this promise to the SQLite database.
    2. Use python scripts/echonpc.py relationship --npc merchant_01 to see if this promise improved your standing.
    3. 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

    1. Initialize the session by running python scripts/echonpc.py init to select a player alias and an NPC profile.
    2. Call the context command before generating a reply to pull the last ten relevant memories and the current relationship status.
    3. Generate the NPC dialogue using the host model, adhering to the retrieved lore and personality constraints.
    4. Commit the turn by passing a JSON object containing the reply and any new candidate memories to the record-turn command.

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    Unlike standard prompting where characters forget events as the conversation grows, Echonpc uses a local SQLite database to store and retrieve specific dialogue history and world facts, ensuring NPCs remember player choices across multiple sessions.

    The skill is compatible with any local AI agent that can execute Python 3.10+ scripts and manage a local filesystem, making it ideal for desktop-based agent environments.

    You receive a suite of Python scripts for memory management, a set of pre-configured fantasy character profiles, and the JSON schema required to build and export your own custom NPCs.

    Setup is straightforward: you initialize your session via the command line to select your player alias and NPC, after which the system automatically handles the database creation and character loading.

    Yes, Echonpc includes a deterministic relationship tracking system that updates based on player interactions, allowing NPCs to change their tone and behavior as your bond evolves.

    Echonpc is designed for local execution to ensure data privacy and low latency; it does not currently support cloud-hosted database backends like Supabase or Pinecone.

    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.

    Free