@nahisaho/shikigami 1.40.0 โ†’ 1.42.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.
Files changed (3) hide show
  1. package/AGENTS.md +118 -20
  2. package/CHANGELOG.md +35 -0
  3. package/package.json +1 -1
package/AGENTS.md CHANGED
@@ -18,6 +18,11 @@
18
18
  - Do NOT read files, search, or analyze before project setup
19
19
  - Do NOT skip to "investigating" the topic
20
20
 
21
+ 3. After Phase 0, you MUST execute Phase 1 (Prompt Optimization):
22
+ - Display 6-element structured prompt
23
+ - WAIT for user approval
24
+ - Do NOT start search until user approves
25
+
21
26
  VIOLATION = WORKFLOW FAILURE
22
27
  ```
23
28
 
@@ -27,7 +32,7 @@ VIOLATION = WORKFLOW FAILURE
27
32
 
28
33
  | Item | Value |
29
34
  |------|-------|
30
- | Version | 1.40.0 |
35
+ | Version | 1.42.0 |
31
36
  | Agent Skills | 4 |
32
37
  | MCP Tools | 11 |
33
38
  | Frameworks | 53 |
@@ -141,14 +146,53 @@ FORBIDDEN: Web search, using search tools, or gathering information before proje
141
146
 
142
147
  ### Prohibition 3: save_research Required After search/visit
143
148
 
149
+ **๐Ÿšจ๐Ÿšจ๐Ÿšจ EVERY search/visit MUST be followed by save_research ๐Ÿšจ๐Ÿšจ๐Ÿšจ**
150
+
144
151
  ```
145
152
  WHEN: Executed search or visit MCP tool
146
- DO: IMMEDIATELY call save_research MCP tool (within the same response)
147
- EXAMPLE:
148
- 1. search(query: "AI market trends")
149
- 2. save_research(content: <search results>, source: "search", query: "AI market trends")
150
- FORBIDDEN: Proceeding to next process without saving
151
- CONSEQUENCE: Research data will be lost if not saved
153
+ DO: IMMEDIATELY call save_research MCP tool (within the SAME response, not later)
154
+
155
+ MANDATORY PATTERN - NO EXCEPTIONS:
156
+ search(...) โ†’ save_research(...) โ†’ next action
157
+ visit(...) โ†’ save_research(...) โ†’ next action
158
+
159
+ EXAMPLE 1 (Search):
160
+ 1. search(query: ["AIๅธ‚ๅ ดๅ‹•ๅ‘", "AI market trends"])
161
+ 2. save_research(
162
+ content: "<ๆคœ็ดข็ตๆžœใฎๅ…จๆ–‡ใ‚’ใ“ใ“ใซ>",
163
+ source: "search",
164
+ query: "AIๅธ‚ๅ ดๅ‹•ๅ‘"
165
+ )
166
+
167
+ EXAMPLE 2 (Visit):
168
+ 1. visit(url: "https://example.com/article")
169
+ 2. save_research(
170
+ content: "<ใƒšใƒผใ‚ธๅ†…ๅฎนใฎๅ…จๆ–‡ใ‚’ใ“ใ“ใซ>",
171
+ source: "visit",
172
+ query: "https://example.com/article"
173
+ )
174
+
175
+ FORBIDDEN (IMMEDIATE VIOLATION):
176
+ - Calling search then another search without save_research in between
177
+ - Calling visit then summarizing without save_research first
178
+ - Proceeding to analysis without saving raw data
179
+ - "I'll save it later" - NO! Save IMMEDIATELY
180
+
181
+ CONSEQUENCE: Research data will be lost, workflow corrupted, unable to cite sources
182
+ ```
183
+
184
+ **CORRECT FLOW**:
185
+ ```
186
+ Agent: search(query: [...])
187
+ โ†’ [็ตๆžœใ‚’ๅ—ไฟก]
188
+ โ†’ save_research(content: <ๅ…จ็ตๆžœ>, source: "search", query: <query>)
189
+ โ†’ "ๆคœ็ดข็ตๆžœใ‚’ไฟๅญ˜ใ—ใพใ—ใŸใ€‚ๆฌกใซ..."
190
+ ```
191
+
192
+ **INCORRECT FLOW (VIOLATION)**:
193
+ ```
194
+ Agent: search(query: [...])
195
+ โ†’ "ๆคœ็ดข็ตๆžœใซใ‚ˆใ‚‹ใจ..." โ† โŒ save_research ใ‚’ๅ‘ผใ‚“ใงใ„ใชใ„๏ผ
152
196
  ```
153
197
 
154
198
  ### Prohibition 4: save_prompt Required After User Input
@@ -312,13 +356,16 @@ DO:
312
356
  3. After user confirms name: Execute npx shikigami new <ProjectName>
313
357
  4. Execute set_project(autoDetect: true)
314
358
  5. Save original prompt with save_prompt(type: "original")
359
+ 6. IMMEDIATELY proceed to Phase 1 (Prompt Optimization) - DO NOT START SEARCH
315
360
  OUTPUT: projects/pjXXXXX_ProjectName_YYYYMMDD/
361
+ NEXT: Phase 1 (Prompt Optimization) - NOT Phase 3 (Search)
316
362
  ```
