agentsclimarketplace

Local ci code review

Skill milanhorvatovic/skill-system-foundry/.agents/skills/local-ci-code-review

Runs a deep structured code review locally, applying the same methodology used by the codex-ai-code-review-action CI pipeline — priority levels, confidence scoring, data flow tracing, and structured findings — without requiring GitHub Actions or an external API. Triggers when asked to run the CI review locally, do a deep code review, review like the pipeline would, or check what CI would flag. Also triggers on phrases like "run the CI review on this," "what would the pipeline review find," "deep review this branch," or "simulate the automated review." For running automated checks (tests, coverage, shellcheck), use the local-code-review skill instead. For human PR review process guidance, use the review skill instead.From its SKILL.md

Install
npx -y skills add milanhorvatovic/skill-system-foundry --skill local-ci-code-review

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

6.2 KB, as published. Nobody here has run it

Local CI Code Review Skill

Runs a deep structured code review locally, applying the same methodology used by the codex-ai-code-review-action CI pipeline. Uses repository-specific guidance from .github/codex/review-reference.md and the review methodology defined below.

Step 1: Identify the Changes

Determine the diff to review:

# Changes on current branch vs main (default)
git diff main...HEAD

# Uncommitted changes (if no branch commits yet)
git diff HEAD

# Specific commit range (if provided)
git diff <base>..<head>

If no scope is specified, default to main...HEAD.

List the changed files and note their types — file types determine which checklists apply in Step 3.

Step 2: Load Review Context

Read the repository-specific reference material and file-type instruction rules:

  • .github/codex/review-reference.md — repository-specific review guidance (conventions, Python script rules, workflow rules)
  • .github/copilot-instructions.md — Agent Skills format compliance, repository constraints, automated validation coverage, review focus areas
  • .github/instructions/markdown.instructions.md — documentation quality rules, description quality, progressive disclosure, file reference conventions
  • .github/instructions/scripts.instructions.md — Python script conventions, stdlib-only constraint, type hints, error handling, code organization rules

The review reference file provides repository-specific conventions — apply them alongside the methodology defined in this skill. The instruction files provide supplementary file-type-specific rules: apply copilot-instructions.md to all files, markdown.instructions.md when the diff includes **/*.md, and scripts.instructions.md when it includes skill-system-foundry/scripts/**/*.py.

Step 3: Review the Diff

Apply the review methodology from the loaded context. For each changed file:

  1. Identify the file type and select the matching checklist from the reference material (Python, Shell, Markdown, Workflow YAML).
  2. Trace data flow — follow values from input through parsing, transformation, and use.
  3. Check execution order — verify validation happens before use.
  4. Verify edge cases — empty arrays, zero, negatives, boundaries, missing optional fields.
  5. Connect schema to runtime — check if documented contracts are enforced.
  6. Check error propagation — verify callers handle failures.

For each finding, write the reasoning first, then assign priority and confidence.

Priority levels

PriorityScopeExamples
P0Critical bugs, security vulnerabilitiesData loss, injection, auth bypass, crash in mainline path
P1Correctness and robustnessOff-by-one, unhandled error path, race condition
P2Maintainability and styleMisleading name, duplicated logic, missing type hint
P3Minor improvementsWhitespace, comment wording, optional simplification

Confidence scoring

RangeMeaning
0.9–1.0Certain — code is demonstrably wrong or violates documented rule
0.7–0.9High — very likely based on context, depends on intent
0.5–0.7Moderate — plausible, could be intentional
0.3–0.5Low — possible concern, may be false positive
< 0.3Speculative — flag only if severe impact

Rules

  • Flag only issues introduced by the diff. Do not flag pre-existing problems.
  • Include findings at all priority levels — do not suppress low-priority findings.
  • Do not flag known limitations listed in the reference material.
  • Read the full source file when diff context is insufficient.

Step 4: Run the Self-Review Checklist

Before producing output, verify:

  1. Every changed file in the diff has been examined.
  2. The relevant file-type checklist was applied to each file.
  3. Data flow was traced for any new parsing, transformation, or validation logic.
  4. Edge cases were checked for new conditional branches or numeric conversions.
  5. If zero findings, each file's clean status can be explained.

Step 5: Report Findings

Produce a structured review matching the CI pipeline output format.

Output format

## Summary
[1-5 sentence description of what the changes do and why]

## Changes
- [Short bullet describing each logical change]

## Files
| File | Description |
|---|---|
| path/to/file | Short description of what changed |

## Findings

### P0 — Critical
[findings or "None"]

### P1 — Correctness
[findings or "None"]

### P2 — Maintainability
[findings or "None"]

### P3 — Minor
[findings or "None"]

## Verdict
**[patch is correct | patch is incorrect]** (confidence: X.XX)
[One-sentence rationale]

Finding format

For each finding:

[P{n}] {title} — {path}:{line} (confidence: {score})

{body}

<details> <summary>Reasoning</summary> {reasoning — what was observed, why it is a problem, concrete impact} </details>
{exact replacement code, or omit block if null}

Metadata

After the verdict, append:

---
Findings: {total} ({skipped} below confidence threshold)
Model: {self-reported model identifier}
Review scope: {diff range used}

Rules

  • Empty findings is a valid outcome — a clean diff is not a failure to review.
  • Do not manufacture findings to justify the review.
  • Do not suggest alternative implementations unless the current one is clearly wrong.
  • Do not comment on style preferences without a documented convention backing them.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.