brainstorming
Structured design dialogue that validates ideas before implementation begins.
db-importer
将 Grok 生成的 JSON 数据自动录入到 import_classifications.html 网页。
Full skill instructions
将 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 转换 → 数据库录入
Structured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs