Yi Lu avatar

Yi Lu

Community

@luyi985

3Followers
|
21Public Repos
|
83Published Skills

Talk is cheap, show me the code (屁话少说,放码过来)

Agent Skills by Yi Lu

Showing 83 vetted skills indexed across 1 GitHub repositories.

luyi985luyi985

type-display-attention

Improve unreadable TypeScript type displays in IDE tooltips using aliases and identity mapped types.

Community
Advanced
luyi985luyi985

currying-inference

Introduce explicit TypeScript inference sites via currying and builder patterns.

Community
Intermediate
luyi985luyi985

tsdoc-comments

Document exported TypeScript APIs with TSDoc annotations including @param, @returns, and @template tags.

Community
Intermediate
luyi985luyi985

typescript-devdependencies

Categorize TypeScript and @types packages into devDependencies in package.json.

Community
Intermediate
luyi985luyi985

dry-types

Derive TypeScript types from base definitions using extends, Pick, Partial, and keyof.

Community
Intermediate
luyi985luyi985

exhaustiveness-checking

Enforce exhaustiveness in TypeScript switch statements using assertUnreachable default branches.

Community
Intermediate
luyi985luyi985

ts-check-jsdoc-experiment

Enable TypeScript-style type checking in JavaScript files using JSDoc annotations.

Community
Intermediate
luyi985luyi985

generics-as-functions

Design TypeScript generics as functions between types with constraints.

Community
Advanced
luyi985luyi985

avoid-anecdotal-types

Base type definitions on official specifications instead of single examples.

Community
Advanced
luyi985luyi985

control-union-distribution

Control union distribution in TypeScript conditional types with tuple wrappers.

Community
Advanced
luyi985luyi985

precise-any-variants

Recommend precise TypeScript any variants for arrays, objects, and functions.

Community
Intermediate
luyi985luyi985

unify-types

Unify near-identical TypeScript interfaces and union types into single variants.

Community
Intermediate
luyi985luyi985

index-signature-alternatives

Replace imprecise index signatures with interfaces, Records, or Maps for type safety.

Community
Advanced
luyi985luyi985

async-over-callbacks

Refactor nested callbacks to async/await in JavaScript and TypeScript code.

Community
Intermediate
luyi985luyi985

no-type-in-docs

Remove redundant type information from comments in TypeScript documentation.

Community
Basic
luyi985luyi985

understand-type-widening

Explain TypeScript type widening for literals, variables, objects, and arrays.

Community
Intermediate
luyi985luyi985

module-by-module-migration

Plan and execute dependency-ordered module migration from JavaScript to TypeScript.

Community
Advanced
luyi985luyi985

context-type-inference

Restore lost type context when extracting values in TypeScript.

Community
Intermediate
luyi985luyi985

consistent-aliases

Enforce consistent alias usage to preserve TypeScript narrowing across scopes.

Community
Intermediate
luyi985luyi985

callback-this-type

Document and enforce the this context in callback APIs.

Community
Basic
luyi985luyi985

conditional-types-over-overloads

Resolve function return types with conditional types over overloads.

Community
Advanced
luyi985luyi985

mirror-types

Mirror external types into internal definitions to decouple code.

Community
Intermediate
luyi985luyi985

hide-unsafe-assertions

Hide internal type assertions from public TypeScript APIs.

Community
Intermediate
luyi985luyi985

type-value-space

Identify whether TypeScript symbols reside in type space or value space.

Community
Intermediate