agentleFS
GhostlyGawdGhostlyGawd/recursive-harness/skills/language-selection/SKILL.md

language-selection

Skill3 starsChanged 4 months agoMITView on GitHub

Catalog + decision procedure for choosing a programming language. TRIGGER whenever you are about to pick, default, recommend, or assume a language for new work — a greenfield project/service/script/CLI/library, a component in a polyglot system, a rewrite or port, or when a user asks "what should I build this in". Also when weighing two stacks, or judging whether an existing language still fits a new requirement. Don't default to Python/JS from habit: consult the catalog (references/index.md) so the pick is matched to domain, hard constraints, stack, and ecosystem — with tradeoffs stated.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't reach for the language that's merely most probable by default.

    line 50
  2. Distinctive:

    Prefer boring/proven for load-bearing systems.

    line 59
  3. Distinctive:

    Every added language in a polyglot system is a tax: build/CI, interop, context-switching.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Language Selection

This skill exists to push a language choice past your default priors. Picking a language is a consequential, hard-to-reverse decision — it sets the deploy target, the performance ceiling, the libraries within reach, and the failure modes you live with. Reason from the task's actual requirements instead of reaching for whatever language is most probable by default (Python, JavaScript), then consult the catalog in references/index.md to weigh those requirements against the full field before you commit.

The procedure

  1. Surface HARD constraints first — these eliminate candidates; they do not trade off. Read these off the task itself, before any candidate language anchors your thinking:
    • Target/runtime: browser → JS/TS (or a WASM-source lang); iOS → Swift; no-GC / hard-real-time / tiny footprint → C / C++ / Rust / Zig; an existing JVM or .NET shop; serverless cold-start ceilings.
    • Interop / FFI: must it call into existing C, Java, .NET, or Python?
    • Performance floor: are GC pauses or a memory ceiling actually disqualifying, or just assumed to be? Demand a number before letting this drive the choice.
    • Certification / safety: safety-critical → Ada/SPARK, MISRA-C, DO-178C lanes.
  2. Surface SOFT factors — these trade off, weighted to THIS project:
    • Existing codebase / current stack. Reusing what's already in place — its build, deploy, and libraries — usually beats adding a second language; weigh it unless a hard constraint forbids.
    • Ecosystem maturity for this domain. The right library beats language elegance; a missing one sinks an elegant choice.
    • Iteration speed vs runtime performance for the project's current phase.
    • Long-term maintainability and readability of the result.
  3. Build the candidate set from those requirements — consult references/index.md and assemble candidates from what actually fits, not from what comes to mind first. The index is the source of truth; reason over it rather than recalling a usual answer. (The quick table below is a fast starting point for common cases — candidates to verify, not answers.)
  4. Intersect candidates with the hard constraints → shortlist 2–3.
  5. Break ties with soft factors. Recommend ONE. Name the runner-up. State explicitly what you trade away and the condition under which the runner-up wins.
  6. If the user already named a language, your job is fit-check, not override: confirm it clears the hard constraints, flag genuine mismatches with evidence, and do not relitigate taste.

Falsifiable rules (the habits this skill exists to break)

  • Don't reach for the language that's merely most probable by default. Fitting an existing codebase IS a legitimate SOFT factor — name it as one; don't dress a default up as a domain match.
  • Fitting an existing codebase usually beats a greenfield-optimal pick unless a hard constraint forbids it — introducing a new language carries real, front-loaded cost (build, deploy, interop).
  • "Rewrite it in Rust/Go" needs a hard-constraint justification (perf floor, memory safety, deploy target) — not aesthetics. A rewrite discards working code and the edge-case knowledge baked into it.
  • Prefer boring/proven for load-bearing systems. Reserve emerging languages (Zig, Mojo, Gleam, Roc) for where their specific edge IS the point and you can absorb the ecosystem gaps.
  • Every added language in a polyglot system is a tax: build/CI, interop, context-switching. Justify each one; "right tool for the job" is not a free pass.
  • Performance intuition is unreliable. A "slow" language with the right library (NumPy, the JVM JIT, V8) often beats a hand-rolled fast-language path. Measure the hot path; don't pick the whole stack to optimize a path that isn't hot.

Quick domain → candidates (the common 80%)

A fast starting point for common cases — entries are candidates to verify against your requirements and the catalog, never defaults to settle for. The genuinely forced cases (browser → JS/TS, iOS → Swift) are hard constraints, already in step 1.

Domain / taskLead candidatesAlso consider
Systems / OS / embedded / no-GCRust, CC++, Zig, Ada (safety)
CLI tools / dev toolingGo, RustPython (quick), TypeScript (Node)
Backend web service / REST/gRPC APIGo, TypeScript, Java/KotlinC#, Python, Elixir, Ruby
Very high concurrency / soft-real-timeElixir/Erlang, GoRust, Java (virtual threads)
Web frontend (browser UI)TypeScript(WASM source: Rust, C++)
ML / data science / AIPythonR (stats), Julia (numerical)
Data engineering / ETL / big dataPython, SQLScala/Java (Spark), Go
Scientific / HPC / numericsC++, Julia, FortranPython+native, CUDA C++ (GPU)
Scripting / automation / gluePython, BashPowerShell (Windows), Ruby
iOS / macOSSwiftObjective-C (legacy interop)
AndroidKotlinJava (legacy)
Cross-platform mobileDart/Flutter, TS/React NativeKotlin Multiplatform
Game engine / real-time graphicsC++, C# (Unity)Rust (emerging), Lua (scripting)
Enterprise / large team / long-livedJava, C#Kotlin, Go
Correctness-critical / heavy domain logicOCaml, F#, HaskellScala, Rust, Elixir
Smart contractsSolidity (EVM)Move (Aptos/Sui), Rust (Solana)
Quick data analysis / notebooksPython (pandas)R, Julia

Full catalog

references/index.md — the language repository: ~45 languages grouped by family (systems, managed-runtime backend, frontend, data/ML/scientific, functional, mobile, scripting/shell, emerging, and domain-specific), each with a card covering paradigm, typing, runtime, concurrency model, performance tier, killer ecosystem, best-fit domains, and explicit pick-when / avoid-when. It is the source of truth the quick table only summarizes — open the relevant family every time you build a candidate set (step 3), not only for unfamiliar domains or niche targets. The families exist so you can scan the whole relevant field, not just the names that came to mind.

<!-- provenance: 2026-06-17 · session 01S8mkwDJ8qjWH5aRDQafnv9 · trigger: user requested a language-selection reference skill the model consults when choosing a language; 2026-06-18 reframed from a human-org lens (hiring/team) to Claude choosing the best language for the task beyond default priors. -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.