Maa Project Init
duorua/narutomobile
Scan and initialize a MaaFramework game or app automation project for Maa skills and MaaMCP workflows.
This skill should be used when the user asks to "generate project documentation", "analyze codebase architecture", "create C4 architecture diagrams", "document a repository", "generate technical…
$ npx skills add sopaco/terrain --skill litho-document-skill -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install sopaco/terrain litho-document-skill --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/preset_skills/litho-documents-skill .claude/skills/litho-document-skill && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "litho-document-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/litho-documents-skill into .claude/skills/litho-document-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "litho-document-skill", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/sopaco/terrain/tree/main/preset_skills/litho-documents-skillType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add sopaco/terrain --skill litho-document-skill -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install sopaco/terrain litho-document-skill --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .agents/skills && cp -r skills-src/preset_skills/litho-documents-skill .agents/skills/litho-document-skill && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "litho-document-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/litho-documents-skill into .agents/skills/litho-document-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "litho-document-skill", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sopaco/terrain --skill litho-document-skill -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install sopaco/terrain litho-document-skill --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/preset_skills/litho-documents-skill .cursor/skills/litho-document-skill && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "litho-document-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/litho-documents-skill into .cursor/skills/litho-document-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "litho-document-skill", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/sopaco/terrain.git --path preset_skills/litho-documents-skill--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add sopaco/terrain --skill litho-document-skill -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install sopaco/terrain litho-document-skill --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/preset_skills/litho-documents-skill .gemini/skills/litho-document-skill && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "litho-document-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/litho-documents-skill into .gemini/skills/litho-document-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "litho-document-skill", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install sopaco/terrain litho-document-skillInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add sopaco/terrain --skill litho-document-skill -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .github/skills && cp -r skills-src/preset_skills/litho-documents-skill .github/skills/litho-document-skill && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "litho-document-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/litho-documents-skill into .github/skills/litho-document-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "litho-document-skill", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sopaco/terrain --skill litho-document-skill -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install sopaco/terrain litho-document-skill --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/preset_skills/litho-documents-skill .opencode/skills/litho-document-skill && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "litho-document-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/litho-documents-skill into .opencode/skills/litho-document-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "litho-document-skill", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
litho-document-skillThis skill should be used when the user asks to "generate project documentation", "analyze codebase architecture", "create C4 architecture diagrams", "document a repository", "generate technical…
Litho Document Skill is an agent skill from sopaco/terrain. This skill should be used when the user asks to "generate project documentation", "analyze codebase architecture", "create C4 architecture diagrams", "document a repository", "generate technical docs", "使用 Litho 生成文档", "分析代码库架构", "生成架构文档", "为项目生成技术文档", "生成 C4 模型文档", "为这个项目写文档", "自动生成文档", "帮我分析这个代码库", or any request involving automated documentation generation for a software project. This skill enables the AI agent to autonomously analyze any codebase and produce high-quality C4 architecture documentation…
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `_meta.json`, `references/doc-templates.md` and `references/phase1-preprocessing.md`).
It sits in Development, covering Diagrams and Project scaffolding. The repository describes itself as: AI-native engineering environment management that makes your codebase agent-ready. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 0746b38. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Litho Document Skill loads about 1.4k tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 191 tokens; SKILL.md has 306 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from sopaco/terrain at commit 0746b38, republished under its MIT licence (© sopaco). 306 words, ~1,357 tokens.
.claude/skills/litho-document-skill/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.本 Skill 是 Litho(deepwiki-rs)的纯 Agent 平行实现。不依赖任何外部二进制,完全通过 Agent 的工具调用能力自主完成四阶段文档生成流水线。
Terrain 路径(必须遵守):当由 Terrain 调用时,使用以下环境变量,不要写入仓库根目录的 .litho-agent/ 或任意默认路径:
| 环境变量 | 用途 |
|---|---|
TERRAIN_LITHO_WORKSPACE | 研究中间产物目录(等价于 .terrain/.litho-agent/) |
TERRAIN_HUMAN_OUTPUT_DIR | 最终人类文档输出目录(等价于 .terrain/human/) |
TERRAIN_LITHO_SKILL | 本 Skill 目录(只读) |
若未设置上述变量,则回退到仓库根目录 .litho-agent/(研究)与 Skill 提示中的输出目录。
目标产出(写入 TERRAIN_HUMAN_OUTPUT_DIR):
1.概述.md — C4 Context 图 + 项目概述 + 业务价值2.架构.md — C4 Container/Component 图 + 架构模式 + 模块职责3.工作流.md — 时序图 + 流程图 + 并发模型 + 错误处理4.Deep-Exploration/ — 每个领域模块的深度研究文档5.边界接口.md — CLI/API/配置等对外接口清单6.数据库概览.md — ER 图 + 表结构(条件触发)预处理 → 研究 → 编排 → 输出
↓ ↓ ↓ ↓
结构洞察 C1-C4 Markdown 文件持久化每个阶段的详细执行指南在 references/ 中,Agent 按需加载。下面只给出决策级指导。
决策要点:
快速路径(按项目规模):
| 规模 | 判断标准 | 扫描策略 |
|---|---|---|
| 小 | <100 源文件 | list_files 递归 + read_file 全部核心文件 |
| 中 | 100-500 源文件 | list_files 仅一级目录 + read_file 入口+配置+README + codebase_search 语义搜索 |
| 大 | >500 源文件 | 仅读 README + 主配置 + 入口文件 + view_file_outline 核心模块 + grep_search 精确搜索 |
详细步骤见
references/phase1-preprocessing.md
决策要点:
src/ 下每个子目录都识别为候选模块,用 DDD 分组(核心域/支撑域/通用域),不得遗漏TERRAIN_LITHO_WORKSPACE(.terrain/.litho-agent/)持久化(见下方中间产物策略)并发搜索:Step 2.3(架构) + 2.4(工作流) + 2.6(边界) 的搜索可并发调用,Step 2.5(模块深度) 必须在 2.2(领域模块) 之后
渐进式深度:
| importance | 分析深度 | 读取文件数 | Mermaid 图 |
|---|---|---|---|
| ≥7(核心域) | 深度分析 | 5+ | 完整 flowchart + 交互表格 |
| 4-6(支撑域) | 标准分析 | 3 | 精简流程图 |
| ≤3(通用域) | 简要描述 | 1-2 | 无图 |
详细步骤见
references/phase2-research.md
决策要点:
⚠️ 叙述性写作风格(P0 关键!):
生成的文档必须面向人类阅读友好,而不是冷冰冰的 PPT 式结构化文字。核心要求:
### 2.1 核心目标 → 直接跳到列表详细写作风格指南和模板见
references/phase3-composition.md
决策要点:
<br/>)数据库文档触发(满足任一即触发,否则写极简声明文件):
.sql/.sqlproj 文件 | migrations//sql//db//database/ 目录 | ORM 依赖 | DB 配置文件详细验证清单见
references/phase4-output.md
Agent 单次对话上下文窗口有限。随着分析深入,早期的研究结果可能因上下文压力被「遗忘」。
每完成一个研究步骤,将关键发现持久化到 Litho 工作区目录(Terrain 下为 TERRAIN_LITHO_WORKSPACE,即 .terrain/.litho-agent/),而非仅依赖对话上下文:
{TERRAIN_LITHO_WORKSPACE}/ # 或 .terrain/.litho-agent/
├── preprocessing.md ← 预处理报告(阶段一产出)
├── c1-system-context.md ← 系统上下文报告
├── c2-domain-modules.md ← 领域模块报告
├── architecture.md ← 架构研究报告
├── workflow.md ← 工作流研究报告
├── boundary.md ← 边界接口报告
├── database.md ← 数据库报告(条件)
└── modules/ ← 各模块深度报告
├── llm.md
├── cache.md
└── ...最终文档写入 {TERRAIN_HUMAN_OUTPUT_DIR}/(即 .terrain/human/):
{TERRAIN_HUMAN_OUTPUT_DIR}/
├── 1.概述.md
├── 2.架构.md
├── 3.工作流.md
├── 4.Deep-Exploration/{module}.md
├── 5.边界接口.md
└── 6.数据库概览.md操作方法:
write_to_file 写入 TERRAIN_LITHO_WORKSPACE 对应文件(使用绝对路径)read_file 从 TERRAIN_LITHO_WORKSPACE 读取write_to_file 写入 TERRAIN_HUMAN_OUTPUT_DIR(使用绝对路径)关键优势:
codebase_search — 语义搜索(找「做什么事」的代码)grep_search — 精确搜索(找特定符号/类名/函数名)view_file_outline — 快速获取文件结构(不读全量)read_file — 深读关键文件(入口、核心模块)list_files — 扫描目录结构references/phase1-preprocessing.md — 预处理详细步骤 + 搜索策略references/phase2-research.md — 研究各 Agent 详细指南 + 输出格式references/phase3-composition.md — 文档模板 + 分章节策略 + 代码引用规范references/phase4-output.md — Mermaid 验证清单与交付摘要模板references/doc-templates.md — Mermaid 图表语法速查 + 类型选择指南© sopaco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 7 other files (references) in preset_skills/litho-documents-skill of sopaco/terrain.
Open the folder on GitHubat commit 0746b38
Litho Document Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Litho Document Skill this skillsopaco/terrain | 256 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Maa Project Initduorua/narutomobile | 335 | — | ~2.2k | Automated safety check: Pass | AGPL-3.0 | |
| Docs SVG Kitgridaco/grida | 2.7k | — | ~5.6k | Automated safety check: Pass | Apache-2.0 | |
| Codegen Diagramxstongxue/best-skills | 3k | — | ~291 | Automated safety check: Pass | Apache-2.0 | |
| Archify Diagramstt-a1i/archify | 79k | — | ~2.9k | Automated safety check: Pass | MIT | |
| JSON Canvasheyitsnoah/claudesidian | 2.6k | 18 repos | ~3.5k | Automated safety check: Pass | MIT |
duorua/narutomobile
Scan and initialize a MaaFramework game or app automation project for Maa skills and MaaMCP workflows.
gridaco/grida
Author SVG figures for Grida docs — diff-able, version-controlled vector diagrams embedded in doc pages instead of screenshots.
xstongxue/best-skills
基于当前项目/代码生成 Draw.io 图表,支持技术栈图、系统架构图、数据结构图、E-R 图四种类型。输出符合 Draw.io 语法的 .drawio 文件(mxGraph XML),可直接导入 Draw.io 编辑。当用户提到技术栈、系统架构、数据结构、E-R 图时使用。
tt-a1i/archify
Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.
heyitsnoah/claudesidian
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections.
cathrynlavery/diagram-design
Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.
sopaco/terrain
Generate architecture-level agent context (no code细节) for Terrain projects.
sopaco/terrain
A skill your agent uses when a coding agent needs project source context from Terrain agent assets.
sopaco/terrain
Terrain Ask — query knowledge via terrain CLI when Agent execution mode is ACP.
sopaco/terrain
Terrain SDD standardized workflow — requirement clarification, technical design, code generation, and code review.
Categories
This skill should be used when the user asks to "generate project documentation", "analyze codebase architecture", "create C4 architecture diagrams", "document a repository", "generate technical…. Litho Document Skill is an agent skill from sopaco/terrain. This skill should be used when the user asks to "generate project documentation", "analyze codebase architecture", "create C4 architecture diagrams", "document a repository", "generate technical docs", "使用 Litho 生成文档", "分析代码库架构", "生成架构文档", "为项目生成技术文档", "生成 C4 模型文档", "为这个项目写文档", "自动生成文档", "帮我分析这个代码库", or any request involving automated documentation generation for a software project.
Litho Document Skill fits situations like: asks to generate project documentation; analyze codebase architecture; create C4 architecture diagrams; document a repository.
Run `npx skills add sopaco/terrain --skill litho-document-skill -a claude-code`. Or copy the skill folder (preset_skills/litho-documents-skill in sopaco/terrain) into .claude/skills/litho-document-skill in your project. Claude Code loads it when a task matches its description.
Run `npx skills add sopaco/terrain --skill litho-document-skill -a codex`. Or copy the skill folder (preset_skills/litho-documents-skill in sopaco/terrain) into .agents/skills/litho-document-skill in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sopaco/terrain --skill litho-document-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/litho-document-skill, .gemini/skills/litho-document-skill, .github/skills/litho-document-skill and .opencode/skills/litho-document-skill in your project.
SKILL.md names no scripts, command-line tools or credentials: Litho Document Skill is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Litho Document Skill is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 14k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Litho Document Skill: Maa Project Init (duorua/narutomobile, 335 stars), Docs SVG Kit (gridaco/grida, 2.7k stars), Codegen Diagram (xstongxue/best-skills, 3k stars) and Archify Diagrams (tt-a1i/archify, 79k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
sopaco (a GitHub user) maintains it in sopaco/terrain, which has 256 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 29, 2026.
Source: sopaco/terrain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.