Token导航 LogoToken导航

Agent Skill · AI 工具

codebase-summary(代码库摘要)

codebase-summary 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

codebase-summary 是AI 工具类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在AI 工具类的 2,536 个 Skill 里排第 1,623。

总安装 564周安装 24GitHub Stars 2,822下载 198核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:codebase-summary(代码库摘要)
来源仓库:https://github.com/mikeyobrien/ralph-orchestrator
仓库路径:skills/codebase-summary
安装命令:
npx skills add https://github.com/mikeyobrien/ralph-orchestrator --skill codebase-summary
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/mikeyobrien/ralph-orchestrator --skill codebase-summary

这个 Skill 是做什么的

AI 工具类 Skill 用来扩展助手本身的能力,例如接模型、接检索、接外部服务。

codebase-summary 用于分析代码库并生成结构化文档,包含系统架构和组件说明。适合在 Codex、Claude、Cursor、Gemini CLI 中需要为 AI 助手创建开发文档时使用。能生成 AGENTS.md、README.md 或完整的文档生态系统,支持增量更新。

安装前建议确认权限范围和文件访问权限,注意会读取项目结构和生成文档文件。可通过输出目录参数自定义文档存储位置,默认生成到 .sop/summary 目录。

来源仓库内路径:skills/codebase-summary

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/mikeyobrien/ralph-orchestrator --skill codebas…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

codebase-summary 怎么安装?

在终端执行 npx skills add https://github.com/mikeyobrien/ralph-orchestrator --skill codebase-summary。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

codebase-summary 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

codebase-summary 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

codebase-summary 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

codebase-summary 用的人多吗?

公开数据是累计安装 564 次,近一周安装 24 次,下载 198 次,GitHub 2,822 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

codebase-summary 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理AI 工具类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

AI 工具类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
executing-plans

执行计划 · Codex、Claude

1,515,336173,110只读MIT通过
verification-before-completion

完成前的验证 · Codex、Claude

1,319,472173,121权限未标注MIT通过
subagent-driven-development

子 Agent 驱动开发 · Codex、Claude

1,312,416173,138只读MIT通过
copy-editing

复制编辑 · Codex、Claude

1,209,57625,632只读MIT通过
paywall-upgrade-cro

付费专区升级 cro · Codex、Claude

1,030,17625,617只读MIT通过
codebase-summary

代码库摘要 · 本页

5642,822需要联网MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Codebase Summary

Overview

This sop analyzes a codebase and generates comprehensive documentation including structured metadata files that describe the system architecture, components, interfaces, and workflows. It can create targeted documentation files like AGENTS.md (README for AI agents), README.md, CONTRIBUTING.md, or generate a complete documentation ecosystem. The documentation is organized to make it easy for AI assistants to understand the system and help with development tasks.

Parameters

  • output_dir (optional, default: ".sop/summary"): Directory where documentation will be stored
  • consolidate (optional, default: false): Whether to create a consolidated documentation file
  • consolidate_target (optional, default: "AGENTS.md"): Target file for consolidation (e.g., "README.md", "CONTRIBUTING.md", or custom filename). Only used if consolidate is true
  • consolidate_prompt (optional): Description of how to structure the consolidated content for the target file type (e.g., Reference the AGENTS.md example below for the default "consolidate_prompt"). Only used if consolidate is true
  • check_consistency (optional, default: true): Whether to check for inconsistencies across documents
  • check_completeness (optional, default: true): Whether to identify areas lacking sufficient detail
  • update_mode (optional, default: false): Whether to update existing documentation based on recent changes
  • codebase_path (optional, default: current directory): Path to the codebase to analyze

Constraints for parameter acquisition:

  • You MUST ask for all parameters upfront in a single prompt rather than one at a time
  • You MUST support multiple input methods including:

- Direct input: Text provided directly in the conversation - File path: Path to a local file containing codebase information - Directory path: Path to the codebase to analyze - Other methods: You SHOULD be open to other ways the user might want to specify the codebase

  • You MUST use appropriate tools to access content based on the input method
  • You MUST confirm successful acquisition of all parameters before proceeding
  • You MUST validate that the codebase_path exists and is accessible
  • If consolidate is false, you MUST inform the user that consolidate_target and consolidate_prompt will be ignored

Steps

1. Setup and Directory Structure

Initialize the analysis environment and create necessary directory structure.

Constraints:

  • You MUST validate that the codebase_path exists and is accessible
  • You MUST create the output_dir if it doesn't exist
  • You MUST inform the user about the directory structure being created
  • If update_mode is true, you MUST:

- Check if an index.md file exists in the output_dir - Use git commands to review the latest commits and see if its changes are documented

  • If update_mode is false or no previous documentation exists, you MUST inform the user that full analysis will be performed
  • You MUST create subdirectories for organizing different types of documentation artifacts

