.agents/skills/local-ci-code-review/SKILL.md
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.
npx skillsauth add milanhorvatovic/skill-system-foundry local-ci-code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
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.
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 rulesThe 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.
Apply the review methodology from the loaded context. For each changed file:
For each finding, write the reasoning first, then assign priority and confidence.
| Priority | Scope | Examples | |---|---|---| | P0 | Critical bugs, security vulnerabilities | Data loss, injection, auth bypass, crash in mainline path | | P1 | Correctness and robustness | Off-by-one, unhandled error path, race condition | | P2 | Maintainability and style | Misleading name, duplicated logic, missing type hint | | P3 | Minor improvements | Whitespace, comment wording, optional simplification |
| Range | Meaning | |---|---| | 0.9–1.0 | Certain — code is demonstrably wrong or violates documented rule | | 0.7–0.9 | High — very likely based on context, depends on intent | | 0.5–0.7 | Moderate — plausible, could be intentional | | 0.3–0.5 | Low — possible concern, may be false positive | | < 0.3 | Speculative — flag only if severe impact |
Before producing output, verify:
Produce a structured review matching the CI pipeline 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]
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}
After the verdict, append:
---
Findings: {total} ({skipped} below confidence threshold)
Model: {self-reported model identifier}
Review scope: {diff range used}
tools
Greets a recipient through one of two registered tones — formal or casual — by dispatching to a dedicated capability. Activates when the conversation asks for a tone-specific welcome or a switch between formal and casual greetings; use when comparing the two styles. Demonstrates the router pattern in the Skill System Foundry — a thin SKILL.md entry point routing to capability files, with allowed-tools declared in frontmatter so capability shell fences pass validation.
testing
Greets a single recipient with a friendly welcome message rendered in a formal or casual tone. Activates when the conversation asks to say hello or welcome someone; use when a minimal standalone skill is needed. Demonstrates the smallest valid standalone skill in the Skill System Foundry — required name and description frontmatter plus an optional metadata block — and how its layout passes validation.
testing
Designs and evolves AI-agnostic skill systems. Triggers on skill/capability creation, role definition, or router migration; use when auditing consistency or improving token efficiency.
development
Governs the configuration.yaml file that serves as the single source of truth for all validation rules in the Skill System Foundry. Triggers when adding, modifying, or reviewing validation rules, limits, patterns, or reserved words. Also triggers when working with constants.py, yaml_parser.py, or any code that reads from configuration.yaml. Use this skill when asked to add a new validation check, change a limit or threshold, update reserved word lists, add SPDX license identifiers, modify regex patterns, or troubleshoot why a validation rule is not working as expected. Activates on mentions of configuration, validation rules, constants, thresholds, or pattern definitions.