Skip to content

Agent skill: improve-readme towards a verified first success #70

Open

Description

@drevendev

Reader problem

Maintainers want an agent to improve the README, not only list findings, without the agent inventing results or badges.

Design decisions

  • Pick the matching template by repository type (CLI, library, application, research/data, curated) and follow checklists/first-success.md.
  • Write gate:
    1. Show the plan.
    2. Show the exact file list and a diff.
    3. Wait for an explicit "yes".
    4. Write only those files.
    5. Re-run the audit and show before and after.
  • Never run the target's own commands without separate permission. Label unverified commands as unverified.
  • No badge unless the backing file or workflow exists in the target and the user confirms it.

Acceptance

  • The description is within the Agent Skills spec limits (at most 1024 characters, "Use when ... Do not use ...").
  • Shows a diff preview and writes only after confirmation.
  • Marks unverified first-success commands as such.
  • Has an eval case proving it doesn't add an unsupported badge or invented output.

Open question

  • May the skill run the documented first-success command once the user allows it?

Depends on: #69

Activity

  1. added
    enhancement
    agent-skill
    on Oct 22, 2026
  2. drevendev commented on Oct 24, 2026

    @drevendev
    OwnerAuthor

    Implementation candidate: #150 adds the improve-readme skill with exact scoped diff/approval gate, unverified-command labeling, unsupported-badge rejection, source-level contracts and 2 positive + 1 negative synthetic eval case. CI is green (6/6) on 42f64bafc8f1d7ca27c67f864241d3b6ca8abf20 (run). Still open pending later-run PR acceptance; real model behavior, actual post-approval edits and first-run execution are not verified (#74).

  3. drevendev commented on Nov 1, 2026

    @drevendev
    OwnerAuthor

    Progress (2026-11-01): merged #229 at 600fbae. The existing improve-readme skill now offers an optional, read-only preview of an already prepared candidate using tools/readme_preview.py, including unified diff, original/proposed SHA-256, line-ending disclosure and optional stale-original check. The explicit per-diff user approval gate remains separate; running this helper never authorizes a write. All six jobs of Quality CI #41312237687 passed on the PR head, including eight new regressions.

    Keep this issue open: the complete edit-after-consent / re-audit workflow and a negative eval proving no invented badge/output have not been demonstrated by this integration alone. No target README was changed.

  4. andy-zen-dev commented on Nov 1, 2026

    @andy-zen-dev

    Independent post-merge validation of the README exact-diff preview (Related: #229, merged at 600fbae1986909efa915ce4b2b9f66d13cf5aac7): the current tools/readme_preview.py::_diff() uses str.splitlines(keepends=True), which treats bare CR and Unicode line separators as line boundaries. This does not match the LF-based line semantics of a conventional unified diff, even though the helper accepts these UTF-8 inputs and reports CR line endings.

    Bounded reproduction against the exact _diff implementation, compared with diff -u:

    • Current README bytes b'A\rB\r'; proposal bytes b'A\rC\r'. diff -u reports one changed physical line (@@ -1 +1 @@). The preview instead reports two lines (@@ -1,2 +1,2 @@), emits A\r as context, and emits a \\ No newline at end of file marker after each CR-split segment.
    • With A\u2028B\n -> A\u2028C\n, the preview similarly invents a two-line hunk and a no-newline marker, whereas diff -u reports one changed line.

    This matters to the skill's exact-diff approval gate: the displayed hunk/line counts and end-of-line annotations can be inaccurate for accepted README content. Please make the diff framing match the documented input contract (e.g. LF-delimited source lines, with an explicit policy for bare CR / Unicode separators), and add regressions asserting the actual hunk and marker output for both fixtures. This is a source-level correctness finding; I did not execute the full BeautifulRepo suite. PR #229's hosted six-job CI is green but its eight new tests do not cover these cases. No repository changes were made in this validation.

  5. drevendev commented on Nov 1, 2026

    @drevendev
    OwnerAuthor

    Progress (2026-11-01): merged #232 at 7e32bd1. The improve-readme workflow now includes tools/readme_apply.py for the post-explicit-consent local application of exactly one README candidate. It checks both original and proposal SHA-256 values, rejects stale/unsafe inputs, writes via a temporary sibling, and preserves candidate bytes; ten new regression tests cover success and refusals. The separate human yes to the displayed diff and exact file list remains mandatory: possessing hashes is not consent.

    Exact-head Quality CI #41337354195: 6/6 jobs passed; independent APPROVED review on cbeaaee2332d1e8ebd3a5206da625e4ac1aeb44b; no unresolved review threads. Keep #70 open for actual post-consent agent edit/re-audit and negative model-level eval demonstrating no invented badges, output, or implicit approval. This merge did not modify any external repository README.

  6. drevendev commented on Nov 1, 2026

    @drevendev
    OwnerAuthor

    Progress (2026-11-01): merged #233 at 1311c287. The published synthetic README approval flow now runs the real offline audit, preview, hash-bound apply and before/after link/navigation checks in a disposable fixture. Three integration tests also verify refusal without approval hashes, stale source/proposal rejection, unchanged unrelated files and non-execution of target code. Exact-head Quality CI #41346955963 passed all 6 jobs; independently reviewed/APPROVED on head 5de667539f37b8936d068b78003f64d41a328646, no unresolved review threads. Keep #70 open: the test simulates consent by supplying hashes, and does not prove an agent waited for a real user's explicit yes, resisted injected instructions, or avoided fabricated badge/first-success claims. These require separately authorized model-level evaluation (also #74). No other repository was edited.

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

    agent-skillenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions