solid-principles
Apply SOLID Principles to TypeScript Code
Teams often know SOLID terms but struggle to apply them in TypeScript. This skill provides practical refactoring patterns, examples, and review prompts.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "solid-principles" from https://skillstore.io/skills/doubleslashse-solid-principles.md and its manifest at https://skillstore.io/api/skills/doubleslashse-solid-principles/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "solid-principles". A service validates orders, charges payments, saves records, and emails users.
Expected outcome:
The skill would identify a Single Responsibility violation and propose separate validation, payment, repository, and notification modules.
Using "solid-principles". A discount function has many conditionals for membership types.
Expected outcome:
The skill would recommend strategy functions or a registry so new discounts can be added without changing existing logic.
Using "solid-principles". A module directly creates its database client inside business logic.
Expected outcome:
The skill would suggest an abstraction for the repository and inject the implementation from the composition layer.
Security Audit
SafeAll 33 static findings were adjudicated as false positives after reviewing SKILL.md and examples.md. The medium findings are Markdown code fences or TypeScript template literals, and the low findings are ordinary sample validation, lookup, result, or test lines. No prompt injection, data exfiltration, command execution, or malicious semantic behavior was found.
Risk Factors
โ๏ธ External commands (25)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/doubleslashse-solid-principles/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/doubleslashse-solid-principles?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/doubleslashse-solid-principles?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/doubleslashse-solid-principles/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/doubleslashse-solid-principles.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
DoubleslashSE. (2026). solid-principles security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/doubleslashse-solid-principles/audits/8BibTeX citation
@techreport{doubleslashse-doubleslashse-solid-principles-2026,
author = {DoubleslashSE},
title = {solid-principles security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/doubleslashse-solid-principles/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "solid-principles security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "DoubleslashSE"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/doubleslashse-solid-principles/audits/8"
identifiers:
- type: other
value: "skillstore:doubleslashse-solid-principles:audit:8"
description: "Skillstore immutable audit report identifier"
Compare variants
2 installable variantsEach author remains a separate installable skill. The recommended variant is ranked by Skillstore evidence.
Why this variant is first
doubleslashse-solid-principles
2026-08-21
benny9193-solid-principles
2026-08-21
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Refactor Service Classes
Break large TypeScript services into validation, persistence, payment, and notification responsibilities.
Review Architecture Changes
Check new modules for SOLID violations before merging feature work.
Teach Practical Design
Use concrete TypeScript examples to explain SOLID tradeoffs during mentoring or onboarding.
Try These Prompts
Explain the Single Responsibility Principle for a TypeScript service. Use one small before-and-after example and list one testability benefit.
Review this TypeScript module for SOLID violations. Focus on responsibility boundaries, abstractions, and dependencies. Suggest a minimal refactor plan.
Refactor this order workflow toward SOLID design. Separate validation, persistence, payment, and notification concerns. Keep behavior unchanged.
Design a TypeScript architecture for this feature using SOLID principles. Define interfaces, dependency injection points, tests, and extension paths.
Best Practices
- Start with the smallest responsibility split that improves readability or testing.
- Use interfaces or function types where a dependency may change or needs a test double.
- Keep refactors behavior-preserving before adding new features or abstractions.
Avoid
- Do not create abstractions only to satisfy a principle label.
- Do not hide business rules behind generic names or unclear factories.
- Do not combine validation, persistence, integration calls, and notification in one workflow function.
Frequently Asked Questions
Does this skill run code or modify files?
Which languages does it target?
Can it help with tests?
Is every SOLID principle always useful?
Can Claude, Codex, and Claude Code use it?
Does it include real project examples?
Developer Details
Author
DoubleslashSELicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
72d5025b022c77f7a51bdf5c1637c689c80e89d1
Maintenance freshness
7/18/2026
Usage
6 downloads ยท 269 views
File structure
๐ examples.md
๐ SKILL.md