Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Activate?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/talas9-activate)
---
name: activate
description: "First-time anti-hall setup: model routing and activation sentinel. Use for \"activate anti-hall\", \"set up anti-hall\"."
---
# anti-hall:activate
## When to use
One-shot idempotent anti-hall setup. Reports model-routing state, writes a sentinel so it doesn't repeat, and does not install the retired statusline. Use when the user says "activate anti-hall", "set up anti-hall", "run first-time setup", or "anti-hall activate". NOT auto-run — user-invoked only.
One-shot, idempotent first-time setup for anti-hall. Run this once after installing the
plugin. It is **never** auto-invoked — always user-triggered. Re-running is safe (idempotent).
## What it does
0. **Engine install (explicit)** — the hooks run the thin client `~/.anti-hall/ah-engine/bin/ah-hook`; until it is installed they pass
through with one notice per session, and nothing is downloaded on its own (`engine.bootstrap` defaults to false). If
`~/.anti-hall/ah-engine/bin/ah-hook` is missing, ask the user, then run the plugin's one shell file:
`sh "${CLAUDE_PLUGIN_ROOT}/hooks/install.sh" --download -v` (sha256-pinned to `ah-engine.lock`; once the thin client exists the
same command hands over to `ah-hook install`).
1. **Statusline retired** — do not write Claude `statusLine`. If an older anti-hall statusline exists, tell the user `uninstall-statusline` remains available for cleanup.
2. **Model-routing state** — strict mode is the **default** (setting `guards.modelRouting`). No action
needed. Reports: `ANTIHALL_MODEL_ROUTING` is unset (strict) or set to `advisory`
(opt-out). Strict blocks omitted-model mechanical spawns unconditionally.
To opt out: set `ANTIHALL_MODEL_ROUTING=advisory` in the project's
`.claude/settings.json` env block.
3. **Sentinel write** — writes `~/.anti-hall/activated.json` with the activation
timestamp and installed version so future runs report "already activated" and exit 0
immediately. The sentinel is advisory — resetting it does not change any real config.
4. **No restart reminder** — activation no longer changes `statusLine`.
## Steps
1. **Check the engine, then the sentinel.** If `~/.anti-hall/ah-engine/bin/ah-hook` is missing, do step 0 of "What it does" first (a sentinel does not mean the engine is installed). If `~/.anti-hall/activated.json` exists and is valid JSON,
report the previous activation date + installed version and exit 0 (idempotent).
2. **Do not install statusline.** If an old anti-hall `statusLine` is causing trouble, use `uninstall-statusline`; otherwise leave user settings untouched.
3. **Report model-routing.** No action required. Print:
> "Model-routing: STRICT (default). Omitted-model mechanical spawns are
> blocked. Set ANTIHALL_MODEL_ROUTING=advisory in your project's .claude/settings.json
> env block to opt out."
If `ANTIHALL_MODEL_ROUTING=advisory` is already set in the environment, print:
> "Model-routing: ADVISORY (opted out). Set ANTIHALL_MODEL_ROUTING=advisory detected.
> Remove it to restore strict-default blocking."
4. **Write sentinel.** Delegate a subagent to run:
```js
const os = require('os');
const fs = require('fs');
const path = require('path');
const pluginJson = path.join(process.env.CLAUDE_PLUGIN_ROOT, '.claude-plugin', 'plugin.json');
const version = JSON.parse(fs.readFileSync(pluginJson, 'utf8')).version;
const dir = path.join(os.homedir(), '.anti-hall');
fs.mkdirSync(dir, { recursive: true });
fs.writeFileSync(
path.join(dir, 'activated.json'),
JSON.stringify({ activatedAt: new Date().toISOString(), version }, null, 2) + '\n'
);
console.log('Sentinel written.');
```
5. **No restart reminder.** There is no activation-time settings change.
## What stays opt-in (unchanged)
These are NOT touched by activate — they remain opt-in and require explicit user action:
| Feature | How to enable |
|---------|--------------|
| `mcp-reaper` companion | `~/.anti-hall/ah-engine/bin/ah-engine units heal` (the engine runs the reaper as a scheduled job; see `mcp-reaper`) |
| `ANTIHALL_API_GUARD_THIRDPARTY` | Set env var to `1` in project settings |
| `ANTIHALL_SHIPIT_GATE` | Set env var to `1` in project settings |
| `ANTIHALL_MERGE_GATE` | Set env var to `1` in project settings |
| Semantic judge | Set `jev.semanticJudge` to true (or `ANTIHALL_SEMANTIC_JUDGE=1`) + store `anthropic_api_key` in the plugin options |
## Important constraints
- **Never auto-run as a SessionStart side-effect.** This skill is user-invoked only.
The always-on hooks (git-guard, api-guard, command-guard, model-routing-guard, etc.)
are active from the moment the plugin is installed — no activation step needed for
them. This skill now covers first-run orientation only.
- **Do not call install-statusline.** It is a retained no-op and must not be used as setup.