317
363
 
318
364
  **CRITICAL**:
319
- - If user indicates project is already created โ†’ skip to set_project and proceed
365
+ - If user indicates project is already created โ†’ skip to set_project and proceed to Phase 1
320
366
  - If new request โ†’ MUST ask user for project name confirmation
321
367
  - You MUST NOT skip to research phase without project activation
368
+ - After Phase 0, you MUST execute Phase 1 (NOT jump to search)
322
369
 
323
370
  **Naming Rules**:
324
371
  - Folder: `pjXXXXX_ProjectName_YYYYMMDD`
@@ -327,24 +374,56 @@ OUTPUT: projects/pjXXXXX_ProjectName_YYYYMMDD/
327
374
 
328
375
  ### Phase 1: Prompt Optimization
329
376
 
330
- **THIS PHASE IS MANDATORY - DO NOT SKIP**
377
+ ** THIS PHASE IS MANDATORY - NEVER SKIP **
331
378
 
332
379
  ```
333
- WHEN: Phase 0 completed
380
+ WHEN: Phase 0 completed (project created and set_project called)
334
381
  DO:
335
- 1. Analyze original prompt and structure into 6 elements (see table below)
336
- 2. Display structured prompt to user in formatted table
337
- 3. Save with save_prompt(type: "structured")
338
- 4. Ask user: "Please review and approve this structured prompt, or suggest modifications."
339
- 5. WAIT for user approval (do NOT proceed without approval)
340
- 6. Save approval/modifications with save_prompt(type: "approval" or "instruction")
382
+ 1. STOP - Do NOT start searching yet
383
+ 2. Analyze original prompt and structure into 6 elements (see table below)
384
+ 3. Display structured prompt to user in formatted table
385
+ 4. Save with save_prompt(type: "structured")
386
+ 5. Ask user: "Please review and approve this structured prompt, or suggest modifications."
387
+ 6. WAIT for user approval (do NOT proceed without approval)
388
+ 7. Save approval/modifications with save_prompt(type: "approval" or "instruction")
341
389
  OUTPUT: 6-element structured prompt (user approved)
390
+
391
+ FORBIDDEN (IMMEDIATE VIOLATION):
392
+ - Starting search/visit before user approves structured prompt
393
+ - Skipping directly to Phase 2 or Phase 3
394
+ - Proceeding without displaying the 6-element table
395
+ - Assuming user approval without explicit confirmation
342
396
  ```
343
397
 
344
398
  **CRITICAL**:
345
399
  - You MUST display the 6-element structured prompt
346
400
  - You MUST wait for user approval before proceeding to Phase 2
347
401
  - You MUST NOT skip prompt optimization
402
+ - You MUST NOT start web search until Phase 3
403
+
404
+ **CORRECT FLOW AFTER PROJECT CREATION**:
405
+ ```
406
+ Agent: "ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใ‚’ไฝœๆˆใ—ใพใ—ใŸใ€‚ๆฌกใซใƒ—ใƒญใƒณใƒ—ใƒˆใ‚’ๆง‹้€ ๅŒ–ใ—ใพใ™ใ€‚
407
+
408
+ | ่ฆ็ด  | ๅ†…ๅฎน |
409
+ |------|------|
410
+ | PURPOSE | ... |
411
+ | TARGET | ... |
412
+ | SCOPE | ... |
413
+ | TIMELINE | ... |
414
+ | CONSTRAINTS | ... |
415
+ | DELIVERABLES | ... |
416
+
417
+ ใ“ใฎๆง‹้€ ๅŒ–ใƒ—ใƒญใƒณใƒ—ใƒˆใ‚’็ขบ่ชใ—ใฆๆ‰ฟ่ชใ—ใฆใใ ใ•ใ„ใ€‚ไฟฎๆญฃใŒใ‚ใ‚ŒใฐใŠ็Ÿฅใ‚‰ใ›ใใ ใ•ใ„ใ€‚"
418
+
419
+ โ†’ WAIT for user response โ†
420
+ ```
421
+
422
+ **INCORRECT FLOW (VIOLATION)**:
423
+ ```
424
+ Agent: "ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใ‚’ไฝœๆˆใ—ใพใ—ใŸใ€‚ใงใฏ่ชฟๆŸปใ‚’้–‹ๅง‹ใ—ใพใ™..." โ† โŒ WRONG!
425
+ Agent: "ๆคœ็ดขใ—ใพใ™..." โ† โŒ WRONG! Phase 1 skipped!
426
+ ```
348
427
 
349
428
  **6 Elements**:
350
429
  | Element | Description |
@@ -383,15 +462,34 @@ DO:
383
462
  LOOP:
384
463
  1. Think: Analyze knowledge gaps
