# Skills Restore

> skills.lock.json から全スキルを一括リストアする。--clean で既存スキルを退避後まっさらに再構築、--dry-run でプレビュー。トリガー: 「スキルをリストア」「スキルを復元」「リストア」「restore」

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

## Install

```sh
agentstack add skill-yunosukeyoshino-skill-loom-skills-restore
```

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

## About

# Skills Restore

selected Catalog の Inventory Lock を正として、External → Custom／Vendor → Agent 定義の順に Projection を再構築する。

## Workflow

### Step 1: リストアの実行

```bash
# 通常リストア（冪等 — 既存の上から実行しても安全）
bash "$ENGINE_ROOT/.agents/skills/skills-restore/scripts/skills-restore" --catalog-dir "$CATALOG_ROOT"

# 既存スキルを退避してからまっさらにリストア
bash "$ENGINE_ROOT/.agents/skills/skills-restore/scripts/skills-restore" --catalog-dir "$CATALOG_ROOT" --clean

# 変更を加えずプレビュー
bash "$ENGINE_ROOT/.agents/skills/skills-restore/scripts/skills-restore" --catalog-dir "$CATALOG_ROOT" --clean --dry-run
```

完了基準: スクリプトが exit 0 で終了し、インストール結果のサマリーが出力されていること（`--dry-run` 時はプレビューのみ）。

### Step 2: ユーザーへの報告

通常実行後は、インストールされたスキル一覧と合計件数を報告する。`--dry-run` 時は、インストール予定のスキル一覧と合計件数を報告する。`--clean` 使用時は退避先パスとロールバック手順も案内する。

完了基準: 一覧と合計件数（`--clean` 時は退避先パスとロールバック手順）を報告し終えていること。

## --clean で退避したスナップショットのロールバック

```bash
# 利用可能なアーカイブ一覧
ls ~/.agents/skills-archive/

# ロールバック
bash "$ENGINE_ROOT/.agents/skills/skills-restore/scripts/skills-rollback" 
```

## 処理の流れ

1. **外部スキル**: lock の `external` セクションを source ごとにグループ化し `bunx skills add` で `claude-code`、`codex`、`antigravity` にインストール
2. **Custom／Vendor**: Lock の `custom.repo` を `bunx skills add` でインストール（External を上書き）
3. **Agent 定義**: Catalog の `agents/` を `~/.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:** [YunosukeYoshino](https://github.com/YunosukeYoshino)
- **Source:** [YunosukeYoshino/skill-loom](https://github.com/YunosukeYoshino/skill-loom)
- **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-yunosukeyoshino-skill-loom-skills-restore
- Seller: https://agentstack.voostack.com/s/yunosukeyoshino
- 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%.
