Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
3.6k
ZOZOTOWNリプレイスにおけるWebフロントエンドのこれから / The future of web frontend in ZOZOTOWN replacement
takewell
0
930
コンポーネント化とHeadlessCMSを用いた ECプロモーションの効率化
takewell
0
2.1k
Featured
See All Featured
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3k
The browser strikes back
jonoalderson
0
1.7k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Are puppies a ranking factor?
jonoalderson
2
3.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
[SF Ruby Conf 2025] Rails X
palkan
2
1.4k
Docker and Python
trallard
47
4.2k
The Limits of Empathy - UXLibs8
cassininazir
1
660
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
410
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
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)を提供しています何卒