codebase-intel

Skill for unified codebase intelligence analysis. Handles questions about code structure, logic, risks, and dependencies, combining natural-language Q&A with deterministic lookups, and performs impact-scope checks before edits.

Last repository push
GitHub Stars
187
Forks
23
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "codebase-intel" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-01364ac77c19b2f6d7b8e0d90209c339e5b66787fc82129d38c8d3421ac5f41e. Verify the upstream source and version against https://github.com/wednesday-solutions/ai-agent-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Skill for unified codebase intelligence analysis. Handles questions about code structure, logic, risks, and dependencies, combining natural-language Q&A with deterministic lookups, and performs impact-scope checks before edits.

0 Downloads

Introduction source: third_party · wednesday-solutions · 0.0.1 Reference

SkillPi interpretation

Tasks
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.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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 tokenService do?" (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

  1. File Summary: Bash(wednesday-skills query getFileSummary <file_path>)
    • Returns: Role, Summary, Risk Score, and Blast Radius.
  2. Architecture Stats: Bash(wednesday-skills query getCodebaseStats)
    • Use getHighConfidenceEntryPoints to identify the best starting files.
  3. 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.
  4. Context: Read .wednesday/codebase/MASTER.md for danger zones and primary data flows.
  5. History: Bash(git log --follow --oneline -20 -- <file>) for authorship.

⚠️ Pre-Edit Safety Check (Mandatory)

Before modifying any file, you MUST perform these checks:

  1. 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.
  2. 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:

  1. Gap Check: Bash(sqlite3 .wednesday/graph.db "SELECT file_path, meta FROM nodes WHERE file_path LIKE '%<file>%'")
    • Check meta for gaps.eventEmitter, gaps.dynamic, etc.
  2. Fill Gaps: Bash(wednesday-skills fill-gaps --file <file> --min-risk 50)
    • Rule: Only edges with confidence > 0.70 are added automatically.
  3. Annotations: If gaps persist, ask dev to add // @wednesday-skills:connects-to <symbol> → <file>.
  4. 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 data
  • MASTER.md — Architectural context
  • git log — History/Authorship

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供代码库结构发现、风险评估、依赖分析和预编辑影响检查,解决开发者高频刚需痛点
  • 显著提升代码维护与修改效率,具备高实用价值
Trigger Precision95/100

Areas to improve

  • description写错位置 Reported severity: Minor

    顶层 frontmatter 中 description 字段为空,实际描述内容位于 skill_body 内部

    Recommendation: 将 description 内容移至顶层 frontmatter 的 description 字段中,确保触发系统能正确识别

Highlights

  • 触发描述清晰完整,覆盖代码结构、逻辑、风险、依赖等多种场景
  • 提供了丰富的触发示例和任务类型,边界清晰,易于理解
Structure and Standards95/100

Areas to improve

  • 排版问题 Reported severity: Minor

    'When to use' 章节标题使用小写,建议统一为首字母大写 'When to Use' 以符合常规文档规范

    Recommendation: 将 'When to use' 调整为 'When to Use',保持标题格式一致性

Highlights

  • 结构清晰,分 When to use、How to use、Never、Source Citation 等章节
  • 步骤明确,有出口条件,含端到端示例,frontmatter 完整
Execution Reliability95/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常场景
  • 不可逆操作有确认机制,确保执行安全可靠
Evidence Verifiability (mean of the first four)94/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.