Skip to content
Back to skills

Install

ASecurity

Install openwolf npm and run `openwolf init` in cwd. TRIGGERS - install openwolf, openwolf init, set up openwolf.

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentsshellbashnode

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 2, 2026

npx -y skills add terrylica/cc-skills --skill install --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Install?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Install
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/terrylica-install-cf819f55/badge)](https://www.skillsdirectory.com/skills/terrylica-install-cf819f55)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: install
description: "Install openwolf npm and run `openwolf init` in cwd. TRIGGERS - install openwolf, openwolf init, set up openwolf."
allowed-tools: Read, Bash, Glob, AskUserQuestion
---

# Install OpenWolf

Install the third-party `openwolf` npm package and initialize it in the **current project** (cwd at invocation). The plugin itself contains no openwolf code — it shells out to the published binary.

> **Self-Evolving Skill**: If install steps drift (renamed flags, new prerequisites, npm vs pnpm churn), fix this file. Only update for real, reproducible issues.

## Prerequisites

| Component    | Required | Check                                                                          |
| ------------ | -------- | ------------------------------------------------------------------------------ |
| Node.js 20+  | Yes      | `node --version`                                                               |
| npm/pnpm/bun | One      | `command -v npm pnpm bun`                                                      |
| PM2          | Optional | `command -v pm2` (for the auto-started daemon — degrades gracefully if absent) |

## When NOT to run this

Confirm with the user before initializing in any of these:

- The cc-skills marketplace repo itself (this repo) — anatomy.md would be noise across 197 skills.
- Tiny one-shot scripts or directories without a clear "project" boundary.
- Any project where `.claude/settings.json` is auto-managed by another tool that does not preserve foreign hook entries.

## Workflow

### Step 1: Preflight + confirm

```bash
node --version || { echo "FAIL: Node.js 20+ required"; exit 1; }
PROJECT_ROOT="$(pwd)"
echo "Will install openwolf globally and initialize in: $PROJECT_ROOT"
[ -d "$PROJECT_ROOT/.wolf" ] && echo "NOTE: .wolf/ already exists — init will run in upgrade mode (preserves user data)."
```

If `CLAUDE.md` already exists in the project, warn the user that openwolf will **prepend** a 225-byte snippet to it. Use AskUserQuestion if the project's `CLAUDE.md` has structured top-of-file metadata that the user might not want disturbed.

### Step 2: Install the global binary

Pick the first available package manager:

```bash
if command -v pnpm >/dev/null; then pnpm add -g openwolf
elif command -v bun  >/dev/null; then bun add -g openwolf
else                                 npm install -g openwolf
fi
openwolf --version || { echo "FAIL: openwolf binary not on PATH after install"; exit 1; }
```

### Step 3: Initialize in the current project

```bash
cd "$PROJECT_ROOT" && openwolf init
```

This creates `.wolf/`, merges 6 hooks into `.claude/settings.json`, writes `.claude/rules/openwolf.md`, prepends a snippet to `CLAUDE.md`, registers in `~/.openwolf/registry.json`, and (if PM2 is installed) starts daemon `openwolf-$(basename "$PROJECT_ROOT")`.

### Step 4: Verify

```bash
openwolf status
```

Confirm: `.wolf/` files present, hook scripts present, hooks registered, anatomy file count matches expectations.

### Step 5: Surface what was added

Tell the user concisely:

- `.wolf/` directory at `$PROJECT_ROOT/.wolf/` (data the user owns)
- 6 hooks merged into `$PROJECT_ROOT/.claude/settings.json`
- Snippet prepended to `$PROJECT_ROOT/CLAUDE.md`
- Rules file at `$PROJECT_ROOT/.claude/rules/openwolf.md`
- Registry entry at `~/.openwolf/registry.json`
- Daemon: whatever `openwolf status` reported

To remove cleanly later: `/openwolf:remove`.

## Post-Execution Reflection

After this skill completes, before closing the task:

0. **Locate yourself.** — This SKILL.md path before editing.
1. **What failed?** — Fix the failing step here, not in a separate doc.
2. **Did the package manager preference order misfire?** — Reorder pnpm/bun/npm if needed.
3. **Did `openwolf init` mutate something unexpected?** — Document under "When NOT to run this".

Do NOT defer. The next invocation inherits whatever you leave behind.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.