Site cover image

shotaCoffeeBlog

駆け出しEM 好きなものはギターとお酒、コーヒー。技術的な話は稀

AIコードアシスタント関連でのメモ

⚠️
最終更新 2025/04/07

セットアップしていく過程をメモ

内容はよくあるプロジェクトなので、人によってはそのままさわれるかも

開発環境

  • IntelliJ
    • Github Copilot を使って調整しながら作るときに使う
  • VSCode Insiders
    • メイン開発1
  • Cursor
    • VSCode から引っ越そうとしてる先

よく使うモデル

主に以下のモデルを使用(週10時間程度の個人開発での利用)

  • Claude 3.5, 3.7
  • GPT-4o

プロジェクトの構成を伝達する

このプロジェクトについて教えて
プロンプト / Claude 3.5 で生成

# Prerequisites

The technical components of this project are as follows:

Languages: TypeScript, JavaScript
Package manager: npm
Front-end framework: React
Build tools: Vite
Test frameworks: Vitest, Playwright
State management: Redux Toolkit
Form management: React Hook Form
Styling: styled-components
API communication: Axios
Date manipulation: date-fns
Utilities: lodash-es
Icon generation: SVGR
Code quality tools: ESLint, Prettier
Mock server: MSW (Mock Service Worker)
Storybook: Storybook
Type definitions: TypeScript, Zod
Other: Husky (Git hooks), OpenAPI Generator (API client generation)
This project is built around React and uses TypeScript for type safety. It uses Vite as a build tool and employs Vitest and Playwright as test frameworks. It uses Redux Toolkit for state management and React Hook Form for form management. It uses styled-components for styling and Axios for API communication.

テストガイドラインを整える

この辺を鑑みつつ、ドラフトで考えて英訳してそのままおいた(ほんとまだセットアップしただけで改善の余地しかない)

# Code Conventions

## Testing

This project uses `Vitest`, `React Testing Library` as a test runner.

Since the developers speak Japanese, please write test cases in Japanese.

Please group tests with describe and use describe to write test cases.

Test files should generally be placed in parallel with the target files.

For example,
if you are testing logic only, use
example.ts
example.test.ts

If you are testing E2E, use
example.tsx
example.spec.tsx

However, if there is a directory called tests at the same level as the target file, create it in the tests directory.

Storybook 関連(WIP)

  • Figma MCP サーバーを接続する
  • プロンプト
    ${作成対象のFigma URL}
    上記のFigmaのURLにアクセスしてコンポーネントを実装してください
    
    # プロダクトでデザインシステム的なものがあるなら追加
    - ${参照Figma URL}にあるコンポーネントをなるべく利用してください
    # そのページのことを伝える
    - ${参照Figma URL}の ${対象ページ名} から取得できます
    # どこに作ってほしいか伝える
    - `src/components/...` に作成してください
    # その他
    - storybook用のstories.tsx も作成してください

よく見るドキュメント