agentleFS
erikhowarderikhoward/agent-tools/skills/typescript/SKILL.md

typescript

Skill0 starsChanged 3 months agoMITView on GitHub

Apply repository-aware TypeScript conventions for checked boundaries, useful types, async behavior, imports, suppressions, React code, tests, and verification.

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use react, security and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    react

    React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.

    Also in 6 projects that use this

  • 0xSeroSkill

    security

    Also in 4 projects that use this

  • BlockSkill

    debugging

    Debugging guidelines and best practices

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the repository's TypeScript version, module system, strictness, runtime validator, package manager, formatter, linter, and test …

    line 12
  2. Very specific:

    Treat external input, parsed JSON, caught errors, storage, and network responses as unknown until checked.

    line 16
  3. Very specific:

    Avoid any, non-null assertions, and casts that claim facts not established by control flow or validation.

    line 17
  4. Very specific:

    Use import type where it prevents runtime imports and matches repository style.

    line 20
  5. Distinctive:

    Follow the existing React patterns and compiler guidance.

    line 22
  6. Distinctive:

    Use targeted suppressions with the rule and reason.

    line 23
  7. Very specific:

    Read references/error-handling.md only for boundary-validation or Result-versus-exception decisions.

    line 25
  8. Distinctive:

    Use repository scripts first.

    line 29

“Common” is measured: kept by at least 6 in 10 of the 27 edited versions of this file we could read. “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

TypeScript

Follow the repository's TypeScript version, module system, strictness, runtime validator, package manager, formatter, linter, and test framework. Do not change those choices unless requested.

Contracts

  • Treat external input, parsed JSON, caught errors, storage, and network responses as unknown until checked. A generic type argument or assertion is not runtime validation.
  • Avoid any, non-null assertions, and casts that claim facts not established by control flow or validation. When an assertion is necessary, keep it local and state the invariant.
  • Annotate public APIs and boundaries. Let clear local values infer. Use generics only when type parameters express a useful relationship.
  • Represent mutually exclusive states with discriminated unions when that prevents invalid combinations. Do not add type machinery that exceeds the domain need.
  • Use import type where it prevents runtime imports and matches repository style.
  • Await, return, or intentionally observe every promise. Define error ownership at async boundaries. Preserve abort and cleanup behavior.
  • Follow the existing React patterns and compiler guidance. Do not add memoization by default.
  • Use targeted suppressions with the rule and reason. Never use a suppression to avoid understanding an error.

Read references/error-handling.md only for boundary-validation or Result-versus-exception decisions.

Verification

Use repository scripts first. Run focused tests, the configured type check, lint, and format check that apply to changed files. Do not assume npm, ESLint, Prettier, Vitest, or Jest. Do not install tools or rewrite configuration to satisfy this skill. Report checks not run.

Adapted from Anthropic skills (MIT).

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.