All script paths are relative to this Skill directory.
Prerequisites: Requires being logged in (refer to the deepscan-login Skill).
Interaction Flow
Step 1: Get the scan task name
If the user has already provided a name in the conversation, use it directly; otherwise ask the user:
Please enter the name of the new scan task:
Step 2: Create the scan task
python scripts/create_task.py create "{扫码本名称}"
Example of a successful return:
{
"task_id": "019cb178-a26e-7594-b66f-0fdd827e1705",
"task_title": "我的新扫码本",
"description": "",
"record_count": 0,
"switched": false
}
Inform the user: Scan task "{task_title}" has been created successfully.
Step 3: Ask whether to switch
After creation is complete, ask the user:
Do you want to switch to the new scan task "{task_title}" and start using it now?
-
Yes → Execute the switch and clear the old batch:
python scripts/create_task.py create "{扫码本名称}" --switchAfter a successful switch, inform the user and note that they can start adding records or open a new batch.
-
No → Keep the current scan task unchanged, and inform the user that they can switch at any time via the deepscan-task Skill.
Optional: Attach a description
If the user provided description information:
python scripts/create_task.py create "{名称}" --description "{描述}"
Error Handling
- Not logged in: Guide the user to execute the deepscan-login Skill to complete login.
- Name is empty: Prompt the user that a scan task name must be provided.