Skip to content

feat: プロンプトを YUI.md から読み込む promptFile を追加し、唯の人物像を刷新 - #31

Merged
hitalin merged 2 commits into
masterfrom
feat/prompt-file
Oct 9, 2026
Merged

hitalin merged 2 commits into
masterfrom
feat/prompt-file

Conversation

@hitalin

@hitalin hitalin commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

なぜ

  • やみすきーの「やみ」は病みだけでなく闇でもある、とドキュメントに明記したので、看板娘の唯もそれに合わせて人物像を作り直したい。
  • 長いプロンプトを config.json の1行の JSON 文字列に詰める今の形では、編集もレビューもしづらい。

変更内容

feat(config): promptFile を追加

  • config.json に promptFile を書くと、起動時にそのファイルの中身を prompt として使う。
  • prompt と両方ある場合は promptFile を優先する。相対パスは起動したディレクトリが基準(Docker では /ai)。
  • ファイルが読めない場合は、起動時にエラーにする。
  • .dockerignore は *.md でルート直下の Markdown を除外しているので、!YUI.md を足してイメージに含める。
  • テストを2件追加した(読み込めるケースと、読めないケース)。

docs(prompt): 唯のプロンプトを YUI.md として刷新

  • 唯を「表面は物静かで、内側に影がある17歳」として作り直した。
  • LLM に渡しても人物像がぶれにくいよう、次の要素で構成している。
    • 判断の優先順位(相手の安全を最優先)
    • 心理プロファイル(ビッグファイブ、根っこの思い込み、人との距離の取り方、つらさとの付き合い方)
    • ネットユーザーとしての経歴と振る舞い
    • 状況ごとの反応、口調の例、しないこと
  • コードはプロンプトの直後に現在日時などを改行なしでつなげるため、ファイルの末尾を空の # 補足 見出しで終えている。
  • README の設定例は "promptFile": "YUI.md" に置き換えた。

デプロイ時の作業

本番の config.json に "promptFile": "YUI.md" を追加する。プロンプトを書き換えたときは、イメージの再ビルドが必要。

🤖 Generated with Claude Code

hitalin and others added 2 commits October 9, 2026 16:54
長いプロンプトを config.json の1行の JSON 文字列に詰めると編集・レビューが
しづらいため、Markdown ファイルから読み込めるようにした。
promptFile は prompt より優先し、読み込めない場合は起動時にエラーにする。
Docker イメージにプロンプトファイル(YUI.md)を含めるため .dockerignore で除外を解除する。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
やみすきーの「やみ」は病みだけでなく闇でもある、というコンセプトに合わせて人物像を再設計した。
表面は物静かで内側に影がある17歳として、心理プロファイル・ネット上での振る舞い・
状況ごとの反応・判断の優先順位を定義し、LLM に渡したときに人物像がぶれにくい構成にしている。
README の設定例も promptFile を使う形に置き換えた。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: de84a9f2-097b-4dbc-9317-da014418581e

📥 Commits

Reviewing files that changed from the base of the PR and between d864bdf and b6b91cf.


📒 Files selected for processing (5)
  • .dockerignore
  • README.md
  • YUI.md
  • src/utils/normalize-config.test.ts
  • src/utils/normalize-config.ts

 ____________________________________________________________________________________________________________________________________________________________________
< Don't gather requirements - dig for them. Requirements rarely lie on the surface. They're buried deep beneath layers of assumptions, misconceptions, and politics. >
 --------------------------------------------------------------------------------------------------------------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hitalin hitalin self-assigned this Oct 9, 2026
@hitalin
hitalin merged commit 57da859 into master Oct 9, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant