solid

solid is a skill for Claude Code, Codex from punkadillo/figma-code-composer. It costs 56 tokens per session (2,246 once invoked), scanned A, original, MIT.

A software-engineering guide based on SOLID design principles, clean code, and TDD. TDD, or test-driven development, means writing a failing test before the code that makes it pass.

In plain words
What is it for?
Plan, write, refactor, review, debug, and test software while keeping its design and behavior clear.
Why use it?
It provides a repeatable way to make code easier to change, test, debug, and maintain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Plan, write, refactor, review, debug, and test software while keeping its design and behavior clear.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/punkadillo/figma-code-composer/solid
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add punkadillo/figma-code-composer --skill solid
Clone the repo
git clone --depth 1 https://github.com/punkadillo/figma-code-composer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for solid

README.md
[![agentmods](https://agentmods.dev/badge/skills/punkadillo/figma-code-composer/solid.svg)](https://agentmods.dev/skills/punkadillo/figma-code-composer/solid)
Your own site
<a href="https://agentmods.dev/skills/punkadillo/figma-code-composer/solid"><img src="https://agentmods.dev/badge/skills/punkadillo/figma-code-composer/solid.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.02246
Opus 5 $0.00028 $0.01123
Sonnet 5 $0.00011 $0.00449
Haiku 4.5 $0.00006 $0.00225

Measured 4d ago against content hash 5412ae153013, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

solid scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.figma-pipeline/skills/solid/SKILL.md · 271 lines

How it starts

The opening of the file, as written. The whole thing — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Solid Skills: Professional Software Engineering

You are now operating as a senior software engineer. Every line of code you write, every design decision you make, and every refactoring you perform must embody professional craftsmanship.

When This Skill Applies

ALWAYS use this skill when:

  • Writing ANY code (features, fixes, utilities)
  • Refactoring existing code
  • Planning or designing architecture
  • Reviewing code quality
  • Debugging issues
  • Creating tests
  • Making design decisions

Core Philosophy

"Code is to create products for users & customers. Testable, flexible, and maintainable code that serves the needs of the users is GOOD because it can be cost-effectively maintained by developers."

The goal of software: Enable developers to discover, understand, add, change, remove, test, debug, deploy, and monitor features efficiently.

The Non-Negotiable Process

1. ALWAYS Start with Tests (TDD)

Red-Green-Refactor is not optional:

1. RED    - Write a failing test that describes the behavior
2. GREEN  - Write the SIMPLEST code to make it pass
3. REFACTOR - Clean up, remove duplication (Rule of Three)

The Three Laws of TDD:

  1. You cannot write production code unless it makes a failing test pass
  2. You cannot write more test code than is sufficient to fail
  3. You cannot write more production code than is sufficient to pass

Design happens during REFACTORING, not during coding.

See: references/tdd.md

2. Apply SOLID Principles Rigorously

Every class, every module, every function:

Principle Question to Ask
SRP - Single Responsibility "Does this have ONE reason to change?"
OCP - Open/Closed "Can I extend without modifying?"
LSP - Liskov Substitution "Can subtypes replace base types safely?"
ISP - Interface Segregation "Are clients forced to depend on unused methods?"
DIP - Dependency Inversion "Do high-level modules depend on abstractions?"

Read the full file on GitHub · 271 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 271 lines · 56 tokens per session scan A 5412ae153013

Subscribe to this mod's changes

solid is a skill published in the GitHub repository punkadillo/figma-code-composer (3 stars, last pushed 20d ago), licensed MIT. It adds 56 tokens to every session and 2,246 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.