Upgrade to Pro — share decks privately, control downloads, hide ads and more …

20250527_NEWT‐Tech-Talk_semba

Avatar for reiwa-travel reiwa-travel
May 27, 2025
130

 20250527_NEWT‐Tech-Talk_semba

Avatar for reiwa-travel

reiwa-travel

May 27, 2025
Tweet

Transcript

  1. © 2023 Reiwa Travel, Inc.
 2
 Backend Engineer せんば たく

    Career 2017 - 2020 Abema TV (Cyber Agent) 2020 - 2024 BILL.Inc @Sydney 2024 - now 令和トラベル Family 👨(自分) 👩 (妻) 👶 (子) 😺 (猫)
  2. © 2023 Reiwa Travel, Inc.
 3
 1. 開発環境の整備 
 2.

    具体的な取り組み事例 
 3. 効果測定と可視化 
 目次
  3. © 2023 Reiwa Travel, Inc.
 4
 1. 開発環境の整備 
 2.

    具体的な取り組み事例 
 3. 効果測定と可視化 
 目次
  4. © 2023 Reiwa Travel, Inc.
 Rulesの共通化 7
 - .clinerules -

    xxx.md - yyy.md xxx.md Coding Rule Project Structure Testing Policy etc... 最初にこれらのmarkdownが読み込まれ るため、outputの精度が上がる
  5. © 2023 Reiwa Travel, Inc.
 Rulesの共通化 8
 - .clinerules -

    xxx.md - yyy.md .clinerules/xxx.md - .cursor - rules - xxx.md - yyy.md .cursor/rules/xxx.md :
  6. © 2023 Reiwa Travel, Inc.
 Rulesの共通化 9
 - .clinerules -

    xxx.md - yyy.md - .cursor - rules - xxx.md - yyy.md .clinerules/xxx.md .cursor/rules/xxx.md ⚠ 共通で管理したい
  7. © 2023 Reiwa Travel, Inc.
 Rulesの共通化 10
 - .clinerules -

    project-structure.md - .cursor - rules - project-structure.md - .agent-rules - project-structure.md 特定のAI Agentに依存しない形でrule fileを定義 .agent-rules/project-structure.md # Project Structure … ## Directory Pattern …
  8. © 2023 Reiwa Travel, Inc.
 Rulesの共通化 11
 各Agentのrulesで.agent-rulesを参照する形でRulesを書く .clinerules/project-structure.md 詳細は以下のファイルを確認してく

    ださい: .agent-rules/project-structure.md - .clinerules - project-structure.md - .cursor - rules - project-structure.md - .agent-rules - project-structure.md
  9. © 2023 Reiwa Travel, Inc.
 ‧repository全体で共通のrule → globalをprefixにする 命名規則を使ったContextの最適化 16


    rulesに関する命名規則の導⼊ ‧project特有のrule → project名をprefixにする e.g, global-monorepo.md, etc... e.g, newt-nems-api.md, etc...
  10. © 2023 Reiwa Travel, Inc.
 ‧repository全体で共通のrule → globalをprefixにする 命名規則を使ったContextの最適化 17


    rulesに関する命名規則の導⼊ ‧project特有のrule → project名をprefixにする e.g, global-monorepo.md, etc... e.g, newt-nems-api.md, etc... ✅ 命名からruleのスコープが判定可能
  11. © 2023 Reiwa Travel, Inc.
 命名規則を使ったContextの最適化 19
 scriptで動的にrulesを追加 ‧global rulesは.clinerulesでgit管理

     それ以外はgit管理対象から外す ‧project特有のrulesは.clinerules-bank でgit管理
  12. © 2023 Reiwa Travel, Inc.
 命名規則を使ったContextの最適化 20
 scriptで動的にrulesを追加 ‧global rulesは.clinerulesでgit管理

     それ以外はgit管理対象から外す ‧project特有のrulesは.clinerules-bank でgit管理 ‧ scriptを通して、対象のrulesを  .clinerules-bank → .clinerulesに配置
  13. © 2023 Reiwa Travel, Inc.
 命名規則を使ったContextの最適化 21
 scriptで動的にrulesを追加 ‧global rulesは.clinerulesでgit管理

     それ以外はgit管理対象から外す ‧project特有のrulesは.clinerules-bank でgit管理 ‧ scriptを通して、対象のrulesを  .clinerules-bank → .clinerulesに配置 ✅ チームごとに最適なContextが渡される
  14. © 2023 Reiwa Travel, Inc.
 22
 1. 開発環境の整備 
 2.

    具体的な取り組み事例 
 3. 効果測定と可視化 
 目次
  15. © 2023 Reiwa Travel, Inc.
 24
 Devinを使ったJIRA連携 ‧JIRAからDevinをTrigger ‧Descriptionに基づいて  Devinが実装

    → PRを作成 ‧初期実装をDevinに任せることで  初動の⾼速化 概要 🚀 効果 🔥 ‧AI駆動開発の促進に貢献
  16. © 2023 Reiwa Travel, Inc.
 26
 Devinを使ったCode Review ‧DevinがソースコードをReview ‧コード規約に沿ってコメントで指 

    摘 ‧コーディング規約違反や  ガイドライン逸脱を事前検出 概要 🚀 効果 🔥 ‧レビュワーはよりハイコンテキスト  なビジネスロジックや設計にFocus
  17. © 2023 Reiwa Travel, Inc.
 27
 1. 開発環境の整備 
 2.

    具体的な取り組み事例 
 3. 効果測定と可視化 
 目次
  18. © 2023 Reiwa Travel, Inc.
 Commit履歴を使った効果測定 29
 commit 5314a8a43e157b64b0bc7e7895a2acbd3018b244 Author:

    takusemba <[email protected]> Date: Wed May 7 19:33:29 2025 +0900 feat: update xxx table Co-authored-by: Cline <cline@localhost> commit 4fddc6887b56d8294df884b531d936f14b39b769 Author: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon May 26 10:27:56 2025 +0000 fix xxx and yyy Co-Authored-By: [email protected] <[email protected]>
  19. © 2023 Reiwa Travel, Inc.
 Commit履歴を使った効果測定 30
 commit 5314a8a43e157b64b0bc7e7895a2acbd3018b244 Author:

    takusemba <[email protected]> Date: Wed May 7 19:33:29 2025 +0900 feat: update xxx table Co-authored-by: Cline <cline@localhost> commit 4fddc6887b56d8294df884b531d936f14b39b769 Author: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon May 26 10:27:56 2025 +0000 fix xxx and yyy Co-Authored-By: [email protected] <[email protected]> Devinの場合 Authorにdevin Co-Authorに自分が入る
  20. © 2023 Reiwa Travel, Inc.
 Commit履歴を使った効果測定 31
 commit 5314a8a43e157b64b0bc7e7895a2acbd3018b244 Author:

    takusemba <[email protected]> Date: Wed May 7 19:33:29 2025 +0900 feat: update xxx table Co-authored-by: Cline <cline@localhost> commit 4fddc6887b56d8294df884b531d936f14b39b769 Author: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon May 26 10:27:56 2025 +0000 fix xxx and yyy Co-Authored-By: [email protected] <[email protected]> clinerulesを使って Co-Authorがclineになるよ うに指示