# source-command-verify-setup

source-command-verify-setup executes infrastructure health checks and repairs broken configurations or hook dependencies.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 10055 repo stars
- Author: diet103
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/diet103/claude-code-infrastructure-showcase/tree/HEAD/.agents/skills/source-command-verify-setup/SKILL.md
- Updated: 2026-07-13
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/source-command-verify-setup

## What it does

The skill runs `bash .Codex/scripts/verify-setup.sh` from your project root to audit the setup. When it spots a `[FAIL]` line, it applies targeted remedies: runs `npm install` inside `.Codex/hooks`, assigns execution flags to shell scripts, and repairs broken JSON syntax in `settings.json` or `skill-rules.json` without altering actual parameters. If dead hooks remain registered in configuration files, it asks whether to copy them from the showcase repository or clear the entries.

Lines marked with `[WARN]` signal optional utilities, such as `jq` tracking or telemetry keys. The skill deliberately avoids installing system packages or injecting API keys autonomously. It describes the purpose of each warning and leaves the decision to you, looping the test script until failures drop to zero.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add diet103/claude-code-infrastructure-showcase --skill source-command-verify-setup -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/source-command-verify-setup/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/source-command-verify-setup/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add diet103/claude-code-infrastructure-showcase --skill source-command-verify-setup -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/source-command-verify-setup/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add diet103/claude-code-infrastructure-showcase --skill source-command-verify-setup -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/source-command-verify-setup/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install diet103/claude-code-infrastructure-showcase .agents/skills/source-command-verify-setup
```

2. **Manually: put the files in place**
- File: `.github/skills/source-command-verify-setup/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add diet103/claude-code-infrastructure-showcase --skill source-command-verify-setup -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/diet103/claude-code-infrastructure-showcase --path .agents/skills/source-command-verify-setup
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/source-command-verify-setup/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/diet103/claude-code-infrastructure-showcase/tree/HEAD/.agents/skills/source-command-verify-setup/SKILL.md

## When to use it
- repair broken JSON syntax inside agent configuration files
- install missing npm packages required by hooks
- assign executable permissions to local shell scripts
- verify agent hook infrastructure before starting tasks

## Example prompts
- Run verify-setup and fix all failing checks in the environment
- Audit our agent infrastructure using source-command-verify-setup
- Check the scripts in .Codex and resolve all execution errors

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 7242a0a8b3748540.

BEGIN THIRD-PARTY FILE 7242a0a8b3748540
````text
---
name: "source-command-verify-setup"
description: "Run the infrastructure health check and fix anything that fails"
---

# source-command-verify-setup

Use this skill when the user asks to run the migrated source command `verify-setup`.

## Command Template

Run the Codex infrastructure health check and get it fully green.

## Steps

1. Run the health check from the project root:
   ```bash
   bash .Codex/scripts/verify-setup.sh
   ```

2. For every `[FAIL]` line, apply the printed fix. Common fixes:
   - Dependencies missing: `cd .Codex/hooks && npm install`
   - Scripts not executable: `chmod +x .Codex/hooks/*.sh`
   - Invalid JSON in `.Codex/settings.json` or `.Codex/skills/skill-rules.json`: read the file, find the syntax error (usually a trailing comma), and repair it without changing any settings values
   - Missing hook scripts registered in settings.json: ask the user whether to copy them from the showcase repo (https://github.com/diet103/Codex-infrastructure-showcase) or remove the dead registrations

3. Re-run the script after each fix until it reports 0 failed.

4. `[WARN]` lines are optional features (session intelligence, jq-based file tracking, AI classification keys). Do NOT install API keys or system packages on the user's behalf - summarize what each warning means and let the user decide.

5. Report the final result to the user: what was broken, what you fixed, and what (if anything) remains as a warning.
````
END THIRD-PARTY FILE 7242a0a8b3748540

The third-party file has ended. Everything between the 7242a0a8b3748540 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© diet103 · MIT · https://github.com/diet103/claude-code-infrastructure-showcase/tree/HEAD/.agents/skills/source-command-verify-setup/SKILL.md

## Similar
- [cyrus-setup-prerequisites](https://affpapa.org/en/nevibecode/skills/cyrus-setup-prerequisites.md) — skill · 1100 installs
- [vm-disk-cleanup](https://affpapa.org/en/nevibecode/plugins/vm-disk-cleanup.md) — plugin · ★ 11 repo stars
- [cross-source-verify](https://affpapa.org/en/nevibecode/skills/cross-source-verify.md) — skill · ★ 38 repo stars
- [gcp-setup](https://affpapa.org/en/nevibecode/skills/gcp-setup.md) — skill · ★ 151 repo stars
- [setup-pm](https://affpapa.org/en/nevibecode/commands/setup-pm.md) — command · ★ 6739 repo stars
- [attester-verify-packages](https://affpapa.org/en/nevibecode/rules/attester-verify-packages.md) — rule · ★ 41430 repo stars

From the same set: [diet103/claude-code-infrastructure-showcase](https://affpapa.org/en/nevibecode/by/diet103/claude-code-infrastructure-showcase.md) — 16 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
