| name | sentinel-import |
| description | Import Dev Sentinel experiences into localdocs/learn.sentinel.md. Use when the user wants to bring gotchas, failure lessons, or struggle experiences captured by Dev Sentinel into the project's local knowledge base. Triggers: "sentinel ๊ฐ์ ธ์", "sentinel import", "gotcha ์ ๋ฆฌ", "๊ฒฝํ ๊ฐ์ ธ์", "sentinel์์ ๋ฐฐ์ด ๊ฒ", "์คํจ ๊ฒฝํ ๊ฐ์ ธ์".
|
Sentinel Import
Import confirmed experiences from Dev Sentinel CLI into localdocs/learn.sentinel.md.
Workflow
1. Check Sentinel availability
which sentinel 2>/dev/null && sentinel status
If sentinel is not found, guide installation and stop:
Dev Sentinel CLI๊ฐ ์ค์น๋์ด ์์ง ์์์. ์ค์น ๋ฐฉ๋ฒ:
1. ์์ค ํด๋ก (์ด๋ฏธ ์๋ค๋ฉด ๊ฑด๋๋ฐ๊ธฐ):
git clone https://github.com/elbanic/dev-sentinel.git
2. ๋น๋ ๋ฐ ๊ธ๋ก๋ฒ ์ค์น:
cd dev-sentinel
npm install && npm link
3. Ollama ๋ชจ๋ธ ์ค๋น:
ollama pull qwen3:4b
ollama pull qwen3-embedding:0.6b
4. ์ด ํ๋ก์ ํธ์์ ์ด๊ธฐํ:
cd <project-root>
sentinel init
์ค์น ํ ๋ค์ "sentinel ๊ฐ์ ธ์"๋ฅผ ์คํํด์ฃผ์ธ์.
If sentinel is available but status shows 0 experiences and 0 drafts, inform user and stop.
2. Handle pending drafts first
sentinel review list
If pending drafts exist, ask user whether to confirm them first:
sentinel review confirm --all to confirm all
sentinel review confirm --recent to confirm latest only
- Skip to import only already-confirmed experiences
Confirming triggers LLM summarization (requires Ollama running).
3. List confirmed experiences
sentinel list
Show the list to the user. Ask which to import:
- All experiences
- Specific IDs
- Only new ones (not already in learn.sentinel.md)
4. Fetch detail for each selected experience
sentinel detail <id>
Capture these fields:
- Issue (frustrationSignature)
- Failed Approaches (what didn't work)
- Successful Approach (what solved it)
- Lessons (key takeaways)
5. Write to localdocs/learn.sentinel.md
Append each experience under a dated section. Follow this format:
## YYYY-MM-DD
### <Issue title โ concise, one line>
**ID:** `<sentinel-experience-id>`
**Failed approaches:**
- <approach 1>
- <approach 2>
**Solution:** <successful approach>
**Lessons:**
- <lesson 1>
- <lesson 2>
Rules:
- Create the file if it doesn't exist, with
# Sentinel Experiences as heading
- Check existing content to avoid duplicating IDs already imported
- Append new experiences under today's date section
- Keep original Sentinel ID for traceability
6. Report result
Imported N experience(s) to localdocs/learn.sentinel.md
Skipped M already-imported experience(s)