Index of every page on this site: llms.txt
All skills
khoahyh avatar

/review-remediation

@fb2abb3
Run it yourself

Remediate a frozen set of pull-request feedback with evidence-backed dispositions and minimum durable fixes.

Use this Skill: https://skilld.dev/gh/khoahyh/skills/review-remediation

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈32 tokens for metadata: the name and description. ≈1.5k when used: this file.

Description uses 1.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈129 characters, or 1.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Review Remediation

Consume one frozen set of existing PR feedback, establish the truth of every finding, and remediate confirmed problems. Reviewer identity and delivery surface are metadata; human comments, bot findings, security alerts, review bodies, threads, issue comments, checks, and annotations follow the same workflow.

Boundaries

  • Address only the selected existing feedback. Later feedback belongs to another run; do not request, trigger, or wait for a new review.
  • A remediation request includes investigation, fixes, and verification. Follow ground-rules for authority; resolve commit, push, and publication grants from the task/repository. Replies and thread resolution on selected items need a standing or task grant in local/private instructions or the work item; other provider state changes retain their separate authority. Carry same-task grants through the repair instead of asking again.
  • Continue authorized fixes through verification and repair of attributable failures. Keep blocked items visible while completing independent work.

Inputs may identify a PR, exact review/comment/check/thread/run IDs or URLs, a reviewer, an expected SHA or time window, or a fixed set supplied by a supervising loop. Detect the PR from the current branch only when it is omitted.

Freeze The Feedback Set

Identify the PR, provider, branch, and head SHA. Collect concrete claims, questions, and requested changes from every provider surface relevant to the selector.

Selection rules:

  • When exact IDs or URLs are supplied, use only those objects and their directly attached findings.
  • Apply every supplied reviewer, revision, and time constraint together.
  • When only a reviewer is supplied, use that reviewer's currently open feedback.
  • When no selector is supplied, use all currently open feedback on the PR, regardless of author or delivery surface.
  • Exclude progress notices, eligibility notices, duplicate summaries, and other artifacts without a concrete claim, question, or requested change.

Before editing, record each item's stable ID or URL, author, surface, body, and reviewed SHA or observed timestamp. Do not guess ambiguous attribution: mark separable ambiguous items blocked and continue; ask only when ambiguity prevents freezing the set.

Establish Each Finding

Compare each claim with the PR goal and current code; reproduce claimed behavior when useful. Treat diagnoses and suggested patches as hypotheses, not product policy.

Separate a concrete implementation defect from a proposed business rule. Before adopting a restriction, check explicit user intent and owning product requirements, starting with the closest existing context and following relevant linked business references only as needed. Bound lookup to the finding and existing authorized access. Honor explicit decisions; surface unresolved consequential product ambiguity as blocked rather than silently choosing policy or expanding into speculative future algorithm work.

Classify every item:

  • Confirmed: evidence shows a behavior, correctness, security, or maintainability gap requiring a fix.
  • Already addressed: the current head no longer has the reported gap.
  • Question or informational: requires an answer or acknowledgement, not code.
  • Rejected with evidence: the claim does not apply, conflicts with requirements, or would make the system worse.
  • Blocked: remediation needs product intent, credentials, infrastructure, or another user decision.

Use repository code, tests, requirements, and runtime evidence directly when they settle the claim. Consult current, version-matched primary sources when correctness hinges on external library, platform, protocol, or security behavior, or when direct evidence remains uncertain. Reviewer links are leads, not proof; external guidance does not override repository requirements or the installed version.

Apply Minimum Durable Remediation

For each confirmed item, make the smallest semantic change that fixes the root cause:

  • Put the invariant at the boundary that owns it rather than compensating at a caller or symptom site.
  • Use documented public APIs and the repository's established architecture.
  • Preserve unrelated behavior and avoid opportunistic refactors.
  • Reuse or extend proof at the strongest practical existing boundary. Add a regression test only for a credible behavior gap existing coverage would miss; use test-audit's authoring bar when installed or supplied by the repository, otherwise follow the owning test contract and checks.
  • Cover only evidenced boundary, failure, concurrency, and security cases; prefer deleting a faulty path over adding parallel machinery.

Leave an item blocked rather than landing an unsupported workaround.

Verify And Close

Run each focused reproduction or regression test, then only the broader format, lint, typecheck, test, build, or security checks warranted by the change's risk and repository conventions. Inspect the final diff against the PR goal and frozen set.

When provider access is available, re-fetch selected items by stable ID before closing. Each response gives the disposition and evidence: the root-cause fix and verification, conflicting evidence for a rejection, a direct answer, or the blocker and what would resolve it.

When a grant covers it, send replies through the provider's native thread and update addressed/resolved state. Otherwise prepare the exact responses inline and finish all authorized local work.

Done when every frozen item is accounted for, all risk-matched verification passes or has a reported blocker, and authorized replies or prepared responses are complete. Report the PR and head SHA, item count and dispositions, fixes, external sources used where applicable, verification, external actions, and unresolved items.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning27d3 checks · Risk SAFE
  • Gen Agent Trust Hub27d

    The skill processes external pull request feedback to automatically fix code issues. This makes it susceptible to indirect prompt injection, where a malicious reviewer or bot could provide feedback containing instructions to modify the code in harmful ways or perform unauthorized actions.

  • Socket27d

    No alerts

  • Snyk27d

    Risk: MEDIUM · 1 issue

Signed by skilld at fb2abb3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 2 weeks ago

README badge

README badge for khoahyh/skills/review-remediation