AGENT SKILL

code-review

Perform a structured code review of changes, checking for correctness, style, tests, and potential issues.

License 许可
MIT
最近更新
2026-08-31
Stars
★ 0
Forks
0

01 前言 Front Matter

name
code-review
description
Perform a structured code review of changes, checking for correctness, style, tests, and potential issues.

02 资源文件 1

03 SKILL.md 正文

Code Review Skill

Use this skill after implementing changes to validate your work before delivering.

Review Checklist

1. Correctness

  • [ ] Changes solve the original issue/task
  • [ ] No unintended side effects on existing functionality
  • [ ] Edge cases are handled
  • [ ] Error handling is appropriate (not excessive)

2. Code Quality

  • [ ] Code matches existing style and patterns
  • [ ] No unnecessary complexity or abstraction
  • [ ] Variable and function names are clear
  • [ ] No dead code, commented-out code, or TODOs left behind

3. Tests

  • [ ] New functionality has test coverage
  • [ ] Existing tests still pass
  • [ ] Tests cover both happy path and error cases
  • [ ] Tests are not brittle (don't test implementation details)

4. Safety

  • [ ] No hardcoded secrets or credentials
  • [ ] User input is validated at boundaries
  • [ ] No SQL injection, XSS, or command injection vectors
  • [ ] File operations use safe paths

Process

  1. Read each modified file end-to-end (not just the diff)
  2. Run the test suite: execute("python -m pytest -v")
  3. Run linters if available: execute("ruff check .")
  4. Run the bundled lint check: execute("python /skills/code-review/lint_check.py .")
  5. Check against each item in the review checklist
  6. If any issues found, fix them and re-review
  7. When everything passes, the review is complete

Helper Scripts

  • /skills/code-review/lint_check.py — Scans Python files for missing docstrings, long functions (>50 lines), and bare except: clauses. Run it via execute("python /skills/code-review/lint_check.py [path ...]").

04 同仓库更多 Skills

cantwakeup
cantwakeup/TongAgent4pre

web-research

Searches multiple web sources, synthesizes findings, and produces cited research reports using delegated subagents. Use when the user asks to research a topic online, search the web, look something up, find current information, compare options, or produce a research report.

★ 0
cantwakeup
cantwakeup/TongAgent4pre

skill-creator

Guide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, or tool integrations. Use this skill when the user asks to: (1) create a new skill, (2) make a skill, (3) build a skill, (4) set up a skill, (5) initialize a skill, (6) scaffold a skill, (7) update or modify an existing skill, (8) validate a skill, (9) learn about skill structure, (10) understand how skills work, or (11) get guidance on skill design patterns. Trigger on phrases like "create a skill", "new skill", "make a skill", "skill for X", "how do I create a skill", or "help me build a skill".

★ 0
cantwakeup
cantwakeup/TongAgent4pre

langgraph-docs

Fetches and references LangGraph Python documentation to build stateful agents, create multi-agent workflows, and implement human-in-the-loop patterns. Use when the user asks about LangGraph, graph agents, state machines, agent orchestration, LangGraph API, or needs LangGraph implementation guidance.

★ 0
cantwakeup
cantwakeup/TongAgent4pre

arxiv-search

Searches arXiv for preprints and academic papers, retrieves abstracts, and filters by topic. Use when the user asks to find research papers, search arXiv, look up preprints, find academic articles in physics, math, CS, biology, statistics, or related fields.

★ 0
cantwakeup
cantwakeup/TongAgent4pre

skill-creator

Guide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, or tool integrations. Use this skill when the user asks to: (1) create a new skill, (2) make a skill, (3) build a skill, (4) set up a skill, (5) initialize a skill, (6) scaffold a skill, (7) update or modify an existing skill, (8) validate a skill, (9) learn about skill structure, (10) understand how skills work, or (11) get guidance on skill design patterns. Trigger on phrases like "create a skill", "new skill", "make a skill", "skill for X", "how do I create a skill", or "help me build a skill".

★ 0
cantwakeup
cantwakeup/TongAgent4pre

remember

Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture learnings.

★ 0