2. Analyze Codebase Structure

Perform comprehensive analysis of the codebase to understand its structure, components, and relationships.

Constraints:

  • You MUST use appropriate tools to gather information about the codebase structure
  • You MUST identify all packages, modules, and major components in the codebase
  • You MUST analyze file organization, directory structure, and architectural patterns
  • You MUST identify supported and unsupported programming languages
  • You MUST document the technology stack and dependencies
  • You MUST create a hierarchical map of the codebase structure using Mermaid diagrams
  • You MUST identify key interfaces, APIs, and integration points
  • You MUST analyze code patterns and design principles used throughout the codebase
  • You MUST use Mermaid diagrams for all visual representations instead of ASCII art
  • You MUST document basic codebase information in {output_dir}/codebase_info.md
  • If update_mode is true, you MUST:

- Analyze which packages and files were modified in recent commits - Prioritize analysis of modified components - Create a change summary document listing all relevant changes since last update

3. Generate Documentation Files

Create comprehensive documentation files for different aspects of the system.

Constraints:

  • You MUST create a comprehensive knowledge base index file ({output_dir}/index.md) that:

- Provides explicit instructions for AI assistants on how to use the documentation - Contains rich metadata about each file's purpose and content - Includes a table of contents with descriptive summaries for each document - Explains relationships between different documentation files - Guides AI assistants on which files to consult for specific types of questions - Contains brief summaries of each file's content to help determine relevance - Is designed to be the primary file needed in context for AI assistants to effectively answer questions

  • You MUST create documentation files for different aspects of the system:

- {output_dir}/architecture.md (system architecture and design patterns) - {output_dir}/components.md (major components and their responsibilities) - {output_dir}/interfaces.md (APIs, interfaces, and integration points) - {output_dir}/data_models.md (data structures and models) - {output_dir}/workflows.md (key processes and workflows) - {output_dir}/dependencies.md (external dependencies and their usage)

  • You MUST ensure each documentation file contains relevant information from the codebase analysis
  • You MUST use Mermaid diagrams for all visual representations throughout the documentation
  • You MUST NOT use ASCII art for any visual elements
  • If update_mode is true, you MUST:

- Preserve existing documentation structure where possible - Only update sections related to modified components

4. Review Documentation

Review the documentation for consistency and completeness.

Constraints:

  • If check_consistency is true, you MUST check for inconsistencies across documents
  • If check_completeness is true, you MUST identify areas lacking sufficient detail
  • You MUST document any inconsistencies or gaps found in {output_dir}/review_notes.md
  • You MUST specifically identify gaps resulting from language support limitations
  • You SHOULD use insights from the codebase analysis to identify areas needing more detail
  • You MUST provide recommendations for improving documentation quality

5. Consolidate Documentation

Create a consolidated documentation file if requested.

Constraints:

  • If consolidate is true, you MUST create a consolidated documentation file
  • You MUST place the consolidated file in the codebase root directory (outside of the output_dir)
  • You MUST use consolidate_target as the filename for the consolidated file
  • If consolidate_prompt is provided, you MUST use it to guide the structure and content of the consolidated file
  • You MUST tailor the consolidated content to the target file type:

- AGENTS.md: Focus on AI assistant context, project and directory structure, development patterns, and assistant-specific instructions - README.md: Focus on project overview, installation, usage, and getting started information - CONTRIBUTING.md: Focus on development setup, coding standards, contribution workflow, and guidelines - Other files: Adapt content based on filename and consolidate_prompt

  • You MUST organize the consolidated content in a coherent structure appropriate for the target audience
  • You MUST include a comprehensive table of contents with descriptive summaries
  • You MUST add metadata tags to each section to facilitate targeted information retrieval
  • You MUST include cross-references between related sections
  • You MUST include information from all relevant documentation files
  • If consolidate is false, you MUST skip this step and inform the user that no consolidated file will be created

6. Summary and Next Steps

Provide a summary of the documentation process and suggest next steps.

Constraints:

  • You MUST summarize what has been accomplished
  • You MUST suggest next steps for using the documentation
  • You MUST provide guidance on maintaining and updating the documentation
  • You MUST include specific instructions for adding the documentation to AI assistant context:

- Recommend using the index.md file as the primary context file - Explain how AI assistants can leverage the index.md file as a knowledge base to find relevant information - Emphasize that the index.md contains sufficient metadata for assistants to understand which files contain detailed information - Provide example queries that demonstrate how to effectively use the documentation

  • If consolidate is true, you MUST provide guidance on using the consolidated file
  • If update_mode was used, you MUST:

- Summarize what changes were detected and updated in the documentation - Highlight any significant architectural changes - Recommend areas that might need further manual review

Examples

Example Input (Default AGENTS.md)

