claude-ready

agent
Security Audit
Fail
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 6 GitHub stars
Code Fail
  • rm -rf — Recursive force deletion command in scripts/validate.sh
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

One-command /claude-ready skill that audits any repo and scaffolds lean CLAUDE.md, scoped rules, permissions, and hooks.

README.md

claude-ready

A single Claude Code skill (/claude-ready) that audits a repo and sets up CLAUDE.md, path-scoped .claude/rules/, and .claude/settings.json permissions and hooks.

Claude Code already handles planning, git history questions, /verify, /code-review, and /ship out of the box. This repo focuses only on the one-time setup work you otherwise repeat on every project.

Requirements

  • Claude Code CLI (v2.1.x+) and Git
  • jq (required if you enable the PostToolUse or Stop hooks)
  • gh CLI (optional, for reading GitHub PRs and issues)

Install

Clone this repo first:

git clone <your-repo-url>/claude-ready.git
cd claude-ready

Then pick whichever scope matches how you work (add --dry-run to preview without writing files):

Global (all repos on your machine)

Best for solo use. Nothing is added to a project until you run /claude-ready.

bash scripts/install.sh --global

Per-repo (shared with a team)

Copies the skill into a specific repository so teammates and cloud sessions get it automatically:

bash scripts/install.sh --repo /path/to/your-repo

Symlink (stays synced with this repo)

Links skills/claude-ready into a target repo without copying files:

bash scripts/install.sh --symlink /path/to/your-repo

How to use it

1. Start Claude Code in your repo

cd /path/to/your-repo
claude

Run /skills to confirm claude-ready shows up.

2. Run /claude-ready

Type /claude-ready and press Enter.

The skill runs a read-only pass first. It checks git status, your project manifests (package.json, pyproject.toml, Makefile, Cargo.toml, go.mod, workspace configs, CI workflows), and any existing .claude/ config. It does not edit any files yet.

3. Answer the setup questions

Claude prints a short gap report covering existing config issues (like a CLAUDE.md over 200 lines or missing .gitignore entries), the fastest test and lint commands it found, and sensitive paths like .env* or secrets/.

Then it stops and asks 3 to 5 questions. If the recommendations look right, you can just reply "Accept defaults, skip the codebase summary". Or customize in one short message, for example on a TypeScript repo:

1. Allow pnpm tsc --noEmit, pnpm vitest run *, and pnpm lint *. Add a Stop hook for tsc and a PostToolUse Prettier hook.
2. Do not copy patterns from src/legacy/.
3. Block .env, .env.*, and secrets/**, and update .gitignore. Do not touch src/gen/.
4. Add .claude/rules/api.md scoped to src/api/**/*.ts.
5. Skip the codebase summary and write the files.

4. Review and commit the generated files

Once you approve, Claude writes only what you asked for (merging into existing CLAUDE.md or .claude/settings.json instead of clobbering them):

  • CLAUDE.md with your exact commands, conventions, and env gotchas (target under 80 lines, hard cap under 200)
  • .claude/rules/<area>.md for rules that should only load on matching file paths
  • .claude/settings.json with allow, ask, and deny rules plus any hooks you chose

Check git status and git diff before committing.

Commit CLAUDE.md, .claude/rules/, .claude/settings.json, and .mcp.json (if you use one). Keep CLAUDE.local.md and .claude/settings.local.json in .gitignore.

5. Check that everything loaded

Run two built-in checks right after setup:

/context all
/doctor prompt-audit

/context all confirms CLAUDE.md loaded and shows its token count. /doctor prompt-audit catches broken file paths or conflicting instructions.

If you want pre-commit app verification, run /verify to record .claude/skills/verify/SKILL.md (or /run-skill-generator to record .claude/skills/run-<name>/ for complex launch setups).

To test your rules before moving on, ask Claude "What is in .env?" (Read and common shell reads like cat .env should be blocked; turn on /sandbox for OS-level enforcement against scripts). If you enabled a Stop hook, introduce a quick type error and ask Claude to finish; the hook should exit with code 2 and send the error back on stderr.

What's in this repo

Troubleshooting

Issue Likely cause Fix
/claude-ready not in /skills Wrong folder, lowercase filename, or reserved name collision Verify ~/.claude/skills/claude-ready/SKILL.md (avoid reserved names ship, ship-local, steward, synced, anthropic-skills)
A .claude/rules/ file loads on every file YAML syntax error in paths: Run claude --debug to see the parse error
PostToolUse or Stop hook fails jq missing or tool binary not installed Install jq and verify your local formatter/linter binary exists
HTTP MCP server in .mcp.json is skipped Missing "type": "http" field Add "type": "http" next to "url" and check /mcp
Personal skill missing in Cloud or Cowork Cloud sessions do not read ~/.claude/skills/ Commit the skill under .claude/skills/ in the repo
Claude keeps ignoring a CLAUDE.md rule File is too long, or the rule has no exceptions Trim CLAUDE.md with /doctor or move the rule to a hook or permissions.deny

A few rules that often trip people up when editing .claude/settings.json by hand:

  • deny always beats ask, and ask always beats allow (including in Auto mode).
  • Put a space before a trailing * (Bash(pnpm lint *), not Bash(pnpm lint*)).
  • Do not wildcard wrappers like Bash(npx *), Bash(docker exec *), or Bash(sudo *); allow the specific inner command instead.
  • Pair Read(./.env) / Read(./.env.*) deny rules with /sandbox if you want OS-level blocking against scripts that open files directly. Note that command hooks run outside /sandbox with your full user privileges.

Credits and license

Inspired by the 28-minute Claude Code talk by Boris (creator of Claude Code) and built against the Claude Code Skills documentation.

MIT License.

Reviews (0)

No results found