Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
TypeScript AST を活用した 設計差分抽出の紹介 / Introduction t...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
yuya takei
November 23, 2025
170
0
Share
TypeScript AST を活用した 設計差分抽出の紹介 / Introduction to Design Difference Extraction Using TypeScript ASTあ
AIが書き散らかしたコードの確認を楽にしよ!
武井 勇也 / Yuya Takei
yuya takei
November 23, 2025
More Decks by yuya takei
See All by yuya takei
Next.js を選定した ZOZOTOWN のフロントエンドリプレイス、その全体像 / zozotown frontend replacement project
takewell
0
3k
ZOZOTOWNリプレイスにおけるWebフロントエンドのこれから / The future of web frontend in ZOZOTOWN replacement
takewell
0
900
コンポーネント化とHeadlessCMSを用いた ECプロモーションの効率化
takewell
0
2k
Featured
See All Featured
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
220
The Spectacular Lies of Maps
axbom
PRO
1
700
Joys of Absence: A Defence of Solitary Play
codingconduct
1
350
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
170
Why Our Code Smells
bkeepers
PRO
340
58k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Technical Leadership for Architectural Decision Making
baasie
3
330
The untapped power of vector embeddings
frankvandijk
2
1.7k
How to Think Like a Performance Engineer
csswizardry
28
2.5k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
350
How to train your dragon (web standard)
notwaldorf
97
6.6k
Transcript
TypeScript AST を活用した 設計差分抽出の紹介 AIが書き散らかしたコードの確認を楽にしよ! 武井 勇也 / Yuya Takei
株式会社 CHILLNN @TSKaigi Hokuriku 2025.11.23
タケイ (X : @takewell_) です TypeScript で SaaSの開発しています フロントエンド、バックエンド、インフラ (AWS
CDK) など
Agentic Coding で コード量 爆増させてますか? 「できました...!」 「有能!でもレビューが大変だ!」
レビューが楽ではない 原因ってなんでだろ 「私レビューもしますよ....!」 「とはいえ自分で理解したい!」 理解が難しい = 情報量 構造の複雑さ
なぜ構造が複雑に? レイヤーが多い いろいろな依存が絡む こういう場合コードからは掴みづらい レイヤーと依存の変更差分を 抽象化した図を作れば楽になるのでは
こんな感じの図をつくりたい
こんな感じの図をつくりたい
変更差分の文字列 から 図を描画したい ソースコードの文字列から 意味を抽出するために便利な AST (抽象構文木) というのがあります
文字列 AST AST を扱うには ts-morph というライブラリが便利です
ローカルや CI で実行できる CLI を実装して図を描画します
依存関係図 (import から抽出) イメージです。依存関係がわかります
シーケンス図 (call から抽出) イメージです。実行順序がわかります
図の効用 diff を読む前に図を見ることで、その後のリーディングの時短になる 変更ファイル数が多いと図が見づらくなる(変更の粒度はほどほどに) チームで議論するときにも使える 理解の補助になる Linter, Test と併用して活用するとレビュー速度があがりそう
ARIGATO !! より詳しいことを知りたい方は 懇親会などでお声掛けください! 所属企業CHILLNNでは宿泊施設向けの SaaS と ホテル予約サイト SOMEWARE(smwr.jp)を提供しています何卒