Agent skill

Code Police

by srid in srid/emanote

Review code for quality, simplicity, and common mistakes before declaring work complete.

Custom licenceAuto-check passedDevelopment

Install Code Police

skills CLI
$ npx skills add srid/emanote --skill code-police -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install srid/emanote code-police --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/srid/emanote.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/code-police .claude/skills/code-police && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-police
GitHub stars
963
Token cost
~4.1k tokens
SKILL.md length
2,349 words
Files
1
Skills in repo
25
Repo updated
First seen
Licence
Custom licence

At a glance

Review code for quality, simplicity, and common mistakes before declaring work complete.

  • Works in 4 steps: Understand — Read through the changed… → Research — Use WebSearch/WebFetch to… → Apply — Refactor based on what you… → …
  • Tasks that involve Code review
  • SKILL.md covers Arguments, Project rules, Reviewing principles and Rules, plus 3 more sections
  • Calls git

What it does

Code Police is an agent skill from srid/emanote. Review code for quality, simplicity, and common mistakes before declaring work complete.

Its SKILL.md is about 4.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code review. The repository describes itself as: Emanate a structured view of your plain-text notes.

When your agent uses it

  • Tasks that involve Code review

Example prompts

  • “/code-police”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Understand — Read through the changed files. Note patterns, repetition, unnecessary complexity, non-idiomatic code.
  2. Research — Use WebSearch/WebFetch to research what simple, elegant (yet readable!) code looks like for the relevant technology.
  3. Apply — Refactor based on what you learned. Prefer fewer lines, clearer intent, idiomatic style. Don't add abstractions — remove them.
  4. Verify — Run tests/CI to check edits.

What it can do on your machine

Read from SKILL.md and the folder at commit 9d01037. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Police loads about 4.1k tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 2,349 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~4.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 2,349 words (~4,144 tokens).

“Review the current changes (scoped to the current branch/PR) against the rules below plus any additional rules from the project. The three passes — rule checklist, fact-check, elegance — run as parallel sub-agents on fresh contexts; the implementer's main context…”

— opening of SKILL.md by srid, Custom licence
name
code-police
context
fork
model
sonnet
argument-hint
[--no-elegance]

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/code-police of srid/emanote.

Open the folder on GitHubat commit 9d01037

Used in 1 other repository

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in srid/emanote, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Code Police next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Police compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Police this skillsrid/emanote963—~4.1kAutomated safety check: PassCustom licence
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
Backend Code Reviewlangflow-ai/langflow156k—~3.5kAutomated safety check: NotesMIT
Understand Diff AnalysisEgonex-AI/Understand-Anything85k1 repos~1.4kAutomated safety check: PassMIT
Mole Bug Patternstw93/Mole69k—~2kAutomated safety check: PassGPL-3.0

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Backend Code Review

    langflow-ai/langflow

    Review backend code for quality, security, maintainability, and best practices based on established checklist rules.

    156k GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check: notes
  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    85k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    69k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Backend Code Review

    langgenius/dify

    Reviews backend code under api/ for concrete, reproducible defects, routes to rule packs for architecture, schema, repositories and SQLAlchemy, and ranks findings from P0 to P3.

    158k GitHub stars~676 tokensUpdated today
    DevelopmentAuto-check passed

More from srid/emanote

All 25 skills in this repo
  • Codex Debate

    srid/emanote

    Run an automated codex⇄Claude debate to consensus — no round cap, no deadlock exit.

    963 GitHub stars~8.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Do

    srid/emanote

    Do a task end-to-end — implement, PR, CI loop, ship. An agent skill from srid/emanote.

    963 GitHub stars~12k tokensUpdated 2 mo ago
    Auto-check passed
  • Be Review

    srid/emanote

    Run /be's review gauntlet SERIALLY — /lens-debate (lowy ⇄ hickey), then /codex-debate, then /simplify, then code-police, each editing and committing on the live branch in turn.

    963 GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check passed
  • CI

    srid/emanote

    Reference for the odu runner — how to invoke a full pipeline, a single recipe, or a platform-pinned node, and how to attach to a live run, from a project whose CI odu runs.

    963 GitHub stars~2.4k tokensUpdated 2 mo ago
    Auto-check passed
  • Forge PR

    srid/emanote

    Write engaging PR titles and descriptions for any forge (GitHub today; Bitbucket planned).

    963 GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check passed
  • Kolu

    srid/emanote

    Drive one AI agent from another through kolu's terminals: spawn a Claude Code / Codex / opencode session in a PTY, prompt it, watch the screen for its reply, read it, and prompt again — a…

    963 GitHub stars~2.4k tokensUpdated 2 mo ago
    Auto-check passed

Categories

Questions about Code Police

What does Code Police do?

Review code for quality, simplicity, and common mistakes before declaring work complete. Code Police is an agent skill from srid/emanote. Review code for quality, simplicity, and common mistakes before declaring work complete.

When should I use Code Police?

Code Police fits situations like: tasks that involve Code review.

How do I install Code Police in Claude Code?

Run `npx skills add srid/emanote --skill code-police -a claude-code`. Or copy the skill folder (.agents/skills/code-police in srid/emanote) into .claude/skills/code-police in your project. Claude Code loads it when a task matches its description.

How do I install Code Police in Codex?

Run `npx skills add srid/emanote --skill code-police -a codex`. Or copy the skill folder (.agents/skills/code-police in srid/emanote) into .agents/skills/code-police in your project. Codex loads it when a task matches its description.

Can I use Code Police in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add srid/emanote --skill code-police -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-police, .gemini/skills/code-police, .github/skills/code-police and .opencode/skills/code-police in your project.

What does Code Police need to run?

Going by SKILL.md and its folder, Code Police needs the command-line tools its instructions call (git).

Does Code Police access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Code Police safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Police use?

Code Police has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Code Police use?

About 4.1k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Police?

Skills that share tags, products or a category with Code Police: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Backend Code Review (langflow-ai/langflow, 156k stars) and Understand Diff Analysis (Egonex-AI/Understand-Anything, 85k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Police?

srid (a GitHub user) maintains it in srid/emanote, which has 963 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on July 26, 2026.

Source: srid/emanote on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.