Skip to content
Agentmart
Submit a tool

writing-ts

TypeScript code style rules.

Skill by mister-gnommer

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/mister-gnommer-writing-ts

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

TypeScript code style rules. Use whenever creating or editing TypeScript code (.ts, .tsx, .mts, .cts files).

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/writing-ts

What's inside

Skill name
writing-ts
Description
TypeScript code style rules. Use whenever creating or editing TypeScript code (.ts, .tsx, .mts, .cts files).
License
MIT
Instructions
36 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Writing TypeScript

## Built-ins
Prefer language/runtime built-ins over hand-rolled equivalents (e.g. `for await` over manual stream readers).

Write for the project's configured runtime and lib target. Don't hand-roll workarounds for features the target lacks — say so instead.

## Braces
Always use braces `{}` for `if` statements, even single-line ones. Never write braceless `if`.

## Object.assign
Avoid `Object.assign()`. If it truly cannot be avoided, add a comment explaining why it is safe.

## JSDoc
Document every function with JSDoc; only trivial one-liners may be skipped. The goal is not to restate types (TypeScript already has them) but to make the function's intent and behavior obvious to someone reading or calling it.

- **Description**: one or two sentences. Go longer only when the function is genuinely tricky.
- **`@param`**: name and a short description. Don't restate the TS type and don't describe object shapes.
- **`@returns`**: same as params. Skip it when the name makes the result obvious (e.g. boolean `is…()`, `has…()`).
- Don't use `@throws`, `@example` or other advanced tags.

Example:

```ts
/**
 * Merges user settings over defaults, dropping keys the schema no longer knows.
 * @param settings raw settings loaded from disk
 * @returns settings safe to pass to the app
 */
function normalizeSettings(settings: RawSettings): Settings {
```

### Backfilling docs
Write JSDoc only for functions you add or edit. Don't document untouched functions on your own; if a file you're working in has undocumented functions, ask once per task whether to backfill them.

From mister-gnommer/rules-of-engagement, MIT.

More from mister-gnommer/rules-of-engagement

Signals

Stars
0
Forks
0
Open issues
4
Last commit (this folder)
Sep 28, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from mister-gnommer

Cite this page

writing-ts skill. Agent Mart. https://agentmart.dev/skills/mister-gnommer-writing-ts (last updated 2026-10-24)