with one click
db-importer
将 Grok 生成的 JSON 数据自动录入到 import_classifications.html 网页。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
将 Grok 生成的 JSON 数据自动录入到 import_classifications.html 网页。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
仿写/复刻单篇小红书笔记的写作风格:从“单个帖子样本”(标题+正文+标签+可选图片/排版特征)抽取风格指纹,并结合用户给定主题要点与可选知识库链接,生成同风格但不抄袭的新笔记(标题/正文/话题标签/可选配图建议)。当用户说“仿写这篇小红书/按这篇的风格写一篇/复刻口吻排版/基于这条笔记生成同风格内容”,或提供 info.json、detail.txt、链接、截图等作为风格样本时使用。
AI深度分析语音记录,揭示行为模式、认知偏见和战略盲点。不只是数据汇总,而是直击本质的战略洞察和否定性指导。提取可沉淀的核心原则和工作偏好,构建个人工作模式知识库。
A generic requirement/problem clarification workflow. Use when a user/client request is ambiguous, underspecified, or hard to execute/verify. The skill reframes the request, defines scope, constraints, inputs, and acceptance criteria, then outputs a concise one-page definition and a minimal question set to close gaps. Suitable for product/feature requests, content requests, ops tasks, research asks, and decision-making prompts.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
统一的推文内容获取技能。支持单条/批量推文提取,输出结构化数据。当用户提供 Twitter/X 链接并希望获取内容时自动触发。
从 Markdown 文件中自动提取并下载 Twitter 图片,生成可直接发布的版本。 当用户说"下载推文图片"、"提取Twitter图片"、"download twitter images"时触发。
| name | db-importer |
| description | 将 Grok 生成的 JSON 数据自动录入到 import_classifications.html 网页。 |
将 Grok 生成的 JSON 数据自动录入到 import_classifications.html 网页。
当你通过 Grok 生成结构化 JSON 后,需要将其录入到数据库时使用。
# 基础使用(默认文件)
node scripts/importer.js
# 指定 JSON 文件
node scripts/importer.js --input-file /Users/douba/twitter-output/grok-data-2026-01-13.json
# 断点续跑(从第 10 条开始)
node scripts/importer.js --input-file /Users/douba/twitter-output/grok-data-2026-01-13.json --start-index 10
| 参数 | 说明 | 默认值 | 示例 |
|---|---|---|---|
--input-file | JSON 文件路径 | - | /Users/douba/twitter-output/grok-data.json |
--start-index | 起始索引(断点续跑) | 0 | 10 |
--batch-size | 每批处理数量 | 10 | 5 |
--delay | 录入间隔(毫秒) | 1000 | 2000 |
--browser | 浏览器类型 | chromium | chromium |
🚀 数据库录入器启动...
📄 读取文件: /Users/douba/twitter-output/grok-data-2026-01-13.json
📊 总计: 10 条记录
📤 批次 1/2 (5 条)
✅ 第 1 条:https://x.com/user/status/1234567890
✅ 第 2 条:https://x.com/user/status/1234567891
✅ 第 3 条:https://x.com/user/status/1234567892
✅ 第 4 条:https://x.com/user/status/1234567893
✅ 第 5 条:https://x.com/user/status/1234567894
📤 批次 2/2 (5 条)
✅ 第 6 条:https://x.com/user/status/1234567895
✅ 第 7 条:https://x.com/user/status/1234567896
✅ 第 8 条:https://x.com/user/status/1234567897
✅ 第 9 条:https://x.com/user/status/1234567898
✅ 第 10 条:https://x.com/user/status/1234567899
✅ 录入完成
📁 进度文件: /Users/douba/twitter-output/importer-progress.json
JSON 解析
批量处理
断点续跑
--start-index 从指定位置继续自动录入
async function importToDatabase(browser, data, config) {
const page = await browser.newPage();
await page.goto('https://ttmouse.com/import_classifications.html', { waitUntil: 'domcontentloaded' });
// 定位输入框并粘贴
const input = page.locator('textarea, input[type="text"]');
const jsonString = JSON.stringify(data, null, 2);
await input.fill(jsonString);
// 等待处理
await page.waitForTimeout(config.delay);
await browser.close();
}
使用 twitter-workflow 技能可以串联整个流程:
采集 → 筛选 → Grok 转换 → 数据库录入