Promptocop — AI skill for Claude Code
Promptocop is a prompt linter for your AI models.
How to install Promptocop
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open victor-aguilars/promptocop and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Promptocop does
Promptocop is a prompt linter for your AI models.
Alternatives in AI
- Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
- Qwen Code — A command-line AI workflow tool adapted from Gemini CLI, optimized for Qwen3-Coder models with enhanced parser 20.8k ★
- Deepreasoning — A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthr 5.4k ★
README
A prompt linter for Claude Code and Cursor. Analyzes your prompts for anti-patterns and surfaces issues as context for the model — like ESLint, but for the things you type.
Setup
There are two integration modes. Pick one — or use both.
Option 1: Agent Skill (recommended)
Installs a `SKILL.md` that Claude Code and Cursor load automatically. The editor applies the rules using its own reasoning — no shell execution, no `npx` on every prompt:
# Claude Code (default)
npx promptocop skill install
# Cursor
npx promptocop skill install --target cursor
This writes a `SKILL.md` to your editor's skills directory. Your editor picks it up immediately. To install at project scope instead:
npx promptocop skill install --project
npx promptocop skill install --target cursor --project
To remove:
npx promptocop skill uninstall
npx promptocop skill uninstall --target cursor
**Other editors:** If your editor supports agent skills but isn't listed above, print the `SKILL.md` to stdout and place it wherever your editor expects:
npx promptocop skill generate > /path/to/your/editor/skills/promptocop/SKILL.md
Option 2: Hook (shell-based)
Adds an editor hook that runs `npx promptocop lint --hook -` before every prompt. Regex-based, fast, zero Claude tokens:
# Claude Code (default)
npx promptocop hook install
# Cursor
npx promptocop hook install --target cursor
For Claude Code this adds a `UserPromptSubmit` hook to `~/.claude/settings.json`. For Cursor it adds a `beforeSubmitPrompt` hook to `~/.cursor/hooks.json`. When a prompt has issues, the lint results are injected as context so the model can factor them into its response — nothing is blocked by default.
To remove:
npx promptocop hook uninstall
Related Skills
Ritchie
Agentic linter for Claude Code best practices. Catches prompt anti-patterns, audits workspace structure, valid
Lamoom Python
by LamoomAI - Serves as reference for production prompt engineering library with load balancing of AI Models,
Fight Prompt Director
AI动作导演Skill Fight-scene prompt choreography for Seedance, MiniMax-H3 and AI video models
AI Ad Prompt Guide
Universal prompting framework for AI video and image generation — works across all major models. ---
Prompt To Skill
Build, standardize, and validate reusable AI skills across models with a portable abstraction layer
UX Lint
Deterministic regex-based linter for AI fingerprints. No LLM, no API, no network. CI-friendly — exits non-zero
Related Agents
Video Policy Screener
Use before spending credits on a multi-clip AI video script - predicts content-filter refusals (news/NPOV fram
PHP Review
Read-only reviewer for PHP code cleanliness a linter cannot catch. Returns findings; never edits. Dispatch wit
Dart Specialist
Owns Dart language usage: sound null safety, records, patterns and exhaustiveness, sealed classes, mixins, asy