Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计异常

codebase-summary代码库摘要

Agent Skill

codebase-summary 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

306

周安装

13

GitHub Stars

5

下载量

107
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/m31uk3/ai-skills --skill codebase-summary

简介

codebase-summary 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 它可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 安装命令为 npx skills add https://github.com/m31uk3/ai-skills --skill codebase-summary。
  • 当前分类为研究检索,适用于 Codex、Claude、Cursor、Gemini CLI。

SKILL.md

Codebase Summary

Generate comprehensive codebase documentation optimized for AI assistants and developers.

Parameters

Gather all parameters upfront in a single prompt:

ParameterDefaultDescription
codebase_pathCurrent directoryPath to analyze
output_dir.sop/summaryDocumentation output directory
consolidatefalseCreate consolidated file at codebase root
consolidate_targetAGENTS.mdTarget: AGENTS.md, README.md, or CONTRIBUTING.md
check_consistencytrueCheck for cross-document inconsistencies
check_completenesstrueIdentify documentation gaps
update_modefalseUpdate existing docs based on git changes

Workflow

Step 1: Setup

  1. Validate codebase_path exists
  2. Create output_dir if needed
  3. If update_mode and index.md exists:

- Run git log --oneline -20 to identify recent changes - Focus analysis on modified components

Step 2: Analyze Structure

Run the structure analyzer:

python {baseDir}/scripts/analyze_structure.py "{codebase_path}" --depth 4 --output "{output_dir}/codebase_info.md"

Run the dependency extractor:

python {baseDir}/scripts/extract_dependencies.py "{codebase_path}" --output "{output_dir}/dependencies.md"

Then manually analyze:

  • Identify packages, modules, major components
  • Map architectural patterns (MVC, microservices, etc.)
  • Find key interfaces, APIs, entry points

Step 3: Generate Documentation

Create these files in {output_dir}/:

index.md - Primary AI context file:

  • AI instructions for using the documentation
  • Quick reference table mapping questions to files
  • Table of contents with summaries for each file
  • Brief codebase overview

architecture.md:

  • System architecture with Mermaid graph diagram
  • Layer descriptions
  • Design patterns used
  • Key design decisions with rationale

components.md:

  • Component overview with Mermaid classDiagram
  • Per-component: purpose, location, key files, dependencies, interface

interfaces.md:

  • API endpoints with request/response formats
  • Internal interfaces and implementations
  • Error codes and handling

data_models.md:

  • ER diagram with Mermaid erDiagram
  • Per-model: table, fields, indexes, relationships

workflows.md:

  • Key processes with Mermaid sequenceDiagram
  • Step-by-step breakdowns
  • Error handling

See {baseDir}/references/documentation-templates.md for templates.

Step 4: Review

If check_consistency:

  • Verify terminology consistency across documents
  • Check cross-references are valid

If check_completeness:

  • Identify undocumented components
  • Note gaps from language/framework limitations

Save findings to {output_dir}/review_notes.md.

Step 5: Consolidate (if enabled)

If consolidate is true:

  1. Create file at codebase root (not in output_dir)
  2. Use consolidate_target as filename
  3. Tailor content to target:
TargetFocus
AGENTS.mdAI context, directory structure, coding patterns, testing
README.mdProject overview, installation, usage, getting started
CONTRIBUTING.mdDev setup, coding standards, contribution workflow

Default AGENTS.md prompt: Focus on information NOT in README.md or CONTRIBUTING.md—file purposes, directory structure, coding patterns, testing instructions, package guidance.

Step 6: Summary

Report:

  1. What was documented
  2. Next steps for using documentation
  3. How to add index.md to AI assistant context
  4. If update_mode: summarize detected changes

Output Structure

{consolidate_target}           # At codebase root if consolidate=true
{output_dir}/
├── index.md                   # Primary AI context (read this first)
├── codebase_info.md          # Structure analysis output
├── architecture.md           # System architecture
├── components.md             # Component details
├── interfaces.md             # APIs and interfaces
├── data_models.md            # Data models
├── workflows.md              # Key workflows
├── dependencies.md           # Dependencies output
└── review_notes.md           # Review findings

Progress Indicators

Provide updates:

Setting up...
✅ Created {output_dir}

Analyzing structure...
✅ Found X packages across Y languages
✅ Identified Z components

Generating documentation...
✅ Created index.md
✅ Generated architecture.md, components.md...

Reviewing...
✅ Consistency check complete
✅ Found N gaps documented in review_notes.md

Done!
✅ Documentation at {output_dir}
✅ Primary context file: {output_dir}/index.md

Resources

  • Scripts: {baseDir}/scripts/analyze_structure.py, {baseDir}/scripts/extract_dependencies.py
  • Templates: {baseDir}/references/documentation-templates.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

78.71%
按下载量换算84

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills