Skip to content

pr-description skills fail to invoke on short diffs (truncation check exits 1) #14

Description

@chrispezza

The pr-description skill's pre-fetched context shell pattern ends with a truncation guard shaped like:

[ ${#d} -gt 20000 ] && printf ...

When the branch diff is under 20k chars the test returns exit 1, so the whole pre-fetch is treated as failed even though the diff was produced fine — the skill errors on exactly the small PRs it should handle most easily.

Fix: append || true (or restructure as an if) after the truncation check so a short diff exits 0.

Scope: observed in clownware-astro-tools:pr-description (2026-08-12, in eat-local-starve-global). The same pattern likely exists in clownware-code-tools:pr-description and clownware-go-tools:pr-description — check all three.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions