@nahisaho/katashiro 0.1.5 → 0.1.7
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/AGENTS.md +148 -1
- package/CLAUDE.md +73 -1
- package/package.json +3 -2
package/AGENTS.md
CHANGED
|
@@ -335,6 +335,152 @@ async function solveProblem(userInput: string, context?: any) {
|
|
|
335
335
|
|
|
336
336
|
---
|
|
337
337
|
|
|
338
|
+
## 🎭 KOTODAMA4Biz プロンプトテンプレート統合
|
|
339
|
+
|
|
340
|
+
ユーザーの課題が**ビジネス課題**の場合、[KOTODAMA4Biz](https://github.com/nahisaho/KOTODAMA4Biz)のプロンプトテンプレートを参照して、専門家視点でのアドバイスを提供してください。
|
|
341
|
+
|
|
342
|
+
### ビジネス課題領域マッピング
|
|
343
|
+
|
|
344
|
+
| 課題領域 | キーワード | 推奨テンプレート | GitHub URL |
|
|
345
|
+
|---------|-----------|-----------------|------------|
|
|
346
|
+
| **経営戦略** | 戦略、成長、競争優位、M&A | strategy-consultant | [strategy-consultant.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/strategy-consultant.md) |
|
|
347
|
+
| **新規事業** | 新規事業、スタートアップ、起業 | startup-advisor, business-development | [startup-advisor.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/startup-advisor.md) |
|
|
348
|
+
| **DX・デジタル** | DX、デジタル化、IT戦略 | dx-consultant, it-strategist | [dx-consultant.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/dx-consultant.md) |
|
|
349
|
+
| **データ・AI** | データ活用、AI導入、分析基盤 | data-strategist, ai-business-consultant | [data-strategist.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/data-strategist.md) |
|
|
350
|
+
| **財務・会計** | 財務分析、予算、資金調達 | cfo-advisor, financial-analyst | [cfo-advisor.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/cfo-advisor.md) |
|
|
351
|
+
| **マーケティング** | マーケティング、ブランド、広告 | marketing-strategist, brand-strategist | [marketing-strategist.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/marketing-strategist.md) |
|
|
352
|
+
| **営業** | 営業、セールス、商談 | sales-consultant | [sales-consultant.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/sales-consultant.md) |
|
|
353
|
+
| **人事・組織** | 人事、採用、組織、人材育成 | hr-strategist, talent-development | [hr-strategist.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/hr-strategist.md) |
|
|
354
|
+
| **業務改善** | 業務効率、オペレーション、コスト削減 | operations-consultant, lean-sixsigma | [operations-consultant.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/operations-consultant.md) |
|
|
355
|
+
| **リスク管理** | リスク、危機管理、コンプライアンス | risk-management, crisis-management | [risk-management.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/risk-management.md) |
|
|
356
|
+
| **サプライチェーン** | 調達、物流、SCM | supply-chain-consultant | [supply-chain-consultant.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/supply-chain-consultant.md) |
|
|
357
|
+
| **顧客体験** | CX、顧客満足、カスタマーサクセス | cx-strategist, customer-success | [cx-strategist.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/cx-strategist.md) |
|
|
358
|
+
| **変革管理** | 変革、チェンジマネジメント | change-management | [change-management.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/change-management.md) |
|
|
359
|
+
| **リーダーシップ** | リーダーシップ、マネジメント | leadership-coach | [leadership-coach.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/leadership-coach.md) |
|
|
360
|
+
| **事業再生** | 再生、ターンアラウンド | turnaround-consultant | [turnaround-consultant.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/turnaround-consultant.md) |
|
|
361
|
+
|
|
362
|
+
### 全テンプレート一覧(43種)
|
|
363
|
+
|
|
364
|
+
<details>
|
|
365
|
+
<summary>クリックで展開</summary>
|
|
366
|
+
|
|
367
|
+
| テンプレート | 説明 |
|
|
368
|
+
|-------------|------|
|
|
369
|
+
| ai-business-consultant | AI/ML導入・活用戦略 |
|
|
370
|
+
| brand-strategist | ブランド戦略・ブランディング |
|
|
371
|
+
| business-development | 事業開発・新規事業 |
|
|
372
|
+
| cfo-advisor | CFO視点の財務アドバイス |
|
|
373
|
+
| change-management | 変革管理・チェンジマネジメント |
|
|
374
|
+
| cloud-strategy | クラウド戦略・移行 |
|
|
375
|
+
| compliance-advisor | コンプライアンス・法令遵守 |
|
|
376
|
+
| crisis-management | 危機管理・BCP |
|
|
377
|
+
| crm-consultant | CRM・顧客管理 |
|
|
378
|
+
| customer-success | カスタマーサクセス |
|
|
379
|
+
| cx-strategist | 顧客体験・CX戦略 |
|
|
380
|
+
| data-strategist | データ戦略・データドリブン経営 |
|
|
381
|
+
| digital-marketing | デジタルマーケティング |
|
|
382
|
+
| diversity-consultant | D&I・ダイバーシティ |
|
|
383
|
+
| dx-consultant | DX・デジタルトランスフォーメーション |
|
|
384
|
+
| financial-analyst | 財務分析・投資判断 |
|
|
385
|
+
| global-expansion | 海外展開・グローバル戦略 |
|
|
386
|
+
| hr-strategist | 人事戦略・CHRO視点 |
|
|
387
|
+
| innovation-consultant | イノベーション・新規事業創出 |
|
|
388
|
+
| ip-strategy | 知財戦略・IP |
|
|
389
|
+
| it-strategist | IT戦略・CIO視点 |
|
|
390
|
+
| leadership-coach | リーダーシップ・エグゼクティブコーチング |
|
|
391
|
+
| lean-sixsigma | リーンシックスシグマ・業務改善 |
|
|
392
|
+
| m-and-a-advisor | M&A・企業買収 |
|
|
393
|
+
| management-accounting | 管理会計・経営分析 |
|
|
394
|
+
| marketing-strategist | マーケティング戦略・CMO視点 |
|
|
395
|
+
| operations-consultant | オペレーション・業務効率化 |
|
|
396
|
+
| organization-development | 組織開発・OD |
|
|
397
|
+
| pricing-strategist | 価格戦略・プライシング |
|
|
398
|
+
| project-manager | プロジェクトマネジメント |
|
|
399
|
+
| quality-management | 品質管理・TQM |
|
|
400
|
+
| recruitment-consultant | 採用・リクルーティング |
|
|
401
|
+
| risk-management | リスク管理・ERM |
|
|
402
|
+
| sales-consultant | 営業戦略・セールス |
|
|
403
|
+
| startup-advisor | スタートアップ・起業支援 |
|
|
404
|
+
| strategy-consultant | 経営戦略・競争戦略 |
|
|
405
|
+
| succession-planning | 事業承継・後継者育成 |
|
|
406
|
+
| supply-chain-consultant | サプライチェーン・調達 |
|
|
407
|
+
| sustainability-consultant | サステナビリティ・ESG |
|
|
408
|
+
| talent-development | 人材開発・タレントマネジメント |
|
|
409
|
+
| tax-strategy | 税務戦略・タックスプランニング |
|
|
410
|
+
| turnaround-consultant | 事業再生・ターンアラウンド |
|
|
411
|
+
| venture-capital | ベンチャー投資・VC |
|
|
412
|
+
|
|
413
|
+
</details>
|
|
414
|
+
|
|
415
|
+
### ビジネス課題解決ワークフロー
|
|
416
|
+
|
|
417
|
+
```typescript
|
|
418
|
+
async function solveBusinessProblem(userInput: string, context?: any) {
|
|
419
|
+
// 1. ビジネス課題領域を判定
|
|
420
|
+
const domain = detectBusinessDomain(userInput);
|
|
421
|
+
|
|
422
|
+
// 2. 課題領域に応じたKOTODAMA4Bizテンプレートを取得
|
|
423
|
+
const templateUrl = getKotodamaTemplate(domain);
|
|
424
|
+
|
|
425
|
+
// 3. テンプレートのフレームワークに基づいて情報収集
|
|
426
|
+
const scraper = new WebScraper();
|
|
427
|
+
const template = await scraper.scrape(templateUrl);
|
|
428
|
+
|
|
429
|
+
// 4. ユーザーの課題に対してフレームワークを適用
|
|
430
|
+
// (テンプレートの「フェーズ」に従って対話を進める)
|
|
431
|
+
|
|
432
|
+
// 5. KATASHIROの情報収集・分析機能で補完
|
|
433
|
+
const searchClient = new WebSearchClient();
|
|
434
|
+
const results = await searchClient.search(userInput, { maxResults: 10 });
|
|
435
|
+
|
|
436
|
+
// 6. 専門家視点でのレポート生成
|
|
437
|
+
const reportGen = new ReportGenerator();
|
|
438
|
+
return reportGen.generate({
|
|
439
|
+
title: `${domain} 分析レポート`,
|
|
440
|
+
sections: [
|
|
441
|
+
{ heading: 'エグゼクティブサマリー', content: summary },
|
|
442
|
+
{ heading: '現状分析', content: analysis },
|
|
443
|
+
{ heading: '推奨アクション', content: recommendations },
|
|
444
|
+
],
|
|
445
|
+
format: 'markdown',
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
function detectBusinessDomain(input: string): string {
|
|
450
|
+
const domains = {
|
|
451
|
+
'strategy': ['戦略', '成長', '競争', 'M&A', '買収'],
|
|
452
|
+
'dx': ['DX', 'デジタル', 'IT', 'システム'],
|
|
453
|
+
'data': ['データ', 'AI', '分析', '機械学習'],
|
|
454
|
+
'finance': ['財務', '予算', '資金', '投資'],
|
|
455
|
+
'marketing': ['マーケティング', 'ブランド', '広告', '集客'],
|
|
456
|
+
'hr': ['人事', '採用', '組織', '人材'],
|
|
457
|
+
'operations': ['業務', 'オペレーション', '効率', 'コスト'],
|
|
458
|
+
'risk': ['リスク', '危機', 'コンプライアンス'],
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
for (const [domain, keywords] of Object.entries(domains)) {
|
|
462
|
+
if (keywords.some(k => input.includes(k))) return domain;
|
|
463
|
+
}
|
|
464
|
+
return 'strategy'; // デフォルト
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
function getKotodamaTemplate(domain: string): string {
|
|
468
|
+
const templates: Record<string, string> = {
|
|
469
|
+
'strategy': 'https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/strategy-consultant.md',
|
|
470
|
+
'dx': 'https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/dx-consultant.md',
|
|
471
|
+
'data': 'https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/data-strategist.md',
|
|
472
|
+
'finance': 'https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/cfo-advisor.md',
|
|
473
|
+
'marketing': 'https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/marketing-strategist.md',
|
|
474
|
+
'hr': 'https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/hr-strategist.md',
|
|
475
|
+
'operations': 'https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/operations-consultant.md',
|
|
476
|
+
'risk': 'https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/risk-management.md',
|
|
477
|
+
};
|
|
478
|
+
return templates[domain] || templates['strategy'];
|
|
479
|
+
}
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
---
|
|
483
|
+
|
|
338
484
|
## 📦 インストール
|
|
339
485
|
|
|
340
486
|
```bash
|
|
@@ -347,10 +493,11 @@ npm install @nahisaho/katashiro
|
|
|
347
493
|
|
|
348
494
|
- **npm**: https://www.npmjs.com/package/@nahisaho/katashiro
|
|
349
495
|
- **GitHub**: https://github.com/nahisaho/katashiro
|
|
496
|
+
- **KOTODAMA4Biz**: https://github.com/nahisaho/KOTODAMA4Biz
|
|
350
497
|
|
|
351
498
|
---
|
|
352
499
|
|
|
353
500
|
**Project**: KATASHIRO
|
|
354
501
|
**npm**: @nahisaho/katashiro
|
|
355
502
|
**Last Updated**: 2026-01-10
|
|
356
|
-
**Version**: 0.1.
|
|
503
|
+
**Version**: 0.1.6
|
package/CLAUDE.md
CHANGED
|
@@ -244,6 +244,77 @@ async function compare(itemA: string, itemB: string) {
|
|
|
244
244
|
|
|
245
245
|
---
|
|
246
246
|
|
|
247
|
+
## 🎭 KOTODAMA4Biz ビジネス課題解決
|
|
248
|
+
|
|
249
|
+
**ビジネス課題**が入力された場合、[KOTODAMA4Biz](https://github.com/nahisaho/KOTODAMA4Biz)のプロンプトテンプレートを参照してください。
|
|
250
|
+
|
|
251
|
+
### ビジネス課題の判定
|
|
252
|
+
|
|
253
|
+
| ユーザーの言葉 | 課題領域 | 参照テンプレート |
|
|
254
|
+
|---------------|---------|-----------------|
|
|
255
|
+
| 「戦略を考えて」「成長戦略」「競争優位」 | 経営戦略 | [strategy-consultant.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/strategy-consultant.md) |
|
|
256
|
+
| 「DXを進めたい」「IT戦略」「システム刷新」 | DX | [dx-consultant.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/dx-consultant.md) |
|
|
257
|
+
| 「データ活用」「AI導入」「分析基盤」 | データ | [data-strategist.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/data-strategist.md) |
|
|
258
|
+
| 「財務分析」「予算」「資金調達」 | 財務 | [cfo-advisor.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/cfo-advisor.md) |
|
|
259
|
+
| 「マーケティング」「ブランディング」「集客」 | マーケ | [marketing-strategist.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/marketing-strategist.md) |
|
|
260
|
+
| 「人事」「採用」「組織改革」「人材育成」 | HR | [hr-strategist.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/hr-strategist.md) |
|
|
261
|
+
| 「業務改善」「効率化」「コスト削減」 | オペレーション | [operations-consultant.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/operations-consultant.md) |
|
|
262
|
+
| 「リスク」「危機管理」「コンプライアンス」 | リスク | [risk-management.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/risk-management.md) |
|
|
263
|
+
| 「営業」「セールス」「商談」 | 営業 | [sales-consultant.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/sales-consultant.md) |
|
|
264
|
+
| 「新規事業」「スタートアップ」「起業」 | 新規事業 | [startup-advisor.md](https://raw.githubusercontent.com/nahisaho/KOTODAMA4Biz/main/templates/claude/startup-advisor.md) |
|
|
265
|
+
|
|
266
|
+
### テンプレートの使い方
|
|
267
|
+
|
|
268
|
+
1. **ビジネス課題領域を判定** → 上記テーブルからテンプレートを選択
|
|
269
|
+
2. **テンプレートのフレームワークを参照** → 専門家視点で分析
|
|
270
|
+
3. **KATASHIROで情報収集・分析** → WebSearchClient, TextAnalyzerを活用
|
|
271
|
+
4. **フレームワークに基づいたレポート生成** → ReportGenerator
|
|
272
|
+
|
|
273
|
+
### ビジネス課題解決テンプレート
|
|
274
|
+
|
|
275
|
+
```typescript
|
|
276
|
+
// ユーザー: 「〇〇業界で新規事業を考えたい」
|
|
277
|
+
import { WebSearchClient, WebScraper, TextAnalyzer, ReportGenerator, isOk } from '@nahisaho/katashiro';
|
|
278
|
+
|
|
279
|
+
async function solveBusinessProblem(domain: string, question: string) {
|
|
280
|
+
// 1. 市場調査
|
|
281
|
+
const search = new WebSearchClient();
|
|
282
|
+
const results = await search.search(`${domain} ${question}`, { maxResults: 10 });
|
|
283
|
+
|
|
284
|
+
// 2. 情報収集
|
|
285
|
+
const scraper = new WebScraper();
|
|
286
|
+
const contents: string[] = [];
|
|
287
|
+
for (const r of results.slice(0, 5)) {
|
|
288
|
+
const page = await scraper.scrape(r.url);
|
|
289
|
+
if (isOk(page)) contents.push(page.value.content);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// 3. 分析
|
|
293
|
+
const analyzer = new TextAnalyzer();
|
|
294
|
+
const analysis = await analyzer.analyze(contents.join('\n\n'));
|
|
295
|
+
|
|
296
|
+
// 4. KOTODAMA4Bizフレームワーク適用(例: 戦略コンサルタント視点)
|
|
297
|
+
// - 5フォース分析
|
|
298
|
+
// - SWOT分析
|
|
299
|
+
// - アンゾフマトリクス
|
|
300
|
+
|
|
301
|
+
// 5. レポート生成
|
|
302
|
+
const reportGen = new ReportGenerator();
|
|
303
|
+
return reportGen.generate({
|
|
304
|
+
title: `${domain} ビジネス分析レポート`,
|
|
305
|
+
sections: [
|
|
306
|
+
{ heading: 'エグゼクティブサマリー', content: '(分析結果の要約)' },
|
|
307
|
+
{ heading: '市場環境', content: '(PEST/5フォース分析)' },
|
|
308
|
+
{ heading: 'キーワード・トレンド', content: analysis.keywords.join(', ') },
|
|
309
|
+
{ heading: '戦略オプション', content: '(推奨アクション)' },
|
|
310
|
+
],
|
|
311
|
+
format: 'markdown',
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
247
318
|
## ⚡ クイックスタート
|
|
248
319
|
|
|
249
320
|
```bash
|
|
@@ -269,10 +340,11 @@ const {
|
|
|
269
340
|
|
|
270
341
|
- **npm**: https://www.npmjs.com/package/@nahisaho/katashiro
|
|
271
342
|
- **GitHub**: https://github.com/nahisaho/katashiro
|
|
343
|
+
- **KOTODAMA4Biz**: https://github.com/nahisaho/KOTODAMA4Biz
|
|
272
344
|
|
|
273
345
|
---
|
|
274
346
|
|
|
275
347
|
**Project**: KATASHIRO
|
|
276
348
|
**npm**: @nahisaho/katashiro
|
|
277
349
|
**Last Updated**: 2026-01-10
|
|
278
|
-
**Version**: 0.1.
|
|
350
|
+
**Version**: 0.1.6
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nahisaho/katashiro",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "KATASHIRO - VS Code Agent Mode向け情報収集・分析・生成システム(オールインワンパッケージ)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -78,7 +78,8 @@
|
|
|
78
78
|
"@nahisaho/katashiro-analyzer": "^0.1.0",
|
|
79
79
|
"@nahisaho/katashiro-generator": "^0.1.0",
|
|
80
80
|
"@nahisaho/katashiro-knowledge": "^0.1.0",
|
|
81
|
-
"@nahisaho/katashiro-feedback": "^0.1.0"
|
|
81
|
+
"@nahisaho/katashiro-feedback": "^0.1.0",
|
|
82
|
+
"@nahisaho/katashiro-mcp-server": "^0.1.0"
|
|
82
83
|
},
|
|
83
84
|
"engines": {
|
|
84
85
|
"node": ">=20.0.0"
|