long-doc-generator
Skill1 starsChanged 8 months agoMITView on GitHub
超长文档生成工具,支持项目文档、商业文案、技术规格书。触发词:生成文档、写方案、技术规格书。
In this repository40 other files it gives its agents.
- ralphSkill
- prdSkill
- th-prd-driven-dev-workflowSkill
- th-ralph-evoSkill
- th-ralphSkill
- th-workflow-decision-engineSkill
- agent-factorySkill
- arch-linuxSkill
- article-writingSkill
- browser-useSkill
- code-reviewSkill
- decision-recordSkill
- githubSkill
- knowledge-hubSkill
- long-running-agentSkill
- th-model-compare-searchSkill
- newapi-cliSkill
- orchestratorSkill
- playwright-cliSkill
- prd-evolutionSkill
- prd-to-codeSkill
- prompt-expertSkill
- prompt-optimizerSkill
- puppeteer-cliSkill
- ralphSkill
- prdSkill
- requirement-to-prdSkill
- site-analyzerSkill
- skill-creatorSkill
- skill-stocktakeSkill
- src-linkSkill
- th-bug-analyzerSkill
- th-deep-coder2Skill
- th-deep-coderSkill
- th-enterprise-test-agentSkill
- gitnexus-assistantSkill
- th-ralph-evoSkill
- th-ralphSkill
- unified-searchSkill
- web-fetchSkill
The file
Files
Long-Doc-Generator Skill
用途: 生成超长文档(项目尺度、商业尺度、技术规格书)
研究基础: 100+ 篇技术文章/官方文档分析
能力矩阵
| 场景 | 规模 | 支持度 |
| 项目尺度文档 | <50K tokens | ✅ 完全支持 |
| 商业尺度文案 | 50K-200K tokens | ✅ 支持 |
| 技术规格书 | 200K+ tokens | ⚠️ 需多次会话 |
使用方法
# 基础用法
node ~/ai-projects/skills/long-doc-generator/scripts/generate.mjs "生成 API 文档"
# 指定文档类型
node ~/ai-projects/skills/long-doc-generator/scripts/generate.mjs "技术方案" --type proposal
# 深度研究模式
node ~/ai-projects/skills/long-doc-generator/scripts/generate.mjs "市场调研" --deep核心技术
1. 层级分块 (Header-Based Chunking)
按 Markdown 标题层级自动分块,保持文档结构完整性。
2. 结构化摘要 (Structured Summarization)
每完成一章,生成结构化摘要保存上下文。
3. 进度追踪 (Progress Tracking)
实时写入进度文件,支持会话中断后恢复。
4. 质量审查 (Quality Review)
内置审查清单,确保文档质量。
输出格式
## 文档信息
- 标题:XXX
- 生成时间:2026-03-15
- 总字数:XX,XXX
- 章节数:X
## 生成日志
- [x] Phase 1: 大纲生成
- [x] Phase 2: 第 1 章
- [x] Phase 3: 第 2 章
- [ ] Phase 4: 第 3 章配置文件
{
"chunk_strategy": "header",
"max_chunk_tokens": 4000,
"output_limit": 25000,
"progress_file": "progress.md",
"auto_save": true
}参考文档
Skill v1.0 - 基于深度研究成果
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
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.

