# Restore Agent

> >

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

## Install

```sh
agentstack add skill-enbiyagoral-claude-restore-agent
```

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

## About

# Restore agent

Target agent: $ARGUMENTS

## Step 1 — Find the archived agent

If no argument given, Glob `.claude/agents/archive/` and list available archived agents, then ask which to restore.

Otherwise check:
- `.claude/agents/archive/.md` → Type A
- `.claude/agents/archive//` → Type B

If neither found, stop and say so.

## Step 2 — Check for name conflicts

Check if the agent already exists as active:
- `.claude/agents/.md` (Type A)
- `.claude/agents//` (Type B)

If it does, stop and warn:

```text
Conflict: .claude/agents/ already exists as an active agent.
Cannot restore — rename or retire the active one first.
```

## Step 3 — Confirm

```text
Restoring:  ()

This will move the agent from .claude/agents/archive/ back to .claude/agents/.
It will become active again.

Proceed? (yes / no)
```

Wait for confirmation.

## Step 4 — Restore

**Type A:**
```bash
git mv .claude/agents/archive/.md .claude/agents/.md
```

**Type B:**
```bash
git mv .claude/agents/archive/ .claude/agents/
```

If git mv is unavailable (untracked files), use Bash mv instead.

## Step 5 — Restore orphaned skills (Type B only)

If the agent is Type B, read its `AGENT.md` Skills table. For each listed skill:

1. Check if the skill exists in `.claude/skills/archive//`
2. If found, offer to restore:

```text
Found archived skills that belong to this agent:
  -  (in .claude/skills/archive/)
  -  (in .claude/skills/archive/)

Options:
  a) Restore those skills too (recommended)
  b) Keep them archived
```

Wait for answer. If (a), run the restore for each skill using `git mv`.

## Step 6 — Print summary

```text
Restored: 
Moved from: .claude/agents/archive/[.md]
Active at:  .claude/agents/[.md]

[Skills also restored: ]  ← if applicable

The agent is now active and will appear in /list-agents.
```

## Source & license

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

- **Author:** [enbiyagoral](https://github.com/enbiyagoral)
- **Source:** [enbiyagoral/.claude](https://github.com/enbiyagoral/.claude)
- **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-enbiyagoral-claude-restore-agent
- Seller: https://agentstack.voostack.com/s/enbiyagoral
- 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%.
