agentleFS
ai-dynamoai-dynamo/aiperf/.agents/skills/aiperf-code-review/SKILL.md

aiperf-code-review

Skill839 starsChanged 51 days agoApache-2.0View on GitHub

Review the current branch against origin/main, capture findings in artifacts/code-review.md as a living document, validate every finding against the actual code, reproduce confirmed issues with the aiperf CLI against the in-repo mock server, and draft inline GitHub PR review comments anchored to specific files and lines. Use when the user asks for a branch or PR code review.

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write them into artifacts/code-review.md as a living document.

    line 10
  2. Very specific:

    Keep runtime receipts under artifacts/.

    line 14
  3. Distinctive:

    Update the living document with both source-level and runtime evidence.

    line 15
  4. Very specific:

    Treat artifacts/code-review.md as a living document.

    line 19
  5. Distinctive:

    Use the real codebase, not assumptions.

    line 28
  6. Distinctive:

    If a finding is not valid, say so explicitly and explain why.

    line 29
  7. Distinctive:

    If a finding is only partially valid, narrow it precisely.

    line 30
  8. Distinctive:

    Run outside the sandbox when needed and ask for approval through the normal tool flow.

    line 32
  9. Distinctive:

    Keep logs, command outputs, relevant generated files, and small summaries that make the proof easy to inspect.

    line 34
  10. Distinctive:

    If MLflow reproduction is needed, use a local SQLite MLflow backend so unrelated MLflow filesystem-store issues do not pollute the …

    line 35
  11. Distinctive:

    Do not overwrite unrelated user changes.

    line 36
  12. Distinctive:

    Do not stop after gathering evidence.

    line 37
  13. Distinctive:

    After posting, return the PR review URL.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Review the current branch against origin/main, then carry the whole task through end-to-end without stopping at analysis.

Goals:

  1. Collect the review findings for the branch relative to origin/main.
  2. Write them into artifacts/code-review.md as a living document.
  3. Validate every finding against the actual current code.
  4. Assign practical severity to each issue.
  5. Reproduce the confirmed issues with the real aiperf CLI against the in-repo mock server.
  6. Keep runtime receipts under artifacts/.
  7. Update the living document with both source-level and runtime evidence.
  8. Draft inline GitHub PR review comments anchored to the exact file and line of each finding, plus a short top-level summary comment.

Requirements:

  • Treat artifacts/code-review.md as a living document. Update it in place if it already exists.
  • CLI docs check: If the diff adds or removes any CLI parameter (i.e., any Annotated[..., CLIParameter(...)] field or --flag name in src/aiperf/config/flags/cli_config.py), verify that docs/cli-options.md was regenerated to reflect those changes. The file is auto-generated by make generate-cli-docs; a missing regeneration is a blocking finding. The description field inside Field(description=...) is the source of truth for what appears in the docs — changes there also require a regen.
  • For each finding, record:
    • status: Confirmed, Partially confirmed, or Not confirmed
    • source-level evidence with exact file paths and line references
    • practical severity and impact
    • runtime reproduction result, if reproduced
    • receipt paths
    • conclusion
  • Use the real codebase, not assumptions.
  • If a finding is not valid, say so explicitly and explain why.
  • If a finding is only partially valid, narrow it precisely.
  • Reproduce with the real aiperf binary and the in-repo mock server on a random localhost port.
  • Run outside the sandbox when needed and ask for approval through the normal tool flow.
  • Save all receipts under a dedicated directory such as artifacts/repro-runtime-YYYYMMDD/.
  • Keep logs, command outputs, relevant generated files, and small summaries that make the proof easy to inspect.
  • If MLflow reproduction is needed, use a local SQLite MLflow backend so unrelated MLflow filesystem-store issues do not pollute the validation.
  • Do not overwrite unrelated user changes.
  • Do not stop after gathering evidence; finish by updating the document, then present the planned GitHub comments to the user for confirmation before posting.

GitHub deliverable:

  • Post inline review comments using the GitHub PR review API (gh api repos/{owner}/{repo}/pulls/{number}/reviews).
  • Each confirmed finding gets its own inline comment anchored to the relevant file path and diff line number.
  • Include a short top-level summary in the review body covering: fix order, overall assessment, and what is working well.
  • IMPORTANT: Before posting anything to GitHub, show the user the full set of planned comments (inline + summary) and ask for explicit confirmation. Only post after the user approves.
  • To determine the correct diff line position for each inline comment, run gh api repos/{owner}/{repo}/pulls/{number}/files to get the patch hunks, then count lines within the patch to find the position value.
  • After posting, return the PR review URL.

Final response to me:

  • Keep it concise.
  • Tell me where the living document is.
  • Tell me where the receipts are.
  • Tell me the GitHub review URL.
  • Mention any caveats encountered during reproduction.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.