$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
TypeScript AST を活用した 設計差分抽出の紹介 / Introduction t...
Search
yuya takei
November 23, 2025
0
140
TypeScript AST を活用した 設計差分抽出の紹介 / Introduction to Design Difference Extraction Using TypeScript ASTあ
AIが書き散らかしたコードの確認を楽にしよ!
武井 勇也 / Yuya Takei
yuya takei
November 23, 2025
Tweet
Share
More Decks by yuya takei
See All by yuya takei
Next.js を選定した ZOZOTOWN のフロントエンドリプレイス、その全体像 / zozotown frontend replacement project
takewell
0
2.8k
ZOZOTOWNリプレイスにおけるWebフロントエンドのこれから / The future of web frontend in ZOZOTOWN replacement
takewell
0
880
コンポーネント化とHeadlessCMSを用いた ECプロモーションの効率化
takewell
0
1.9k
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
410
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
92
Crafting Experiences
bethany
0
22
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
94
Building the Perfect Custom Keyboard
takai
1
660
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
1
210
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
69
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
200
Rebuilding a faster, lazier Slack
samanthasiow
85
9.3k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Context Engineering - Making Every Token Count
addyosmani
9
550
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)を提供しています何卒