Skip to content

[Skill System] Missing skills-index.json + Postgres 驗證不足 + 單一 skill 來源風險 #12

@arthur0824hao

Description

@arthur0824hao

問題描述

在本次 skill-system audit 中發現以下改善空間:

1. skills-index.json 缺失

  • Skill Router 依賴 skills-index.json 做 capability → skill 的映射
  • 目前該檔案不存在,Router 需要 fallback 到手動掃描
  • 影響:skill discovery 效率低、新 agent 無法快速了解可用能力

2. PostgreSQL 表未驗證

  • init.sql 已腳本化,但從未執行 memory_health_check() 驗證
  • insight_facets, soul_states, evolution_snapshots 等 typed tables 狀態不明
  • 影響:insight/evolution 功能可能在執行時才發現 table 不存在

3. 所有 skills 來自單一 GitHub repo

  • 14 個 skills 全部來自 arthur0824hao/skills
  • 如果該 repo 有問題(刪除、權限變更),所有 skills 同時失效
  • 建議:考慮 local snapshot 或備份機制

4. 缺少 Phase4 相關 skills

  • 目前所有 skills 都是通用型,沒有 Phase4 crypto-specific 的 skill
  • 隨著專案方向包含 ETH/BTC,可能需要 crypto data preprocessing skill

建議修復

  1. 執行 bash scripts/build-index.sh(在 skill-system-router 目錄)生成 index
  2. 執行 memory_health_check() 並修復缺失的 tables
  3. .agents/skills/ 建立 local backup 或 snapshot 策略
  4. 評估是否需要 Phase4-specific skill

相關檔案

  • .agents/skills/skill-system-router/scripts/build-index.sh
  • .agents/skills/skill-system-memory/init.sql
  • .agents/skills/skill-system-postgres/

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/readyReady for execution by coding sessiontype/infraInfrastructure improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions