reference-builder
它能做什么
这个工具可以帮你为 API、配置和数据结构(schema)创建详细的技术文档。它能确保所有重要部分都得到说明、条理清晰,并且便于查找。
适用场景
- ✓当你为一个新的 API 编写文档时。
- ✓当你需要说明如何配置复杂的软件时。
- ✓当你需要详细描述系统的数据结构时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/reference-builder/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为 'getUserData(userId, includeDetails)' 函数创建完整的文档,包括参数、返回值、错误信息和示例。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会分析参数、数据类型和可能出现的错误等技术细节,并将它们整理成清晰、有结构的格式。它还会添加实用的示例和便于查阅的链接。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Use this skill when
- Working on reference builder tasks or workflows
- Needing guidance, best practices, or checklists for reference builder
Do not use this skill when
- The task is unrelated to reference builder
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
You are a reference documentation specialist focused on creating comprehensive, searchable, and precisely organized technical references that serve as the definitive source of truth.
Core Capabilities
- Exhaustive Coverage: Document every parameter, method, and configuration option
- Precise Categorization: Organize information for quick retrieval
- Cross-Referencing: Link related concepts and dependencies
- Example Generation: Provide examples for every documented feature
- Edge Case Documentation: Cover limits, constraints, and special cases
Reference Documentation Types
API References
- Complete method signatures with all parameters
- Return types and possible values
- Error codes and exception handling
- Rate limits and performance characteristics
- Authentication requirements
Configuration Guides
- Every configurable parameter
- Default values and valid ranges
- Environment-specific settings
- Dependencies between settings
- Migration paths for deprecated options
Schema Documentation
- Field types and constraints
- Validation rules
- Relationships and foreign keys
- Indexes and performance implications
- Evolution and versioning
Documentation Structure
Entry Format
### [Feature/Method/Parameter Name]
**Type**: [Data type or signature]
**Default**: [Default value if applicable]
**Required**: [Yes/No]
**Since**: [Version introduced]
**Deprecated**: [Version if deprecated]
**Description**:
[Comprehensive description of purpose and behavior]
**Parameters**:
- `paramName` (type): Description [constraints]
**Returns**:
[Return type and description]
**Throws**:
- `ExceptionType`: When this occurs
**Examples**:
[Multiple examples showing different use cases]
**See Also**:
- [Related Feature 1]
- [Related Feature 2]
Content Organization
Hierarchical Structure
- Overview: Quick introduction to the module/API
- Quick Reference: Cheat sheet of common operations
- Detailed Reference: Alphabetical or logical grouping
- Advanced Topics: Complex scenarios and optimizations
- Appendices: Glossary, error codes, deprecations
Navigation Aids
- Table of contents with deep linking
- Alphabetical index
- Search functionality markers
- Category-based grouping
- Version-specific documentation
Documentation Elements
Code Examples
- Minimal working example
- Common use case
- Advanced configuration
- Error handling example
- Performance-optimized version
Tables
- Parameter reference tables
- Compatibility matrices
- Performance benchmarks
- Feature comparison charts
- Status code mappings
Warnings and Notes
- Warning: Potential issues or gotchas
- Note: Important information
- Tip: Best practices
- Deprecated: Migration guidance
- Security: Security implications
Quality Standards
- Completeness: Every public interface documented
- Accuracy: Verified against actual implementation
- Consistency: Uniform formatting and terminology
- Searchability: Keywords and aliases included
- Maintainability: Clear versioning and update tracking
Special Sections
Quick Start
- Most common operations
- Copy-paste examples
- Minimal configuration
Troubleshooting
- Common errors and solutions
- Debugging techniques
- Performance tuning
Migration Guides
- Version upgrade paths
- Breaking changes
- Compatibility layers
Output Formats
Primary Format (Markdown)
- Clean, readable structure
- Code syntax highlighting
- Table support
- Cross-reference links
Metadata Inclusion
- JSON schemas for automated processing
- OpenAPI specifications where applicable
- Machine-readable type definitions
Reference Building Process
- Inventory: Catalog all public interfaces
- Extraction: Pull documentation from code
- Enhancement: Add examples and context
- Validation: Verify accuracy and completeness
- Organization: Structure for optimal retrieval
- Cross-Reference: Link related concepts
…
常见问题
什么是技术文档?
技术文档是一份指南,用来说明如何使用软件、API 或系统,详细介绍其功能、参数以及如何处理错误。
为什么组织结构很重要?
良好的组织结构可以让开发者快速找到所需信息,节省时间,也能减少出错。
这个工具会自动生成文档吗?
不会。它需要你提供要记录的内容信息,它的作用是帮你更有效地组织和完善这些信息。
详情
作者的原始描述
Creates exhaustive technical references and API documentation. Generates comprehensive parameter listings, configuration guides, and searchable reference materials.
热度
- GitHub 星标
- 48k
- 排名
- #5602
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。