Dinero Best Practices
dinerojs/dinero.js
Core best practices for the Dinero.js money library. An agent skill from dinerojs/dinero.js.
Migrating a JavaScript codebase to TypeScript — converting .js files to .ts, adding types to existing JS, or tightening a loosely-typed TS project toward strict mode.
$ npx skills add pproenca/dot-skills --skill migrate-js-to-modern-typescript -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pproenca/dot-skills migrate-js-to-modern-typescript --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/migrate-js-to-modern-typescript .claude/skills/migrate-js-to-modern-typescript && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "migrate-js-to-modern-typescript" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/migrate-js-to-modern-typescript into .claude/skills/migrate-js-to-modern-typescript/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-js-to-modern-typescript", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/migrate-js-to-modern-typescriptType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pproenca/dot-skills --skill migrate-js-to-modern-typescript -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pproenca/dot-skills migrate-js-to-modern-typescript --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/.experimental/migrate-js-to-modern-typescript .agents/skills/migrate-js-to-modern-typescript && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "migrate-js-to-modern-typescript" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/migrate-js-to-modern-typescript into .agents/skills/migrate-js-to-modern-typescript/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-js-to-modern-typescript", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pproenca/dot-skills --skill migrate-js-to-modern-typescript -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pproenca/dot-skills migrate-js-to-modern-typescript --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/.experimental/migrate-js-to-modern-typescript .cursor/skills/migrate-js-to-modern-typescript && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "migrate-js-to-modern-typescript" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/migrate-js-to-modern-typescript into .cursor/skills/migrate-js-to-modern-typescript/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-js-to-modern-typescript", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pproenca/dot-skills.git --path skills/.experimental/migrate-js-to-modern-typescript--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pproenca/dot-skills --skill migrate-js-to-modern-typescript -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pproenca/dot-skills migrate-js-to-modern-typescript --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/.experimental/migrate-js-to-modern-typescript .gemini/skills/migrate-js-to-modern-typescript && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "migrate-js-to-modern-typescript" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/migrate-js-to-modern-typescript into .gemini/skills/migrate-js-to-modern-typescript/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-js-to-modern-typescript", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pproenca/dot-skills migrate-js-to-modern-typescriptInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pproenca/dot-skills --skill migrate-js-to-modern-typescript -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/.experimental/migrate-js-to-modern-typescript .github/skills/migrate-js-to-modern-typescript && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "migrate-js-to-modern-typescript" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/migrate-js-to-modern-typescript into .github/skills/migrate-js-to-modern-typescript/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-js-to-modern-typescript", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pproenca/dot-skills --skill migrate-js-to-modern-typescript -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pproenca/dot-skills migrate-js-to-modern-typescript --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/.experimental/migrate-js-to-modern-typescript .opencode/skills/migrate-js-to-modern-typescript && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "migrate-js-to-modern-typescript" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/migrate-js-to-modern-typescript into .opencode/skills/migrate-js-to-modern-typescript/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-js-to-modern-typescript", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
migrate-js-to-modern-typescriptMigrating a JavaScript codebase to TypeScript — converting .js files to .ts, adding types to existing JS, or tightening a loosely-typed TS project toward strict mode.
Migrate JS To Modern Typescript is an agent skill from pproenca/dot-skills. Migrating a JavaScript codebase to TypeScript — converting .js files to .ts, adding types to existing JS, or tightening a loosely-typed TS project toward strict mode. Covers tsconfig and allowJs strategy, incremental strict-flag ratcheting (noImplicitAny, strictNullChecks, noUncheckedIndexedAccess), typing public surfaces, replacing any and unsafe casts with unknown and narrowing, validating runtime boundaries (JSON, env, API responses), converting CommonJS to ESM and prototypes to classes, and the build/CI…
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 49 other files, including reference files and assets (for example `AGENTS.md`, `assets/templates/_template.md` and `metadata.json`).
It sits in Development, covering Refactoring. It works with TypeScript and JavaScript. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Migrate JS To Modern Typescript loads about 2.4k tokens when it runs, and up to ~17k if it reads all its reference files. Until then it costs about 215 tokens; SKILL.md has 682 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 682 words, ~2,386 tokens.
.claude/skills/migrate-js-to-modern-typescript/SKILL.md (or your agent's skills folder). This skill also uses 46 other files; get the full folder from GitHub.Guide for taking a JavaScript codebase to strict, modern TypeScript without a big-bang rewrite. Contains 42 rules across 7 categories, prioritized by impact to drive an incremental, file-by-file migration that keeps the build compiling at every step.
Reference these guidelines when:
.js codebase to .ts (whole project or one module at a time)tsconfig and allowJs strategy for a mixed JS/TS repostrict mode or individual strict flags on a large codebaseany, as casts, and ! assertions left over from a quick conversiontsconfig & strategy → strictness ratchet → type the surfaces → kill any/casts
→ validate runtime boundaries → convert JS idioms → tooling/build/CIDecisions at the front cascade: a wrong tsconfig or a top-down conversion order forces you to re-type modules twice, and an early any flood poisons everything downstream. Work from the front of this pipeline and from the leaves of the dependency graph inward.
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Migration Setup & tsconfig | CRITICAL | setup- |
| 2 | Strictness Ratcheting | CRITICAL | strict- |
| 3 | Typing Public Surfaces | HIGH | surface- |
| 4 | Replacing any & Unsafe Casts | HIGH | unsafe- |
| 5 | Runtime Data Validation | MEDIUM-HIGH | runtime- |
| 6 | JS-to-TS Idiom Conversion | MEDIUM | idiom- |
| 7 | Tooling & Build Migration | LOW-MEDIUM | tooling- |
setup-allowjs-checkjs-bridge — Enable allowJs and checkJs for incremental migrationsetup-migrate-leaves-first — Convert dependency leaves before their dependentssetup-jsdoc-before-rename — Type JS with JSDoc and @ts-check before renamingsetup-prefer-ts-expect-error — Prefer @ts-expect-error over @ts-ignore for suppressionssetup-skiplibcheck-during-migration — Set skipLibCheck to silence third-party type noisesetup-modern-module-resolution — Set module and moduleResolution to a modern pairsetup-noemitonerror-isolatedmodules — Enable isolatedModules and noEmitOnError for safe outputstrict-enable-flags-incrementally — Enable strict flags one at a time, not all at oncestrict-prioritize-null-checks — Prioritize strictNullChecks for the highest bug yieldstrict-no-implicit-any — Enable noImplicitAny to surface every untyped valuestrict-no-unchecked-indexed-access — Enable noUncheckedIndexedAccess for index safetystrict-use-unknown-in-catch — Type caught errors as unknown, not anystrict-exact-optional-property-types — Separate missing from undefined with exactOptionalPropertyTypessurface-annotate-exported-signatures — Annotate exported function signatures explicitlysurface-replace-jsdoc-with-types — Replace JSDoc type tags with real annotationssurface-type-default-params — Type default and optional parameters preciselysurface-interface-for-object-args — Convert loose object arguments to named interfacessurface-type-callbacks — Type callback and higher-order parameterssurface-type-class-fields — Declare class field types instead of relying on assignmentunsafe-prefer-unknown-over-any — Replace any with unknown at untrusted boundariesunsafe-eliminate-as-casts — Replace as casts with narrowing or validationunsafe-avoid-double-assertion — Avoid double assertions that force unrelated typesunsafe-type-dynamic-property-access — Type dynamic property access with Records or index signaturesunsafe-replace-function-type — Replace the Function type with specific call signaturesunsafe-narrow-instead-of-nonnull — Narrow values instead of using the non-null assertionruntime-validate-external-data — Validate external data at the boundaryruntime-type-environment-variables — Parse and type environment variables onceruntime-derive-types-from-schemas — Derive static types from runtime schemasruntime-type-guards-at-boundaries — Write type guards for untyped library returnsruntime-type-json-parse — Type JSON.parse results through validationidiom-require-to-import — Convert require and module.exports to ESM syntaxidiom-prototype-to-class — Convert prototype constructors to class syntaxidiom-type-only-imports — Use import type for type-only importsidiom-replace-arguments-object — Replace the arguments object with rest parametersidiom-enum-to-union-or-const — Convert frozen-object enums to const objects or unionsidiom-default-export-to-named — Prefer named exports over default exportsidiom-optional-chaining-over-guards — Replace manual existence guards with optional chainingtooling-declare-untyped-modules — Provide ambient declarations for untyped dependenciestooling-install-types-packages — Install @types packages before casting library returnstooling-use-tsx-over-ts-node — Run TypeScript directly with tsx instead of ts-node flagstooling-emit-declaration-files — Emit declaration files for migrated librariestooling-typecheck-in-ci — Add a type-check step to CI separate from the buildRead individual reference files for detailed explanations and code examples:
typescript-refactor — Refactoring and modernizing code that is already TypeScripttypescript-advanced-patterns — Advanced type-level patterns once the migration is done| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |
© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 46 other files (references, assets) in skills/.experimental/migrate-js-to-modern-typescript of pproenca/dot-skills.
Open the folder on GitHubat commit cf93c57
Migrate JS To Modern Typescript next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Migrate JS To Modern Typescript this skillpproenca/dot-skills | 215 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Dinero Best Practicesdinerojs/dinero.js | 6.8k | — | ~756 | Automated safety check: Pass | MIT | |
| ast-grep Codemod Referencewarp-drive-data/warp-drive | 3.2k | — | ~2.6k | Automated safety check: Pass | MIT | |
| DRY Refactoring With jscpdkucherenko/jscpd | 6.4k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Coding Agentmastra-ai/mastra | 29k | — | ~2.3k | Automated safety check: Pass | Custom licence | |
| jscpd Duplicate Code Detectorkucherenko/jscpd | 6.4k | — | ~4.5k | Automated safety check: Pass | MIT |
dinerojs/dinero.js
Core best practices for the Dinero.js money library. An agent skill from dinerojs/dinero.js.
warp-drive-data/warp-drive
Reference for writing and debugging TypeScript and JavaScript codemods with @ast-grep/napi: parsing, node queries, meta-variables, rule objects and editing.
kucherenko/jscpd
Removes copy-paste duplication found by jscpd, starting with exact clones and hotspots, then renamed and near-miss copies, using proven refactoring strategies.
mastra-ai/mastra
Authoring playbook for building agents that write, edit, review, or refactor code.
kucherenko/jscpd
Finds duplicated code in 220+ languages with jscpd, reports exact, renamed and near-miss clones in a compact agent-friendly format and measures duplication.
crowdin/crowdin-cli
A skill your agent uses when implementing, refactoring, or reviewing @crowdin/crowdin-api-client usage in any JavaScript or TypeScript project, especially for endpoint selection, request/response…
pproenca/dot-skills
Audio forensics and voice recovery guidelines for CSI-level audio analysis.
pproenca/dot-skills
Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.
pproenca/dot-skills
Create well-structured RFCs and technical proposals for software projects.
pproenca/dot-skills
Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.
pproenca/dot-skills
Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…
pproenca/dot-skills
Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…
Works with
Categories
Migrating a JavaScript codebase to TypeScript — converting .js files to .ts, adding types to existing JS, or tightening a loosely-typed TS project toward strict mode. Migrate JS To Modern Typescript is an agent skill from pproenca/dot-skills.ts, adding types to existing JS, or tightening a loosely-typed TS project toward strict mode.
Migrate JS To Modern Typescript fits situations like: even when the user only says add types; turn on strict mode; convert this file to TypeScript; especially on a mixed JS/TS repo.
Run `npx skills add pproenca/dot-skills --skill migrate-js-to-modern-typescript -a claude-code`. Or copy the skill folder (skills/.experimental/migrate-js-to-modern-typescript in pproenca/dot-skills) into .claude/skills/migrate-js-to-modern-typescript in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pproenca/dot-skills --skill migrate-js-to-modern-typescript -a codex`. Or copy the skill folder (skills/.experimental/migrate-js-to-modern-typescript in pproenca/dot-skills) into .agents/skills/migrate-js-to-modern-typescript in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill migrate-js-to-modern-typescript -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/migrate-js-to-modern-typescript, .gemini/skills/migrate-js-to-modern-typescript, .github/skills/migrate-js-to-modern-typescript and .opencode/skills/migrate-js-to-modern-typescript in your project.
SKILL.md names no scripts, command-line tools or credentials: Migrate JS To Modern Typescript is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Migrate JS To Modern Typescript is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 14k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Migrate JS To Modern Typescript: Dinero Best Practices (dinerojs/dinero.js, 6.8k stars), ast-grep Codemod Reference (warp-drive-data/warp-drive, 3.2k stars), DRY Refactoring With jscpd (kucherenko/jscpd, 6.4k stars) and Coding Agent (mastra-ai/mastra, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 215 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on August 15, 2026.
Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.