Yd Typescript logo

Yd Typescript

Community
LeeYudok
yd-typescript

TypeScript 코드를 작성·리뷰할 때 타입 경계, 비동기 상태, DOM 접근, strict 설정을 점검한다. Bun 브라우저 코드에도 적용한다. 빌드·의존성은 yd-frontend-build, React 컴포넌트는 yd-react-expert가 맡는다.

Overview

PublisherLeeYudok
Repositoryagents-scaffold
Skill nameyd-typescript
Stars
38
Forks
8
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by LeeYudok on GitHub. Read the source before you install it.

Installation

Install the Yd Typescript AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/LeeYudok/agents-scaffold/tree/main/.claude/skills/yd-typescript
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LeeYudok/agents-scaffold.git /tmp/agents-scaffold
mkdir -p .claude/skills
cp -r /tmp/agents-scaffold/.claude/skills/yd-typescript .claude/skills/yd-typescript
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Yd Typescript in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Yd Typescript on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Yd Typescript is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

yd-typescript

TypeScript의 정적 보장이 실제 실행 데이터에도 성립하는지 확인한다. 기존 프로젝트의 런타임·프레임워크·배포 방식을 유지하고, 이번 변경과 관계없는 전면 리팩터링은 하지 않는다. 패키지·번들 설정은 yd-frontend-build, React 상태와 컴포넌트는 yd-react-expert가 맡는다.

데이터 경계

  • fetch().json(), JSONP 콜백, JSON.parse, localStorage, DOM의 dataset은 타입이 붙어 보여도 외부 값이다. 입력을 unknown으로 받고 실제 사용하는 필드의 존재·타입·허용 범위를 확인한 뒤 도메인 타입으로 좁힌다. 실패 시 화면 상태나 저장 데이터가 어떻게 되는지도 정한다.
  • as ApiResponse, as HTMLElement, 후위 !는 검증이 아니다. DOM 요소가 반드시 있어야 하면 한 번 조회해 instanceof 또는 null 검사를 거친 뒤 쓰고, 선택 요소는 없을 때의 동작을 명시한다. 제네릭 헬퍼도 런타임 검사를 생략하지 않는다.
  • 선택적 필드에서 부재와 undefined 값이 다른 계약이면 exactOptionalPropertyTypes를 검토한다. 배열·인덱스 조회 실패가 의미 있으면 noUncheckedIndexedAccess를 켜거나 사용 지점에서 검사한다. 기존 설정을 한꺼번에 강화해 무관한 오류를 대량 생산하지 않는다.
  • 이름·ID·URL처럼 외부 문자열을 HTML에 표시할 때는 textContent와 DOM 노드로 조립한다. innerHTML이 필요하다면 신뢰 경계와 허용 마크업을 먼저 명시한다.

비동기 UI

  • 연속 선택·검색·폴링에서 이전 응답이 나중 응답을 덮을 수 있다. 요청 취소(AbortController)나 세대 번호로 최신 결과만 반영한다. 타이머·이벤트 리스너를 교체하거나 화면을 닫을 때 정리한다.
  • POST 응답이 성공 코드여도 본문이 비었거나 형식이 틀릴 수 있다. 성공 여부와 응답 스키마를 각각 검사하고, 저장 완료 안내는 유효한 응답을 화면에 반영한 뒤 표시한다.
  • 시간 제한 후 실패했을 때 서버 쓰기가 이미 끝났을 수 있다. 곧바로 재시도해 중복 기록을 만들기보다 현재 상태를 다시 조회하거나 사용자에게 확인 가능성을 알린다.

Bun·TypeScript 확인

  • Bun의 TS 실행·bun build는 타입 검사를 하지 않는다. 변경한 프로젝트의 tsconfig.json으로 tsc --noEmit을 별도로 실행하고, 브라우저 산출물은 --target browser로 만든다. 코드 작성과 빌드/패키징 책임은 구분한다. bun build의 기본 target 도 browser라 같은 결과지만, 산출물 용도를 드러내려고 명시한다. TypeScript 7 은 tsconfig.json 이 있는 폴더에서 파일을 직접 지정하면(tsc --noEmit a.ts) TS5112 로 거부하므로 tsc --noEmit -p <tsconfig>로 돌린다.
  • strict를 기준으로 보되 기존 브라우저 대상 lib, moduleResolution, TS 버전을 확인하고 필요한 설정만 추가한다. Bun 런타임 API를 브라우저 번들에 섞지 않는다.
  • 타입 검사와 빌드 후 실제 화면에서 변경한 경로를 확인한다. 외부 데이터 경계를 바꿨다면 정상·누락·오형식 입력 중 실제 위험을 드러내는 사례를 검증한다. 구현을 그대로 복제하는 테스트는 만들지 않는다.

완료 조건

  • 외부 데이터와 DOM에 적용한 타입 단언의 근거가 코드에 있다.
  • 비동기 갱신이 오래된 응답으로 최신 화면을 덮지 않는다.
  • 프로젝트의 타입 검사·빌드가 통과하고 변경한 화면 동작을 확인했다.

근거

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Yd Typescript AI skill do?

TypeScript 코드를 작성·리뷰할 때 타입 경계, 비동기 상태, DOM 접근, strict 설정을 점검한다. Bun 브라우저 코드에도 적용한다. 빌드·의존성은 yd-frontend-build, React 컴포넌트는 yd-react-expert가 맡는다.

Why use Yd Typescript on TypingMind?

Because you install it once and use it with any model. Yd Typescript is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Yd Typescript in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LeeYudok/agents-scaffold/tree/main/.claude/skills/yd-typescript. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Yd Typescript?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Yd Typescript?

As many as you like. As long as a model supports skills, you can use Yd Typescript with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Yd Typescript AI skill free?

Yes. It is published on GitHub by LeeYudok under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