# Save

> Save a knowledge record (decision, preference, milestone, or problem) to MemPalace for the current project wing. Use at end of session or any time after a key insight — no compaction needed.

- **Type:** Skill
- **Install:** `agentstack add skill-vladislavsournine-vladyslav-skills-save`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [VladislavSournine](https://agentstack.voostack.com/s/vladislavsournine)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [VladislavSournine](https://github.com/VladislavSournine)
- **Source:** https://github.com/VladislavSournine/vladyslav-skills/tree/main/skills/save

## Install

```sh
agentstack add skill-vladislavsournine-vladyslav-skills-save
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Save

**Type:** Engineer (light)
**Requires:** MemPalace MCP server

Save a knowledge record to MemPalace for the current project wing. Unlike `compact-save`, this is for capturing *semantic knowledge* (decisions, preferences, milestones, problems) — not task state before compaction.

## When this runs

- User says `/vladyslav:save`, "save to MemPalace", "remember this", "запам'ятай це", "збережи в MemPalace"
- Explicitly triggered at the end of a session when the user wants to persist a key insight without compacting

## Steps

### Step 1: Detect wing

Derive wing from working directory basename (strip leading dots → lowercase → match wings list in `~/.claude/CLAUDE.md`). If ambiguous or outside a known project, prompt the user to confirm or specify the wing.

### Step 2: Identify content and type

If the user provided the content to save in their message → use it directly.

If no content was provided → ask:

> "What should I save to MemPalace? Please describe it briefly, and tell me the type: **decision**, **preference**, **milestone**, or **problem**."

Classify the room type based on the content:
- **decision** — architectural or design choice with rationale ("we use X because Y")
- **preference** — how the user wants things done ("always do X", "never do Y")
- **milestone** — completed work worth remembering ("shipped feature X")
- **problem** — known issue, gotcha, or constraint ("Z breaks when W")

Default to `decision` if the type is unclear.

### Step 3: Check for duplicates

Call `mempalace_check_duplicate` with `wing` = detected wing and `query` = first 80 characters of content.

If a similar record exists → show it to the user and ask:
> "A similar record already exists: ``. Update it, save a new one, or cancel?"

### Step 4: Save to MemPalace

Call `mempalace_add_drawer` with:

- `wing`: detected wing
- `room`: classified room type (`decision` / `preference` / `milestone` / `problem`)
- `name`: short kebab-case slug from the content (max 40 chars), e.g. `use-vitest-not-jest`
- `content`: a plain-text record including the date:

```
[WHAT] 
[WHY] 
[DATE] 
```

Omit `[WHY]` if no rationale was provided.

### Step 5: Confirm

Output one line: `Saved to MemPalace — wing:  room:  ""`

## Failure modes

- **MemPalace unreachable** → output a one-line warning and suggest the user save the note manually. Never block on this.
- **Wing undetectable** → prompt the user before saving. Never guess a wing silently.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [VladislavSournine](https://github.com/VladislavSournine)
- **Source:** [VladislavSournine/vladyslav-skills](https://github.com/VladislavSournine/vladyslav-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-vladislavsournine-vladyslav-skills-save
- Seller: https://agentstack.voostack.com/s/vladislavsournine
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
