save-doc

Save long-form Claude outputs to files with automatic naming and conflict resolution.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Fenghaze/my-skill --skill save-doc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: save-doc
Source: https://github.com/Fenghaze/my-skill/tree/main/save-doc
Command: npx skills add https://github.com/Fenghaze/my-skill --skill save-doc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

长篇输出(如指南、教程、方案、总结)往往难以管理。本技能会在需要时自动将这类输出保存为文件,便于后续查阅与归档。

Core Features & Use Cases

  • 自动在检测到长输出时提示保存,降低丢失信息的风险。
  • 保存路径可配置:默认 .claude/docs、项目根目录,或自定义路径。
  • 文件命名规则:以文档第一个 Markdown 一级标题为文件名,过滤非法字符,长度限制为 100 字符。
  • 冲突处理与目录创建:如有同名文件,自动添加序号并创建所需目录,确保写入成功。

Quick Start

Save the current long document to the default .claude/docs directory.

Frequently Asked Questions about save-doc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically save long Claude outputs to markdown files?

To automatically save long Claude outputs to markdown files, this Skill detects extended responses and writes them to a configurable target path, defaulting to the .claude/docs directory for seamless archival.

How does file naming work when saving generated documentation?

File naming uses the first Markdown level-one heading from the output, filters illegal characters, and enforces a 100-character length limit to create valid, readable filenames for your saved documentation.

What happens if a file with the same name already exists in the target directory?

When a file with the same name exists, the save operation automatically appends a sequential number to the filename and creates any missing directories to resolve the conflict and ensure a successful write.

Can I customize the save path for my generated tutorials and plans?

Yes, you can configure the save path for generated tutorials and plans by choosing the default .claude/docs directory, the project root, or specifying a completely custom path for your archival needs.

Does this automatic save tool work without external dependencies?

Yes, the automatic save tool works without external dependencies, implementing robust file write operations with internal error handling to safely archive your long-form outputs.

Why do I need to save long-form chat outputs to files?

You need to save long-form chat outputs to files because extended responses like guidelines, tutorials, and plans are difficult to manage in a chat interface and require archival documentation for subsequent review.