xiaohongshu
xiaohongshu
专门用于从文档生成结构化试题的智能体。分析内容属性(大纲型 vs 知识型),提取关键点,并生成 JSON 或 Markdown 格式的高质量试题。当用户要求"根据文件出题"、"创建测验"、"制作试卷"或"提取考题"时使用此技能。
Full skill instructions
本技能将引导你完成从源文档生成专业题库的全过程。
在开始执行任务前,先确定关键路径:
pwd (Linux/macOS) 或 Get-Location (Windows) 获取,作为所有相对路径的基准。Jutiku_Quiz_Expert 定位:
find /mnt/skills -ipath "*/Jutiku_Quiz_Expert/SKILL.md" 2>/dev/null | head -1/mnt/skills/user/Jutiku_Quiz_Expert/ 或使用 view /mnt/skills/ 查看目录结构$WORK_DIR/(用户上传的文件直接放在工作目录根部)$WORK_DIR/source/(存放 markitdown 转换后的 .md 文件)$WORK_DIR/quiz/(生成的题库文件,直接交付给用户)$SKILL_DIR/references/QUIZ_JSON.md路径结构示意:
$WORK_DIR/ # 当前工作目录
├── 2023年度报告.pdf # 用户源文件
├── source/ # 转换后的 markdown 文件
│ └── 2023年度报告.md
├── quiz/ # 输出目录(直接交付)
│ └── 2024-01-29_100000.json # 或 .md(根据用户指定)
└── temp/ # 存放其他临时处理文件
$SKILL_DIR/ # skill 所在目录
├── SKILL.md # skill 文件,即本文件
└── references/
├── QUIZ_JSON.md
└── QUIZ_MARKDOWN.md
确定工作目录:
pwd 获取当前工作目录,设为 $WORK_DIR定位 skill 目录:
SKILL_PATH=$(find /mnt/skills -ipath "*/Jutiku_Quiz_Expert/SKILL.md" 2>/dev/null | head -1)
SKILL_DIR=$(dirname "$SKILL_PATH")
/mnt/skills/user/Jutiku_Quiz_Expert/ 或使用 view /mnt/skills/ 查看目录结构 mkdir -p "$WORK_DIR/source" "$WORK_DIR/quiz"
定位源文件:在 $WORK_DIR/ 根目录下查找用户指定的文件。
view $WORK_DIR/ 列出可用文件。格式转换:
.md 格式(例如 .doc, .docx, .pdf):
python (或 python3) 和 pip。
sudo apt install python3 python3-pipbrew install pythonwinget install Python.Python.3 或访问 python.orgmarkitdown --version 检查是否已安装。pip install markitdown --break-system-packagesmarkitdown 命令行工具将文件转换为 Markdown 格式。markitdown "$WORK_DIR/{源文件名}" > "$WORK_DIR/source/{同文件名}.md".md 文件,复制到 $WORK_DIR/source/{文件名}.md 进行处理。读取规则文档:
$SKILL_DIR/references/QUIZ_JSON.md 了解 JSON Schema 规范$SKILL_DIR/references/QUIZ_MARKDOWN.md 了解 Markdown 模板规范读取与分块检查:
$WORK_DIR/source/ 中转换后的 .md 文件内容。##) 或三级标题 (###) 将文档切分为多个逻辑块 (Chunks)。确保切分点不破坏段落完整性。Batch_Mode,后续将对每个块独立生成并合并。Single_Mode。属性打分:分析文本结构和内容(若是分块模式,取前 30% 内容或摘要进行分析),判断其类型(分值 0.0 - 1.0):
策略选择:
根据选定的策略和输出格式生成题目,严格遵守对应规范文档中定义的生成规则与约束。
主要约束包括:
在生成题目之后,执行自我审查循环 (Self-Correction Loop),确保题目质量:
explanation 是否清晰解释了为什么选 A 而不选 B?qid, lev, point 等) 均已填充且类型正确。根据用户指定的格式(默认 JSON)在 $WORK_DIR/quiz/ 目录下生成文件。
$WORK_DIR/quiz/{YYYY-MM-DD_HHMMSS}.json$SKILL_DIR/references/QUIZ_JSON.md$WORK_DIR/quiz/{YYYY-MM-DD_HHMMSS}.md$SKILL_DIR/references/QUIZ_MARKDOWN.mdpresent_files 工具将生成的文件直接展示给用户。pwd 获取当前工作目录。view 查看目录和文件(跨平台统一接口)。bash_tool 执行命令(在 Linux 容器中运行,支持标准 bash 语法)。create_file 保存最终输出文件。present_files 交付文件给用户。"根据
2023年度报告.pdf生成 20 道题目"
执行流程:
view $SKILL_DIR/references/QUIZ_JSON.md$WORK_DIR/ 找到 2023年度报告.pdfmarkitdown "$WORK_DIR/2023年度报告.pdf" > "$WORK_DIR/source/2023年度报告.md"$WORK_DIR/quiz/2024-01-29_100000.jsonpresent_files 展示文件给用户"根据
Python入门.docx生成 15 道题目,输出为 markdown 格式"
执行流程:
view $SKILL_DIR/references/QUIZ_MARKDOWN.mdPython入门.docx$WORK_DIR/quiz/2024-01-29_100000.mdxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience