dum-dum-non-tslisted
Install: claude install-skill Aquaticat/Monochromatic
# Dum-dum non-TS
Fires when writing or editing source files in non-TypeScript general-purpose
programming languages:
C,
C++,
Rust,
Go,
Python,
Java,
Kotlin,
Swift,
Ruby,
PHP,
Lua,
Zig,
Nim,
Haskell,
OCaml,
Elixir,
Clojure,
Scala,
F#,
or any other.
The skill encodes two rules (simplest possible constructs;
comments on every
concept-introducing line) and a comment template (What,
Why,
optional Gotcha)
with a TypeScript pseudocode equivalent above every concept-introducing line.
See "Out of scope" at the bottom for file types this skill does not apply to.
## Audience
The human reader knows **only TypeScript**.
Optimise comments and code shape
for them,
not for an experienced practitioner of the target language.
The
compiler does not read the comments;
the user does.
## Two rules
### Rule 1 — Simplest possible constructs
Write boring,
beginner-level code.
Forbidden by default:
- macros,
metaprogramming,
reflection,
code generation
- operator overloading,
custom conversion operators
- template / generic gymnastics beyond a single type parameter
- point-free chains,
monad stacks,
`do`-notation
- decorators,
mixins,
multiple inheritance
- comprehensions / generators when their syntax differs from TS
- pattern matching used for control flow that an `if`/`else` chain handles
- "clever" one-liners,
ternaries longer than `cond ? a : b`
Prefer:
plain named functions,
named local variables,
explicit type
annotations where