385
464
  2. Search: search(query: ["Japanese query", "English query"])
386
- 3. IMMEDIATELY: save_research(content: <search_results>, source: "search", query: <query>)
465
+ 3. ๐Ÿšจ IMMEDIATELY: save_research(content: <FULL search_results>, source: "search", query: <query>)
466
+ โ†’ Do NOT proceed without this step!
387
467
  4. Visit: visit(url: <target_url>)
388
- 5. IMMEDIATELY: save_research(content: <page_content>, source: "visit", query: <url>)
468
+ 5. ๐Ÿšจ IMMEDIATELY: save_research(content: <FULL page_content>, source: "visit", query: <url>)
469
+ โ†’ Do NOT proceed without this step!
389
470
  6. Report: Organize collected information
390
471
  7. Action: Determine if additional search needed
391
472
  OUTPUT: Collected information summary, source list (URL + credibility)
392
473
  ```
393
474
 
394
- **CRITICAL**: Steps 3 and 5 are MANDATORY. Never skip save_research calls.
475
+ **๐Ÿšจ CRITICAL - save_research is MANDATORY after EVERY search/visit**:
476
+ - Steps 3 and 5 are NOT optional
477
+ - You MUST call save_research IMMEDIATELY after each search/visit
478
+ - Do NOT analyze or summarize before saving raw data
479
+ - Do NOT call multiple searches without saving each one
480
+
481
+ **CORRECT Phase 3 Flow**:
482
+ ```
483
+ search(query: [...])
484
+ โ†“
485
+ save_research(content: <ๅ…จ็ตๆžœ>, source: "search", ...) โ† ๅฟ…้ ˆ๏ผ
486
+ โ†“
487
+ visit(url: ...)
488
+ โ†“
489
+ save_research(content: <ๅ…จๅ†…ๅฎน>, source: "visit", ...) โ† ๅฟ…้ ˆ๏ผ
490
+ โ†“
491
+ [ๅˆ†ๆžใƒปๆฌกใฎใ‚ขใ‚ฏใ‚ทใƒงใƒณ]
492
+ ```
395
493
 
396
494
  **Search Rules**:
397
495
  - Parallel JP/EN search required: `["Japanese query", "English query"]`
@@ -675,4 +773,4 @@ DO: Auto-detect Shift_JIS/EUC-JP/ISO-2022-JP and convert to UTF-8
675
773
  ---
676
774
 
677
775
  **Last Updated**: 2026-01-28
678
- **Version**: 1.40.0
776
+ **Version**: 1.42.0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,41 @@ All notable changes to SHIKIGAMI will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.42.0] - 2026-01-28
9
+
10
+ ### Added
11
+
12
+ - **AGENTS.md: Enforce save_research after every search/visit**
13
+ - Prohibition 3: Added ๐Ÿšจ๐Ÿšจ๐Ÿšจ warning header
14
+ - Added MANDATORY PATTERN section with clear flow
15
+ - Added detailed EXAMPLE 1 (Search) and EXAMPLE 2 (Visit) with full parameters
16
+ - Added CORRECT/INCORRECT flow examples
17
+ - Added explicit prohibition against "I'll save it later"
18
+
19
+ - **AGENTS.md: Phase 3 save_research enforcement**
20
+ - Added ๐Ÿšจ markers to steps 3 and 5
21
+ - Added "Do NOT proceed without this step!" warnings
22
+ - Added CORRECT Phase 3 Flow diagram
23
+ - Expanded CRITICAL section with specific prohibitions
24
+
25
+ ## [1.41.0] - 2026-01-28
26
+
27
+ ### Added
28
+
29
+ - **AGENTS.md: Enforce Phase 1 (Prompt Optimization) execution**
30
+ - Added Phase 1 requirement to ABSOLUTE FIRST RULE section
31
+ - Added CORRECT/INCORRECT flow examples for Phase 1
32
+ - Added FORBIDDEN list for Phase 1 violations
33
+ - Phase 0 output now explicitly states "NEXT: Phase 1"
34
+
35
+ ### Changed
36
+
37
+ - **AGENTS.md: Stronger Phase 1 enforcement**
38
+ - Phase 1 header: "๐Ÿšจ๐Ÿšจ๐Ÿšจ THIS PHASE IS MANDATORY - NEVER SKIP ๐Ÿšจ๐Ÿšจ๐Ÿšจ"
39
+ - Added step "STOP - Do NOT start searching yet" as first action
40
+ - Explicit prohibition against starting search before user approval
41
+ - Phase 0 CRITICAL section now includes "After Phase 0, you MUST execute Phase 1"
42
+
8
43
  ## [1.40.0] - 2026-01-28
9
44
 
10
45
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nahisaho/shikigami",
3
- "version": "1.40.0",
3
+ "version": "1.42.0",
4
4
  "description": "GitHub Copilot Agent Skills for Deep Research & Consulting - AI-Powered Research Assistant with 50+ Consulting Frameworks",
5
5
  "keywords": [
6
6
  "github-copilot",