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
yuya takei
November 23, 2025
220
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.7k
ZOZOTOWNリプレイスにおけるWebフロントエンドのこれから / The future of web frontend in ZOZOTOWN replacement
takewell
0
940
コンポーネント化とHeadlessCMSを用いた ECプロモーションの効率化
takewell
0
2.1k
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Exploring anti-patterns in Rails
aemeredith
4
530
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
930
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
350
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
550
Joys of Absence: A Defence of Solitary Play
codingconduct
1
540
GitHub's CSS Performance
jonrohan
1033
470k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
720
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
690
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)を提供しています何卒