Loading...
Loading...
Use when working on TypeScript code and needing to choose the smallest focused TypeScript skill for coding standards, boundaries, composition, configs, async control, error handling, observability, security, or testing.
npx skill4agent add gabrielmoreira/skills typescript-skills| If the task involves... | Open |
|---|---|
naming, abstractions, classes, cutovers, local reasoning, | |
| provider, SDK, API, request, response, generated types, mapper, mapping, transform, translator, anti-corruption layer | |
| dependency construction, factories, lifecycle, singletons, runtime selection | |
| env, config parsing, defaults, typed config exposure, config migration | |
| logging, tracing, OpenTelemetry, X-Ray, actionable diagnostics, branch observability | |
| secrets, crypto choices, redaction, credentials, secret sources | |
| tests, characterization, boundary contracts, brittle assertions, config tests | |
| throw vs return, Result type, retryable, error classification, error contract, custom Error subclass, swallowed fallback after error, error factory/helper missing required metadata/context | |
| |
| Situation | Primary | Secondary |
|---|---|---|
| Provider response shape enters business logic | | |
| Provider selection happens at startup | | |
| Secret source pointer appears in config | | |
| Config parsing needs tests | | |
| Broad app/framework config enters feature modules | | |
| Secret-bearing log or trace attributes | | |
| Refactor before behavior change | | relevant design skill |
| Local model name comes from provider data | | |
| Factory or singleton choice affects tests | | |
| OpenTelemetry/X-Ray setup or exporter lifecycle | | |
| | |
| | |
Stage-conditional resource selection ( | | |
| Function may fail and caller has multiple branches | | |
| Retry loop retries everything including 4xx | | |
| Handler returns library/SDK error shape directly to client | | |
Sequential | | — |
500 IDs in | | — |
| | — |
Resource leaks on error, missing | | — |
SIGTERM/SIGKILL kills mid-request, no graceful shutdown, swallowed | | |
Missing | | |
| Retry loop with constant sleep / no jitter / no Retry-After | | |
| error factory/helper has too many optional fields and important metadata/context keeps getting forgotten | | |
| | |
references/ownership.mdreferences/authoring-checklist.md