跳到正文
cccskills
免费在 GitHub 公开

use-gemini-for-code-analysis

【大型代码库分析专用】当需要分析整个项目架构、识别代码模式、追踪功能实现、梳理模块关系时必须使用本技能。触发关键词:分析整个项目/代码库、架构梳理、模块划分、代码模式识别、功能追踪、全局扫描。本技能通过 Gemini CLI 快速扫描完整代码库,提供 AI 驱动的架构洞察和代码分析,大幅节省手动探索时间。

仅返回原始分析结果,不做二次解读。

中文简介正在准备中。当前显示原文说明。

集成工具Gemini
查看安装方法

包含的文件(2)

  • SKILL.md2.1 KB
  • skill-report.json25.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Gemini CLI 代码库分析技能

本技能提供基于 Gemini CLI 的大型代码库 AI 分析能力,负责调用 Gemini CLI 工具执行大型代码库分析任务。

核心功能

作为 CLI 包装器调用 Gemini,返回原始分析结果。

执行流程

1. 理解分析请求

  • 确认需要分析的模式、架构或代码特征
  • 确定分析范围和目标

2. 构造 Gemini 命令

  • 使用 --all-files 进行全代码库分析
  • 用 -p 参数编写清晰的分析提示词
  • 考虑使用 --yolo 跳过确认(仅限非破坏性任务)

3. 执行命令

  • 使用 Bash 工具运行 Gemini CLI
  • 等待分析完成

4. 返回原始结果

  • 将 Gemini 的输出直接返回,不做修改
  • 不要自己解读或分析结果

常用命令模式

模式检测

gemini --all-files -p "分析此代码库,识别所有 [特定模式]。展示使用示例和潜在问题。"

架构分析

gemini --all-files -p "分析应用整体架构。识别主要组件、数据流、目录结构和关键设计决策。"

功能追踪

gemini --all-files -p "追踪 [特定功能] 的完整实现。展示涉及的所有文件、数据流和集成点。"

代码质量

gemini --all-files -p "扫描潜在的性能瓶颈、安全漏洞或代码异味。"

执行准则

  • 本技能作为 CLI 包装器,不是分析师
  • 始终返回完整、未经过滤的结果
  • 让调用者(主 agent 或用户)处理结果解读
  • 专注于高效的命令构造和执行
  • 所有提示词使用中文,除非用户另有要求

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Trigger for: explaining current FAR, DFARS, or agency-supplement text; determining documented acquisition-policy status for an agency and FAR part; comparing codified text, RFO model text, and agency deviations; tracing acquisition rulemaking; finding procurement comment periods; analyzing public comments; refreshing prior policy analysis; or producing an Acquisition Policy Impact Brief. Use published federal sources and supplied policy documents without making legal or procurement-specific applicability determinations. Do not use for clause selection, market research execution, opportunities, pricing, grants, or cooperative agreements.

中文简介正在准备中。当前显示原文说明。

aiskillstore/marketplace4392026年10月19日 更新

Systematic framework for extracting actionable items from documents and organizing them into prioritized, trackable checklists. Use when converting reports, meeting notes, audits, or any document with embedded action items into structured TODO lists.

中文简介正在准备中。当前显示原文说明。

aiskillstore/marketplace4392026年10月19日 更新

Browser automation for AI agents via inference.sh. Navigate web pages, interact with elements using @e refs, take screenshots, record video. Capabilities: web scraping, form filling, clicking, typing, drag-drop, file upload, JavaScript execution. Use for: web automation, data extraction, testing, agent browsing, research. Triggers: browser, web automation, scrape, navigate, click, fill form, screenshot, browse web, playwright, headless browser, web agent, surf internet, record video

中文简介正在准备中。当前显示原文说明。

aiskillstore/marketplace4392026年10月19日 更新

This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.

中文简介正在准备中。当前显示原文说明。

aiskillstore/marketplace4392026年10月19日 更新

Run AI apps via inference.sh CLI - image generation, video creation, LLMs, search, 3D, Twitter automation. Models: FLUX, Veo, Gemini, Grok, Claude, Seedance, OmniHuman, Tavily, Exa, OpenRouter, and many more. Use when running AI apps, generating images/videos, calling LLMs, web search, or automating Twitter. Triggers: inference.sh, infsh, ai model, run ai, serverless ai, ai api, flux, veo, claude api, image generation, video generation, openrouter, tavily, exa search, twitter api, grok

中文简介正在准备中。当前显示原文说明。

aiskillstore/marketplace4392026年10月19日 更新

Agile ceremonies and sprint management specialist. Use when running standups, retrospectives, sprint planning, or tracking sprint progress.

中文简介正在准备中。当前显示原文说明。

aiskillstore/marketplace4392026年10月19日 更新

查看 aiskillstore 的全部技能

报告此技能的问题