Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

codeprobe-solid代码探针固体

Agent Skill

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

总安装

667

周安装

27

GitHub Stars

4

下载量

210
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nishilbhave/codeprobe --skill codeprobe-solid

简介

用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位结果。
  • 通过 npx 命令安装,具体用法需结合原始 README 进一步确认。
  • 使用前应确认权限范围、维护状态及是否触发联网或命令执行。
  • codeprobe-solid 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Standalone Mode

If invoked directly (not via the orchestrator), you must first:

  1. Read ../codeprobe/shared-preamble.md for the output contract, execution modes, and constraints.
  2. Load applicable reference files from ../codeprobe/references/ based on the project's tech stack.
  3. Default to full mode unless the user specifies otherwise.

SOLID Principles Auditor

Domain Scope

This sub-skill detects violations of the five SOLID principles:

  1. Single Responsibility Principle (SRP) — A class or module should have only one reason to change.
  2. Open/Closed Principle (OCP) — Software entities should be open for extension but closed for modification.
  3. Liskov Substitution Principle (LSP) — Subtypes must be substitutable for their base types without altering program correctness.
  4. Interface Segregation Principle (ISP) — Clients should not be forced to depend on interfaces they do not use.
  5. Dependency Inversion Principle (DIP) — High-level modules should not depend on low-level modules; both should depend on abstractions.

What It Does NOT Flag

  • Simple DTOs/value objects with multiple fields — having many properties is not an SRP violation when the class represents a single data concept.
  • Small scripts and CLIs that don't need dependency injection — proportional design matters.
  • Enums used in switches where the enum is stable and closed (e.g., compass directions, days of the week) — OCP applies when variants are likely to grow.
  • Framework-generated classes following framework conventions (e.g., Laravel migrations, Django admin classes, Rails ActiveRecord models with standard callbacks).
  • Test helper classes that aggregate setup utilities — test infrastructure has different design constraints.

Detection Instructions

SRP — Single Responsibility Principle

ID PrefixSignalHow to DetectSeverity
SRPClass has 5+ public methods doing unrelated thingsCount public methods. If 5+ exist, check whether they cluster around a single responsibility or span multiple concerns (e.g., authentication + email + database). Look for method name prefixes that suggest different domains.Major
SRPMethod exceeds 30 LOC doing multiple concernsCount lines in each method (excluding blank lines and comments). If > 30 LOC, check whether the method handles multiple distinct steps (validation, transformation, persistence, notification) that could be extracted.Minor
SRPClass name is vagueFlag classes named Manager, Handler, Utils, Helper, Processor, Service (when not domain-qualified) — these names suggest the class has no clear single purpose. Exception: if the class is small (< 5 methods, < 100 LOC), downgrade to suggestion.Minor
SRPConstructor takes 5+ dependenciesCount constructor parameters or injected dependencies. 5+ dependencies suggest the class has too many responsibilities. Check whether dependencies serve different domains.Major

OCP — Open/Closed Principle

ID PrefixSignalHow to DetectSeverity
OCPSwitch/if-else chains on type or statusLook for switch/if-else chains that branch on a type, status, role, or kind field — especially where adding a new variant requires modifying this block. Count the number of cases: 3+ cases on a growable type is a signal.Major
OCPNo extension point where variants are likely to growWhen a switch/if-else on type is found, check whether there is an interface, abstract class, strategy pattern, or plugin mechanism that would allow adding new variants without modifying the existing code. If absent, flag it.Minor

LSP — Liskov Substitution Principle

ID PrefixSignalHow to DetectSeverity
LSPSubclass overrides method but changes semanticsCheck overridden methods: does the subclass return a fundamentally different type, change the meaning of the return value, or produce side effects the parent does not? Compare method signatures and doc comments.Major
LSPSubclass throws exception parent doesn't declareLook for overridden methods that throw exceptions not present in the parent's throws clause or documented contract. In dynamic languages, look for raise/throw in overrides where the parent method doesn't throw.Major
LSPSubclass ignores or no-ops parent behaviorLook for overridden methods with empty bodies, pass, return null, return, or // not implemented comments. The subclass is refusing the parent's contract.Minor
LSPinstanceof/type checks after polymorphic callSearch for instanceof, is_a, typeof, type(), is checks on objects that should be used polymorphically. If code calls a method on a base type and then checks the concrete type, it signals broken substitutability.Major

ISP — Interface Segregation Principle

ID PrefixSignalHow to DetectSeverity
ISPInterface has 8+ methodsCount methods declared in each interface/abstract class/protocol. If 8+, the interface is likely too broad. Check whether the methods cluster into distinct groups.Minor
ISPClass implements interface but leaves methods empty or throwingLook for interface implementations where one or more methods are empty, return null, throw NotImplementedError/UnsupportedOperationException, or contain only pass/TODO comments.Major
ISPMultiple unrelated method groups in one interfaceAnalyze the interface's methods: do they fall into 2+ distinct responsibility groups (e.g., read operations + write operations + notification methods)? If so, the interface should be split.Major

DIP — Dependency Inversion Principle

ID PrefixSignalHow to DetectSeverity
DIPnew ConcreteClass() inside business logicSearch for direct instantiation (new ClassName(), direct constructor calls) of infrastructure or service classes inside business logic methods. Exclude: DTOs, value objects, exceptions, collections, factories, and DI container registrations.Major
DIPHigh-level module imports from infrastructure layer directlyCheck import statements: does a domain/business logic module import directly from database drivers, HTTP clients, file system libraries, or third-party SDKs without an abstraction layer? Look for patterns like import mysql, use Illuminate\Support\Facades\DB, from requests import.Major
DIPNo constructor injection — static method calls to concrete dependenciesLook for static method calls like Database::query(), Cache::get(), Logger.log() in business logic where no interface is injected. The class is tightly coupled to the concrete implementation via static access.Minor

ID Prefixes & Fix Prompt Examples

  • SRP- — Single Responsibility Principle violations
  • OCP- — Open/Closed Principle violations
  • LSP- — Liskov Substitution Principle violations
  • ISP- — Interface Segregation Principle violations
  • DIP- — Dependency Inversion Principle violations

Number findings sequentially within each prefix: SRP-001, SRP-002, OCP-001, etc.

Fix Prompt Examples

  • "Refactor src/OrderService.php: extract payment logic (lines 45-78) into a new PaymentService class. Inject PaymentService via constructor into OrderService. Move methods calculateTotal(), applyDiscount(), and processPayment() to the new class."
  • "Replace the switch on $type in NotificationSender (lines 30-65) with a Strategy pattern: create a NotificationChannel interface with a send(Message $message) method. Create EmailChannel, SmsChannel, and PushChannel implementations. Use a NotificationChannelFactory to resolve the correct channel by type."
  • "In UserRepository.php, replace new MySqlConnection() at line 23 with constructor injection: add a DatabaseConnectionInterface $connection parameter to the constructor and use it instead of the concrete instantiation."

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.91%
按下载量换算78

Claude

28.38%
按下载量换算60

Cursor

17.38%
按下载量换算36

Gemini CLI

8.92%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills