Skip to content
Back to skills

Parzival Save Insight Hidden History Ai Memory

ASecurity

Save a Parzival insight or learning to Qdrant for cross-session memory

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agents

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill parzival-save-insight-hidden-history-ai-memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Parzival Save Insight Hidden History Ai Memory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Parzival Save Insight Hidden History Ai Memory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-parzival-save-insight-hidden-history-ai-memory/badge)](https://www.skillsdirectory.com/skills/majiayu000-parzival-save-insight-hidden-history-ai-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: parzival-save-insight
description: "Save a Parzival insight or learning to Qdrant for cross-session memory"
---

"""Save Parzival insight to Qdrant: /parzival-save-insight

Store an insight, learning, or pattern discovered during a session.
Lightweight operation — typically 100-500 tokens.

Usage:
    /parzival-save-insight "PyYAML not in test deps caused CI failures"
    /parzival-save-insight "The decay formula uses 0.7/0.3 weighting per BP-060"
"""

from __future__ import annotations

import os
import sys
import time

_install_dir = os.path.expanduser("~/.ai-memory")
sys.path.insert(0, os.path.join(_install_dir, "src"))

from memory.config import get_config
from memory.storage import MemoryStorage
from memory.metrics_push import push_skill_metrics_async


def main():
    start_time = time.perf_counter()
    config = get_config()

    if not config.parzival_enabled:
        print("Parzival is not enabled. Set PARZIVAL_ENABLED=true in .env.")
        return

    if len(sys.argv) < 2:
        print("Error: No insight text provided.")
        print('Usage: /parzival-save-insight "Your insight here"')
        sys.exit(1)

    content = " ".join(sys.argv[1:])

    storage = MemoryStorage(config)
    try:
        result = storage.store_agent_memory(
            content=content,
            memory_type="agent_insight",
            agent_id="parzival",
            cwd=os.getcwd(),
        )
    except Exception as e:
        print(f"Error: Failed to save insight to Qdrant: {e}")
        sys.exit(1)

    status = result.get("status", "unknown")
    if status == "stored":
        print(f"Insight saved (id: {result.get('memory_id', 'unknown')[:8]}...)")
    elif status == "duplicate":
        print("Insight already exists (duplicate detected).")
    else:
        print(f"Storage result: {status}")

    metric_status = "success" if status == "stored" else "error"
    push_skill_metrics_async("parzival-save-insight", metric_status, time.perf_counter() - start_time)

    # Skill tracing (PLAN-014 G-06)
    try:
        from memory.trace_buffer import emit_trace_event
        emit_trace_event(
            event_type="skill_execution",
            data={
                "input": f"Skill: parzival-save-insight"[:10000],
                "output": f"Result: completed"[:10000],
                "metadata": {"skill_name": "parzival-save-insight"},
            },
            session_id=os.environ.get("CLAUDE_SESSION_ID", "unknown"),
            tags=["skill"],
        )
    except Exception:
        pass  # Tracing failures never break skill execution


if __name__ == "__main__":
    main()

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.