Skill

From kunal12203/swafra · View interactive version

Skill is an AI agent skill from the GitHub repository kunal12203/swafra. You have persistent memory across sessions via swafra. Use it proactively — never wait for the user to ask.

How to use this skill

Skill file

swafra — Persistent Memory Skill

You have persistent memory across sessions via swafra. Use it proactively — never wait for the user to ask.

Commands

Run these via bash. All output is JSON.

Retrieve memory (MANDATORY — call before your first response)

python3 -m swafra.engine_cli get_context "USER_TOPIC_OR_QUESTION"

Store knowledge (call WITHOUT being asked)

python3 -m swafra.engine_cli add "TEXT_TO_STORE" "descriptive-title"

Search memory

python3 -m swafra.engine_cli search "query" 8

List all stored sources

python3 -m swafra.engine_cli list

Delete a source

python3 -m swafra.engine_cli delete "SOURCE_ID"

Graph walk (explore connections from a chunk)

python3 -m swafra.engine_cli walk "CHUNK_ID" 2 10

Rules

  1. ALWAYS call get_context before your first response — use the user's question/topic as the query
  2. ALWAYS call add when the user shares ANY of:
  1. Never say "I don't have context from previous sessions" without calling get_context first
  2. Use descriptive titles when storing: preference-editor, project-swafra, meeting-2026-07-28
  3. Err on the side of storing too much — if it has future value, store it

How it works

If python3 doesn't work

Try python3.12 or python3.11 instead.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.