Yi Lu
Community@luyi985
Talk is cheap, show me the code (屁话少说,放码过来)
Agent Skills by Yi Lu
Showing 83 vetted skills indexed across 1 GitHub repositories.
type-display-attention
Improve unreadable TypeScript type displays in IDE tooltips using aliases and identity mapped types.
currying-inference
Introduce explicit TypeScript inference sites via currying and builder patterns.
tsdoc-comments
Document exported TypeScript APIs with TSDoc annotations including @param, @returns, and @template tags.
typescript-devdependencies
Categorize TypeScript and @types packages into devDependencies in package.json.
dry-types
Derive TypeScript types from base definitions using extends, Pick, Partial, and keyof.
exhaustiveness-checking
Enforce exhaustiveness in TypeScript switch statements using assertUnreachable default branches.
ts-check-jsdoc-experiment
Enable TypeScript-style type checking in JavaScript files using JSDoc annotations.
generics-as-functions
Design TypeScript generics as functions between types with constraints.
avoid-anecdotal-types
Base type definitions on official specifications instead of single examples.
control-union-distribution
Control union distribution in TypeScript conditional types with tuple wrappers.
precise-any-variants
Recommend precise TypeScript any variants for arrays, objects, and functions.
unify-types
Unify near-identical TypeScript interfaces and union types into single variants.
index-signature-alternatives
Replace imprecise index signatures with interfaces, Records, or Maps for type safety.
async-over-callbacks
Refactor nested callbacks to async/await in JavaScript and TypeScript code.
no-type-in-docs
Remove redundant type information from comments in TypeScript documentation.
understand-type-widening
Explain TypeScript type widening for literals, variables, objects, and arrays.
module-by-module-migration
Plan and execute dependency-ordered module migration from JavaScript to TypeScript.
context-type-inference
Restore lost type context when extracting values in TypeScript.
consistent-aliases
Enforce consistent alias usage to preserve TypeScript narrowing across scopes.
callback-this-type
Document and enforce the this context in callback APIs.
conditional-types-over-overloads
Resolve function return types with conditional types over overloads.
mirror-types
Mirror external types into internal definitions to decouple code.
hide-unsafe-assertions
Hide internal type assertions from public TypeScript APIs.
type-value-space
Identify whether TypeScript symbols reside in type space or value space.