All skills
boshu2 avatar
by Boboshu2/agentops446 stars
42

Write grounded docs, READMEs, repo instructions or continuity handoffs. Use when: these documents are requested; no reports as a routine completion ritual.

Use this Skill: https://skilld.dev/gh/boshu2/agentops/doc

This session only. Nothing lands on disk.

referencesreadme-craft.md

≈2.9k tokens on demand. Your agent reads this file only when SKILL.md points to it.

README Craft — Gold-Standard README Generation

Generate a README that converts skimmers into users and satisfies deep readers, then run deterministic documentation checks and return factual evidence to the caller.

YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.

Quick Start

/doc --mode=readme                    # Interview + generate + validate (new README)
/doc --mode=readme --rewrite          # Rewrite existing README with same patterns
/doc --mode=readme --validate         # Council-validate an existing README without rewriting

(The legacy /readme, /readme --rewrite, /readme --validate triggers route here.)


The Patterns

These are non-negotiable. Every README this mode produces follows them.

1. Lead with the problem, not the framework

Bad: "A DevOps layer implementing the Three Ways for agent workflows." Good: "Coding agents forget everything between sessions. This fixes that."

The reader should understand what pain you solve in one sentence. No jargon, no framework names, no theory. The problem is the hook. (Note: framework references like Three Ways and Meadows belong in the body as design rationale — just don't lead with them.)

2. Acknowledge prior art

If your approach resembles established practices (agile, SCRUM, spec-driven development, CI/CD), say so explicitly:

"If you've done X, you already know the fix. What's new is Y."

This disarms experienced practitioners who would otherwise dismiss you as reinventing the wheel. Claim only what's genuinely novel.

3. Show, don't claim

Bad: "This is what makes X different. The system compounds." Good: A terminal transcript showing the system working.

Assertions without evidence trigger hostility. Concrete examples > adjectives. If you can't show it in a code block, it's not ready for the README.

4. State your differentiator once

One clear explanation. One demonstration. That's the max. Repeating your core value proposition in every section crosses from reinforcement into marketing copy. Trust the reader to absorb it the first time.

5. Trust block near install

Before a user installs anything that runs code, hooks, or modifies config, they need to see:

Concern Answer it
What does it touch? Files created/modified, hooks registered
Does it exfiltrate? Telemetry, network calls, data leaving the machine
Permission surface Shell commands, config changes, git behavior modifications
Reversibility How to disable instantly, how to uninstall completely

This goes near the install command, not buried in an FAQ.

6. Collapse depth, don't delete it

Detailed workflow steps, architecture deep-dives, theory, and reference material belong in <details> blocks. Skimmers get the fast path. Deep readers click to expand. Never delete depth to achieve brevity — collapse it.

7. Strip guru tone

No "What N months taught me." No "I come from X, so I applied Y." No "This is what makes us different." Let the tool speak for itself. Humility disarms. Condescension repels.

8. Section order serves adoption

Problem → Install → See It Work → Getting Started Path → How It Works (collapsed) → Reference

Theory and architecture come AFTER the user has seen examples and knows how to start. Never put "why this is important" before "how to try it."


Execution Steps

Given /doc --mode=readme [--rewrite] [--validate]:

Step 1: Pre-flight

ls README.md 2>/dev/null

Mode detection:

  • --validate + README exists → skip to Step 5 (deterministic review only)
  • --rewrite + README exists → read existing, use as context for rewrite
  • README exists, no flags → ask:
    • "Rewrite — regenerate with gold-standard patterns"
    • "Validate — check the existing README without rewriting it"
    • "Cancel"
  • No README exists → proceed to Step 2 (generate from scratch)

Step 2: Gather Context

Read available project files silently (no output to user):

ls README.md PRODUCT.md package.json pyproject.toml go.mod Cargo.toml Makefile 2>/dev/null
ls -d src/ lib/ cmd/ app/ 2>/dev/null
ls -d docs/ 2>/dev/null
ls LICENSE CHANGELOG.md 2>/dev/null

Extract:

  • Project name from manifest files
  • Language/runtime from build files
  • Existing description from README or PRODUCT.md
  • License from LICENSE file
  • Install method from manifest (npm, pip, brew, go install, cargo, etc.)

Step 3: Interview

Use AskUserQuestion for each section. Pre-populate suggestions from Step 2 where possible. Keep questions short.

3a: The Problem

Ask: "What problem does this solve? One sentence — what pain does your user have?"

Options (derived from existing README/PRODUCT.md if available):

  • Suggested problem statement
  • A punchier variant
  • "Let me type my own"
3b: The Fix

Ask: "How does it fix that problem? One sentence — what does your tool actually do?"

3c: Who Is It For

Ask: "Who is this for? Name the runtime, framework, or role."

Example: "Python developers using FastAPI" or "Anyone running Claude Code or Cursor"

3d: Install

Ask: "What's the install command? (We'll put this front and center)"

Options:

  • Detected from manifest (e.g., npm install <pkg>, pip install <pkg>)
  • "Let me type my own"
3e: Quick Demo

Ask: "What's the simplest thing a user can do after installing to see it work? (A command, a code snippet, or a terminal session)"

3f: Trust Concerns

Ask: "Does your tool do any of these? Check all that apply."

  • Runs shell commands or hooks
  • Modifies config files outside the project
  • Makes network calls
  • Creates files in the user's repo
  • None of the above
3g: Prior Art (optional)

Ask: "Are there similar tools? If so, how is yours different? (Be honest — readers who know the space will check)"

Options:

  • "Yes, let me describe" → follow up
  • "Not really / I'll skip this"

Step 4: Generate README

Using the interview responses and the 8 patterns above, generate the README with this structure:

<div align="center">

# {Project Name}

### {Problem statement — one line}

{Badges}

{Nav links}

</div>

---

> [!IMPORTANT]
> {Trust block — local-only, what it touches, how to disable, how to uninstall}
> (Skip if no trust concerns from 3f)

{Install command}

---

## The Problem

{2-3 sentences expanding the problem. Acknowledge prior art if applicable.
State what's genuinely new about your approach — once.}

---

## See It Work

{Terminal transcript or code example from 3e. Show, don't describe.}

---

## Install

{Full install details, alternative methods in <details> blocks.
"What it touches" table if trust concerns exist.}

---

## Getting Started

{Adoption path — Day 1, Week 1, etc. Or just "Run X, then Y."}

---

## How It Works

{One paragraph summary + diagram if applicable.}

<details>
<summary><b>Details</b> — {phases, architecture, etc.}</summary>

{Deep content here}

</details>

---

## {Reference sections as needed}

{Skills, API, CLI, etc. — collapsed where appropriate}

---

## FAQ

{Top 3 questions inline, link to full FAQ if it exists}

---

## Contributing

## License

Generation rules:

  • Every <details> block must have a blank line after <summary> (enables markdown rendering)
  • Use markdown inside details blocks, not inline HTML (<code>, <a href>, <br>)
  • Trailing blank line before </details>
  • No emoji unless the user's existing content uses them
  • Flywheel/differentiator concept: state ONCE in "The Problem", demonstrate ONCE in "See It Work"
  • Never use phrases: "What N months taught me", "This is what makes X different", "I come from X so I applied Y"

Write the generated README to README.md.

Step 4b: Docs prose pass (required)

Read de-slopify.md and run the full docs-prose prompt on the exact README.md you just wrote. Apply fixes in place. Manual line-by-line recast only — no regex pass. Do not report the README complete until this pass has run.

On --validate only: inspect for residual prefab/slop tells and record them as evidence; do not rewrite unless the caller asked for --rewrite.

Step 5: Deterministic checks

Run bash skills/doc/scripts/validate.sh and inspect the anti-pattern table below against the exact README. Record concrete matches, checked scope, and anything the local environment could not check. These results are evidence, not a semantic verdict.

Do not start Council, rewrite the README again, or decide what happens after a finding. The caller may supply the README and these results to Validate as part of an exact candidate.

Step 6: Report

## README Evidence

**File:** README.md
**Sections:** {count}
**Patterns applied:** {list which of the 8 patterns were relevant}
**Checks:** {commands and factual results}
**Unchecked:** {scope not examined}

{List concrete findings without approval or next-action language}

Anti-Patterns to Detect

When rewriting or validating, flag these:

Anti-Pattern Detection Fix
Flywheel echo Core value prop stated 3+ times State once, demonstrate once
Framework-first Opens with methodology name, not problem Rewrite lead as problem statement
Guru tone "What I learned", "This is what makes X different" Strip, let the tool speak
Jargon before definition Domain terms used before they're explained Define on first use or use plain language
Buried trust info Security/permissions info below the fold Move near install
No visible uninstall Uninstall not findable within 10 seconds Add near install block
Install scatter Same install command in 3+ locations One hero install, one canonical reference
Theory before try Architecture/philosophy before examples Reorder: examples first, theory in details
Claim without evidence "Best", "different", "unique" without demo Replace with concrete example or remove
AI slop prose Prefab phrases, "not X, it's Y" on the lead, "here's why," metronomic cadence Run de-slopify.md; recast manually

Troubleshooting

Problem Cause Solution
README validator cannot run A required local tool or path is unavailable Record the command failure and unchecked scope; do not claim the check passed
Generated README has no trust block No trust concerns were selected during the interview (step 3f answered "None of the above") Report the mismatch when the tool does run hooks, modify config, or make network calls
<details> blocks render as raw HTML on GitHub Missing blank line after <summary> tag or before </details> This mode enforces the formatting rule, but manual edits may break it. Ensure a blank line after every <summary>...</summary> line and before every </details>
Interview keeps asking questions the project manifest already answers The manifest file format is not recognized by the context-gathering step Ensure your project has a standard manifest (package.json, go.mod, pyproject.toml, Cargo.toml) in the repo root
Anti-pattern detection flags false positives on rewrite Some content patterns trigger heuristic detection even when intentional Report the exact match as heuristic evidence and let the caller judge it

Source: SKILL.md on GitHub

No alerts5d5 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The 'doc' skill is a professional documentation tool for generating READMEs, API docs, and architecture reports. It includes internal auditing scripts and follows high-quality documentation standards, including trust-disclosure sections for users. No malicious patterns or security risks were identified.

  • Socket5d

    No alerts

  • Snyk5d

    Risk: LOW · No issues

  • Runlayer6mo

    5 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 482dc04. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 20 hours ago.

Activeupdated 6 days ago

README badge

README badge for boshu2/agentops/doc