Skip to content
Back to skills

Setup

ASecurity

Set up AI Guard in the current JavaScript/TypeScript project so every change is checked automatically - project hooks for Claude Code, Cursor and Codex, a pre-commit gate, and an agent-config check - after showing the user exactly what will change. Use when the user asks to set up, install or enable AI Guard, or wants checks to run automatically instead of on request.

  • 21 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsjavascripttypescriptjavabashnodegit

Works with

  • claude code
  • cursor
  • mcp

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add ai-guard-dev/eslint-plugin-ai-guard --skill setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup?

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

Security grade badge for Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ai-guard-dev-setup/badge)](https://www.skillsdirectory.com/skills/ai-guard-dev-setup)

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: setup
description: Set up AI Guard in the current JavaScript/TypeScript project so every change is checked automatically - project hooks for Claude Code, Cursor and Codex, a pre-commit gate, and an agent-config check - after showing the user exactly what will change. Use when the user asks to set up, install or enable AI Guard, or wants checks to run automatically instead of on request.
argument-hint: "[--agent claude|cursor|codex|all] [--check-installs]"
---

# Set up AI Guard in this project

This plugin itself only contains instructions. Automatic checks after each edit and before Claude finishes need AI Guard installed in the project, which the `protect` command does. **Only do this when the user asks for it, and only after they have seen the dry run.**

Arguments: `$ARGUMENTS` (passed to `protect`, for example `--agent all` or `--check-installs`).

## 1. Show what would change

From the project root, with Bash:

```bash
npx --yes eslint-plugin-ai-guard@1.4.8 protect --dry-run $ARGUMENTS
```

Show the user the output. It lists:

- the devDependency it installs (`eslint-plugin-ai-guard`, plus `@typescript-eslint/parser` in TypeScript projects), with the project's package manager;
- the hook entries it adds to the project's agent settings (for Claude Code, `.claude/settings.json`: PostToolUse, SessionStart, Stop and PreToolUse): a check after JS/TS edits, a verification when the agent finishes, and confirmation before commands that skip Git hooks (`--no-verify`, `HUSKY=0`);
- the pre-commit gate (`verify --staged`) through the project's hook manager, or `.git/hooks/pre-commit` when there is none (local to that clone);
- the agent-config check of `CLAUDE.md`, `AGENTS.md`, skills and MCP config.

Explain that the hooks run AI Guard from the project's own `node_modules`, are committed with the project, and can be removed by deleting those entries.

## 2. Apply it only if the user agrees

If the user confirms, run the same command without `--dry-run`:

```bash
npx --yes eslint-plugin-ai-guard@1.4.8 protect $ARGUMENTS
```

Running it again changes nothing. Options: `--no-agent-hooks` (no agent hooks), `--no-git-hook` (no pre-commit gate), `--no-install`, `--check-installs` (also check npm packages before agents install them; sends package names to the npm registry).

## 3. Report

Summarize the final output: what was installed and which files were changed. Mention that new project hooks may only take effect in a new Claude Code session, and that the user should review the changed files before committing them.

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.