agentleFS
donmikdonmik/agent-toolkit/skills/feature-report/SKILL.md

feature-report

Skill1 starsChanged 3 months agoUnlicenseView on GitHub

Create an ephemeral HTML proof-of-work report that demonstrates a feature actually working (embedded video, screenshots, or real command output with fake/fixture data). Use when asked for a report, demo, proof of implementation, HTML summary, CLI recording, browser/UI recording, or evidence that a feature works. Tests or linting passing do NOT count as proof on their own.

  • Sends data out

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always show the input (fake/fixture) and the real output.

    line 29
  2. Distinctive:

    If any is false: stop. Do not write placeholder or "plausible" output.

    line 39
  3. Very specific:

    If the report starts turning into an audit log, stop and move that material to review-ready.

    line 50
  4. Very specific:

    After creating tmp/feature-reports/<feature-slug>/report.html and verifying it exists, open it for the user before the final response:

    line 63
  5. Very specific:

    Use the actual project-local report path and quote it.

    line 69
  6. Distinctive:

    Default to a plain command transcript or screenshot.

    line 73
  7. Very specific:

    Use VHS when available (command -v vhs).

    line 77
  8. Very specific:

    Use explicit absolute paths.

    line 93
  9. Very specific:

    Start the servers briefly inside a single Python subprocess script so nothing outlives the capture (no &, no lingering processes):

    line 101
  10. Distinctive:

    If the database is empty, seed fake/fixture data via the API before capturing:

    line 136
  11. Distinctive:

    Add these curl calls to the Python script before the Playwright commands.

    line 143
  12. Distinctive:

    Only if no server can be started (missing deps, port conflicts) or the feature needs real credentials, document the blocker explicitly and …

    line 147
  13. Very specific:

    Use playwright-cli (headless Playwright, installed via Homebrew: playwright-cli) or web-browser (Chrome/CDP).

    line 151
  14. Distinctive:

    Prefer: short video → before/after or final-state screenshots → reproducible script.

    line 153
  15. Very specific:

    If tmp/review-packets/<feature-slug>/review-card.md already exists, link it in Notes — do not duplicate its risk rating, read-first list, …

    line 166

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Feature Report

Purpose

Prove the completed work by showing the feature actually doing its job — not that your toolchain is healthy. The reader is a developer already overwhelmed with code to review: keep the report short, and keep this file's own instructions short. Every sentence should earn its place.

Boundary: proof, not review packet

This report answers one question: "Does the implemented behavior actually work?" Do not include QA/reviewer transcripts, prompt dumps, pipeline timelines, validation logs, or exhaustive implementation narrative — that belongs in the review-ready skill's audit appendix. Link to it instead of duplicating it (see "Handoff to review-ready" below).

Proof gate

Tailor the demonstration to the change:

ChangeDemonstration
New command / flagRun it with fake data, show real output
Changed behaviorSame input, before vs. after
New/changed function or APIConcrete example call + real return value
Design / UI changeScreenshot or short video of the actual rendered interface — mandatory, never code-only
Bug fixReproduce the old failure, show it now works
Data/model/pipelineSample input → actual result

Always show the input (fake/fixture) and the real output. Never real user/production data.

For before/after, produce both states for real — checkout/stash the prior commit, run, restore — never reconstruct "before" from memory or the diff.

Before writing any HTML file, confirm all three:

  1. Executed — you ran the command / hit the endpoint / rendered the UI yourself, this session (not recalled, not inferred from source).
  2. Captured — you hold the literal output, screenshot, or video file, not a re-typed approximation.
  3. Attributable — the artifact exercises the changed code path, not a coincidentally similar pre-existing one.

If any is false: stop. Do not write placeholder or "plausible" output. Tell the user exactly what's missing (URL, server, credentials, fixture) and what you need to proceed.

Tests, lint, typecheck, build passing are hygiene, not proof — a one-line note at most, never the centerpiece. "Tests passed" alone is not a demo.

Brevity

A reader should grasp the proof in under a minute.

  • One-paragraph summary, not an essay.
  • One representative demo, not every case.
  • Trim command output to the relevant lines.
  • If the report starts turning into an audit log, stop and move that material to review-ready.

Storage policy

Reports are ephemeral. Do not commit unless asked. Keep the report directory; clean up other temp files.

# tmp/feature-reports/<feature-slug>/{report.html, assets/}
mkdir -p tmp/feature-reports/<feature-slug>/assets

Auto-open

After creating tmp/feature-reports/<feature-slug>/report.html and verifying it exists, open it for the user before the final response:

open "tmp/feature-reports/<feature-slug>/report.html"

Use the actual project-local report path and quote it. If open is unavailable or fails, do not fail the feature report; mention the path and the open failure in the final response.

Video

Default to a plain command transcript or screenshot. Use video only when motion/timing is the proof — an interactive TUI, live reload, an animation, a multi-step UI flow.

CLI recording with VHS

Use VHS when available (command -v vhs). Write a short .tape, feed the command fake/fixture data, and end on the feature's real output — never on a test/lint/build run.

Output tmp/feature-reports/<feature-slug>/assets/demo.mp4
Set Shell "bash"
Set FontSize 18
Set Width 1200
Set Height 720

Type "cd /absolute/path/to/project"
Enter
Type "your-command --input fixture-data.json"
Enter
Sleep 2s

Use explicit absolute paths. No ~ or $HOME.

Browser/UI — mandatory for web features

For any UI change (new page, component, chart, design), real screenshots or video of the rendered interface are mandatory. A code-only report with acceptance checkboxes is not a feature report for a web feature — it's an audit log. The reader must see what was built.

Capturing screenshots

Start the servers briefly inside a single Python subprocess script so nothing outlives the capture (no &, no lingering processes):

# tmp/capture_screenshots.py
import subprocess, time, signal

api = subprocess.Popen([".venv/bin/uvicorn", "api.main:app", "--port", "8000"],
                       stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
time.sleep(2)
vite = subprocess.Popen(["npm", "--prefix", "web", "run", "dev", "--", "--host", "127.0.0.1"],
                        stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
time.sleep(4)

try:
    subprocess.run(["playwright-cli", "-s=<slug>", "open", "http://localhost:5173/<route>"])
    time.sleep(3)
    # Viewport screenshot at top
    subprocess.run(["playwright-cli", "-s=<slug>", "screenshot",
                    "--filename", "tmp/feature-reports/<slug>/assets/demo-top.png"])
    # Scroll to charts / bottom
    subprocess.run(["playwright-cli", "-s=<slug>", "eval", "window.scrollTo(0, 2200)"])
    time.sleep(0.5)
    subprocess.run(["playwright-cli", "-s=<slug>", "screenshot",
                    "--filename", "tmp/feature-reports/<slug>/assets/demo-charts.png"])
    subprocess.run(["playwright-cli", "-s=<slug>", "close"])
finally:
    for p in [api, vite]:
        p.send_signal(signal.SIGTERM)
        p.wait()

Run it: python tmp/capture_screenshots.py

Seeding data

If the database is empty, seed fake/fixture data via the API before capturing:

curl -s -X POST http://localhost:8000/api/endpoint -H "Content-Type: application/json" \
  -d '{"field":"value", ...}'

Add these curl calls to the Python script before the Playwright commands.

When screenshots genuinely cannot be captured

Only if no server can be started (missing deps, port conflicts) or the feature needs real credentials, document the blocker explicitly and state what's needed. Never silently omit screenshots.

Tools

Use playwright-cli (headless Playwright, installed via Homebrew: playwright-cli) or web-browser (Chrome/CDP). Read those skill files for full API details.

Prefer: short video → before/after or final-state screenshots → reproducible script.

Report content checklist

  • title + timestamp
  • one-paragraph summary
  • demonstration (input + real output) — the centerpiece
  • changed files (git diff --stat or git status --short), summarized rather than explained file-by-file; exclude lockfiles/generated artifacts unless they're the actual subject of the change
  • caveats/limitations + hygiene note, as one bullet list (omit hygiene line if nothing ran)
  • branch / commit / PR when relevant

Handoff to review-ready

If tmp/review-packets/<feature-slug>/review-card.md already exists, link it in Notes — do not duplicate its risk rating, read-first list, or human-input-needed content here.

HTML template

Self-contained, inline CSS, opens from disk, dark-mode aware. Demonstration is the centerpiece and is never optional. Use the before/after block for behavior changes.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Feature report: FEATURE_TITLE</title>
  <style>
    :root {
      --bg: #f7f4ef; --fg: #211f1b; --panel: #fffaf2; --border: #e5dccf;
      --muted: #6b6258; --code-bg: #28231d; --code-fg: #f8efe1;
      --before: #b8483d; --after: #2f7a4f;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --bg: #191714; --fg: #f1ece3; --panel: #231f1a; --border: #3a332a;
        --muted: #a89c8d; --code-bg: #000; --code-fg: #e9e0d2;
        --before: #e07a6d; --after: #5fbf85;
      }
    }
    body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 0; background: var(--bg); color: var(--fg); }
    main { max-width: 1040px; margin: 0 auto; padding: 48px 24px; }
    header { margin-bottom: 24px; }
    h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
    h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 24px; margin-bottom: 8px; }
    .meta { color: var(--muted); font-size: 0.9rem; }
    code, pre { background: var(--code-bg); color: var(--code-fg); border-radius: 10px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
    pre { padding: 14px 16px; overflow: auto; max-height: 320px; }
    video, img { max-width: 100%; max-height: 480px; border-radius: 14px; border: 1px solid var(--border); background: #000; }
    img { background: var(--panel); max-height: none; }
    .screenshot-group { margin-bottom: 32px; }
    .screenshot-group img { margin-top: 8px; }
    .caption { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
    .ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    @media (max-width: 700px) { .ba { grid-template-columns: 1fr; } }
    .ba div { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; border-left: 3px solid var(--border); }
    .ba .before { border-left-color: var(--before); }
    .ba .after { border-left-color: var(--after); }
    .ba .before h4 { color: var(--before); }
    .ba .after h4 { color: var(--after); }
    .ba h4 { margin: 0 0 8px; }
    .secondary { color: var(--muted); font-size: 0.9rem; }
  </style>
</head>
<body>
<main>
  <header>
    <h1>Feature report: FEATURE_TITLE</h1>
    <p class="meta">TIMESTAMP · BRANCH · COMMIT</p>
  </header>

  <section>
    <h2>Summary</h2>
    <p>ONE_PARAGRAPH_SUMMARY</p>
  </section>

  <section>
    <h2>Demonstration</h2>

    <!-- Option A: UI screenshots (web features) — embed <img> with captions -->
    <!--
    <div class="screenshot-group">
      <h3>Form & table</h3>
      <img src="assets/demo-form.png" alt="Feature form and table">
      <p class="caption">Form with defaults, filter bar, session table with inline edit/delete.</p>
    </div>
    <div class="screenshot-group">
      <h3>Charts</h3>
      <img src="assets/demo-charts.png" alt="Feature charts">
      <p class="caption">Pace scatter (Y inverted, rolling mean) and planned-vs-actual bar chart.</p>
    </div>
    -->

    <!-- Option B: new command / CLI feature — show input and real output -->
    <!--
    <video controls preload="metadata" width="960">
      <source src="assets/demo.mp4" type="video/mp4">
    </video>
    <p>Input (fake data):</p>
    <pre>INPUT_USED</pre>
    <p>Real output:</p>
    <pre>REAL_OUTPUT</pre>
    -->

    <!-- Option C: behavior change — before vs. after on the same input -->
    <!--
    <div class="ba">
      <div class="before">
        <h4>Before</h4>
        <pre>BEFORE_OUTPUT</pre>
      </div>
      <div class="after">
        <h4>After</h4>
        <pre>AFTER_OUTPUT</pre>
      </div>
    </div>
    <p>Same input for both:</p>
    <pre>SHARED_INPUT</pre>
    -->
  </section>

  <section>
    <h2>Changed files</h2>
    <pre>GIT_DIFF_STAT</pre>
  </section>

  <section>
    <h2>Notes</h2>
    <ul>
      <li>CAVEATS_OR_LIMITATIONS</li>
      <li class="secondary">Hygiene: TESTS_LINT_ONE_LINE (omit this line if none ran)</li>
    </ul>
  </section>
</main>
</body>
</html>

Before/after example

For a behavior change, the Demonstration section should make the difference obvious at a glance. Example — a sort command whose default flipped from descending to ascending:

Same input: ["banana","apple","cherry"]

Before:  ["cherry","banana","apple"]
After:   ["apple","banana","cherry"]

Two columns side by side, one shared input. The viewer sees the change without reading prose.

Final response format

Open the report first (see "Auto-open"), then respond with this block — nothing more:

Report: tmp/feature-reports/<feature-slug>/report.html
Opened: yes/no
Demo: <what ran on what fixture -> what real output>
Evidence: <files>
Limitations: <one line, or "none">
Review packet: <path, or "n/a">
Committed: no (tmp/)

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.