output_dir: ".sop/summary"
consolidate: true
consolidate_target: "AGENTS.md"
consolidate_prompt: "Create a comprehensive AGENTS.md file optimized for AI coding assistants. You MUST focus on information that is not already present in other documentation sources like README.md or CONTRIBUTING.md. Useful information for this file includes: File purpose, directory structure, Coding style patterns, file organization patterns, instructions on how to write and run tests, documentation guidelines, and package specific guidance."
codebase_path: "/path/to/project"

Example Output (Generate Mode)

Setting up directory structure...
✅ Created directory .summary/
✅ Created subdirectories for documentation artifacts

Analyzing codebase structure...
✅ Found 15 packages across 3 programming languages
✅ Identified 45 major components and 12 key interfaces
✅ Codebase information saved to .summary/codebase_info.md

Generating documentation files...
✅ Created index.md with knowledge base metadata
✅ Generated architecture.md, components.md, interfaces.md
✅ Generated data_models.md, workflows.md, dependencies.md

Reviewing documentation...
✅ Consistency check complete
✅ Completeness check complete
✅ Review notes saved to .summary/review_notes.md

Consolidating documentation...
✅ Created AGENTS.md optimized for AI coding assistants
✅ Included comprehensive project context and development guidance

Summary and Next Steps:
✅ Documentation generation complete!
✅ To use with AI assistants, add .summary/index.md to context
✅ AGENTS.md provides comprehensive guidance for AI coding assistance

Example Input (README.md)

consolidate_target: "README.md"
consolidate_prompt: "Create a user-friendly README that explains the project purpose, installation, and usage"

Example Input (No Consolidation)

consolidate: false
check_consistency: true
check_completeness: true

Example Output (Update Mode)

Update mode detected - checking for changes...
✅ Found existing documentation
✅ Identified 8 commits since last update affecting 3 packages

Analyzing recent changes...
✅ Updated components: AuthService, DataProcessor, APIGateway
✅ Change summary saved to .summary/recent_changes.md

Updating documentation...
✅ Updated architecture.md with new AuthService patterns
✅ Updated components.md with DataProcessor changes
✅ Updated interfaces.md with new API endpoints

Consolidating updated documentation...
✅ Updated AGENTS.md with recent changes
✅ Added "Recent Changes" section highlighting updates

Summary:
✅ Documentation updated based on 8 recent commits
✅ 3 major components updated in documentation
✅ Review .summary/recent_changes.md for detailed change summary

Example Output Structure

AGENTS.md (consolidated file in root directory)
.summary/
├── index.md (knowledge base index)
├── codebase_info.md
├── architecture.md
├── components.md
├── interfaces.md
├── data_models.md
├── workflows.md
├── dependencies.md
├── review_notes.md
└── recent_changes.md (if update_mode)

Example Mermaid Diagram Types

The documentation will include various Mermaid diagram types:

Architecture Overview:

graph TB
    A[Frontend] --> B[API Gateway]
    B --> C[Auth Service]
    B --> D[Business Logic]
    D --> E[Database]

Component Relationships:

classDiagram
    class UserService {
        +authenticate()
        +authorize()
    }
    class DataService {
        +getData()
        +saveData()
    }
    UserService --> DataService

API Workflows:

sequenceDiagram
    Client->>API: Request
    API->>Auth: Validate
    Auth-->>API: Token Valid
    API->>Service: Process
    Service-->>API: Response
    API-->>Client: Result

Troubleshooting

Large Codebase Performance

For very large codebases that take significant time to analyze:

  • You SHOULD provide progress updates during analysis
  • You SHOULD suggest focusing on specific directories or components if performance becomes an issue
  • Consider running with consolidate=false to generate individual files faster

Update Mode Issues

If update mode fails to detect changes correctly:

  • Check if git history is available and accessible
  • Try running with update_mode=false to generate fresh documentation

Consolidation Issues

If consolidation fails or produces poor results:

  • Check that consolidate_prompt provides clear guidance for the target file type
  • Verify that all source documentation files were generated successfully
  • Consider using a more specific consolidate_prompt for better results

Missing Documentation Sections

If certain aspects of the codebase are not well documented:

  • Check the review_notes.md file for identified gaps
  • Consider running with check_completeness=true to identify missing areas
  • Review the codebase analysis to ensure all components were properly identified

Git Integration Problems

If git commands fail during update mode:

  • Ensure the codebase_path is within a valid git repository
  • Check that git is installed and accessible
  • Verify that the user has appropriate permissions to read git history

平台分布

Claude Code

26.94%
按下载量换算53

Codex

23.85%
按下载量换算47

Antigravity

19.21%
按下载量换算38

OpenCode

13.57%
按下载量换算27

Cursor

7.2%
按下载量换算14

Gemini CLI

3.48%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills