一键导入
seed-db
Reset and re-seed slateflow.db with realistic test data for local dev and demos.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reset and re-seed slateflow.db with realistic test data for local dev and demos.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run deep browser UI tests against the admin panels (global and project-level) using MCP Playwright.
Run deep browser UI tests against the SlateFlow Kanban board using MCP Playwright — covers board load, card CRUD, DnD lane transitions, card modal tabs, task checklists, filters, and lane management.
Run interactive browser UI tests against the running SlateFlow dev server using MCP Playwright.
Create a GitHub issue from a bug or problem description found during testing.
Audit recent changes and verify that README.md, ROADMAP.md, and CLAUDE.md were all updated.
Keep the OpenAPI spec in sync with route changes by diffing spec against actual route definitions.
| name | seed-db |
| description | Reset and re-seed slateflow.db with realistic test data for local dev and demos. |
This skill resets the SQLite database and populates it with realistic test data: projects, sprints, epics, features, cards, and multiple users.
npm install already run)If the dev server is running (npm run dev), stop it first. The database file must not be locked.
# Kill any running npm dev processes
# On Windows: use Task Manager or Ctrl+C in the terminal
# On Linux/macOS: pkill -f "npm run dev"
rm -f server/slateflow.db
The seed script is located at .claude/skills/seed-db/seed.js. It will:
server/src/db/schema.sql to create all tablesadmin@flow.local (super_admin) and dev@flow.local (contributor)Run the seed script:
node .claude/skills/seed-db/seed.js
You should see output like:
✓ Database created at server/slateflow.db
✓ Schema initialized
✓ Default project, sprint, epic, feature inserted
✓ 2 sprints created
✓ 20 cards created
✓ 2 users created
Database seeded successfully!
Start the dev server:
npm run dev
Once running (http://localhost:5173), log in with:
admin@flow.localAdmin1234!You should see:
If anything is missing, the seed failed — check the seed script output and the database file path in .env.
If you want to preview what the seed script will insert:
node .claude/skills/seed-db/seed.js --dry-run
This prints the SQL statements without executing them.
| Problem | Solution |
|---|---|
ENOENT: no such file or directory, open 'server/slateflow.db' | The seed script ran successfully but the path is wrong. Check DATABASE_PATH in .env (defaults to server/slateflow.db). |
database is locked | The dev server is still running. Stop it with Ctrl+C and try again. |
| Cards don't appear on the board | Log in as admin@flow.local / Admin1234! (the seeded admin user). The board is project-scoped. |
Cannot find module 'better-sqlite3' | Run npm install in the root directory. |
To re-seed at any time:
rm -f server/slateflow.db
node .claude/skills/seed-db/seed.js
The script is idempotent — running it twice on a fresh database produces the same result.