perform-code-review
Run a structured code-review pass on a pull request or branch, applying the Tyrne code-review standard.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Run a structured code-review pass on a pull request or branch, applying the Tyrne code-review standard.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Add a new Board Support Package (BSP) crate to the Tyrne workspace — from crate skeleton through boot checklist to first QEMU or hardware boot.
Propose and draft a new Architecture Decision Record (ADR) in MADR format for Tyrne.
Run an independent verification pass over artefacts in `Proposed` / `In Review` waiting-for-promotion states. Distinct from code-review (style + correctness on a diff) and security-review (adversarial axis pass) — this skill verifies that the artefacts' claims about their own state match reality and produces a Done-promotion verdict.
Produce a review artifact in `docs/analysis/reviews/<type>-reviews/`, following that type's master plan. Works for business / code / security / performance-optimization reviews.
Change an existing Tyrne standard correctly — write or update the motivating ADR first, then update the standard file.
Add a new Rust crate to the Tyrne workspace following the dependency policy in `infrastructure.md`.
| name | perform-code-review |
| description | Run a structured code-review pass on a pull request or branch, applying the Tyrne code-review standard. |
| when-to-use | Whenever the maintainer asks for a review of a PR or branch, or when an agent opens its own work for self-review before committing. |
Read the PR description first. Understand the stated intent before looking at the code. If the description is missing or vague, ask the author to write one.
Identify risk class.
unsafe regions, security-sensitive dependencies.Read the tests first.
Error variants, QEMU smoke tests for new syscalls.Read the diff in topological order.
Apply the checklist from code-review.md — Review checklist. Work through every item:
unsafe discipline (every new unsafe meets unsafe-policy.md; defer to justify-unsafe).unwrap/expect on hot paths, errors converted at boundaries per error-handling.md).unsafe fn has # Safety; ADR references where relevant).Refs: ADR-NNNN where applicable).Run it. For non-trivial PRs, build locally and — if the change has a behavioral effect — run the QEMU smoke suite. CI is necessary, not always sufficient.
Do not spend energy on:
Post the review.
Record security-review outcome (if applicable). A security-sensitive change must also have perform-security-review executed; its outcome is a separate comment and a Security-Review: trailer on the commit.