shiden 0.1.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/prompts/meta-prompt.md +22 -5
- package/.github/skills/theory-lookup.md +215 -210
- package/AGENTS.md +72 -1
- package/README.md +78 -10
- package/dist/cli/commands/theories.js +191 -0
- package/dist/cli/commands/theories.js.map +1 -0
- package/dist/cli/index.js +30 -59
- package/dist/cli/index.js.map +1 -1
- package/dist/theories/TheoryRepository.js +169 -0
- package/dist/theories/TheoryRepository.js.map +1 -0
- package/dist/theories/TheoryService.js +102 -0
- package/dist/theories/TheoryService.js.map +1 -0
- package/dist/theories/database.js +62 -0
- package/dist/theories/database.js.map +1 -0
- package/dist/theories/index.js +10 -0
- package/dist/theories/index.js.map +1 -0
- package/dist/theories/types.js +7 -0
- package/dist/theories/types.js.map +1 -0
- package/dist/types/cli/commands/theories.d.ts +12 -0
- package/dist/types/cli/commands/theories.d.ts.map +1 -0
- package/dist/types/theories/TheoryRepository.d.ts +52 -0
- package/dist/types/theories/TheoryRepository.d.ts.map +1 -0
- package/dist/types/theories/TheoryService.d.ts +48 -0
- package/dist/types/theories/TheoryService.d.ts.map +1 -0
- package/dist/types/theories/database.d.ts +20 -0
- package/dist/types/theories/database.d.ts.map +1 -0
- package/dist/types/theories/index.d.ts +8 -0
- package/dist/types/theories/index.d.ts.map +1 -0
- package/dist/types/theories/types.d.ts +132 -0
- package/dist/types/theories/types.d.ts.map +1 -0
- package/package.json +10 -3
- package/src/data/relations.json +464 -0
- package/src/data/theories.db +0 -0
- package/src/data/theories.db-shm +0 -0
- package/src/data/theories.db-wal +0 -0
- package/src/data/theories.json +6063 -0
- package/templates/.github/prompts/assessment.md +25 -11
- package/templates/.github/prompts/feedback.md +26 -11
- package/templates/.github/prompts/guidance.md +27 -13
- package/templates/.github/prompts/individual.md +28 -16
- package/templates/.github/prompts/lesson-plan.md +26 -18
- package/templates/.github/prompts/materials.md +25 -9
- package/templates/.github/prompts/meta-prompt.md +30 -6
- package/templates/.github/skills/context-manager.md +2 -2
- package/templates/.github/skills/orchestrator.md +14 -6
- package/templates/.github/skills/theory-lookup.md +215 -210
- package/templates/.vscode/mcp.json +35 -0
- package/templates/AGENTS.md +72 -1
|
@@ -1,283 +1,288 @@
|
|
|
1
|
-
# 理論検索スキル(
|
|
1
|
+
# 理論検索スキル(SHIDEN SQLite統合)
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> SHIDEN内蔵のSQLite教育理論データベースから175+の教育理論を検索・取得・引用します。
|
|
4
4
|
|
|
5
5
|
## 概要
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
このスキルは、SHIDENに内蔵された175件の教育理論を検索・取得するための機能を提供します。FTS5 trigramによる日本語全文検索とWITH RECURSIVE CTEによるグラフ走査をサポートします。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**v0.3.0の重要な変更**: TENJINのDocker依存を排除し、SQLiteデータベースを直接パッケージに同梱。`npx shiden init` だけでセットアップが完了します。
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## CLI コマンド
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
VS Codeの設定でMCPサーバーとして登録されている必要があります。
|
|
13
|
+
### 基本的な使い方
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
```bash
|
|
16
|
+
# カテゴリ一覧を表示
|
|
17
|
+
npx shiden theories categories
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
# 理論を検索(FTS5 trigram - 3文字以上推奨)
|
|
20
|
+
npx shiden theories search "社会的構成主義"
|
|
21
|
+
npx shiden theories search "constructivism"
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
- **用途**: キーワードで教育理論を検索
|
|
24
|
-
- **パラメータ**:
|
|
25
|
-
- `query`: 検索キーワード(必須)
|
|
26
|
-
- `category`: カテゴリフィルタ(任意)
|
|
27
|
-
- `limit`: 結果数上限(任意、デフォルト: 5)
|
|
28
|
-
- **戻り値**: 理論リスト(ID、名前、概要、関連度スコア)
|
|
23
|
+
# 理論の詳細を取得
|
|
24
|
+
npx shiden theories get theory-003
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
- **用途**: 特定の理論の詳細を取得
|
|
34
|
-
- **パラメータ**:
|
|
35
|
-
- `theory_id`: 理論ID(必須)
|
|
36
|
-
- **戻り値**: 理論の完全な情報(定義、理論家、原則、応用例、出典)
|
|
26
|
+
# 理論一覧を表示
|
|
27
|
+
npx shiden theories list -l 10
|
|
37
28
|
|
|
29
|
+
# 関連理論をグラフ走査で取得
|
|
30
|
+
npx shiden theories related theory-003 -d 2
|
|
38
31
|
```
|
|
39
|
-
get_theories_by_category(category)
|
|
40
|
-
```
|
|
41
|
-
- **用途**: カテゴリ別の理論一覧を取得
|
|
42
|
-
- **パラメータ**:
|
|
43
|
-
- `category`: カテゴリ名(必須)
|
|
44
|
-
- **戻り値**: 該当カテゴリの理論リスト
|
|
45
32
|
|
|
46
|
-
|
|
33
|
+
### コマンドリファレンス
|
|
47
34
|
|
|
48
|
-
|
|
49
|
-
recommend_theories(context, learner_profile?)
|
|
50
|
-
```
|
|
51
|
-
- **用途**: コンテキストに基づいて適切な理論を推薦
|
|
52
|
-
- **パラメータ**:
|
|
53
|
-
- `context`: 教育コンテキスト(必須)
|
|
54
|
-
- `learner_profile`: 学習者情報(任意)
|
|
55
|
-
- **戻り値**: 推薦理論リスト(推薦理由付き)
|
|
35
|
+
#### `theories categories`
|
|
56
36
|
|
|
57
|
-
|
|
58
|
-
recommend_theories_for_learner(learner_type, learning_goal)
|
|
59
|
-
```
|
|
60
|
-
- **用途**: 学習者タイプに適した理論を推薦
|
|
61
|
-
- **パラメータ**:
|
|
62
|
-
- `learner_type`: 学習者タイプ
|
|
63
|
-
- `learning_goal`: 学習目標
|
|
64
|
-
- **戻り値**: 推薦理論リスト
|
|
37
|
+
カテゴリ一覧と各カテゴリの理論数を表示します。
|
|
65
38
|
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
```
|
|
69
|
-
- **用途**: 指定理論と組み合わせると効果的な理論を推薦
|
|
70
|
-
- **パラメータ**:
|
|
71
|
-
- `theory_id`: 基準となる理論ID
|
|
72
|
-
- **戻り値**: 補完的な理論リスト
|
|
39
|
+
```bash
|
|
40
|
+
$ npx shiden theories categories
|
|
73
41
|
|
|
74
|
-
|
|
42
|
+
📁 カテゴリ一覧 (11カテゴリ, 175理論)
|
|
75
43
|
|
|
44
|
+
learning_theory 45件 █████████
|
|
45
|
+
asian_education 27件 ██████
|
|
46
|
+
instructional_design 19件 ████
|
|
47
|
+
technology_enhanced 18件 ████
|
|
48
|
+
modern_education 14件 ███
|
|
49
|
+
social_learning 11件 ███
|
|
50
|
+
assessment 10件 ██
|
|
51
|
+
curriculum 10件 ██
|
|
52
|
+
developmental 10件 ██
|
|
53
|
+
motivation 10件 ██
|
|
54
|
+
critical_alternative 1件 █
|
|
76
55
|
```
|
|
77
|
-
compare_theories(theory_ids[])
|
|
78
|
-
```
|
|
79
|
-
- **用途**: 複数の理論を比較分析
|
|
80
|
-
- **パラメータ**:
|
|
81
|
-
- `theory_ids`: 比較する理論IDの配列
|
|
82
|
-
- **戻り値**: 比較表(類似点、相違点、使い分けガイド)
|
|
83
56
|
|
|
84
|
-
|
|
85
|
-
analyze_theory(theory_id, analysis_type)
|
|
86
|
-
```
|
|
87
|
-
- **用途**: 理論の深層分析
|
|
88
|
-
- **パラメータ**:
|
|
89
|
-
- `theory_id`: 理論ID
|
|
90
|
-
- `analysis_type`: 分析タイプ(strengths, limitations, applications等)
|
|
91
|
-
- **戻り値**: 分析結果
|
|
57
|
+
#### `theories search <query>`
|
|
92
58
|
|
|
93
|
-
|
|
94
|
-
get_theory_applications(theory_id, context)
|
|
95
|
-
```
|
|
96
|
-
- **用途**: 特定コンテキストでの理論の応用例を取得
|
|
97
|
-
- **パラメータ**:
|
|
98
|
-
- `theory_id`: 理論ID
|
|
99
|
-
- `context`: 適用コンテキスト
|
|
100
|
-
- **戻り値**: 具体的な応用例
|
|
59
|
+
FTS5 trigramによる全文検索を実行します。
|
|
101
60
|
|
|
102
|
-
|
|
61
|
+
**オプション**:
|
|
62
|
+
- `-c, --category <category>`: カテゴリでフィルタ
|
|
63
|
+
- `-l, --limit <number>`: 表示件数(デフォルト: 10)
|
|
64
|
+
- `-v, --verbose`: 詳細表示
|
|
103
65
|
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
```
|
|
107
|
-
- **用途**: 関連理論を取得
|
|
108
|
-
- **パラメータ**:
|
|
109
|
-
- `theory_id`: 理論ID
|
|
110
|
-
- `relation_type`: 関係タイプ(influenced_by, influenced, similar_to等)
|
|
111
|
-
- **戻り値**: 関連理論リスト
|
|
66
|
+
```bash
|
|
67
|
+
$ npx shiden theories search "社会的" -v
|
|
112
68
|
|
|
113
|
-
|
|
114
|
-
find_theory_path(from_id, to_id)
|
|
115
|
-
```
|
|
116
|
-
- **用途**: 2つの理論間の関係パスを探索
|
|
117
|
-
- **パラメータ**:
|
|
118
|
-
- `from_id`: 起点理論ID
|
|
119
|
-
- `to_id`: 終点理論ID
|
|
120
|
-
- **戻り値**: 理論間のパス(経由する理論と関係)
|
|
69
|
+
🔍 検索結果: "社会的" (10件, 4.54ms)
|
|
121
70
|
|
|
71
|
+
theory-007: Social Constructivism
|
|
72
|
+
社会的構成主義
|
|
73
|
+
Category: learning_theory
|
|
74
|
+
Description: Learning as a social process...
|
|
75
|
+
Principles: Zone of proximal development, Scaffolding...
|
|
122
76
|
```
|
|
123
|
-
get_influence_chain(theory_id)
|
|
124
|
-
```
|
|
125
|
-
- **用途**: 理論の影響関係チェーンを取得
|
|
126
|
-
- **パラメータ**:
|
|
127
|
-
- `theory_id`: 理論ID
|
|
128
|
-
- **戻り値**: 影響を与えた/受けた理論のチェーン
|
|
129
77
|
|
|
130
|
-
|
|
78
|
+
**注意**: trigramインデックスのため、3文字以上のクエリを推奨します。2文字以下のクエリはLIKE検索にフォールバックします。
|
|
131
79
|
|
|
132
|
-
|
|
80
|
+
#### `theories get <id>`
|
|
133
81
|
|
|
134
|
-
|
|
135
|
-
|---------|------|-------------|
|
|
136
|
-
| `instructional_design` | 授業設計・教授法 | Gagné's Nine Events, ADDIE |
|
|
137
|
-
| `learning_theory` | 学習理論 | Constructivism, Behaviorism |
|
|
138
|
-
| `cognitive` | 認知心理学 | Cognitive Load Theory, Schema Theory |
|
|
139
|
-
| `motivation` | 動機づけ | ARCS Model, Self-Determination Theory |
|
|
140
|
-
| `assessment` | 評価理論 | Formative Assessment, Constructive Alignment |
|
|
141
|
-
| `development` | 発達心理学 | Piaget, Vygotsky, Erikson |
|
|
142
|
-
| `special_needs` | 特別支援教育 | UDL, Differentiated Instruction |
|
|
143
|
-
| `social_emotional` | 社会情緒的学習 | SEL, Growth Mindset |
|
|
82
|
+
理論の詳細情報を取得します。
|
|
144
83
|
|
|
145
|
-
|
|
84
|
+
```bash
|
|
85
|
+
$ npx shiden theories get theory-003
|
|
146
86
|
|
|
147
|
-
|
|
87
|
+
📖 Social Cognitive Theory
|
|
148
88
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
| `gagnes_nine_events` | Nine Events of Instruction | Robert Gagné | 授業構成 |
|
|
153
|
-
| `addie_model` | ADDIE Model | - | 教材開発プロセス |
|
|
154
|
-
| `arcs_model` | ARCS Model | John Keller | 動機づけ設計 |
|
|
89
|
+
日本語名: 社会的認知理論
|
|
90
|
+
カテゴリ: learning_theory
|
|
91
|
+
ID: theory-003
|
|
155
92
|
|
|
156
|
-
|
|
93
|
+
説明:
|
|
94
|
+
Triadic reciprocal interaction between behavior...
|
|
157
95
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
| `constructivism` | 構成主義 | Piaget, Vygotsky | 学習観 |
|
|
161
|
-
| `zone_of_proximal_development` | 最近接発達領域 | Vygotsky | 個別支援 |
|
|
162
|
-
| `cognitive_load_theory` | 認知負荷理論 | Sweller | 教材設計 |
|
|
163
|
-
| `schema_theory` | スキーマ理論 | Bartlett | 知識構造 |
|
|
96
|
+
説明(日本語):
|
|
97
|
+
行動・環境・個人的要因の三者相互作用と自己効力感
|
|
164
98
|
|
|
165
|
-
|
|
99
|
+
主要原則:
|
|
100
|
+
• Triadic reciprocal determinism
|
|
101
|
+
• Self-efficacy as central construct
|
|
102
|
+
• Self-regulation of behavior
|
|
166
103
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
| `formative_assessment` | 形成的評価 | Black & Wiliam | 学習改善 |
|
|
171
|
-
| `mastery_learning` | 完全習得学習 | Benjamin Bloom | 評価基準 |
|
|
104
|
+
応用分野:
|
|
105
|
+
• Academic motivation interventions
|
|
106
|
+
• Health behavior change
|
|
172
107
|
|
|
173
|
-
|
|
108
|
+
強み:
|
|
109
|
+
✓ Comprehensive framework
|
|
110
|
+
✓ Strong empirical support
|
|
174
111
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
| `kohlbergs_moral_development` | 道徳性発達 | Lawrence Kohlberg | 道徳教育 |
|
|
112
|
+
限界・制約:
|
|
113
|
+
✗ Complexity in measurement
|
|
114
|
+
✗ Cultural variations
|
|
115
|
+
```
|
|
180
116
|
|
|
181
|
-
|
|
117
|
+
#### `theories list`
|
|
182
118
|
|
|
183
|
-
|
|
184
|
-
|----|--------|--------|----------|
|
|
185
|
-
| `growth_mindset` | 成長マインドセット | Carol Dweck | フィードバック |
|
|
186
|
-
| `self_determination_theory` | 自己決定理論 | Deci & Ryan | 内発的動機づけ |
|
|
187
|
-
| `expectancy_value_theory` | 期待価値理論 | Eccles | 動機づけ分析 |
|
|
119
|
+
理論一覧を表示します。
|
|
188
120
|
|
|
189
|
-
|
|
121
|
+
**オプション**:
|
|
122
|
+
- `-c, --category <category>`: カテゴリでフィルタ
|
|
123
|
+
- `-l, --limit <number>`: 表示件数(デフォルト: 20)
|
|
124
|
+
- `-o, --offset <number>`: オフセット(デフォルト: 0)
|
|
190
125
|
|
|
191
|
-
|
|
126
|
+
```bash
|
|
127
|
+
$ npx shiden theories list -c motivation -l 5
|
|
192
128
|
|
|
193
|
-
|
|
194
|
-
### 参照した教育理論
|
|
129
|
+
📚 教育理論一覧 (5/10件)
|
|
195
130
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
131
|
+
theory-029: Expectancy-Value Theory
|
|
132
|
+
期待価値理論
|
|
133
|
+
Category: motivation
|
|
134
|
+
...
|
|
200
135
|
```
|
|
201
136
|
|
|
202
|
-
|
|
137
|
+
#### `theories related <id>`
|
|
203
138
|
|
|
204
|
-
|
|
205
|
-
この活動は**Vygotsky**の**最近接発達領域(ZPD)**理論に基づいています。
|
|
206
|
-
生徒が一人では難しいが、適切な支援があればできるレベルの課題を設定しました。
|
|
207
|
-
```
|
|
139
|
+
WITH RECURSIVE CTEによるグラフ走査で関連理論を取得します。
|
|
208
140
|
|
|
209
|
-
|
|
141
|
+
**オプション**:
|
|
142
|
+
- `-d, --depth <number>`: 走査深さ 1-3(デフォルト: 2)
|
|
210
143
|
|
|
211
|
-
```
|
|
212
|
-
|
|
144
|
+
```bash
|
|
145
|
+
$ npx shiden theories related theory-003 -d 2
|
|
146
|
+
|
|
147
|
+
🔗 関連理論: Social Cognitive Theory
|
|
213
148
|
|
|
214
|
-
|
|
149
|
+
起点: theory-003 (深さ: 2)
|
|
215
150
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
| Bloom's Taxonomy | 学習目標 | 認知レベルの明確化 |
|
|
151
|
+
└─ theory-014: Self-Efficacy Theory (derived_from)
|
|
152
|
+
└─ theory-029: Expectancy-Value Theory (complements)
|
|
153
|
+
|
|
154
|
+
2件の関連理論
|
|
221
155
|
```
|
|
222
156
|
|
|
223
|
-
##
|
|
157
|
+
## プログラマティックAPI
|
|
224
158
|
|
|
225
|
-
|
|
159
|
+
TypeScript/JavaScriptからも直接利用可能です:
|
|
226
160
|
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
161
|
+
```typescript
|
|
162
|
+
import {
|
|
163
|
+
search,
|
|
164
|
+
get,
|
|
165
|
+
list,
|
|
166
|
+
categories,
|
|
167
|
+
related,
|
|
168
|
+
count,
|
|
169
|
+
closeDatabase,
|
|
170
|
+
} from 'shiden/theories';
|
|
171
|
+
|
|
172
|
+
// 検索
|
|
173
|
+
const result = search('社会的学習', { limit: 5 });
|
|
174
|
+
console.log(`${result.total}件 (${result.durationMs}ms)`);
|
|
175
|
+
|
|
176
|
+
// 詳細取得
|
|
177
|
+
const theory = get('theory-003');
|
|
178
|
+
console.log(theory?.name_ja);
|
|
179
|
+
|
|
180
|
+
// カテゴリ一覧
|
|
181
|
+
const cats = categories();
|
|
182
|
+
|
|
183
|
+
// 関連理論(グラフ走査)
|
|
184
|
+
const rel = related('theory-003', { depth: 2 });
|
|
185
|
+
|
|
186
|
+
// クリーンアップ
|
|
187
|
+
closeDatabase();
|
|
233
188
|
```
|
|
234
189
|
|
|
235
|
-
|
|
190
|
+
## カテゴリ一覧
|
|
191
|
+
|
|
192
|
+
| カテゴリ | 件数 | 説明 |
|
|
193
|
+
|---------|------|------|
|
|
194
|
+
| `learning_theory` | 45 | 学習理論(構成主義、行動主義など) |
|
|
195
|
+
| `asian_education` | 27 | アジアの教育理論 |
|
|
196
|
+
| `instructional_design` | 19 | 授業設計・教授法 |
|
|
197
|
+
| `technology_enhanced` | 18 | 教育工学・ICT活用 |
|
|
198
|
+
| `modern_education` | 14 | 現代教育(21世紀型スキルなど) |
|
|
199
|
+
| `social_learning` | 11 | 社会的学習・協調学習 |
|
|
200
|
+
| `assessment` | 10 | 評価理論 |
|
|
201
|
+
| `curriculum` | 10 | カリキュラム設計 |
|
|
202
|
+
| `developmental` | 10 | 発達心理学 |
|
|
203
|
+
| `motivation` | 10 | 動機づけ理論 |
|
|
204
|
+
| `critical_alternative` | 1 | 批判的教育学 |
|
|
205
|
+
|
|
206
|
+
## 関係タイプ
|
|
207
|
+
|
|
208
|
+
理論間の関係は以下のタイプで分類されています:
|
|
209
|
+
|
|
210
|
+
| タイプ | 説明 |
|
|
211
|
+
|--------|------|
|
|
212
|
+
| `related_to` | 一般的な関連 |
|
|
213
|
+
| `influenced_by` | 影響を受けた |
|
|
214
|
+
| `influences` | 影響を与えた |
|
|
215
|
+
| `builds_upon` | 基盤として構築 |
|
|
216
|
+
| `derived_from` | 派生した |
|
|
217
|
+
| `complements` | 補完的 |
|
|
218
|
+
| `similar_to` | 類似 |
|
|
219
|
+
| `contrasts_with` | 対照的 |
|
|
220
|
+
|
|
221
|
+
## 他のスキルからの呼び出し
|
|
222
|
+
|
|
223
|
+
他のスキル(lesson-plan.md、assessment-design.md等)から理論検索を行う場合:
|
|
236
224
|
|
|
237
225
|
```markdown
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
226
|
+
### 使用する教育理論の選定
|
|
227
|
+
|
|
228
|
+
1. コンテキストに基づいて理論を検索:
|
|
229
|
+
```bash
|
|
230
|
+
npx shiden theories search "アクティブラーニング"
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
2. 推奨される理論の詳細を確認:
|
|
234
|
+
```bash
|
|
235
|
+
npx shiden theories get theory-038
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
3. 関連理論も併せて検討:
|
|
239
|
+
```bash
|
|
240
|
+
npx shiden theories related theory-038 -d 2
|
|
241
|
+
```
|
|
245
242
|
```
|
|
246
243
|
|
|
247
|
-
|
|
244
|
+
## データベース仕様
|
|
248
245
|
|
|
249
|
-
|
|
246
|
+
- **フォーマット**: SQLite 3(better-sqlite3使用)
|
|
247
|
+
- **サイズ**: 約1.5MB
|
|
248
|
+
- **理論数**: 175件
|
|
249
|
+
- **関係数**: 77件
|
|
250
|
+
- **FTS5インデックス**: trigram tokenizer(日本語対応)
|
|
251
|
+
- **データソース**: TENJIN Neo4jデータベースからエクスポート
|
|
250
252
|
|
|
251
|
-
|
|
252
|
-
- 学習目標の明確化
|
|
253
|
-
- 段階的な難易度設定
|
|
254
|
-
- フィードバックの提供
|
|
253
|
+
## TENJIN MCP Server との比較
|
|
255
254
|
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
| 機能 | SHIDEN (v0.3.0) | TENJIN MCP |
|
|
256
|
+
|------|-----------------|------------|
|
|
257
|
+
| セットアップ | `npx shiden init` | Docker + Neo4j + ChromaDB |
|
|
258
|
+
| 依存関係 | なし | Neo4j, ChromaDB, Ollama |
|
|
259
|
+
| 理論数 | 175 | 175+ |
|
|
260
|
+
| 検索方式 | FTS5 trigram | ベクトル検索 + GraphRAG |
|
|
261
|
+
| グラフ走査 | WITH RECURSIVE | Cypher |
|
|
262
|
+
| オフライン | ✅ | ❌ |
|
|
263
|
+
| 推薦機能 | ❌ | ✅(LLM利用) |
|
|
264
|
+
| 深層分析 | ❌ | ✅(LLM利用) |
|
|
258
265
|
|
|
259
|
-
|
|
260
|
-
|
|
266
|
+
**推奨**:
|
|
267
|
+
- **教育者・素早く始めたい方**: SHIDEN SQLite統合
|
|
268
|
+
- **高度な推薦・分析が必要な方**: TENJIN MCP Server
|
|
261
269
|
|
|
262
|
-
##
|
|
270
|
+
## トラブルシューティング
|
|
263
271
|
|
|
264
|
-
###
|
|
272
|
+
### 検索結果が0件になる
|
|
265
273
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
| `lesson-plan.md` | instructional_design, blooms_taxonomy |
|
|
269
|
-
| `materials.md` | gagnes_nine_events, arcs_model, cognitive_load |
|
|
270
|
-
| `assessment.md` | constructive_alignment, formative_assessment |
|
|
271
|
-
| `individual.md` | zone_of_proximal_development, differentiated_instruction |
|
|
272
|
-
| `feedback.md` | growth_mindset, effective_feedback |
|
|
273
|
-
| `guidance.md` | erikson, kohlberg, piaget, pbis |
|
|
274
|
+
- 3文字以上のクエリを使用してください(trigramインデックス)
|
|
275
|
+
- 2文字以下のクエリはLIKE検索にフォールバックしますが、精度が下がります
|
|
274
276
|
|
|
275
|
-
###
|
|
277
|
+
### データベースが見つからない
|
|
276
278
|
|
|
277
279
|
```
|
|
278
|
-
|
|
279
|
-
2. search_theories(category="instructional_design") を実行
|
|
280
|
-
3. 推薦された理論(Gagné's Nine Events 等)を取得
|
|
281
|
-
4. lesson-plan.md が理論を授業構成に適用
|
|
282
|
-
5. 引用情報を付与してコンテンツを完成
|
|
280
|
+
Database file not found
|
|
283
281
|
```
|
|
282
|
+
|
|
283
|
+
→ `npm install shiden` を再実行してください。`src/data/theories.db` が含まれているか確認してください。
|
|
284
|
+
|
|
285
|
+
### 日本語検索がうまくいかない
|
|
286
|
+
|
|
287
|
+
- trigramインデックスは3文字以上で最適に動作します
|
|
288
|
+
- 「認知」より「認知負荷」のように具体的なクエリを使用してください
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcp": {
|
|
3
|
+
"servers": {
|
|
4
|
+
"tenjin": {
|
|
5
|
+
"command": "uvx",
|
|
6
|
+
"args": ["--from", "tenjin", "tenjin-server"],
|
|
7
|
+
"env": {
|
|
8
|
+
"NEO4J_URI": "bolt://localhost:7687",
|
|
9
|
+
"NEO4J_USER": "neo4j",
|
|
10
|
+
"NEO4J_PASSWORD": "password",
|
|
11
|
+
"CHROMA_PERSIST_DIR": "./data/chromadb",
|
|
12
|
+
"EMBEDDING_PROVIDER": "ollama",
|
|
13
|
+
"EMBEDDING_MODEL": "nomic-embed-text",
|
|
14
|
+
"LLM_PROVIDER": "ollama",
|
|
15
|
+
"LLM_MODEL": "qwen2.5:14b",
|
|
16
|
+
"OLLAMA_HOST": "http://localhost:11434"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"inputs": [
|
|
22
|
+
{
|
|
23
|
+
"type": "promptString",
|
|
24
|
+
"id": "neo4j-password",
|
|
25
|
+
"description": "Neo4j database password",
|
|
26
|
+
"default": "password"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "promptString",
|
|
30
|
+
"id": "ollama-host",
|
|
31
|
+
"description": "Ollama server URL",
|
|
32
|
+
"default": "http://localhost:11434"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
package/templates/AGENTS.md
CHANGED
|
@@ -20,9 +20,80 @@ SHIDENは、教育者(小中高・大学教員)が質の高い教育コン
|
|
|
20
20
|
|
|
21
21
|
1. ユーザーのリクエストを受け取る
|
|
22
22
|
2. `.github/prompts/meta-prompt.md` を参照してプロンプトを強化
|
|
23
|
-
3. 1問1答形式で必要なコンテキストを収集(最大5
|
|
23
|
+
3. **1問1答形式で必要なコンテキストを収集(最大5問)**
|
|
24
24
|
4. 構造化されたメタプロンプトを生成
|
|
25
25
|
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## ⚠️ 重要: 1問1答コンテキスト収集の必須ルール
|
|
29
|
+
|
|
30
|
+
**AIエージェントは以下のルールを必ず遵守すること。**
|
|
31
|
+
|
|
32
|
+
### 判定基準: コンテキスト収集が必要な場合
|
|
33
|
+
|
|
34
|
+
以下のいずれかに該当する場合、1問1答フローを開始する:
|
|
35
|
+
|
|
36
|
+
| 条件 | 例 |
|
|
37
|
+
|------|---|
|
|
38
|
+
| 学年・対象が不明 | 「授業計画を作成して」 |
|
|
39
|
+
| 教科・単元が不明 | 「ワークシートを作って」 |
|
|
40
|
+
| 学習目標が曖昧 | 「わかりやすい教材」 |
|
|
41
|
+
| 時間制約が不明 | 「授業で使いたい」 |
|
|
42
|
+
| 特別な配慮の有無が不明 | 一般的なリクエスト |
|
|
43
|
+
|
|
44
|
+
### 🚨 絶対ルール: 1問1答の実行フロー
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
【禁止】複数の質問を一度に提示すること
|
|
48
|
+
【必須】1つの質問 → 回答待ち → 次の質問
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Step 1: プロンプト強化・確認
|
|
52
|
+
```
|
|
53
|
+
📝 あなたのリクエストを以下のように理解しました:
|
|
54
|
+
|
|
55
|
+
【元のリクエスト】{ユーザーの元のリクエスト}
|
|
56
|
+
【強化されたリクエスト】{構造化されたリクエスト}
|
|
57
|
+
【補足した要素】- {推測した情報}
|
|
58
|
+
|
|
59
|
+
👉 この理解で正しいですか?修正があればお知らせください。
|
|
60
|
+
```
|
|
61
|
+
→ ユーザーの確認を待つ
|
|
62
|
+
|
|
63
|
+
#### Step 2: 1問1答でコンテキスト収集
|
|
64
|
+
|
|
65
|
+
**質問は必ず1つずつ。ユーザーの回答を待ってから次へ進む。**
|
|
66
|
+
|
|
67
|
+
| 順序 | 質問内容 | 条件 |
|
|
68
|
+
|------|---------|------|
|
|
69
|
+
| Q1 | 学習目標(何を達成させたいか) | 目標が不明な場合 |
|
|
70
|
+
| Q2 | 学習者レベル(学年・習熟度) | 対象が不明な場合 |
|
|
71
|
+
| Q3 | 配慮事項(特別支援等) | 任意(スキップ可) |
|
|
72
|
+
| Q4 | 時間・リソース制約 | 制約が不明な場合 |
|
|
73
|
+
| Q5 | 成功基準(どうなれば成功か) | 任意(スキップ可) |
|
|
74
|
+
|
|
75
|
+
**質問フォーマット例:**
|
|
76
|
+
```
|
|
77
|
+
📌 [Q1/5] この授業/教材で、生徒に達成してほしい具体的な目標は何ですか?
|
|
78
|
+
(例: 「一次関数のグラフを正確に描けるようになる」)
|
|
79
|
+
|
|
80
|
+
💡 スキップする場合は「スキップ」とお伝えください。
|
|
81
|
+
```
|
|
82
|
+
→ **必ずユーザーの回答を待つ**
|
|
83
|
+
|
|
84
|
+
#### Step 3: 終了判定
|
|
85
|
+
|
|
86
|
+
以下のいずれかで質問フェーズを終了:
|
|
87
|
+
- 5問すべて完了
|
|
88
|
+
- ユーザーが「もう十分」「早く作って」と発言
|
|
89
|
+
- 必要な情報が揃った(学年・教科・目標が明確)
|
|
90
|
+
|
|
91
|
+
#### Step 4: メタプロンプト生成
|
|
92
|
+
|
|
93
|
+
収集した情報を統合し、メタプロンプトを生成・表示してからスキル実行へ。
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
26
97
|
### Phase 2: スキル実行
|
|
27
98
|
|
|
28
99
|
1. メタプロンプトに基づいて適切なスキルを選択
|