codebase-intel
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "codebase-intel":https://skillpi.com/zh/skills/deepskill-01364ac77c19b2f6d7b8e0d90209c339e5b66787fc82129d38c8d3421ac5f41e。安装前核对上游来源和版本:https://github.com/wednesday-solutions/ai-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于统一代码库智能分析的技能。处理有关代码结构、逻辑、风险与依赖关系的问询,结合自然语言问答与确定性查找,并在编辑前执行影响范围检查。
介绍来源: third_party · wednesday-solutions · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: codebase-intel
description: Unified codebase intelligence. Handles all questions about structure, logic, risk, and dependencies. Combines natural-language Q&A with deterministic lookups and pre-edit blast radius checks.
permissions:
allow:
- Bash(wednesday-skills query *)
- Bash(wednesday-skills blast *)
- Bash(wednesday-skills fill-gaps *)
- Read(.wednesday/codebase/MASTER.md)
- Bash(git log *)
- Bash(git diff *)Codebase Intelligence Specialist
This skill provides a comprehensive understanding of the project's structure, intent, and risk. Use it for everything from high-level architecture questions to detailed impact analysis before editing code.
When to use
1. Codebase Discovery & Q&A
- "What does
tokenServicedo?" (Summaries) - "Where is the payment logic located?" (Role/Path mapping)
- "Show me an overview of the architecture." (Stats & Entry points)
- "Who last touched this file?" (Git history)
- "Find circular dependencies or dead code." (Structural audit)
2. Risk Assessment (Before Editing)
- "Is it safe to change this function signature?"
- "What is the blast radius of this file?"
- "What will break if I delete this constant?"
3. Graph Maintenance
- If a query returns "not mapped" or coverage is low.
- If you notice missing dependencies in the graph.
How to use — by task type
🔍 Discovery & Q&A
- File Summary:
Bash(wednesday-skills query getFileSummary <file_path>)- Returns: Role, Summary, Risk Score, and Blast Radius.
- Architecture Stats:
Bash(wednesday-skills query getCodebaseStats)- Use
getHighConfidenceEntryPointsto identify the best starting files.
- Use
- Advanced Lookups:
Bash(wednesday-skills query getHighRiskFiles 70)— find critical technical debt.Bash(wednesday-skills query getCircularDependencies)— find architectural smells.Bash(wednesday-skills query getAllDeadCode)— find unreachable modules.
- Context:
Read .wednesday/codebase/MASTER.mdfor danger zones and primary data flows. - History:
Bash(git log --follow --oneline -20 -- <file>)for authorship.
⚠️ Pre-Edit Safety Check (Mandatory)
Before modifying any file, you MUST perform these checks:
- Check Risk:
Bash(wednesday-skills query getFileSummary <file_path>)- Score 0–30: Proceed directly.
- Score 31–60: Inform dev of the risk, proceed with care.
- Score 61–80: List direct dependents and transitive count; ask confirmation.
- Score 81–100: STOP. Require explicit dev approval before touching.
- Blast Radius:
Bash(wednesday-skills blast <file_path>::<symbol_optional>)- Review direct/transitive callers. Use this for cross-language impact (Go/Py/JS).
🛠 Graph Maintenance & Gaps
If you hit "not mapped" or detect a missing link:
- Gap Check:
Bash(sqlite3 .wednesday/graph.db "SELECT file_path, meta FROM nodes WHERE file_path LIKE '%<file>%'")- Check
metaforgaps.eventEmitter,gaps.dynamic, etc.
- Check
- Fill Gaps:
Bash(wednesday-skills fill-gaps --file <file> --min-risk 50)- Rule: Only edges with confidence > 0.70 are added automatically.
- Annotations: If gaps persist, ask dev to add
// @wednesday-skills:connects-to <symbol> → <file>. - Refresh:
Bash(wednesday-skills analyze --incremental)after adding annotations.
🚫 Never
- Guess: If data is missing, report "Not mapped" and suggest
wednesday-skills map --full. - Skip Checks: Never edit a file with risk > 80 without explicit dev confirmation.
- Token Bloat: Do NOT read raw source files to answer structural questions.
- Add Unreliable Edges: Never manually add edges with confidence below 0.70.
📄 Source Citation
Always end with the source:
graph.db— Structural/Summary dataMASTER.md— Architectural contextgit log— History/Authorship
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供代码库结构发现、风险评估、依赖分析和预编辑影响检查,解决开发者高频刚需痛点
- 显著提升代码维护与修改效率,具备高实用价值
待提升项
-
description写错位置 原报告严重程度:轻微
顶层 frontmatter 中 description 字段为空,实际描述内容位于 skill_body 内部
改进建议:将 description 内容移至顶层 frontmatter 的 description 字段中,确保触发系统能正确识别
亮点
- 触发描述清晰完整,覆盖代码结构、逻辑、风险、依赖等多种场景
- 提供了丰富的触发示例和任务类型,边界清晰,易于理解
待提升项
-
排版问题 原报告严重程度:轻微
'When to use' 章节标题使用小写,建议统一为首字母大写 'When to Use' 以符合常规文档规范
改进建议:将 'When to use' 调整为 'When to Use',保持标题格式一致性
亮点
- 结构清晰,分 When to use、How to use、Never、Source Citation 等章节
- 步骤明确,有出口条件,含端到端示例,frontmatter 完整
亮点
- 工具来源明确,参数正确,覆盖主要异常场景
- 不可逆操作有确认机制,确保执行安全可靠
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。