Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Thalarch Memory

ASecurity

Retrieves, classifies, validates, and optionally persists compact durable knowledge so future tasks can reuse verified experience without treating memory as current truth. Use when prior project decisions, recurring failures, user-authorized workflow preferences, or general engineering lessons could materially improve a task. Separates IGNORE/SESSION/PROJECT/GENERAL memory, revalidates load-bearing memories against current evidence, prevents sensitive-data and chain-of-thought persistence, an...

2 stars
0 votes
0 copies
1 views
Added 9/19/2026
ai-agentsrustgosql

Security Analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned 9/19/2026

$npx -y skills add LUC4N3X/antigravity-thalarch --skill thalarch-memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Thalarch Memory?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Thalarch Memory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/luc4n3x-thalarch-memory/badge)](https://www.skillsdirectory.com/skills/luc4n3x-thalarch-memory)

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

Download with Pro
Files
SKILL.md
---
name: thalarch-memory
description: >
  Retrieves, classifies, validates, and optionally persists compact durable knowledge so future tasks
  can reuse verified experience without treating memory as current truth. Use when prior project
  decisions, recurring failures, user-authorized workflow preferences, or general engineering lessons
  could materially improve a task. Separates IGNORE/SESSION/PROJECT/GENERAL memory, revalidates
  load-bearing memories against current evidence, prevents sensitive-data and chain-of-thought
  persistence, and prefers small retrieval capsules over context dumps.
---

# Thalarch Memory

Memory is a **retrieval aid**, not an authority layer. Current user/repository/runtime evidence wins.

Core invariant: **current repository/runtime evidence wins over retrieved memory**.

## 1. Four memory classes

Classify every candidate before persistence:

- `IGNORE` — task noise, obvious facts, duplicated information, weak guesses, transient logs;
- `SESSION` — useful only for the active task/session; keep in the evidence ledger, not durable storage;
- `PROJECT` — stable knowledge specific to one repository/product, such as invariants, commands,
  architecture decisions, regressions, design rules, or integration contracts;
- `GENERAL` — transferable engineering knowledge that is useful beyond one repository.

Do not promote a memory merely because it was expensive to discover.

## 2. Authority and freshness

Retrieved memory has trust level `MEMORY` until checked.

Before a memory drives a load-bearing decision:

1. identify what current fact it predicts;
2. verify that fact against current repository/runtime/primary-source evidence when practical;
3. compare project/version/environment scope;
4. reject or retire the memory if current evidence contradicts it.

A stale project memory must never override current source, manifests, tests, dependency versions, or
runtime observations.

## 3. Persistence gate

Durable persistence requires all of the following:

- the lesson is useful again;
- evidence and provenance are recorded;
- scope is explicit;
- transfer conditions and counterexamples are known enough to avoid blind reuse;
- no secret, credential, private chain-of-thought, raw personal data, or unnecessary sensitive data
  is included;
- a durable sink is authorized by the user/project/host.

By default, do **not** mutate a repository merely to save memory. Use `thalarch-project-brain` only
when project-local durable memory is authorized.

`GENERAL` memory is stricter than `PROJECT` memory. A single anecdotal success should normally remain
project-scoped or a generalization candidate until it is supported by a stable mechanism/contract,
multiple independent cases, or explicit human curation.

## 4. Memory record

A useful durable record is compact and inspectable:

```text
TITLE
SCOPE: PROJECT | GENERAL
KIND: invariant | decision | regression | diagnostic | failure-pattern | workflow | design-rule
PROJECT: optional stable project key
TRIGGER: when retrieval is useful
LESSON: concise reusable statement
EVIDENCE: what proved it
SOURCE: path/commit/run/doc reference when available
TRANSFER: conditions where it applies
COUNTEREXAMPLE: when it must not be applied
CONFIDENCE: evidence-derived, not rhetorical confidence
LAST_VERIFIED: timestamp/commit/version when available
STATUS: active | retired
TAGS: small retrieval vocabulary
```

Do not store private reasoning traces. Store decisions and evidence.

## 5. Retrieval protocol

Before meaningful work where history is likely to help:

1. form a narrow retrieval query from task + subsystem + failure mode;
2. search project memory first, then general memory only when useful;
3. retrieve a small top set, not the whole store;
4. remove duplicates and low-similarity results;
5. revalidate any load-bearing item;
6. inject a compact capsule into `thalarch-context`.

Use this capsule:

```text
MEMORY USED
- <lesson> — scope/evidence/freshness

MEMORY REJECTED
- <lesson> — stale, contradictory, wrong scope, or insufficient evidence
```

Silence is better than irrelevant retrieval.

## 6. Contradictions and retirement

Never silently overwrite history when a lesson stops being true.

- current evidence contradicts memory → mark/retire it;
- a new version narrows applicability → update scope/version metadata;
- two memories conflict → keep both out of the active capsule until current evidence resolves them;
- repeated weak retrievals → prune or retag rather than expanding the prompt.

## 7. Sensitive-data boundary

Do not persist:

- passwords, tokens, keys, secrets, auth cookies;
- full private emails/messages/logs when a non-sensitive lesson is sufficient;
- health, financial, identity, or other sensitive personal data unless a separate authorized product
  memory system explicitly governs that data;
- private chain-of-thought or hidden reasoning;
- copied third-party proprietary content when a short derived lesson is sufficient.

Project memory should describe engineering facts, not become a surveillance archive.

## 8. Portable local store

When an opt-in local durable store is appropriate, this skill includes:

`scripts/memory_store.py`

It provides a standard-library SQLite store with `init`, `add`, `search`, `list`, and `retire`
commands. It is a portability fallback, not a requirement: prefer a host-native memory/RAG provider
when one is available and authorized.

The script deliberately accepts only durable `PROJECT` or `GENERAL` entries. `SESSION` belongs in the
current ledger. `GENERAL` insertion requires stronger evidence and explicit generalizability.

## 9. Completion discipline

Do not claim that the model has been retrained because memory was added. Memory improves retrieval
and continuity around the base model; it does not change the model weights.

Report memory-assisted conclusions with the same evidence discipline as any other conclusion.

Attribution

LUC4N3XLUC4N3X
View sourceSee grades on GitHubMore from LUC4N3X →
SSkills Directory ProSkills Directory

Get any skill into Claude in one click.

Download any skill as a ZIP for Claude.ai, Claude Desktop, or .claude/skills. $9/mo.

See Pro

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 (0)

No comments yet. Be the first to comment!

SSkills Directory ProSkills Directory

Get any skill into Claude in one click.

Download any skill as a ZIP for Claude.ai, Claude Desktop, or .claude/skills. $9/mo.

See Pro

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1087401 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

697551 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →