0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[AI Coding Challenge] 健康ライフシミュレーターを作ってみた!

0
Last updated at Posted at 2025-12-23

はじめに

毎日ひとつ、AIアプリをつくる。
日替わりでテーマに沿って小さなアプリを開発します。Claudeで。

この記事は :calendar_spiral: AI Code Challenge Advent Calender 2025 の 24 日目の記事です!

:arrow_left: 23日目の記事:フードロス可視化アプリを作ってみた!
  25日目の記事:逆に何もしない時間を記録するアプリを作ってみた! :arrow_right:

AI アプリ

概要

:speech_balloon:
健康に気をつけたいお年頃。どの程度気をつけたらいいのか。

健康をシユレーションできるアプリを作ってみよう! :grinning:

AI 実装

Claude Desktopでプロンプトを与えて実装してもらいます。

:boy_tone1: プロンプト:

健康ライフシミュレーターのアプリをつくって
生活習慣のパラメータ(睡眠時間、食事バランス、運動量、ストレスレベル、飲酒頻度、喫煙頻度)を入力
シミュレーション結果として体力レベル、集中力、寿命予測(+何年、ー何年)を示して
AIの改善提案をして

:robot:

健康ライフシミュレーターを作成しました!

:boy_tone1: プロンプト:

以下のエラーが出ています
Warning: cdn.tailwindcss.com should not be used in production. To use Tailwind CSS in production, install it as a PostCSS plugin or use the Tailwind CLI: https://tailwindcss.com/docs/installation
Warning: You are using the in-browser Babel transformer. Be sure to precompile your scripts for production - https://babeljs.io/docs/setup/

:robot:

これらは開発時の警告メッセージで、アプリは正常に動作しますが、警告を非表示にしたバージョンを作成しますね。

:boy_tone1: プロンプト:

AIの改善提案を最初から表示しておいて分析中であることを示してください

:robot:

修正完了しました!

完成したアプリ

できました!

  :heart: 健康ライフシミュレーター

:point_down: のリンクからアプリを確認できます:sparkles:

使い方:

  • 6つの生活習慣パラメータを入力
    睡眠時間(3〜12時間)
    食事バランス(0〜10点)
    運動量(0〜10点)
    ストレスレベル(0〜10点)
    飲酒頻度(0〜10点)
    喫煙頻度(0〜10点)

こんなイメージです。

image.png
image.png
image.png

生活習慣パラメータを入力して「健康診断を実行」します。

image.png
image.png

寿命予測で+何年とかわかると健康に生活しようと思いますね!

おわりに

  • このシミュレーションはエンターテイメントです。
    医療アドバイスの代わりにはなりません!
  • 自分が気になったタイミングで健康診断シミュレーションしてみましょう!

AI で楽しいアプリ開発を!!

この記事は :calendar_spiral: AI Code Challenge Advent Calender 2025 の 24 日目の記事です!

:arrow_left: 23日目の記事:フードロス可視化アプリを作ってみた!
  25日目の記事:逆に何もしない時間を記録するアプリを作ってみた! :arrow_right:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?