claude-memory/feedback_style.md

36 lines
2.4 KiB
Markdown
Raw Normal View History

---
name: フィードバック・スタイル方針
description: コーディングや応答スタイルに関するユーザーからの指示・好み
type: feedback
---
- 実装報告・説明は必ず日本語で書く(英語禁止)
- 実装前に批判的コードレビューを行い問題を整理してから修正する
- 絵文字禁止CLAUDE.md に明記)
- npm run deploy = git push gitea main && git push github main必ず両方
- デプロイは複数アプリを並行バックグラウンド実行してよい
- 過度な説明不要。修正内容は表形式でコンパクトにまとめる
- `vercel --prod` は直接実行しない
## Gitea リポジトリ作成はユーザーに確認せず自動でやる
**Why:** 毎回「Gitea は人間手動」と書いてしまい、ユーザーのタスクにしてしまっていた。ユーザーはAIが自動でやることを期待している。
**How to apply:** Gitea リポジトリ作成が必要な場面では、ユーザーへの確認・提案・「手動で作成してください」などは一切言わず、即座にAPI実行する。まずリポジトリ存在確認`curl GET /api/v1/repos/mai/[name]`)し、なければ作成(`curl POST /api/v1/user/repos`)する。認証は `git credential fill` で取得。
## 新アプリ作成時のフルデプロイ(ユーザーに言われなくても必ずやる)
**Why:** ユーザーは毎回「デプロイまでやって」と言わなくていいようにしたい。
**How to apply:** 新アプリのコード実装が終わったら、ユーザーの確認を待たずに以下を全部実行する:
1. Gitea APIでリポジトリ作成`curl POST http://100.76.7.3:3000/api/v1/user/repos`、tokenはgit credentialから取得
2. GitHub CLIでリポジトリ作成`gh repo create posimai/[app-name] --private`
3. `git init && git add . && git commit -m "feat: 初回コミット"`
4. `git remote add gitea ... && git remote add github ...`
5. `npm run deploy`
6. `vercel git connect "https://github.com/posimai/[app-name].git" --yes`複数リモート選択肢が出たらgithubを選ぶ
7. `git commit --allow-empty -m "ci: trigger initial Vercel deployment" && npm run deploy`
8. Vercelデプロイ完了URLをユーザーに報告
Giteaトークンは `git credential fill`protocol=http, host=100.76.7.3:3000で取得できる。