用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ForceInjection/domain-driven-design-skills --skill add-perspective命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Conduct deep academic research for philosophy, neuroscience, cognitive science, and theoretical computer science (computability, complexity, AI theory, logic). Use when user asks to: research academic topics, find scholarly papers, conduct literature reviews, analyze citations, synthesize research findings, explore philosophical arguments, investigate consciousness/cognition, study computability/decidability/Turing machines, or analyze academic debates. Triggers on: 'research papers', 'literature review', 'academic sources', 'scholarly articles', 'philosophy of mind', 'computability theory', 'neuroscience studies', 'find papers on', 'what does the research say'.
Create clear action plans with steps, success criteria, and risk awareness. Use before implementing features, making changes, starting projects, or anytime you need a roadmap to success. Triggers on "plan this", "how should we approach", "what's the strategy", "steps to complete", or when facing complex multi-step work.
Add keyboard navigation to a feature using CommandRegistryService. Use when implementing keyboard shortcuts, vim-style navigation, or hotkeys for a page or component.
基于 SOC 职业分类
| name | add-perspective |
| description | 振り返り観点を追加するガイド。ユーザー指摘から学習し、類似問題を将来検出できるようにする。観点、perspective、チェック追加時に使用。 |
ユーザーからの指摘や問題発見時に、類似問題を将来の振り返りで検出できるよう観点を追加する手順。
[ACTION_REQUIRED: /add-perspective] が表示されたときまず、指摘された問題の根本原因を特定する。
| 項目 | 内容 |
|------|------|
| 問題の概要 | 何が起きたか |
| 根本原因 | なぜ発生したか |
| 検出方法 | どうすれば事前に気づけたか |
新しい観点が本当に必要か確認する。
# 既存の観点を確認(PERSPECTIVES配列全体を表示)
grep -A 100 "PERSPECTIVES = \[" .claude/hooks/reflection-self-check.py | head -150
既存観点で検出可能な場合は追加不要。キーワードの拡充で対応できる場合はキーワード追加のみ。
新しい観点が必要な場合、以下を定義する。
| フィールド | 説明 | 例 |
|---|---|---|
id | 一意の識別子(snake_case) | ci_failure_analysis |
name | 日本語の表示名 | CI失敗分析 |
description | 確認すべき内容 | CI失敗時に根本原因を分析したか |
keywords | 検出用キーワード(正規表現) | [r"CI.*失敗", r"根本原因"] |
.claude/hooks/reflection-self-check.py の PERSPECTIVES 配列に追加:
# Issue #XXXX: [問題の説明]
{
"id": "new_perspective_id",
"name": "観点の表示名",
"description": "確認すべき内容の説明",
"keywords": [
r"キーワード1",
r"キーワード2",
r"複合.*パターン",
],
},
reflection-self-check.pyのPERSPECTIVESに追加した新観点を、.claude/prompts/reflection/execute.mdのセクション8「観点チェック(自己確認)」(L449以降)のテーブルにも反映する:
| N | 新観点の名前 | 確認すべき内容 | #XXXX |
.claude/hooks/tests/test_reflection_self_check.py にテストを追加:
def test_detects_new_perspective(self):
"""新観点が正しく検出される."""
transcript = "キーワード1を含むテキスト"
missing = get_missing_perspectives(transcript)
perspective_ids = [p["id"] for p in missing]
assert "new_perspective_id" not in perspective_ids
大きな変更の場合はIssueを作成してからworktreeで作業する。
| 項目 | 推奨 |
|---|---|
| 複合パターン | 単一キーワードより r"CI.*失敗" のような複合が誤検知を減らす |
| 正規表現 | `r"(Pre |
| 網羅性 | 同じ意味の異なる表現を含める(例: 失敗、エラー、問題) |
| テスト | 実際のtranscriptでキーワードが検出されることを確認 |
| ケース | 理由 |
|---|---|
| 一回限りの特殊な問題 | 再発可能性が低い |
| 既存観点のキーワード拡充で対応可能 | 観点の重複を避ける |
| 主観的な評価基準 | キーワードで検出困難 |
問題: 「既に対応済み」と判断したが、実際には仕組みが有効に機能していなかった。
追加した観点:
{
"id": "already_handled_check",
"name": "「対応済み」判断の検証",
"description": "「対応済み」と判断した場合、その仕組みの実行タイミング(Pre/Post/Stop)を確認し、実際に有効か検証したか",
"keywords": [
r"対応済み.*検証",
r"実行タイミング",
r"(Pre|Post|Stop)",
r"フック.*確認",
r"仕組み.*有効",
r"対応済み.*なし",
],
},
id, name, description, keywords を定義したreflection-self-check.py の PERSPECTIVES に追加したexecute.md のセクション8に追加した