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.
npx skills add pproenca/dot-skills --skill clean-code-ts-reactgit clone --depth 1 https://github.com/pproenca/dot-skillsWrote 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.
[](https://agentmods.dev/skills/pproenca/dot-skills/clean-code-ts-react)<a href="https://agentmods.dev/skills/pproenca/dot-skills/clean-code-ts-react"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/clean-code-ts-react/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pproenca/dot-skills/clean-code-ts-react"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/clean-code-ts-react.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00185 | $0.02987 |
| Opus 5 | $0.00093 | $0.01494 |
| Sonnet 5 | $0.00037 | $0.00597 |
| Haiku 4.5 | $0.00018 | $0.00299 |
Grade A, and why
clean-code-ts-react 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Robert C. Martin (Uncle Bob) TypeScript 5.x + React 19 Best Practices
Craftsmanship principles from Robert C. Martin's Clean Code (2008), re-expressed for modern TypeScript and React. Contains 61 rules across 11 categories, prioritized by cognitive cost across a code change's lifetime. Examples use TS 5.x and React 19 idioms — but the rules are about timeless principles, not specific APIs.
What Makes This Skill Different
Three things set this apart from a generic clean-code copy:
- Modern idioms as vehicle. Examples use TS 5.x (
satisfies, branded types, discriminated unions,consttype parameters) and React 19 (function components, hooks,use(), Server Components where relevant). But the rule is always the principle, never the syntax. - "When NOT to apply" is first-class. Every rule has 2-3 concrete scenarios where the principle should bend — not generic disclaimers, real situations. Loop counters can be
i. Single-use code shouldn't be DRY. Some HOCs are unavoidable. - Meta category for principle conflicts. Category 11 names the most common tensions explicitly — DRY vs Single Responsibility, small functions vs deep modules (Ousterhout), type precision vs ergonomic APIs, tests as spec vs documentation. The mark of seniority is knowing which to bend.
When to Apply
Reference these guidelines when:
- Writing new TypeScript or React code and wanting craftsmanship feedback
- Reviewing a pull request for clarity, naming, or abstraction
- Refactoring existing code for readability or maintainability
- Designing function, hook, or component APIs
- Deciding whether to extract, abstract, or duplicate
- Resolving a tension between two clean-code rules (see Category 11)
Skip this skill and use:
reactfor React 19 API patterns (concurrent rendering, Server Components, ref-as-prop,useActionState,<Context>-as-provider)typescriptfor compiler performance, tsconfig tuning, type-system perfrefactorfor mechanical refactoring workflowstddfor the TDD workflow itself
What ships with it
60 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.
- AGENTS.md 13 KB
- assets/templates/_template.md 1.5 KB
- metadata.json 1.6 KB
- references/_sections.md 4.2 KB
- references/bound-isolate-framework.md 2.7 KB
- references/bound-learning-tests.md 2.6 KB
- references/bound-type-assertions-at-edges.md 2.4 KB
- references/bound-wrap-third-party-hooks.md 2.4 KB
- references/comp-avoid-hoc-stacks.md 2.3 KB
- references/comp-children-over-props.md 2.6 KB
- references/comp-context-only-when-needed.md 3.0 KB
- references/comp-render-props-vs-hooks.md 2.7 KB
- references/comp-separate-construction-from-use.md 2.5 KB
- references/comp-small-components.md 2.6 KB
- references/data-branded-types.md 2.5 KB
- references/data-demeter-prop-drilling.md 2.6 KB
- references/data-discriminated-unions-over-flags.md 2.6 KB
- references/data-dto-vs-domain.md 2.5 KB
- references/data-readonly-by-default.md 2.3 KB
- references/data-structural-typing-pitfalls.md 2.7 KB
- references/doc-avoid-redundant-comments.md 2.2 KB
- references/doc-delete-commented-out-code.md 2.3 KB
- references/doc-jsdoc-public-api.md 2.7 KB
- references/doc-satisfies-narrows-with-check.md 2.3 KB
- references/doc-types-over-comments.md 2.1 KB
- references/emerge-four-rules.md 2.4 KB
- references/emerge-premature-abstraction.md 2.7 KB
- references/emerge-reveal-intent.md 1.9 KB
- references/emerge-yagni-types.md 2.5 KB
- references/err-early-return.md 2.4 KB
- references/err-error-boundaries.md 2.7 KB
- references/err-narrow-unknown.md 2.3 KB
- references/err-no-swallow.md 2.3 KB
- references/err-null-vs-undefined.md 2.8 KB
- references/err-result-vs-throw.md 2.6 KB
- references/err-suspense-for-loading.md 2.9 KB
- references/fmt-imports-grouped.md 2.0 KB
- references/fmt-newspaper-order.md 2.6 KB
- references/fmt-team-rules-over-preference.md 2.8 KB
- references/fmt-vertical-density.md 2.6 KB
- references/func-abstraction-level.md 2.5 KB
- references/func-command-query-separation.md 3.1 KB
- references/func-custom-hook-extract.md 4.2 KB
- references/func-dry.md 3.9 KB
- references/func-minimize-arguments.md 2.8 KB
- references/func-no-side-effects.md 2.9 KB
- references/func-one-thing.md 2.8 KB
- references/func-small.md 3.4 KB
- references/meta-dry-vs-srp.md 2.9 KB
- references/meta-small-vs-deep.md 3.2 KB
- references/meta-tests-as-spec-vs-doc.md 3.1 KB
- references/meta-types-vs-ergonomics.md 2.5 KB
- references/name-avoid-disinformation.md 2.6 KB
- references/name-boolean-predicate.md 2.7 KB
- references/name-component-pascal-case.md 2.7 KB
- references/name-handler-convention.md 2.6 KB
- references/name-hook-use-prefix.md 2.9 KB
- references/name-intention-revealing.md 2.1 KB
- references/name-meaningful-distinctions.md 2.3 KB
- references/name-types-pascal-case.md 2.5 KB
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.
- 5d ago First seen · 175 lines · 185 tokens per session scan A 6a7b0a6da3ac
clean-code-ts-react is a skill published in the GitHub repository pproenca/dot-skills (205 stars, last pushed 24d ago), licensed MIT. It adds 185 tokens to every session and 2,987 once invoked, about $0.0009 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.
Other skills, from other repositories
compiler-commit
Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.
compiler-verify
Use when you need to run all compiler checks (tests, lint, format) before committing. Detects whether TS or Rust code changed and runs the appropriate checks.
compiler-review
Review Rust port code for port fidelity, convention compliance, and error handling. Compares against the original TypeScript source.
ss-lint
Quick automated lint — detects common design system violations in seconds.
recipe-front-review
Reviews completed frontend implementation for governing-source compliance, scope economy, repository quality, and security, then applies user-approved React corrections.
frontend-code-review
Trigger when the user requests a review of frontend files (e.g., .tsx, .ts, .js). Support both pending-change reviews and focused file reviews while applying the checklist rules.