askill
reviewing-code-with-context

reviewing-code-with-contextSafety 95Repository

Reviews code with full context. Gathers Linear issue, PR details, and build status before reviewing. Use when asked to review a PR, review branch changes, or do a code review with context.

6 stars
1.2k downloads
Updated 3/5/2026

Package Files

Loading files...
SKILL.md

Contextual Code Review

Perform a code review with full context from github, linear and buildkite.

Load skills: gathering-context, debugging-failed-builds, using-linear, reading-pull-requests, code-review

Workflow

1. Gather Context

Load the branch context. You must fetch all three context sources before moving on:

  1. Linear issue (title, description, acceptance criteria)
  2. Pull request (description, status, reviews)
  3. Build status (passed/failed, failed jobs)

If a source is unavailable note that explicitly in the context summary.

2. Prepare for Review

To prepare for the review you should:

  1. Switch to the PR branch:

    git fetch # fetch all branches because we want the fresh origin/main as well
    git checkout <branch-name>
    git branch --show-current  # verify you're on the correct branch
    

    You must confirm the checkout succeeded before doing anything else.

  2. Get the changed file list:

    • If a PR was found: gh pr diff <number> --name-only
    • If no PR exists: git diff origin/main...<branch-name> --name-only
  3. Get the full diff:

    • If a PR was found: gh pr diff <number>
    • If no PR exists: git diff origin/main...<branch-name>

3. Walk Through Changes

Before running the automated review, present a high-level walkthrough of the PR changes so the user understands what's been changed.

Structure:

  1. Context summary. Present the context summary so it can be read along with the walkthrough

  2. Changed files. A list of all changed files as clickable file:// links using relative paths. Group files by directory or logical area if there are more than a handful.

  3. Walkthrough. Using the diff returned by the Task:

    • Start with a one-paragraph summary of what the PR does and why, drawing on the PR description and Linear issue context gathered earlier.
    • Group changes by logical area (e.g., "schema changes", "API layer", "tests") rather than listing every file individually. Under each group, list the relevant files as clickable file:// links with line ranges.
    • When explaining a change, show the relevant diff hunk inline so the user can see exactly what changed without having to go find it. Use fenced diff blocks (```diff) for these.
    • Call out anything notable: new patterns introduced, architectural decisions, potential risk areas, or anything that needs extra scrutiny during review.

Keep the walkthrough concise but substantive. The goal is to give the user enough context to understand the changes before seeing the review results.

After presenting the walkthrough, ask: "Ready for the code review, or do you want to dig into something first?"

Wait for the user to confirm before proceeding.

4. Perform Code Review

Load the code-review skill and run the review, passing the gathered context as instructions.

Diff source: Use the same diff from step 2.

code_review(
  diff_description: "gh pr diff <number>"  // or "git diff origin/main...<branch-name>" if no PR
  instructions: "Linear Issue: <issue-title-and-description>\nPR Description: <pr-body>\n\nReview with this context in mind. After presenting results, ask: 'Want me to dig into any of these, fix them, or start drafting a review? Let me know if you spotted anything I missed.'"
)

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

82/100Analyzed 3/9/2026

Well-structured skill with clear 4-step workflow for contextual code review. Includes specific commands, clear triggers in description, and good organization. Slightly tied to specific tools (Linear, Buildkite) but generally reusable. Minor gaps include pseudocode for skill calls and no explicit error handling.

95
90
68
85
82

Metadata

Licenseunknown
Version-
Updated3/5/2026
Publisherblaknite

Tags

apici-cdgithubgithub-actions