self-review

self-review is a skill for Claude Code from FeiZhuLulu/kimi-code-skills. It costs 26 tokens per session (1,709 once invoked), scanned A, original, MIT.

A pre-commit check that reviews your local Git changes for accidental edits, missing tests, bugs, debug code, and other risks.

In plain words
What is it for?
Use it to review staged changes, check unstaged work when requested, or focus on secrets and security issues before committing.
Why use it?
It helps catch problems before changes are committed, especially when an AI coding agent made some of the edits. It is a quick sanity check, not a full pull-request review or security audit.

Skill for Claude Code

Written for Claude Code: arguments in frontmatter. Also seen: mentions subagents.

Good fit Use it to review staged changes, check unstaged work when requested, or focus on secrets and security issues before committing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/feizhululu/kimi-code-skills/self-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add FeiZhuLulu/kimi-code-skills --skill self-review
Clone the repo
git clone --depth 1 https://github.com/FeiZhuLulu/kimi-code-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for self-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/feizhululu/kimi-code-skills/self-review/github.svg)](https://agentmods.dev/skills/feizhululu/kimi-code-skills/self-review)
Your own site
<a href="https://agentmods.dev/skills/feizhululu/kimi-code-skills/self-review"><img src="https://agentmods.dev/badge/skills/feizhululu/kimi-code-skills/self-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for self-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/feizhululu/kimi-code-skills/self-review"><img src="https://agentmods.dev/badge/skills/feizhululu/kimi-code-skills/self-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,709 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.01709
Opus 5 $0.00013 $0.00855
Sonnet 5 $0.00005 $0.00342
Haiku 4.5 $0.00003 $0.00171

Measured 10d ago against content hash 3e220d54ce57, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

self-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

self-review/SKILL.md · 210 lines

How it starts

The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Self Review — Pre-commit Change Review

Purpose

Review your local git changes before committing. This skill focuses on catching unintended edits, missing tests, debug leftovers, and risky changes — especially those introduced by AI agents during a coding session.

This is not a full PR review or security audit. It is a quick, structured sanity check before you commit.

Kimi Code Usage

Manual invocation:

/skill:self-review
/skill:self-review staged only
/skill:self-review security focus

Requested focus: $focus

Supported focus modes:

  • staged only — only review staged changes
  • security focus — emphasize secret detection and security issues
  • (empty) — default: full checklist review

This skill may be automatically invoked when the user asks to review their changes before committing.

Workflow

1. Gather Changes

git status --short
git diff --stat
git diff --cached --stat

If there are both staged and unstaged changes, review staged changes for Commit Readiness. Report unstaged changes separately under Working Tree Notes.

If nothing is staged, report: Not ready — nothing staged unless the user explicitly asked to review unstaged work.

1.1 Determine Task Intent

Infer the intended task from the current Kimi conversation and recent user instructions.

  • If the task goal is known, classify files against that goal.
  • If the task goal is unknown, use unclear instead of pretending a file is intended or unrelated.
  • Only label a file unrelated when there is clear evidence: logs, generated artifacts, unrelated config, lockfiles, secret files, or files outside the stated task area.

2. Classify Each Changed File

Read the full diff:

git diff --cached   # staged changes
git diff            # unstaged changes

For each changed file, classify it:

Category Meaning
intended Clearly matches the stated user task
suspicious Risky, surprising, or possibly accidental
unrelated Clearly outside the stated task
unclear Cannot determine intent from available context

Read the full file on GitHub · 210 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 210 lines · 26 tokens per session scan A 3e220d54ce57

Subscribe to this mod's changes

self-review is a skill published in the GitHub repository FeiZhuLulu/kimi-code-skills (5 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 1,709 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.