# Self Update

> Checks whether the project's claude-bootstrap setup is current and applies updates safely. Compares the installed version against the source repo, shows what changed, and updates only what the user approves. Triggered by /update.

- **Type:** Skill
- **Install:** `agentstack add skill-shivae372-claude-bootstrap-self-update`
- **Verified:** Pending review
- **Seller:** [shivae372](https://agentstack.voostack.com/s/shivae372)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [shivae372](https://github.com/shivae372)
- **Source:** https://github.com/shivae372/claude-bootstrap/tree/master/.claude/skills/self-update

## Install

```sh
agentstack add skill-shivae372-claude-bootstrap-self-update
```

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

## About

## Purpose
Keep a project's bootstrap config current without clobbering the user's customizations.

## When To Use This
- The user runs `/update` or asks "is my Claude setup outdated?"

## Steps

### 1. Read the installed version
```bash
python3 -c 'import json,pathlib; p=pathlib.Path(".claude/.bootstrap.json"); \
print(json.loads(p.read_text()).get("bootstrap_version","unknown") if p.exists() else "unknown")'
```

### 2. Read the latest version from the source repo
```bash
curl -fsSL https://raw.githubusercontent.com/shivae372/claude-bootstrap/master/VERSION 2>/dev/null || echo unknown
```

### 3. Compare and report (plain language)
- **Up to date** → say so and stop.
- **Outdated** → summarize what changed using the repo's CHANGELOG.md
  (`curl -fsSL https://raw.githubusercontent.com/shivae372/claude-bootstrap/master/CHANGELOG.md`).

### 4. Apply selectively (only what the user approves)
Offer: hooks, skills, commands, stack templates, or just-show-me. For each chosen item:
1. Back up first: `cp  .bak`
2. Re-run the installer in merge mode to pull only new/updated component files:
   `curl -fsSL https://raw.githubusercontent.com/shivae372/claude-bootstrap/master/install.sh | bash -s -- --merge`
3. Update `bootstrap_version` in `.claude/.bootstrap.json`.

## Safety Rules
- NEVER overwrite `USER_PROFILE.json`.
- NEVER overwrite a customized `CLAUDE.md` or `SESSION_STATE.md` without explicit confirmation.
- ALWAYS show what will change before applying, and back up before replacing.

## Source & license

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

- **Author:** [shivae372](https://github.com/shivae372)
- **Source:** [shivae372/claude-bootstrap](https://github.com/shivae372/claude-bootstrap)
- **License:** Apache-2.0

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:** yes
- **Filesystem access:** yes
- **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: flagged — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-shivae372-claude-bootstrap-self-update
- Seller: https://agentstack.voostack.com/s/shivae372
- 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%.
