Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

solidsolid 问题管理

Agent Skill

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

总安装

245

周安装

10

GitHub Stars

公开资料未说明

下载量

78
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jordancoin/codingskills --skill solid

简介

solid 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词、任务场景或来源线索进行信息定位的研究检索类工作。
  • 通过 npx skills add 命令从 GitHub 仓库安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 该技能归类为研究检索工具,主要服务于信息查找与筛选场景。

SKILL.md

SOLID Principles

Before Applying

If .agents/stack-context.md exists, read it first. Apply this principle using idiomatic patterns for the detected stack. For framework-specific details, use context7 MCP or web search — don't guess.

Principle

Five design principles that produce modular, testable, and resilient systems. While originally framed for object-oriented design, the underlying ideas apply to any paradigm — functions, modules, services, or components.

Why This Matters in Production

SOLID code is change-friendly code. Production systems change constantly — new features, bug fixes, integrations, scaling. Systems designed with SOLID principles absorb change locally rather than requiring cascading modifications. This means fewer regressions, faster feature delivery, and smaller blast radius when things go wrong.


S — Single Responsibility Principle

A module should have one, and only one, reason to change.

Every module, function, or component should own exactly one piece of functionality. When a change request comes in, you should be able to predict which file needs editing without searching.

Violations look like:

  • A function that validates input, queries the database, applies business logic, and formats the response
  • A "utils" file that grows indefinitely because nothing else has a clear home
  • A class that changes every time any feature in the system changes

Apply it:

  • If a function does two things, split it into two functions
  • If a module handles both "what to do" and "how to do it," separate policy from mechanism
  • Name modules after their responsibility — if the name is vague ("Manager", "Helper", "Utils"), the responsibility is unclear

O — Open/Closed Principle

Software should be open for extension but closed for modification.

You should be able to add new behavior without modifying existing, working code. This doesn't mean you never touch existing code — it means you design so that the common extension points don't require it.

Violations look like:

  • A growing switch statement that gets a new case every time a feature is added
  • A function that checks if type == "x" for an ever-expanding list of types
  • Every new integration requiring changes to a central dispatch function

Apply it:

  • Use dispatch tables, registries, or polymorphism instead of branching on type
  • Design around contracts (interfaces, protocols, function signatures) that new implementations can fulfill
  • Plugin architectures — but only when you have multiple plugins (see YAGNI)

L — Liskov Substitution Principle

Subtypes must be usable wherever their parent type is expected, without surprises.

If your code accepts a base type, any implementation of that type should work correctly. No special-casing, no "except when it's type X" guards.

Violations look like:

  • A subclass that throws "not implemented" for inherited methods
  • Type checks (instanceof, typeof) to determine behavior after accepting a general type
  • Consumers that must know which specific implementation they're dealing with

Apply it:

  • If a subtype can't fulfill the full contract of the parent, it shouldn't be a subtype — use composition instead
  • Design interfaces around what consumers need, not what implementations can provide
  • Test with substitution: swap implementations and verify the system still behaves correctly

I — Interface Segregation Principle

No consumer should be forced to depend on methods it doesn't use.

Keep interfaces small and focused. A consumer that only reads data shouldn't depend on an interface that also includes write, delete, and admin operations.

Violations look like:

  • A "god interface" with 20+ methods that most implementations only partially fulfill
  • Consumers that import a large module but only use one function
  • Mock objects in tests that stub out 15 methods when the test only exercises 2

Apply it:

  • Split large interfaces into role-based ones: Reader, Writer, Admin instead of Repository
  • In languages without interfaces, apply the principle to module boundaries — export only what consumers need
  • If your test mocks are painful to write, your interfaces are too broad

D — Dependency Inversion Principle

High-level policy should not depend on low-level detail. Both should depend on abstractions.

Your business logic should not directly import database drivers, HTTP clients, or filesystem operations. It should depend on abstractions that those details implement.

Violations look like:

  • Business logic that directly instantiates database connections, HTTP clients, or external SDKs
  • Inability to test business rules without spinning up real infrastructure
  • Changing a database or API provider requires rewriting business logic

Apply it:

  • Pass dependencies in (dependency injection) rather than constructing them internally
  • Define interfaces at the boundary of your business logic — let infrastructure adapt to them
  • In functional code: accept functions as parameters instead of hard-coding calls to specific implementations

Boundaries

  • SOLID is a set of heuristics, not laws. Small scripts, prototypes, and glue code don't need full SOLID treatment. Apply these principles where they reduce the cost of change.
  • Don't over-abstract. SOLID taken to the extreme produces an explosion of tiny classes and interfaces that are harder to navigate than the original monolith. An abstraction must earn its keep by serving multiple consumers or enabling meaningful testability.
  • Tension with KISS: Every interface, injection point, and abstraction adds a layer of indirection. Apply SOLID where the system genuinely changes along those axes, not prophylactically.
  • Functional code gets SOLID for free in some areas. Pure functions naturally satisfy SRP. Higher-order functions naturally satisfy DIP. Focus SOLID effort on the architectural boundaries where it matters most.

Code Review Checklist

  • Does each module have a clear, single responsibility?
  • Can new behavior be added without modifying existing working code?
  • Are interfaces small enough that consumers don't depend on things they don't use?
  • Are dependencies injected rather than hard-coded?
  • Could you swap an implementation (e.g., database, API client) without touching business logic?

Related Skills

  • separation-of-concerns: For layer-level structure (SoC is the "what," SOLID is the "how")
  • law-of-demeter: For reducing coupling between components
  • yagni: To avoid over-applying SOLID with premature abstractions

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.72%
按下载量换算30

Claude

30.55%
按下载量换算24

Cursor

18.93%
按下载量换算15

Gemini CLI

9.75%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills