agent-context-initlisted
Install: claude install-skill lx-wnk/skills
# Initialize Agent-Context
Set up the Agent-Context layered architecture in the current project.
## Examples
```bash
# Initialize with latest version
/agent-context-init
# Initialize with a specific version
/agent-context-init v0.2.1
```
## Prerequisites Check
Before starting, verify this is a valid target:
```bash
ls .agent-context/.agent-context-version 2>/dev/null
```
- If the file **exists**: STOP. Tell the user Agent-Context is already initialized and suggest using the `update` skill instead.
- If the file **does not exist**: proceed with setup.
## Setup
Resolve the target release tag first, then fetch the setup prompt pinned to that tag and follow its instructions. Fetching a specific release tag (never the mutable `main` branch) is deliberate: the tag is pinned for the whole run, so the fetched prompt is fixed between resolution and execution, and it changes only when a new release is published — unlike `main`, which every push mutates. (Full tamper-resistance additionally requires tag/release protection on the source repo.)
```bash
# Resolve target version: explicit $ARGUMENTS, else latest release (never mutable `main`)
TAG="${ARGUMENTS:-$(gh api repos/lx-wnk/Agent-Context/releases/latest --jq .tag_name)}"
curl -fsSL "https://raw.githubusercontent.com/lx-wnk/Agent-Context/${TAG}/.prompts/setup-prompt.md"
```
Follow the fetched instructions, subject to the consent gates in **Trust Boundary & Consent** below. The setup prompt handles:
1. **Version selection