Skip to content
Back to skills

Language Best Practices

ASecurity

Implement or review TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, C#, Swift, C, C++, SQL or shell code using its actual runtime, ownership and error contracts. Select only the affected local guide, including TypeScript schemas and lifecycle contracts.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
developmentjavascripttypescriptpythonrustgojavaswiftkotlinc++c#

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add kinqsradio/orbyn-fullstack-skills --skill language-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Language Best Practices?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Language Best Practices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kinqsradio-language-best-practices/badge)](https://www.skillsdirectory.com/skills/kinqsradio-language-best-practices)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: language-best-practices
description: "Implement or review TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, C#, Swift, C, C++, SQL or shell code using its actual runtime, ownership and error contracts. Select only the affected local guide, including TypeScript schemas and lifecycle contracts."
---

# Apply the language's actual contracts

Use this skill for code changes and language-specific review. Resolve the consuming
checkout, instructions and affected files with [how](../how/SKILL.md). Read the
project's manifests, lockfiles, compiler/runtime targets, formatter and existing
callers. A file extension is a routing hint, not proof of an application's stack,
version, deployment model or permission to migrate it.

For every code change or review, read the
[code quality baseline](references/code-quality.md) first, then the language guide.

## Select only the relevant guide

| Changed code                                      | Local guide                            | Additional owner when relevant              |
| ------------------------------------------------- | -------------------------------------- | ------------------------------------------- |
| JavaScript, Node, browser JS                      | [JavaScript](references/javascript.md) | TypeScript schemas → TypeScript guide       |
| Python                                            | [Python](references/python.md)         | API effects → backend design                |
| Go                                                | [Go](references/go.md)                 | Durable workers → backend design            |
| Rust                                              | [Rust](references/rust.md)             | FFI/data boundaries → architect             |
| Java                                              | [Java](references/java.md)             | JVM interop → Kotlin guide only if affected |
| Kotlin                                            | [Kotlin](references/kotlin.md)         | Android lifecycle/UI → UI design            |
| C# / .NET                                         | [C#](references/csharp.md)             | Database effects → backend design           |
| Swift                                             | [Swift](references/swift.md)           | Platform interaction → UI design            |
| C                                                 | [C](references/c.md)                   | ABI/interface ownership → architect         |
| C++                                               | [C++](references/cpp.md)               | C interop → C guide only if affected        |
| SQL                                               | [SQL](references/sql.md)               | Stored changes → data migration             |
| POSIX shell / Bash / zsh                          | [Shell](references/shell.md)           | Automation trust → CI design                |
| TypeScript, including schemas and lifecycle types | [TypeScript](references/typescript.md) | JS runtime guide only for runtime effects   |

For a polyglot boundary, load the guides on both sides of the actual interface,
not every guide in the repository. For an unlisted language, preserve the project's
owning conventions and use focused research; do not guess that a neighboring
language has the same semantics. The optional dependency-free
[router](scripts/language_guides.py) maps provided repository-relative paths to
local guides; the agent can use it directly. It reads names only and executes no
project code. It does not crawl the workspace, identify versions, choose frameworks
or guarantee that a header is C rather than C++.

## Carry the behavior through its callers

Identify who owns memory/resources, cancellation, mutable state and the committed
effect. Preserve input validation, authority, error meaning and cleanup across
language/FFI/process boundaries. Static annotations, deserialization and a successful
compile do not establish valid domain state or tenant authorization. Define byte
encoding, numeric ranges, nullability and error transport explicitly at those
boundaries; do not silently truncate identifiers or timestamps.

Use the existing project's idioms and supported version. Add a dependency or new
abstraction only when a demonstrated requirement justifies it. When the choice of
language/runtime/framework is itself unsettled, use
[stack selection](../orbyn-stack-selection/SKILL.md); routine coding is not a reason
to reconsider the whole stack. Domain/API design stays with
[architect](../architect/SKILL.md) and [backend design](../orbyn-backend-design/SKILL.md).

Select authorized checks by the changed contract under
[CI design](../orbyn-ci-design/SKILL.md): relevant compiler/analyzer/formatter and
failure-sensitive behavior checks. Reuse configured commands and disposable
fixtures. Do not install every toolchain, run all suites or claim production,
platform, race freedom or live-agent qualification from these written examples.

The guides work offline. Their dated references are update pointers, and version
notes apply only when the project's own target matches. Report what you could not
confirm for the installed version.

## Express valid states

Use types to represent valid combinations and handle variants exhaustively where
the language permits. Parse external/persisted data at runtime; types and casts
prove neither authorization nor freshness. Avoid ceremony that burdens callers.
The [type-system method](references/principles/type-system-discipline.md) supplies
a worked check; implementation details stay in the relevant language reference.

## Expo runtime

When Expo is actually present or explicitly selected, inspect [SDK/runtime and native ownership](references/mobile/expo-runtime.md), then the affected language guide. EAS-only native delivery does not select an Expo runtime migration.

Files in this skill

  • LICENSE1.1 KB
  • SKILL.md5.7 KB
  • references/c.md3 KB
  • references/code-quality.md7.3 KB
  • references/cpp.md3.6 KB
  • references/csharp.md3.6 KB
  • references/ecc-LICENSE.txt1 KB
  • references/go.md3.2 KB
  • references/java.md3.6 KB
  • references/javascript.md4.8 KB
  • references/kotlin.md3.5 KB
  • references/mobile/emil-LICENSE.txt1 KB
  • references/mobile/expo-LICENSE.txt1.1 KB
  • references/mobile/expo-runtime.md3.4 KB
  • references/principles/LICENSE.txt2.1 KB
  • references/principles/type-system-discipline.md2.2 KB
  • references/python.md3.5 KB
  • references/routes.json1.2 KB
  • references/rust.md3.3 KB
  • references/shell.md3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.