← Back to Skills Marketplace
occupythemilkyway

Thoth Lite

by OccupyTheMilkyWay · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
45
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install thoth-lite
Description
Thoth Lite -- Auto-Documentation. Point Thoth at a file or folder and get a clean README instantly. Free tier.
README (SKILL.md)

Thoth Lite -- Auto-Documentation

Thoth, god of wisdom and writing, reads your code so you don't have to explain it.

Free vs Standard vs Pro

Feature Thoth Lite (Free) Thoth Standard ($5) Thoth Pro ($9)
Scope Single file Full project folder Full project + git
Outputs README only README + API ref + usage README + API + docstrings + CHANGELOG
Inline docstrings No No Yes (auto-injected)
Git changelog No No Yes (from git log)
Architecture doc No No Yes
Save to files No Yes (.md) Yes (.md + .docx)

Upgrade: Thoth Standard -> ko-fi.com/occupythemilkyway ($5) Bundle: All 5 Egyptian skills for $29 -> ko-fi.com/occupythemilkyway


Step 1 -- Install

pip3 install rich --break-system-packages --quiet

Step 2 -- Scan file/folder

import os, sys
from rich.console import Console
from rich.panel import Panel
from rich.tree import Tree

console = Console()

PROJECT_PATH = os.environ.get("PROJECT_PATH", "").strip()
if not PROJECT_PATH:
    console.print(Panel("[red]PROJECT_PATH is required.[/red]\
Set it to a file or folder path.", title="Setup Error", border_style="red"))
    sys.exit(1)

if not os.path.exists(PROJECT_PATH):
    console.print(Panel(f"[red]Path not found:[/red] {PROJECT_PATH}", title="Error", border_style="red"))
    sys.exit(1)

console.print()
console.print(Panel.fit(
    f"[bold cyan]📜 Thoth Lite -- Auto-Documentation[/bold cyan]\
"
    f"Target: [yellow]{PROJECT_PATH}[/yellow]\
"
    f"[dim]Free tier -- single file or folder README[/dim]",
    border_style="cyan"
))

# Collect files
files = []
if os.path.isfile(PROJECT_PATH):
    files = [PROJECT_PATH]
else:
    SKIP_DIRS = {".git", "__pycache__", "node_modules", ".venv", "venv", "dist", "build", ".next"}
    CODE_EXTS  = {".py", ".js", ".ts", ".jsx", ".tsx", ".go", ".rs", ".java", ".rb", ".cs", ".cpp", ".c", ".sh", ".yaml", ".yml", ".toml", ".json", ".md"}
    tree = Tree(f"[bold]{PROJECT_PATH}[/bold]")
    for root, dirs, fnames in os.walk(PROJECT_PATH):
        dirs[:] = [d for d in dirs if d not in SKIP_DIRS]
        rel = os.path.relpath(root, PROJECT_PATH)
        branch = tree if rel == "." else tree.add(f"[dim]{rel}[/dim]")
        for fname in sorted(fnames):
            ext = os.path.splitext(fname)[1].lower()
            if ext in CODE_EXTS:
                full = os.path.join(root, fname)
                files.append(full)
                branch.add(f"[green]{fname}[/green]")
    console.print(tree)

console.print(f"\
[bold]Files found:[/bold] [yellow]{len(files)}[/yellow]")
console.print("[dim]Reading files for documentation...[/dim]\
")

# Read file contents for Claude
for f in files[:20]:  # Lite: up to 20 files
    try:
        with open(f, encoding="utf-8", errors="replace") as fh:
            content = fh.read(3000)  # first 3000 chars
        rel = os.path.relpath(f, PROJECT_PATH if os.path.isdir(PROJECT_PATH) else os.path.dirname(PROJECT_PATH))
        print(f"\
=== FILE: {rel} ===")
        print(content)
        print(f"=== END {rel} ===\
")
    except Exception:
        pass

Step 3 -- Generate README

Based on the files shown above, write a clean professional README.md with this structure:

# [Project Name]

> One-sentence description of what this project does.

## Overview
2-3 paragraphs explaining what the project does, why it exists, and who it's for.

## Features
- Feature 1
- Feature 2
- Feature 3

## Installation
Step-by-step install instructions based on the actual files (package.json, requirements.txt, etc.).

## Usage
Practical examples showing how to actually use it.

## Project Structure
Brief explanation of the key files/folders.

## Contributing
Simple contributing guide.

## License
License info if found, otherwise leave a placeholder.

Step 4 -- Upsell

from rich.console import Console
from rich.panel import Panel
console = Console()
console.print()
console.print(Panel(
    "[dim]Thoth Lite generates a README for one file or folder.\
\
[/dim]"
    "[bold cyan]Thoth Standard ($5)[/bold cyan] adds an API reference, usage examples, and saves everything to .md files.\
"
    "[bold magenta]Thoth Pro ($9)[/bold magenta] adds auto-injected docstrings, git changelog, architecture diagrams, and .docx export.\
\
"
    "Upgrade: [bold cyan]ko-fi.com/occupythemilkyway[/bold cyan]",
    title="[cyan]Want full documentation?[/cyan]",
    border_style="cyan"
))
Usage Guidance
Install only if you are comfortable sending excerpts from the selected file or project folder to the agent context. Avoid pointing it at repositories or paths containing secrets, credentials, private customer data, or confidential source files, and consider using a virtual environment instead of the suggested system-level pip install command.
Capability Assessment
Purpose & Capability
The file-reading behavior directly supports the stated auto-documentation purpose and is limited to the user-provided PROJECT_PATH, up to 20 files and 3000 characters per file.
Instruction Scope
The skill discloses that it scans a file or folder, but it does not add a strong warning to avoid secrets, credentials, or private repositories before printing file excerpts for the model to use.
Install Mechanism
Installation only asks for the Python rich package, but the suggested pip command uses --break-system-packages and is not version-pinned.
Credentials
The required PROJECT_PATH environment variable is proportionate for documenting a chosen project path; common large build and dependency directories are skipped.
Persistence & Privilege
No persistence, background execution, privilege escalation, file mutation, credential harvesting, or network exfiltration is present in the artifacts.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install thoth-lite
  3. After installation, invoke the skill by name or use /thoth-lite
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of Thoth Lite — Auto-Documentation tool. - Instantly generates a professional README from a file or folder path (up to 20 files). - Free tier: outputs only the README, based on file scans. - Supports major code and config filetypes; skips common build and virtual env folders. - Simple CLI process: scan target, display structure, and print file previews for documentation. - Upgrade paths to Standard and Pro offer more features, including API references, docstrings, changelogs, and advanced export options.
Metadata
Slug thoth-lite
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Thoth Lite?

Thoth Lite -- Auto-Documentation. Point Thoth at a file or folder and get a clean README instantly. Free tier. It is an AI Agent Skill for Claude Code / OpenClaw, with 45 downloads so far.

How do I install Thoth Lite?

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

Is Thoth Lite free?

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

Which platforms does Thoth Lite support?

Thoth Lite is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Thoth Lite?

It is built and maintained by OccupyTheMilkyWay (@occupythemilkyway); the current version is v1.0.0.

💬 Comments