# Retire Agent

> >

- **Type:** Skill
- **Install:** `agentstack add skill-enbiyagoral-claude-retire-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/retire-agent

## Install

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

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

## About

# Retire agent

Target agent: $ARGUMENTS

## Step 1 — Find the agent

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

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

If neither found, stop and say so.

## Step 2 — Confirm

```text
Retiring:  ()

This will move the agent to .claude/agents/archive/.
It will no longer be active, but nothing is deleted — you can restore it with /restore-agent .

Proceed? (yes / no)
```

Wait for confirmation.

## Step 3 — Archive

Ensure `.claude/agents/archive/` exists (create if needed).

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

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

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

## Step 4 — Check skill references (Type B only)

Before archiving, check if this agent's `AGENT.md` Skills table lists any skills:

1. Read `.claude/agents//AGENT.md` and scan the Skills table
2. If skills are listed, warn the user:

```text
Warning:  has skills listed in its AGENT.md Skills table:
  - 
  - 

These skills will become orphaned (no parent agent).

Options:
  a) Retire those skills too with /retire-skill (recommended)
  b) Keep the skills and archive the agent anyway
  c) Cancel
```

Wait for answer. If (a), run `/retire-skill` for each listed skill.

## Step 5 — Print summary

```text
Retired: 
Archived to: .claude/agents/archive/[.md]

[Skills also retired: ]  ← if applicable

To restore: move back to .claude/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-retire-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%.
