agentleFS
mkusakamkusaka/ccskills/skills/code-review-unavailable-target-diff-fallback/SKILL.md

code-review-unavailable-target-diff-fallback

Skill9 starsChanged 5 days agoMITView on GitHub

Reviews the checked-out branch when a target diff can't be read, states the fallback and stops when no target or diff exists

The file

Files
SKILL.md

If that leaves you without the diff, because a command was refused or failed, run the git diff commands below as if no target had been passed, and review the checked-out branch instead. ${WILL_RUN_AS_FORK?"Then open your final reply with these two sentences, word for word, above the findings, and keep the json fence where the output below shows one":Then write these two sentences, word for word, before the ${REPORT_FINDINGS_TOOL_NAME} call}: "${REVIEW_DIFF_FAILURE_NOTE}. This review is of the checked-out branch instead, which may not be that ${REVIEW_TARGET_KIND}."

Two cases end the review instead: the command answers that there is no such ${REVIEW_TARGET_KIND}, or, falling back, you find that the checked-out branch has no diff. Then reply with only one sentence that says which, and no list of findings, not even an empty one, and make no ${REPORT_FINDINGS_TOOL_NAME} call.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.