agentleFS
xAmirHamza77xAmirHamza77/ReverseOps-Skill/skills/docs-generator/SKILL.md

docs-generator

Skill4 starsChanged 4 months agoMITView on GitHub

Creates task-oriented technical documentation with progressive disclosure. Use when writing READMEs, API docs, architecture docs, or markdown documentation. Also use this skill at the END of any completed reverse engineering, penetration testing, CTF, or security analysis task to generate a formal report in the user's project directory. Trigger keywords: "write a report", "write documentation", "produce a report", writeup, technical documentation, report, documentation.

9 other projects use a version of this, 4 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After a reverse engineering / penetration testing / CTF / security analysis task is completed, this skill is responsible for generating …

    line 22
  2. Very specific:

    If the project has a docs/ directory: prefer placing the report under docs/

    line 45
  3. Distinctive:

    Language: follow the language of the user's conversation (Chinese conversation → Chinese report, English conversation → English report)

    line 47
  4. Distinctive:

    All code blocks must be directly runnable or have clear context

    line 51
  5. Very specific:

    When generating a report, call the diagram-generator skill at appropriate points to produce visual diagrams:

    line 61
  6. Distinctive:

    Every concept needs a concrete example.

    line 103
  7. Very specific:

    If diagrams need to be rendered and embedded in the report, the diagram-generator/ skill will be called.

    line 145
  8. Distinctive:

    Upstream entry: all security/reverse engineering skills automatically invoke this skill after task completion

    line 151

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “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

Technical Documentation

ACTION REQUIRED (execute immediately after reading)

  1. NOW: Confirm whether the current task falls within this skill's scope
  2. NOW: Read ../tool-index.md to verify tool availability and actual paths
  3. NEXT: If a tool is missing, invoke bootstrap — do not guess paths
  4. ACT: Enter the first step of the "Workflow" and execute — do not stop at the confirmation stage

For writing style, tone, and voice guidance, use Skill(ce:writer) with The Engineer persona.

Security / Reverse Engineering Task Documentation Output

After a reverse engineering / penetration testing / CTF / security analysis task is completed, this skill is responsible for generating formal technical documentation in the user's project directory.

Trigger timing

  1. A reverse engineering task is complete and core conclusions have been produced (algorithm recovery, signature cracking, bypass solution, etc.)
  2. A penetration test is complete and vulnerabilities have been discovered and verified
  3. A CTF challenge is solved and the flag has been captured
  4. The user explicitly asks to "write a report/document/writeup"

Template selection

Task typeTemplate to use
APK/binary/so reverse engineeringreferences/security-report-templates.md → Reverse Engineering Report
Penetration testing / vulnerability discoveryreferences/security-report-templates.md → Penetration Test Report
CTF solvereferences/security-report-templates.md → CTF Writeup
JS/Web signature reverse engineeringreferences/security-report-templates.md → Signature Reverse Engineering Report
General technical documentationreferences/templates.md → README / API docs

Output conventions

  • Output location: the user's current project directory (not the skill package directory)
  • Filename format: YYYY-MM-DD_[type]-[target-short-name]-report.md
  • If the project has a docs/ directory: prefer placing the report under docs/
  • Encoding: UTF-8
  • Language: follow the language of the user's conversation (Chinese conversation → Chinese report, English conversation → English report)

Quality requirements

  • All code blocks must be directly runnable or have clear context
  • No placeholders/TODOs
  • Key findings must be backed by evidence
  • Reproduction steps must allow a third party to independently reproduce the result
  • Sensitive information (real tokens, passwords, internal URLs) must be replaced with placeholders
  • MUST include the Evidence → Finding → Path chain (see ../ops/evidence-finding-path.md and template §0)
  • SHOULD reference the case scope.md / timeline.md (../scripts/case-init.ps1)

Diagram integration

When generating a report, call the diagram-generator skill at appropriate points to produce visual diagrams:

Report typeSuggested diagramsDiagram type
Reverse engineering reportFunction call graph, data flow diagramMermaid flowchart / sequenceDiagram
Penetration test reportAttack path diagram, network topologyMermaid flowchart / Graphviz
CTF WriteupSolution approach flowchartMermaid flowchart
JS signature reverse engineering reportRequest chain sequence diagram, algorithm flowchartMermaid sequenceDiagram / flowchart

Embed diagrams as Mermaid code blocks in the report markdown so they render directly on GitHub/GitLab.


Core Principles

1. Progressive Disclosure

Reveal information in layers:

LayerContentUser Question
1One-sentence descriptionWhat is it?
2Quick start code blockHow do I use it?
3Full API referenceWhat are my options?
4Architecture deep diveHow does it work?

Warnings, breaking changes, and prerequisites go at the TOP.

2. Task-Oriented Writing

<!-- Bad: Feature-oriented -->
## AuthService Class
The AuthService class provides authentication methods...

<!-- Good: Task-oriented -->
## Authenticating Users
To authenticate a user, call login() with credentials:

3. Show, Don't Tell

Every concept needs a concrete example.

Formatting Standards

  • Sentence case headings: "Getting started" not "Getting Started"
  • Max 3 heading levels: Deeper means split the doc
  • Always specify language in code blocks
  • Relative paths for internal links
  • Tables for structured data with 3+ attributes

Quality Checklist

  • Code examples tested and runnable
  • No placeholder text or TODOs
  • Matches actual code behavior
  • Scannable without reading everything
  • Reader knows what to do next

Anti-Patterns

ProblemFix
Wall of textBreak up with headings, bullets, code, tables
Buried critical infoWarnings/breaking changes at TOP
Missing error docsAlways document what can go wrong

Templates

For README, API endpoint, and file organization templates, see references/templates.md.

Related Skills

  • Skill(ce:writer) - Writing style, tone, and voice (load The Engineer persona)
  • Skill(ce:visualizing-with-mermaid) - Architecture and flow diagrams

On-Demand Bootstrap

This skill depends on no external tools — it is pure text generation. No bootstrap needed.

If diagrams need to be rendered and embedded in the report, the diagram-generator/ skill will be called.


Routing Context

Upstream entry: all security/reverse engineering skills automatically invoke this skill after task completion Trigger methods:

  • Automatic: executed as step 9 of the behavior chain after task completion
  • Manual: user says "write a report", "produce documentation", "writeup"

Peer modules:

  • apk-reverse/ — generates a reverse engineering report after APK analysis completes
  • ida-reverse/ — generates a reverse engineering report after binary analysis completes
  • radare2/ — generates a reverse engineering report after CLI analysis completes
  • js-reverse/ — generates a signature report after JS signature reverse engineering completes
  • reverse-engineering/ — generates a reverse engineering report after general reversing completes
  • field-journal/ — report content also serves as the data source for the evolution log

Security report templates: references/security-report-templates.md General documentation templates: references/templates.md

Task Completion Self-Check (MUST pass before claiming completion)

  • Did I execute every step of the workflow (rather than just reading it)?
  • Did I use real tool paths based on tool-index?
  • Did I produce reproducible evidence (commands/scripts/screenshots/reports)?
  • Does the report contain Evidence / Finding / Path (ops contract)?
  • Did I complete and write back the Checklist items required by RULES?

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.