programming
БесплатноБез исполняемых скриптовНе проверенApplies strict, modern language practice (typed errors, exhaustive match, tests that can fail) for Python, Rust, TypeScript, JavaScript, and Go. Use for work…
от code-yeongyu★ 71 250 звёзд на GitHubОб этом скилле
Programming
You own this code. What it is for and how it is built are your call, so change it the way its owner would: fit new behavior into the structure that is there and leave no duplicate or dead code behind. A defect in the code you are changing is yours to fix now, at its root cause; never excuse it as pre-existing, someone else's, or the tool's fault. One elsewhere goes in your summary as a follow-up.
1. LANGUAGE GATE: READ BEFORE THE FIRST LINE OF CODE
This file holds what every language shares. Each README holds that language's hard rules, canonical libraries, toolchain, CI gate, scaffolder, and the table of references to load per task. Read the README, then the files its table names for the work. Manifests and tool configs follow their language's row. One-off scripts get the same discipline: uv run + PEP 723, rust-script, bun run, and go run make it free.
| Touching | Read |
|---|---|
.py, .pyi |
references/python/README.md |
.rs, Cargo.toml |
references/rust/README.md. unsafe, *mut, *const, MaybeUninit, FFI, unsafe impl Send/Sync, or a custom lock-free primitive: ALSO every file under references/rust-ub/. |
.ts, .tsx, .mts, .cts, .js, .jsx, .mjs, .cjs |
references/typescript/README.md |
.go, go.mod, .golangci.yml, *.proto next to a Go module |
references/go/README.md |
| a test file, or a change that adds, reshapes, or deletes a test | the language row PLUS references/testing/README.md (the authoring gate) and references/testing/junk-classes.md (the table the gate reviewer applies) |
| log lines, logger setup, a service entrypoint, an error boundary | references/logging.md. The project's existing practice wins: its designated logger and nothing else, and no logging in a project that does not log. |
a rendered web surface: .html, .css, .jsx, .tsx, .vue, .svelte, .astro, or any task that ships a UI |
the language row, if any, PLUS the frontend skill, before the first line of UI code. With no design direction (no named brand, reference image or site, DESIGN.md, or existing styled UI to match), take the look from its references; never improvise one. The UI is done only after the visual-qa skill passes on the real rendered surface. |
2. AXIOMS
Every recipe under references/ derives from these.
- The best code is the code never written. Stop at the first rung that holds: does this need to exist (YAGNI)? Does this codebase already have it? The standard library? A platform feature? An installed dependency? One line? Only then write the minimum that works, with no helper, class, or trait for a single caller. Climb the ladder after tracing the real flow end to end: the smallest diff in the wrong place is a second bug. A ticket names a symptom; grep every caller of the function you touch and fix the shared seam once, because a guard per caller leaves a sibling caller broken.
- Deep modules: every decision has ONE owner. A module earns its boundary by hiding a decision (a format, a protocol, a storage layout, a policy) behind an interface smaller than what it hides. Knowledge two modules both hold is a leak: changing it must touch one place. Remove pass-through layers and wrappers that only rename. Split along the decision each piece hides, never by size or by execution order.
- Decisions in the core, effects at the edge. Domain logic takes values and returns values. I/O, the clock, randomness, and the environment are read at the edge and passed in. Dependencies point from the edge toward the domain, never back, so the core is testable without mocks.
- The type system is your proof system. Make illegal states unrepresentable. A bug that can be a type error is REQUIRED to be one.
- Parse, don't validate. Untrusted input is parsed into a typed value once, at the boundary. Inside, code receives typed values and never re-validates.
- One name = one concept. A
UserIdis not astring;Secondsis notMilliseconds. Every distinct semantic primitive gets a newtype or branded type, so the compiler refuses to mix them. - Exhaustive variant matching, always. A tagged variant is matched exhaustively with an unreachable check the compiler or linter enforces.
if/elsechains on a variant are FORBIDDEN: they silently swallow new variants. - Trust guarantees; validate only at boundaries. No null check for a value the types prove non-null. No
tryaround code that cannot raise. No escape hatch (Any,as,!,unwrap, a suppression comment) to paper over a contract the types should carry. No defensive layer for a scenario you cannot name. - State and failure are explicit. Immutable by default; parameters are inputs, so produce a new value. Errors are typed values, never bare strings, caught only where they are handled or at the top-level boundary, never swallowed. Resources are released by scope. Concurrency is structured and cancellable.
Установить programming в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл programming?
Applies strict, modern language practice (typed errors, exhaustive match, tests that can fail) for Python, Rust, TypeScript, JavaScript, and Go. Use for work on .py, .rs, .ts, .js, or .go files, and whenever a test or spec file is written, reshaped, reviewed, or deleted: the four-question test authoring gate and the junk-test classes live here.
Как установить скилл programming?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл programming запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic