CtrlK
BlogDocsLog inGet started
Tessl Logo

info-record

BD 情报采集数据库(SQLite):已采集内容去重、按日查询情报条目。

56

Quality

63%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./crews/main/skills/expert-bd/tools/info-record/SKILL.md
SKILL.md
Quality
Evals
Security

info-record — 情报记录数据库工具

在 Workspace db/info_record.db 中维护持久化 SQLite 数据库,供 Intel Gathering(商业情报采集)使用。

数据库位置

<Workspace 根>/db/info_record.db

所有命令通过 PATH wrapper info-record <子命令> 调用,不要拼接脚本路径。初始化(幂等,可重复执行):info-record init-db


表结构

intel_items(模式三:情报采集)

字段类型说明
idINTEGER PRIMARY KEY AUTOINCREMENT自增主键
sourceTEXT NOT NULL信源(URL 或 平台-账号)
source_typeTEXT NOT NULL信源类型(xhs/dy/ks/bilibili/fb/x/wb/wx-mp/web)
titleTEXT内容标题(如有)
authorTEXT作者/发布者(如有)
publish_dateTEXT发布日期(如有)
contentTEXT NOT NULL采集内容(按用户要求的采集信息)
created_atTEXT DEFAULT (strftime('%Y-%m-%d %H:%M:%S','now','localtime'))采集时间

命令

检查内容是否已采集

info-record check-content --source <信源URL或标识>

返回 JSON:{"exists": true/false}

记录采集内容

info-record record-content \
  --source <信源URL或标识> \
  --source-type <信源类型> \
  --title <标题> \
  --author <作者> \
  --publish-date <发布日期> \
  --content <采集内容>

返回 JSON:{"ok": true, "id": <记录ID>}{"ok": false, "error": "..."}

查询今日采集

info-record query-today

返回今日采集的所有记录(JSON 数组格式)。


使用规则

  1. 打开帖子/视频详情前,先用 check-content 判断该内容是否已记录;已记录则跳过。
  2. 每个内容采集完成后,立即用 record-content 将采集结果记录入库。
  3. 执行完毕后,用 query-today 读取当日所有采集信息,按与用户约定的交付形式生成交付物。
Repository
TeamWiseFlow/xiaobei
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.