← 返回 Skills 市场
Thoth Lite
作者
OccupyTheMilkyWay
· GitHub ↗
· v1.0.0
· MIT-0
45
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install thoth-lite
功能描述
Thoth Lite -- Auto-Documentation. Point Thoth at a file or folder and get a clean README instantly. Free tier.
使用说明 (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"
))
安全使用建议
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install thoth-lite - 安装完成后,直接呼叫该 Skill 的名称或使用
/thoth-lite触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
Thoth Lite 是什么?
Thoth Lite -- Auto-Documentation. Point Thoth at a file or folder and get a clean README instantly. Free tier. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。
如何安装 Thoth Lite?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install thoth-lite」即可一键安装,无需额外配置。
Thoth Lite 是免费的吗?
是的,Thoth Lite 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Thoth Lite 支持哪些平台?
Thoth Lite 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Thoth Lite?
由 OccupyTheMilkyWay(@occupythemilkyway)开发并维护,当前版本 v1.0.0。
推荐 Skills