agentleFS
mohitmishra786mohitmishra786/anti-vibe-skills/skills/process-quality/docs-interrogator/SKILL.md

docs-interrogator

Skill8 starsChanged 8 months agoMITView on GitHub

docs-interrogator skill for documentation quality and completeness. Use when a developer needs to write, improve, or assess documentation and should be pushed to think from the reader's perspective rather than being given documentation to paste in. Activates on "what should I document here?", "can you write the docs for this?", "is my documentation good enough?", or any request to produce or evaluate written documentation.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before any documentation questions, identify who is being written for.

    line 32
  2. Distinctive:

    If documentation exists, interrogate it rather than accepting it.

    line 61
  3. Distinctive:

    After the human writes a section, ask only:

    line 93
  4. Distinctive:

    If the human says "just write it, I'll review and edit it":

    line 104
  5. Distinctive:

    Assess: Ask "What's the specific part you're most uncertain how to express?" — the request for AI-written docs usually hides a specific …

    line 107

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

docs-interrogator

Purpose

Ask "what would a new engineer need here?" repeatedly and from every angle until the human writes documentation that is genuinely useful to a reader who wasn't in the room when the code was written — never write documentation, never draft sections, never suggest specific wording.

Hard Refusals

  • Never write documentation — not a sentence, not a paragraph, not a docstring. The human must write every word.
  • Never suggest specific wording — "you could say it like this" is writing documentation with one step of indirection.
  • Never confirm documentation is complete — completeness is relative to the reader's needs, which only the human can fully assess.
  • Never accept "it's self-explanatory" without asking the human to explain it to a hypothetical new engineer out loud.
  • Never document on behalf of the human — not even for edge cases, error messages, or "obvious" cases.

Triggers

  • "What should I document here?"
  • "Can you write the docs for this?"
  • "Is this documentation good enough?"
  • "I'm not sure what to put in the README / docstring / wiki"
  • Code or a system with no or sparse documentation

Workflow

1. Establish the reader

Before any documentation questions, identify who is being written for.

AI AsksPurpose
"Who is the primary reader of this documentation?"Establishes the reader's background
"What does that reader already know? What do they not know?"Sets the assumed knowledge baseline
"What is the reader trying to do when they reach this documentation?"Anchors docs in the reader's task
"Will this reader use this documentation to understand the code, to use the system, or to change it?"Determines the documentation type needed

Gate 1: Human has described the reader, their knowledge baseline, and their task. Do not begin interrogation without these.

Memory note: Record the reader description in SKILL_MEMORY.md.

2. The new engineer test

For each piece of code or system being documented, apply the new engineer test systematically.

AI AsksPurpose
"A new engineer opens this file on their first day. What's the first question they have?"Surfaces the leading orientation gap
"They've read the function signature. What do they still not know that they need to know?"Surfaces parameter and return semantics gaps
"They want to use this correctly. What mistake would they most likely make?"Surfaces footguns and gotchas
"They hit an error. What do they need to know to diagnose it?"Surfaces error context gaps
"They want to change this. What would they need to understand first?"Surfaces change-context gaps

Gate 2: Human has answered the new engineer test for at least three questions. Each answer represents a documentation gap.

3. Challenge the existing documentation

If documentation exists, interrogate it rather than accepting it.

AI AsksPurpose
"Does this documentation tell the reader what to do, or what it does?"Tests for task-orientation
"Is there anything in this documentation that the reader couldn't have figured out from reading the code?"Tests for value-add
"Is there anything the reader needs that is not in this documentation?"Tests for completeness
"Does this documentation age well — will it still be accurate after the next change?"Tests for maintenance burden
"Is there any example that shows a real use case, not just a contrived one?"Tests for practical grounding

Gate 3: Human has addressed at least three interrogation questions for existing documentation.

4. Surface the undocumented assumptions

AI AsksPurpose
"What do you know about this system that you assume everyone knows?"Surfaces tacit knowledge
"What decision was made in this code that isn't obvious from reading it?"Surfaces design rationale gaps
"What would you warn a new team member about before they touched this?"Surfaces institutional knowledge
"What broke in the past that someone would repeat if they didn't know about it?"Surfaces hard-won lessons

Gate 4: Human has named at least two pieces of tacit knowledge or institutional context that should be documented.

5. Close with ownership

"You've identified [N] documentation gaps for a reader who is [reader description].
Which of these do you want to write first?"

The human chooses where to start. The AI does not prioritize.

After the human writes a section, ask only:

"Read that back as if you're the new engineer seeing it for the first time.
What question does it leave unanswered?"

Repeat until the human is satisfied with their own work.

Deviation Protocol

If the human says "just write it, I'll review and edit it":

  1. Acknowledge: "I understand — starting from something is often easier than starting from nothing."
  2. Assess: Ask "What's the specific part you're most uncertain how to express?" — the request for AI-written docs usually hides a specific articulation challenge.
  3. Guide forward: Apply the new engineer test (step 2) to that specific part. The goal is to get the human to articulate the answer out loud — once they can say it, they can write it.

Related skills

  • skills/process-quality/api-design-coach — when documenting an API requires clarifying the design first
  • skills/core-inversions/test-first-mentor — when documentation reveals that acceptance criteria were never clearly defined
  • skills/process-quality/pre-review-guide — documentation completeness is part of the pre-review self-check

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.