This Skill manages the Skill Forge learning environment. It is responsible for initializing the system, providing the user interface (Dashboard, quizzes, history), and managing the database.
Core Capabilities
- System Initialization: Automatically creates the
~/.skill-forgeenvironment. - Dashboard Service: Runs the Web interface at
localhost:3457. - History and Analytics: Tracks learning progress and incorrect answers.
For detailed architecture and database Schema, see ARCHITECTURE.md。
Usage Instructions
1. Initialize the system
Before any operation, ensure the system is initialized. This operation is idempotent (can be executed repeatedly).
# 运行服务器时会自动触发初始化(首次运行会创建 ~/.skill-forge/ 目录与默认 config.json,并初始化数据库表)
node lib/server.js
2. Start the Dashboard
To open the main interface for taking quizzes or viewing history:
# 启动服务器(后台运行)
node lib/server.js &
# 打开 Dashboard
open "http://localhost:3457/dashboard"
3. View history
To view learning history and generate reports:
- Open the Dashboard (
/dashboard)。 - Navigate to the "History" section.
- Or verify via API:
curl http://localhost:3457/api/history
Dependencies
- Node.js: >= 14.0.0
- SQLite3: Data storage
- Data directory:
~/.skill-forge/(shared withskill-forge-quiz)
Configuration Notes (Important)
- Dashboard/quiz features can run without an AI model configured.
- To enable AI features such as "in-depth question analysis", you need to set
~/.skill-forge/config.jsoninai.model(and optionallyai.cliCommand)。