← Về thư mục
📄 / / root / .hermes / skills / research / tourism-research-pipeline / SKILL.md

name: tourism-research-pipeline description: Orchestrate static tourism policy research pipelines with NotebookLM, Kanban phases, cron handoffs, Telegram reporting, and bilingual deliverable control.


Tourism Research Pipeline

Use this skill for static multi-phase tourism policy research pipelines that compare countries or regions, especially when the workflow is driven by cron jobs, Kanban phases, and NotebookLM-backed retrieval.

When to use

Core workflow

Project Base Path

Frame-level constants (apply to all phases)

File output rule (applies to all phases that write deliverables)

When a phase writes a deliverable file (Phase 2, 4, 5):

  1. Write the file normally in the Kanban workspace (happens automatically)
  2. COPY the file to the project Master Reports directory: bash mkdir -p /opt/ai-os/products/ceo/content/research/tourism_benchmarking/master_reports/ cp {workspace_path}/{filename} /opt/ai-os/products/ceo/content/research/tourism_benchmarking/master_reports/{filename}
  3. workspace_path: read from task metadata (column workspace_path)
  4. filename: the deliverable name (e.g. Vietnam_tourism_policy.md)
  5. Verify the copy succeeded before sending Telegram notification
  6. Never skip the copy step — writing only to the workspace makes the file invisible to the user

Phase 1: Scoping & Data Sync

[PHASE 1] Đối chiếu 10 nguồn tài liệu mới với 7 trụ cột chiến lược. Phân tích xem tài liệu đề cập đến khía cạnh nào trong 7 trụ cột, đánh giá mức độ bao phủ dữ liệu, phát hiện nội dung chính sách có mâu thuẫn hay lệch pha với mục tiêu nghiên cứu gốc không. `` - **Progress tracking:** Đọcprocessed_sources_{country}.json(e.g.processed_sources_vn.json) để xác định 10 nguồn kế tiếp. Lấy 10 source ID chưa có trongprocessed_idstừ danh sách nguồn trên NotebookLM. Lưu 10 ID này vàolast_batch. Nếu chưa có file, tạo mới và lấy 10 source đầu tiên. - **Sync Logic:** Format của progress file:`. - Telegram: Research start (Dùng Topic thread đúng).

Phase 2: RAG Analysis & Deep Finding

[PHASE 2] Khai thác chuyên sâu 10 nguồn thuộc last_batch qua RAG. Thực hiện Policy Coherence Test: đánh giá sự tương thích giữa số lượng mục tiêu chính sách đề ra với nguồn lực thực thi được phân bổ (flag quá tải chương trình nghị sự). Đúc kết findings định lượng lẫn định tính. `` - **Scope control:** Chỉ query đúng 10 source ID từlast_batchtrong progress file. Dùngnlm notebook query --source-idsvới đúng 10 ID đó. Không query toàn bộ notebook. Ghi kết quả phân tích vào file master với tiêu đề phân biệt theoloop_count`. - Telegram: Task 2 findings + funnel link.

Phase 3: Critique (CRITICAL — must use research-critism skill)

[PHASE 3] BẮT BUỘC SỬ DỤNG SKILL: research/research-critism. Đóng vai phản biện độc lập (Methodology Reviewer & Devil's Advocate). Áp dụng quy tắc Anti Sycophancy (tấn công ít nhất 2 luận điểm chính của Phase 2, không đồng thuận dễ dãi). Kiểm tra Hypothesis Discipline và đặt Counter argument cho các luận điểm về "dàn trải chính sách". Chỉ ra điểm cần R&D làm rõ hoặc bổ sung nguồn đối chứng. Trả kết quả bằng Template phê bình (Mức A/B/C). `` - **HANDOFF RULE (critical):** Sau khi hoàn thành critique, GHI critique findings vào comment của task này. KHÔNG block pipeline — set status thànhdone, sau đó chuyển Task 4 (Synthesis) từtodoready` và ghi comment với handoff context. Task 4 sẽ đọc comment critique để điều chỉnh synthesis. Chỉ block pipeline nếu board trống hoặc Task N+1 không tồn tại. - Telegram: Critique summary & update needs.

Phase 4: Synthesis & Reporting

[PHASE 4] ĐỌC COMMENT của Phase 3 (Critique) để biết các điểm phản biện. Tổng hợp dữ liệu từ các phase trước có tính đến ý kiến phê bình, điều chỉnh lập luận nếu critique hợp lý. Biên soạn theo cấu trúc Claim → Evidence → Inference → Citation (APA 7). Trả lời trực tiếp Thesis: chính sách đang tập trung hay bị phân mảnh? Làm rõ ưu tiên cốt lõi vs thứ cấp. ``` - Pre-loop note: Đây là handoff point cho vòng nghiên cứu kế tiếp. - Telegram: Update summary + funnel link (Synthesis Report) + Index.

Phase 5: Master Update & QA Gate

[PHASE 5] Đóng vai tổng biên tập kiểm soát chất lượng cuối cùng. Kiểm tra APA 7 cho toàn bộ in-text citations & References list; không để sót dấu gạch nối trong văn xuôi tiếng Việt. Cập nhật index.md cho các hướng nghiên cứu kế tiếp. `` - **Progress update:** Gộplast_batchvàoprocessed_ids, tăngloop_count, clearlast_batch`. Ghi lại file. Điều này đảm bảo vòng sau Phase 1 sẽ lấy 10 nguồn mới tiếp theo. - Telegram: Link file + handoff note + funnel link to index.

Cron prompt structure (rules for writing the cron prompt itself)

The cron prompt must contain these exact sections in order:

1. FRAMEWORK CORE

Apply to all phases — thesis, source of truth, style, output format.

2. PROGRESS TRACKING

Schema, persistence behavior, batching rule (10 sources per loop).

3. PIPELINE PHASES

Each phase entry must contain: - Assignee, personality (if applicable), output path - Task body to write: Raw markdown block with [CONTEXT] (thesis, pillars, matrix) + [PHASE] (specific task) — this text goes literally into the Kanban task body so the spawned agent has full context without reading external files. - HANDOFF RULE (Phase 3 only): block self but advance Phase 4 regardless. - Telegram link template: complete with the exact Funnel URL.

4. EXECUTION RULES

Infrastructure troubleshooting rules

Telegram reporting rules

Kanban / orchestration rules

Infrastructure troubleshooting rules

Pitfalls