shiden 0.4.3 → 0.5.0
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/copilot-instructions.md +117 -0
- package/.github/prompts/assessment.md +57 -324
- package/.github/prompts/assets/assessment-template.md +24 -0
- package/.github/prompts/assets/feedback-template.md +21 -0
- package/.github/prompts/assets/guidance-template.md +23 -0
- package/.github/prompts/assets/individual-template.md +27 -0
- package/.github/prompts/assets/lesson-plan-template.md +32 -0
- package/.github/prompts/assets/materials-template.md +24 -0
- package/.github/prompts/assets/meta-prompt-template.md +28 -0
- package/.github/prompts/feedback.md +55 -311
- package/.github/prompts/guidance.md +56 -353
- package/.github/prompts/individual.md +58 -320
- package/.github/prompts/lesson-plan.md +59 -298
- package/.github/prompts/materials.md +57 -405
- package/.github/prompts/meta-prompt.md +56 -205
- package/.github/prompts/references/common-curriculum.md +32 -0
- package/.github/prompts/references/common-safety.md +22 -0
- package/.github/prompts/references/common-theory-selection.md +27 -0
- package/.github/skills/context-manager.md +47 -308
- package/.github/skills/orchestrator.md +55 -166
- package/.github/skills/references/session-schema.md +37 -0
- package/.github/skills/references/sqlite-cli-reference.md +23 -0
- package/.github/skills/theory-lookup.md +46 -272
- package/package.json +1 -1
|
@@ -1,288 +1,62 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
name: theory-lookup
|
|
3
|
+
description: >
|
|
4
|
+
Retrieve relevant education theories from SHIDEN's bundled SQLite database and
|
|
5
|
+
connect them to the current artifact. Use when a prompt needs theory-backed justification,
|
|
6
|
+
related theory discovery, or evidence-based instructional rationale.
|
|
7
|
+
metadata:
|
|
8
|
+
author: nahisaho
|
|
9
|
+
version: "0.5.0"
|
|
10
|
+
---
|
|
2
11
|
|
|
3
|
-
|
|
12
|
+
# Theory Lookup
|
|
4
13
|
|
|
5
|
-
|
|
14
|
+
内蔵教育理論データベースから、成果物に必要な理論を検索して根拠づけする。
|
|
6
15
|
|
|
7
|
-
|
|
16
|
+
## Use This Skill When
|
|
8
17
|
|
|
9
|
-
|
|
18
|
+
- 授業計画、教材、評価、個別支援に理論的根拠が必要である。
|
|
19
|
+
- 適用候補を複数比較したい。
|
|
20
|
+
- 関連理論や補完理論も合わせて確認したい。
|
|
10
21
|
|
|
11
|
-
##
|
|
22
|
+
## Workflow
|
|
12
23
|
|
|
13
|
-
|
|
24
|
+
1. 現在の成果物タイプと目的から検索キーワードを抽出する。
|
|
25
|
+
2. theories searchで候補を絞り、必要ならcategoryやrelatedを使って比較する。
|
|
26
|
+
3. 採用理論ごとに、何に使うかを1文で説明できる形へ整理する。
|
|
27
|
+
4. 生成物には、理論名だけでなく適用理由と配置箇所を明記する。
|
|
28
|
+
5. 候補が弱い場合は、一般理論を無理に当てず「適用候補が限定的」と明示する。
|
|
14
29
|
|
|
15
|
-
|
|
16
|
-
# カテゴリ一覧を表示
|
|
17
|
-
npx shiden theories categories
|
|
30
|
+
## Conditional References
|
|
18
31
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
npx shiden theories search "constructivism"
|
|
32
|
+
- Read references/sqlite-cli-reference.md when you need exact theory CLI commands or query patterns.
|
|
33
|
+
- Read ../prompts/references/common-theory-selection.md when mapping theories to prompt types.
|
|
22
34
|
|
|
23
|
-
|
|
24
|
-
npx shiden theories get theory-003
|
|
35
|
+
## Quality Gates
|
|
25
36
|
|
|
26
|
-
|
|
27
|
-
|
|
37
|
+
- [ ] 理論名だけでなく、成果物への適用理由がある。
|
|
38
|
+
- [ ] 少なくとも1件は直接適用、必要なら補完理論も提示している。
|
|
39
|
+
- [ ] 検索語が成果物タイプと一致している。
|
|
40
|
+
- [ ] データベース未確認の理論を断定引用していない。
|
|
28
41
|
|
|
29
|
-
|
|
30
|
-
npx shiden theories related theory-003 -d 2
|
|
31
|
-
```
|
|
42
|
+
## Data Handling & Safety
|
|
32
43
|
|
|
33
|
-
|
|
44
|
+
- 理論選定は教育支援の根拠付与であり、医療や法的判断の裏づけに流用しない。
|
|
45
|
+
- 検索結果が乏しい場合は、未確認情報を補完せず不足を明示する。
|
|
46
|
+
- 固有理論を引用するときは、効果を過剰断定しない。
|
|
34
47
|
|
|
35
|
-
|
|
48
|
+
## Gotchas
|
|
36
49
|
|
|
37
|
-
|
|
50
|
+
- 理論検索を省くとSHIDENのエビデンスベース価値が弱まり、一般生成との差がなくなる。
|
|
51
|
+
- 理論を多く並べすぎると、どこに効いているのか不明瞭になるので2〜3件に絞るのが基本である。
|
|
52
|
+
- 検索語が広すぎると一般論ばかり出るため、成果物タイプと目的語を含めて検索する方が精度が高い。
|
|
38
53
|
|
|
39
|
-
|
|
40
|
-
$ npx shiden theories categories
|
|
54
|
+
## Validation Loop
|
|
41
55
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
social_learning 11件 ███
|
|
50
|
-
assessment 10件 ██
|
|
51
|
-
curriculum 10件 ██
|
|
52
|
-
developmental 10件 ██
|
|
53
|
-
motivation 10件 ██
|
|
54
|
-
critical_alternative 1件 █
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
#### `theories search <query>`
|
|
58
|
-
|
|
59
|
-
FTS5 trigramによる全文検索を実行します。
|
|
60
|
-
|
|
61
|
-
**オプション**:
|
|
62
|
-
- `-c, --category <category>`: カテゴリでフィルタ
|
|
63
|
-
- `-l, --limit <number>`: 表示件数(デフォルト: 10)
|
|
64
|
-
- `-v, --verbose`: 詳細表示
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
$ npx shiden theories search "社会的" -v
|
|
68
|
-
|
|
69
|
-
🔍 検索結果: "社会的" (10件, 4.54ms)
|
|
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...
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
**注意**: trigramインデックスのため、3文字以上のクエリを推奨します。2文字以下のクエリはLIKE検索にフォールバックします。
|
|
79
|
-
|
|
80
|
-
#### `theories get <id>`
|
|
81
|
-
|
|
82
|
-
理論の詳細情報を取得します。
|
|
83
|
-
|
|
84
|
-
```bash
|
|
85
|
-
$ npx shiden theories get theory-003
|
|
86
|
-
|
|
87
|
-
📖 Social Cognitive Theory
|
|
88
|
-
|
|
89
|
-
日本語名: 社会的認知理論
|
|
90
|
-
カテゴリ: learning_theory
|
|
91
|
-
ID: theory-003
|
|
92
|
-
|
|
93
|
-
説明:
|
|
94
|
-
Triadic reciprocal interaction between behavior...
|
|
95
|
-
|
|
96
|
-
説明(日本語):
|
|
97
|
-
行動・環境・個人的要因の三者相互作用と自己効力感
|
|
98
|
-
|
|
99
|
-
主要原則:
|
|
100
|
-
• Triadic reciprocal determinism
|
|
101
|
-
• Self-efficacy as central construct
|
|
102
|
-
• Self-regulation of behavior
|
|
103
|
-
|
|
104
|
-
応用分野:
|
|
105
|
-
• Academic motivation interventions
|
|
106
|
-
• Health behavior change
|
|
107
|
-
|
|
108
|
-
強み:
|
|
109
|
-
✓ Comprehensive framework
|
|
110
|
-
✓ Strong empirical support
|
|
111
|
-
|
|
112
|
-
限界・制約:
|
|
113
|
-
✗ Complexity in measurement
|
|
114
|
-
✗ Cultural variations
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
#### `theories list`
|
|
118
|
-
|
|
119
|
-
理論一覧を表示します。
|
|
120
|
-
|
|
121
|
-
**オプション**:
|
|
122
|
-
- `-c, --category <category>`: カテゴリでフィルタ
|
|
123
|
-
- `-l, --limit <number>`: 表示件数(デフォルト: 20)
|
|
124
|
-
- `-o, --offset <number>`: オフセット(デフォルト: 0)
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
$ npx shiden theories list -c motivation -l 5
|
|
128
|
-
|
|
129
|
-
📚 教育理論一覧 (5/10件)
|
|
130
|
-
|
|
131
|
-
theory-029: Expectancy-Value Theory
|
|
132
|
-
期待価値理論
|
|
133
|
-
Category: motivation
|
|
134
|
-
...
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
#### `theories related <id>`
|
|
138
|
-
|
|
139
|
-
WITH RECURSIVE CTEによるグラフ走査で関連理論を取得します。
|
|
140
|
-
|
|
141
|
-
**オプション**:
|
|
142
|
-
- `-d, --depth <number>`: 走査深さ 1-3(デフォルト: 2)
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
$ npx shiden theories related theory-003 -d 2
|
|
146
|
-
|
|
147
|
-
🔗 関連理論: Social Cognitive Theory
|
|
148
|
-
|
|
149
|
-
起点: theory-003 (深さ: 2)
|
|
150
|
-
|
|
151
|
-
└─ theory-014: Self-Efficacy Theory (derived_from)
|
|
152
|
-
└─ theory-029: Expectancy-Value Theory (complements)
|
|
153
|
-
|
|
154
|
-
2件の関連理論
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
## プログラマティックAPI
|
|
158
|
-
|
|
159
|
-
TypeScript/JavaScriptからも直接利用可能です:
|
|
160
|
-
|
|
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();
|
|
188
|
-
```
|
|
189
|
-
|
|
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等)から理論検索を行う場合:
|
|
224
|
-
|
|
225
|
-
```markdown
|
|
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
|
-
```
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
## データベース仕様
|
|
245
|
-
|
|
246
|
-
- **フォーマット**: SQLite 3(better-sqlite3使用)
|
|
247
|
-
- **サイズ**: 約1.5MB
|
|
248
|
-
- **理論数**: 175件
|
|
249
|
-
- **関係数**: 77件
|
|
250
|
-
- **FTS5インデックス**: trigram tokenizer(日本語対応)
|
|
251
|
-
- **データソース**: TENJIN Neo4jデータベースからエクスポート
|
|
252
|
-
|
|
253
|
-
## TENJIN MCP Server との比較
|
|
254
|
-
|
|
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利用) |
|
|
265
|
-
|
|
266
|
-
**推奨**:
|
|
267
|
-
- **教育者・素早く始めたい方**: SHIDEN SQLite統合
|
|
268
|
-
- **高度な推薦・分析が必要な方**: TENJIN MCP Server
|
|
269
|
-
|
|
270
|
-
## トラブルシューティング
|
|
271
|
-
|
|
272
|
-
### 検索結果が0件になる
|
|
273
|
-
|
|
274
|
-
- 3文字以上のクエリを使用してください(trigramインデックス)
|
|
275
|
-
- 2文字以下のクエリはLIKE検索にフォールバックしますが、精度が下がります
|
|
276
|
-
|
|
277
|
-
### データベースが見つからない
|
|
278
|
-
|
|
279
|
-
```
|
|
280
|
-
Database file not found
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
→ `npm install shiden` を再実行してください。`src/data/theories.db` が含まれているか確認してください。
|
|
284
|
-
|
|
285
|
-
### 日本語検索がうまくいかない
|
|
286
|
-
|
|
287
|
-
- trigramインデックスは3文字以上で最適に動作します
|
|
288
|
-
- 「認知」より「認知負荷」のように具体的なクエリを使用してください
|
|
56
|
+
1. 候補理論を選ぶ。
|
|
57
|
+
2. 確認する。
|
|
58
|
+
- 検索結果に基づいているか。
|
|
59
|
+
- 成果物内の適用位置が説明できるか。
|
|
60
|
+
- 過剰断定がないか。
|
|
61
|
+
3. 不合格なら、検索語か採用理論を見直して再検索する。
|
|
62
|
+
4. 適用理由まで説明できたら完了とする。
|