AgentSkillsCN

generate_question

为模拟器设计一道技术面试题

SKILL.md
--- frontmatter
name: generate_question
description: Generate a technical interview question for the simulator

Generate Question

This skill allows the agent to generate new interview questions conforming to the NBSim schema.

Usage

When the user asks to "create a new question" or "add a React problem", follow these steps:

  1. Identify Parameters:

    • Topic (e.g., React, Algorithms, TypeScript)
    • Difficulty (Easy, Medium, Hard)
  2. Generate JSON:

    • Produce a JSON object matching the Question interface.
    • Fields:
      • id: UUID (v4)
      • title: Short, punchy title.
      • topic: Matching parameter.
      • difficulty: Matching parameter.
      • description: Markdown problem statement.
      • starterCode: Boilerplate code.
      • testCases: Array of inputs/expected outputs.
  3. Output:

    • Present the JSON code block.
    • Ask if the user wants to save it to the questions/ (or sessions/) directory.