Database v1.0.0

mc-db-discovery

Systematic workflow to locate and verify the Mission Control SQLite database when path assumptions fail, and reconcile...

guillaumemaka 更新于 2026-05-21 1 浏览
下载 SKILL

技能说明

Systematic workflow to locate and verify the Mission Control SQLite database when path assumptions fail, and reconcile frontend/backend schema mismatches.

使用场景

- Step 1: When DB file not found at expected path, trace createDb() calls in server code to find the resolvedPath (defaults to ~/.mc/data/mission-control.db). - Step 2: Verify DB existence with: ls -la ~/.mc/data/mission-control.db - Step 3: Inspect schema with: sqlite3 ~/.mc/data/mission-control.db ".schema tasks" - Step 4: Check actual column names (e.g., 'state' vs 'status'); adjust frontend types or backend schema accordingly. - Step 5: Validate data inserted correctly: sqlite3 ~/.mc/data/mission-control.db "SE

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/mc-db-discovery
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 11 kB
SKILL.md text/markdown
---
name: mc-db-discovery
description: Systematic workflow to locate and verify the Mission Control SQLite database when path assumptions fail, and reconcile frontend/backend schema mismatches.
---

- Step 1: When DB file not found at expected path, trace createDb() calls in server code to find the resolvedPath (defaults to ~/.mc/data/mission-control.db).
- Step 2: Verify DB existence with: ls -la ~/.mc/data/mission-control.db
- Step 3: Inspect schema with: sqlite3 ~/.mc/data/mission-control.db ".schema tasks"
- Step 4: Check actual column names (e.g., 'state' vs 'status'); adjust frontend types or backend schema accordingly.
- Step 5: Validate data inserted correctly: sqlite3 ~/.mc/data/mission-control.db "SELECT * FROM tasks ORDER BY timestamp DESC LIMIT 5;"
- Pitfall: The frontend Task interface may use 'status' while the DB uses 'state'; always verify before debugging application logic.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。