/konductor:persistent-memoryfrom Konductor
Persists project conventions, environment facts, and user preferences to bounded memory files that survive across sessions. Activates after error recovery, user corrections, or discovery of durable conventions.
Ships in Konductor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Local scratchpad (.konductor/memory/): personal, per-user, per-workspace. Never shared automatically. This is YOUR memory.
| File | Purpose | Default limit |
|---|---|---|
.konductor/memory/MEMORY.md | Project/codebase/environment facts | 2,200 chars |
.konductor/memory/USER.md | Personal preferences and working style | 1,375 chars |
Semantic rule: If it describes the project, repo, or environment → MEMORY.md. If it describes how the user likes to work → USER.md.
Timestamped bullet lines, one fact per line:
- [2026-05-15] Project uses DynamoDB single-table design
- [2026-05-18] User prefers concise responses
Load .konductor/memory/MEMORY.md and .konductor/memory/USER.md via fs_read at session start for context, skipping silently if a file doesn't exist. Re-read the target file immediately before preparing a write operation, but not mid-session purely for in-context reasoning.
Re-read the target file from disk.
Prepare the full file content — all existing entries plus the new/updated one.
Pipe through the validator. Try these locations in order and use the first executable match:
ROOT="$(git rev-parse --show-toplevel 2>/dev/null)"
PROJECT="" CHECKOUT=""
[ -n "$ROOT" ] && [ -f "$ROOT/.konductor/manifest" ] && PROJECT="$ROOT/.konductor/skills/persistent-memory"
[ -n "$ROOT" ] && grep -qs '"name": *"konductor"' "$ROOT/.claude-plugin/marketplace.json" && CHECKOUT="$ROOT/skills/persistent-memory"
VALIDATOR=""
for d in "${CLAUDE_SKILL_DIR}" "${SKILLS_HOME:-$HOME/.konductor/skills}/persistent-memory" "$PROJECT" "$CHECKOUT"; do
[ -n "$d" ] && [ -x "$d/scripts/memory-validator.sh" ] && { VALIDATOR="$d/scripts/memory-validator.sh"; break; }
done
[ -n "$VALIDATOR" ] || { echo "ERROR: memory-validator.sh not found; not writing memory" >&2; exit 1; }
printf '%s' "$PROPOSED_CONTENT" | bash "$VALIDATOR" ".konductor/memory/MEMORY.md"
Trust order, first match wins:
${CLAUDE_SKILL_DIR}: Claude Code replaces this with the skill's own
directory, for a plugin install and a .claude/skills/ install. Other
runtimes leave it empty, so it is skipped.${SKILLS_HOME:-$HOME/.konductor/skills}/persistent-memory: a global Kiro CLI
install (konductor install with no --target).<git root>/.konductor/skills/persistent-memory: a project install, used only
when that root has konductor's install record, .konductor/manifest.<git root>/skills/persistent-memory: a konductor source checkout, used only
when .claude-plugin/marketplace.json there names konductor.A repo is searched only if it has .konductor/manifest or a .claude-plugin/marketplace.json that names konductor.
Exit 0 → write succeeded (validator performs atomic write).
Exit 1 → read stderr for reason, adjust and retry once, or skip if unresolvable.
Missing validator: If nothing matches, the snippet exits 1. Fail closed: do not write, log the error, and continue the session normally.
Re-read file → append new bullet line → pipe full content through validator.
Re-read file → replace the matching bullet line in place → pipe full content through validator.
Re-read file → delete the matching bullet line → pipe full content through validator.
If .konductor/memory/ doesn't exist, create the directory, then pass initial content through the validator as normal.
On first write, if .konductor/memory/ is not in .gitignore, add the glob:
printf '.konductor/memory/\n' >> .gitignore
Limits and URL allowlist are configurable via .konductor/memory-config.json at the project root:
{
"limits": {
"memory_max_chars": 2200,
"user_max_chars": 1375
},
"allowlist_patterns": ["*.example.com", "docs.myorg.dev"]
}
limits.memory_max_chars — max characters for MEMORY.md (default: 2200)limits.user_max_chars — max characters for USER.md (default: 1375)allowlist_patterns — glob patterns for permitted URL domains in entries. Empty array = all URLs allowed. Populate with your org's domains to restrict external URLs.A template is provided at skills/persistent-memory/memory-config.json.template. Copy it to .konductor/memory-config.json in your project and customize.
The validator emits warnings for entries older than 90 days. When you see a staleness warning, remove or update the flagged entry before the session ends.
Every 5–10 turns, self-evaluate: Is there anything worth persisting?
Hard checkpoints — always evaluate before moving on:
This skill handles declarative facts, preferences, decisions, and conventions only. Route
reusable multi-step procedures to workspace-skills instead.
| Captured knowledge is... | Route to |
|---|---|
| A fact, preference, decision, or convention | persistent-memory |
| A reusable multi-step procedure or workflow | workspace-skills |
| A one-time observation (not durable) | Neither — discard |
BEFORE creating a new memory entry, you MUST check for overlap.
Scan .konductor/memory/MEMORY.md and .konductor/memory/USER.md. Both are loaded at session
start (per AGENTS.md) and are already in your context. Read them directly for the overlap
check; no file I/O needed when they are already in context.
Decision rules:
[origin:agent]; see Provenance below)[origin:agent]; otherwise create newDuplicates dilute memory quality and degrade recall.
Every agent-created memory entry MUST carry [origin:agent] inline after the timestamp.
When the user explicitly dictates what to remember, write [origin:user].
- [2026-06-12] [origin:agent] Discovered: project uses vitest not jest
- [2026-06-12] [origin:user] Always deploy to us-west-2 first
| Marker on entry | Agent may PATCH? |
|---|---|
[origin:agent] | Yes |
[origin:user] | Never |
| No marker (untagged / legacy) | Never |
If you cannot determine provenance, treat the entry as user-authored. When a user-authored entry needs updating, append a new agent-authored entry with context rather than modifying the original.
| Capture type | Confirmation? | Notification? |
|---|---|---|
| Durable fact / convention | ❌ No | ✅ "Saved: <summary>" |
| User implicit correction | ❌ No | ✅ "Captured: <summary>" |
| User-dictated memory | ❌ No (explicit ask) | ✅ "Saved: <summary>" |
All autonomous captures produce a visible notification. Do NOT wait for permission before saving a durable fact — notify immediately after writing.
If the capture turns out to be situational, the user can say "don't save that" in the next turn and the entry can be removed.
Claude Code maintains its own CLAUDE.md file for project context. This coexists with .konductor/memory/. They serve different purposes. CLAUDE.md is Claude-managed and auto-updated. .konductor/memory/ is agent-managed via the validator. Do not duplicate content between them. If both exist, use both as context sources.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aws-solutions/konductor --plugin konductor101 skills in this plugin
/about-konductorGets a new user from nothing to a working Konductor session — install the CLI, start the orchestrator, and describe real work in plain language. Covers the real `konductor` CLI command surface, example orchestrator prompts, and the agent/skill/SOP model. Use when a user asks "what is Konductor", "how do I install this", "what can I ask it", or "what's the difference between an agent, a skill, and a SOP"./adr-generatorProduces a complete inline ADR (Context, Decision, Status, Alternatives, Consequences). Use when a significant design decision is identified during design doc creation, when an engineer asks to document a decision as an ADR, or when an existing ADR is incomplete (missing alternatives, consequences, or status). Trigger phrases — "generate an ADR for this decision", "document this as an architecture decision record", "create an ADR for choosing X over Y"./adversarial-code-reviewTargets the three gap categories standard review misses: information disclosure, data integrity, and schema validation. Use for a second-pass review after standard code review, as the checker in a maker-checker cycle, or before submitting a change that touches auth, data writes, or external API boundaries./adversarial-code-review-pass-integrityReviews a diff through the lens of data integrity — multi-item mutations, atomicity, ordering, idempotency. One pass of the parallelized adversarial review; the coordinator spawns this alongside security and schema passes./adversarial-code-review-pass-schemaReviews a diff through the lens of schema and contract — API/schema/type changes, backward compatibility, validation completeness. One pass of the parallelized adversarial review; the coordinator spawns this alongside security and integrity passes./adversarial-code-review-pass-securityReviews a diff through the lens of security concerns — information disclosure, authorization, injection, secrets. One pass of the parallelized adversarial review; the coordinator spawns this alongside integrity and schema passes.Other plugins' skills for the same job