← Back to Skills Marketplace
sky-lv

Doc Generator

by SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
82
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install doc-generator
Description
Auto-generates professional README.md from code structure, package.json, and directory analysis. Triggers: generate readme, create readme, readme from code,...
README (SKILL.md)

README Generator

Overview

Automatically analyzes a codebase and generates a comprehensive, professional README.md.

When to Use

  • User asks to "generate a README", "create documentation", or "document this project"
  • New project needs a README but none exists
  • Existing README is outdated or incomplete

How It Works

Step 1: Analyze project structure

Run: dir /b /s /a:d (Windows) or find . -maxdepth 2 -type d (macOS/Linux)

Step 2: Detect project type

Check for: package.json (JS), setup.py/pyproject.toml (Python), Cargo.toml (Rust), go.mod (Go), pom.xml (Java)

Step 3: Generate README sections

  1. Project Title - from package.json name or directory name
  2. Badges - CI status, version, license, downloads
  3. One-liner Description
  4. Features - auto-detect from exports and main functions
  5. Installation - standard install for detected type
  6. Usage - realistic examples from source code
  7. API Reference - parse function signatures
  8. Contributing + License

Output Format

Write a complete README.md with all sections. Keep descriptions under 80 chars per line. Include real badges (shields.io) and actual code examples from the source.

Usage Guidance
This skill appears to do what it says — it will scan your repository and create a README from package.json and source code. Before installing or running it: (1) run it first on a non-sensitive test repo to verify output; (2) restrict its input scope or add an allowlist (only src/, package.json, etc.) and explicitly exclude config files, .env, secrets, and private keys; (3) review any generated README before committing or publishing to avoid leaking credentials or internal URLs; (4) prefer skills from known authors or add explicit instructions to the skill for file exclusion and sanitization. If you need higher assurance, request the SKILL.md be expanded to specify exact file paths to read and explicit exclusions.
Capability Analysis
Type: OpenClaw Skill Name: doc-generator Version: 1.0.0 The 'doc-generator' skill is a legitimate tool designed to automate the creation of README documentation by analyzing local project structures. It uses standard, read-only system commands (like 'find' or 'dir') and manifest file checks (e.g., package.json) to gather context, showing no signs of malicious intent, data exfiltration, or unauthorized execution in SKILL.md or _meta.json.
Capability Assessment
Purpose & Capability
Name and description match the instructions: SKILL.md explicitly directs examining project directories and files (package.json, source code) and producing README sections (title, installation, usage, API reference). The required capabilities are proportional to the stated goal.
Instruction Scope
Instructions tell the agent to run directory listing commands and to parse package.json and source files to extract function signatures and code examples. That is necessary for README generation, but the instructions are high-level/vague about exactly which files to read and which files to exclude — this grants broad discretion and could cause the agent to read and include sensitive files (config, .env, keys) from the repository. The skill also suggests including externally-hosted badges (shields.io), which implies constructing or referencing external URLs.
Install Mechanism
No install spec and no code files are present (instruction-only). This minimizes disk writes and arbitrary code execution risk.
Credentials
The skill requests no environment variables, credentials, or config paths. Its need to read package.json and source files is proportionate. Still, because it will parse repository files, it can accidentally surface secrets present in the codebase even though it doesn't request credentials explicitly.
Persistence & Privilege
always is false and the skill does not request persistent presence or modifications to other skills or system settings. Autonomous invocation is allowed (platform default) and not itself a red flag here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install doc-generator
  3. After installation, invoke the skill by name or use /doc-generator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of README generator tool. - Automatically analyzes code structure and project files to produce a professional README.md. - Detects project type and customizes documentation for JS, Python, Rust, Go, and Java. - Generates sections including title, badges, description, features, install/usage instructions, API reference, contributing, and license. - Uses real badges and extracts code examples from the source code.
Metadata
Slug doc-generator
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Doc Generator?

Auto-generates professional README.md from code structure, package.json, and directory analysis. Triggers: generate readme, create readme, readme from code,... It is an AI Agent Skill for Claude Code / OpenClaw, with 82 downloads so far.

How do I install Doc Generator?

Run "/install doc-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Doc Generator free?

Yes, Doc Generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Doc Generator support?

Doc Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Doc Generator?

It is built and maintained by SKY-lv (@sky-lv); the current version is v1.0.0.

💬 Comments