Skip to content
Back to skills

Claude Ready

ASecurity

Audits a repository and scaffolds lean Claude Code configuration (CLAUDE.md, path-scoped .claude/rules/, and .claude/settings.json permissions and hooks).

  • 82 stars
  • 0 votes
  • 1 copy
  • 2 views
  • Added November 29, 2026
ai-agentsrustgobashdockergit

Works with

  • claude code
  • mcp

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add shifulegend/claude-ready --skill claude-ready --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Claude Ready?

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

Security grade badge for Claude Ready
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shifulegend-claude-ready/badge)](https://www.skillsdirectory.com/skills/shifulegend-claude-ready)

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: claude-ready
description: Audits a repository and scaffolds lean Claude Code configuration (CLAUDE.md, path-scoped .claude/rules/, and .claude/settings.json permissions and hooks).
disable-model-invocation: true
---

## Live Repo Snapshot
- Root: !`git rev-parse --show-toplevel 2>/dev/null || pwd`
- Status: !`(git status --short 2>/dev/null || echo "not a git repo") | head -n 50`
- Top-level files: !`ls -1A | head -n 50`

## Goal
Audit this repository's Claude Code setup and scaffold ONLY project-specific config Claude cannot infer by reading code. Never create, edit, or overwrite any file until the user approves the Gap Report.

## Phase 1: Read-Only Discovery (NO edits)
1. Inspect existing config if present: `CLAUDE.md`, `.claude/CLAUDE.md`, `CLAUDE.local.md`, `AGENTS.md`, `.claude/rules/`, `.claude/settings.json`, `.mcp.json`, `.claude/skills/`, legacy `.claude/commands/`, and `.gitignore`.
2. Detect build, test, typecheck, and lint commands from manifests (`package.json`, `Makefile`, `pyproject.toml`, `Cargo.toml`, `go.mod`, `.github/workflows/`). If workspace manifests exist (`pnpm-workspace.yaml`, `turbo.json`, `apps/`, `packages/`), note it as a monorepo.
3. Detect sensitive paths (`.env*`, `.env.example`, `secrets/`, credentials), generated or protected folders (`migrations/`, `dist/`, `src/gen/`), and UI test tools (Playwright, Puppeteer, simulators).

## Phase 2: Gap Report & Approval Gate
Present a concise bullet-point Gap Report:
- **Config Audit:** Flag `CLAUDE.md` files over 200 lines, emphatic/shouting rules (`IMPORTANT!`, `NEVER`) or stack boilerplate Claude can read from code, missing `.gitignore` entries (`CLAUDE.local.md`, `.claude/settings.local.json`), or legacy `.claude/commands/` files that should move to `.claude/skills/`.
- **Fastest Feedback Loop:** Recommend exact single-file test, typecheck, and lint commands.
- **Permissions & Hooks:** Use the "can I take it back?" rule: keep reversible preferences in `CLAUDE.md`, and enforce irreversible actions (secret exposure, destructive edits) via `permissions.deny` or hooks. Recommend explicit `.env` secret deny rules (keeping `.env.example` readable if present), `Bash(git push *)` in `permissions.ask`, and optional `PostToolUse` (formatter), `PreToolUse` (protected-path blocker), or `Stop` (typecheck/lint) hooks.

Ask 3 to 5 batched questions with sensible defaults:
1. Which verification command(s) should be allowed, how fast do they run, and should any fast check run in a `Stop` hook (guarded with `stop_hook_active` and a clean-working-tree early exit)?
2. Are there misleading legacy directories or conventions Claude must not copy?
3. Which files or paths should be blocked via `permissions.deny` or a `PreToolUse` hook? (Also confirm adding `CLAUDE.local.md` and `.claude/settings.local.json` to `.gitignore`.)
4. Should we create path-scoped `.claude/rules/*.md` files (or per-package rules in a monorepo)?
5. Do you want a brief read-only codebase summary after setup?

STOP here and wait for explicit user approval before writing any files.

## Phase 3: Write Approved Files
Write ONLY approved files. For existing `CLAUDE.md`, `.claude/settings.json`, or `.gitignore`, merge new entries and preserve existing non-conflicting rules/hooks instead of clobbering them.
1. **`CLAUDE.md` (target under 80 lines, hard cap <200 lines):** Exact commands (install, single test, full test, typecheck, lint), non-obvious conventions or anti-patterns, and env gotchas. Do not duplicate notes Claude already tracks in project Auto-Memory (`MEMORY.md`).
2. **`.gitignore` (if approved):** Append `CLAUDE.local.md` and `.claude/settings.local.json` if missing.
3. **`.claude/rules/<domain>.md` (if approved):** Move area-specific conventions out of root `CLAUDE.md` using YAML `paths:` glob frontmatter.
4. **`.claude/settings.json` (if approved):** Never put `autoMode` in repo `.claude/settings.json` (Claude Code ignores it at project scope).
   - `permissions.allow`: Safe verification commands (space before trailing `*`; no wildcards before subcommands; never wildcard wrappers like `npx *`, `devbox run *`, `docker exec *`, `sudo *`, `bash *`, `sh *`, `env *`).
   - `permissions.ask`: Side-effect commands (e.g., `Bash(git push *)`, which Auto Mode allows by default).
   - `permissions.deny`: Explicit secret variants (`Read`/`Edit` for `./.env`, `./.env.local`, `./.env.development`, `./.env.production`, `./.env.staging`, `./.env.test`, `**/` equivalents, and `./secrets/**`) so `.env.example` remains readable (`Edit(path)` covers `Edit`, `Write`, and `NotebookEdit`).
   - Optional `PostToolUse` hook: Non-blocking local formatter with `--` before `"$f"` and early exit `0` when `file_path` is empty.
   - Optional `PreToolUse` hook: Block edits to protected folders (e.g., `migrations/`, `src/gen/`) by exiting with code `2` and writing the reason to `stderr`.
   - Optional `Stop` hook: Exit `0` when `stop_hook_active` is `"true"` OR when inside a git repo with a clean working tree (no modified, staged, or untracked files); verify tool availability, then run the check redirecting errors to `stderr` (`1>&2 || exit 2`).

## Phase 4: Post-Setup Validation
1. If the user opted in to Q5, provide a concise read-only codebase architecture summary.
2. Instruct the user to run:
   - `/context all` to verify `CLAUDE.md` loaded and check token footprint.
   - `/doctor prompt-audit` to catch conflicting, outdated, or redundant instructions (re-run after major model upgrades).
   - `/auto-mode-setup` (optional) to configure trusted repos, buckets, and domains in `~/.claude/settings.json`.
   - `/verify` (optional) to record `.claude/skills/verify/SKILL.md` for pre-commit app checks, or `/run-skill-generator` to record `.claude/skills/run-<name>/` for complex launch recipes.

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.