teach
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/teach Skill
/teach Skill
プロジェクトの学びを FORyusuke.md に追記する。
Append project learnings to FORyusuke.md.
使い方
Usage
/teach [topic]例:
/teach Claude Code設定監査/teach E2Eテストのflaky対策/teach Stripe Webhook実装
/teach [topic]Examples:
/teach Claude Code configuration audit/teach E2E test flakiness countermeasures/teach Stripe Webhook implementation
制約
Constraints
- 書き込み先は FORyusuke.md のみ(他のファイルには書き込まない)
- allowed-tools は最小限(Read/Grep で情報収集、Write で追記のみ)
- Only write to FORyusuke.md (do not write to other files)
- allowed-tools are kept to a minimum (only use Read/Grep for information collection, Write for appending only)
出力フォーマット
Output Format
FORyusuke.md に以下を追記:
markdown
undefinedAppend the following content to FORyusuke.md:
markdown
undefined[日付] [topic]
[Date] [topic]
何を学んだか
What I learned
- 技術的な学び
- 設計判断とその理由
- 使用したツール・技術
- Technical learnings
- Design decisions and their rationales
- Tools and technologies used
落とし穴
Pitfalls
- 遭遇した問題とその原因
- 誤解していたこと
- 時間を浪費したポイント
- Encountered problems and their causes
- Misunderstandings I had
- Points that wasted time
もう一度やるなら
If I do it again
- より良いアプローチ
- 最初から知っておきたかったこと
- 次回への教訓
undefined- Better approaches
- Things I wish I knew from the beginning
- Lessons for the next time
undefinedAI Assistant Instructions
AI Assistant Instructions
- から topic を取得
$ARGUMENTS - FORyusuke.md を Read(なければ作成)
- 現在のセッションから学びを抽出:
- 解決した問題
- 試行錯誤の過程
- 最終的な解決策
- デバッグで得た知見
- FORyusuke.md のみに 指定フォーマットで追記
- 他のファイルへの Write は行わない
- Get the topic from
$ARGUMENTS - Read FORyusuke.md (create it if it does not exist)
- Extract learnings from the current session:
- Solved problems
- Trial and error process
- Final solution
- Insights gained from debugging
- Append to FORyusuke.md only in the specified format
- Do not write to other files
出力例
Output Example
markdown
undefinedmarkdown
undefined2026-01-26 Claude Code設定監査
2026-01-26 Claude Code Configuration Audit
何を学んだか
What I learned
- hooks timeout の単位は秒(ミリ秒ではない)
- permissions.deny は プレフィックスでリポジトリ相対パス
./ - realpath で symlink を解決してからパス検証が必要
- The unit of hooks timeout is seconds (not milliseconds)
- permissions.deny uses prefix for repository relative paths
./ - Path validation is required after resolving symlinks with realpath
落とし穴
Pitfalls
- timeout: 5000 は 5000秒(約83分)になっていた
- のようなワイルドカードは広すぎて誤爆する
*.env* - 文字列 の検出では symlink 経由の迂回を防げない
..
- timeout: 5000 was set to 5000 seconds (about 83 minutes)
- Wildcards like are too broad and cause false positives
*.env* - Detecting the string cannot prevent bypass via symlinks
..
もう一度やるなら
If I do it again
- 公式ドキュメントの単位を最初に確認する
- 設定変更後はすぐにテストで検証する
- セキュリティ設定は多層防御で設計する
undefined- Check the unit in official documentation first
- Verify with tests immediately after configuration changes
- Design security settings with defense in depth
undefined