reverse-functions

Generate function-level documentation and indexes from code and documentation.

52|3|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/ZTE-AICloud/Co-OmniSpec --skill reverse-functions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reverse-functions
Source: https://github.com/ZTE-AICloud/Co-OmniSpec/tree/main/skills/reverse-functions
Command: npx skills add https://github.com/ZTE-AICloud/Co-OmniSpec --skill reverse-functions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

功能清单与功能详情文档的反向编排与自动化生成难题,通过明确的阶段划分和缓存机制,将入口识别到功能划分再到文档生成的工作流以 Skill 的形式封装。

Core Features & Use Cases

  • 基于阶段化的入口、场景、功能划分与文档生成全过程自动化
  • 支持缓存、批处理、并行子Agent 执行以及跨平台脚本协同
  • 自动生成 FUNC-XXX-功能名称.md 风格的文档并建立索引以便快速定位

Quick Start

在你的工作流中直接启用 reverse-functions Skill,以自动化完成从入口识别到文档生成的端到端流程。

Frequently Asked Questions about reverse-functions

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

FAQPage Schema
How do I automate function documentation generation for a large codebase?

Automating function documentation generation for a large codebase involves identifying project entry points and applying batch processing with parallel subagents to create function-level documents and indexes. This enforces strict frontmatter and PlantUML diagrams for every function.

What is the best way to reverse engineer project entry points and scenarios from existing code?

Reverse engineering project entry points and scenarios from existing code requires extracting functional mappings from existing documentation and code. A spec-driven workflow then maps these scenarios to generate structured function-level documentation automatically.

Can I use parallel subagents to generate documentation for large repositories?

Yes, you can use parallel subagents to generate documentation for large repositories. The workflow applies batch processing and caching mechanisms to handle large-scale projects efficiently while maintaining strict file organization.

How does spec-driven workflow handle function-level documentation and indexing?

Spec-driven workflow handles function-level documentation by enforcing strict frontmatter and PlantUML diagrams for every generated document. It automatically generates FUNC-XXX-功能名称.md style files and establishes an index for quick functional location.

Why does automated documentation generation require strict frontmatter and PlantUML diagrams?

Automated documentation generation requires strict frontmatter and PlantUML diagrams to ensure consistent file organization and visual representation of function logic. This standardization enables reliable indexing and parsing of generated function documents.