letsmake.ai

Hide your slop PR descriptions behind <details><summary>

Story 15, from Simon Willison

A software engineer uses HTML's <details><summary> tags to hide AI-generated PR descriptions, making them more readable and focused.

Key points

  • AI-generated PR descriptions are often too detailed and overwhelming.
  • Using <details><summary> hides most of the text, showing only a summary by default.
  • The summary includes a high-level explanation and sometimes a screenshot.
  • The full AI-generated text is hidden but still accessible for deeper reading.
  • The author uses the model name and effort level in the summary for clarity.
  • The author uses a mnemonic 'details-summary' to remember the tag order.

Why it matters

This technique helps engineers manage the flood of AI-generated PRs by making them more digestible and prioritizing human-curated summaries over lengthy, dense text.

Counterpoint

The approach relies on GitHub's support for <details><summary> in Markdown, which may not be available in all platforms or tools.

Sources

This summary was written by a language model and may contain errors. Read the original for the full story.

Download this story as an EPUB