Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

backend-quiz后端测验

Agent Skill

backend-quiz 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

220

周安装

9

GitHub Stars

1

下载量

71
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:backend-quiz(后端测验)
来源仓库:https://github.com/itlearning/study-backend
仓库路径:skills/backend-quiz
安装命令:
npx skills add https://github.com/itlearning/study-backend --skill backend-quiz
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/itlearning/study-backend --skill backend-quiz

简介

backend-quiz 提供自适应 Kotlin/Spring 后端测验和编码练习,支持难度动态调整。

  • 适合学习者在交互式环境中掌握后端开发概念,采用苏格拉底问答法引导思考。
  • 通过 npx skills add 安装,首次使用需选择语言(中/英文)。
  • 涉及代码生成时会提示用户确认执行环境,防止误操作。
  • 建议配合实际项目练习巩固知识点,不依赖 AI 独立完成复杂任务。

SKILL.md

backend-quiz - Kotlin/Spring Backend Quiz

Adaptive quiz and coding exercises for Kotlin/Spring backend.

Instructions

Give a Kotlin/Spring backend quiz. Difficulty adjusts automatically based on the learner's level.

Step 0: Language Selection

Ask the user to choose a language at the start using AskUserQuestion:

questions:
  - question: "Which language do you prefer? / 어떤 언어로 진행할까요?"
    header: "Language"
    options:
      - label: "한국어"
        description: "한국어로 퀴즈를 풉니다"
      - label: "English"
        description: "Take the quiz in English"
    multiSelect: false

Use the selected language for all communication. Code and Kotlin/Spring keywords stay in English.

Step 1: Choose Quiz Topic

Ask in plain text:

Korean: "어떤 주제로 퀴즈를 풀까요? 주제를 알려주세요. 뭘 할지 모르겠으면 '추천해줘'라고 해주세요."

English: "What topic should the quiz cover? Tell me a topic, or say 'recommend' if you're not sure."

  • If the user enters a topic: start the quiz on that topic.
  • If the user says "recommend" / "추천해줘": check learning history (BackendLearningProgress in memory) and suggest 3-4 recently studied topics. Present choices via AskUserQuestion.

Step 2: Run the Quiz (5 questions)

5 questions total. Track difficulty internally from 1-5 (start at 3).

  • Correct answer -> difficulty +1
  • Wrong answer -> difficulty -1

Question Types

Each question uses one of the types below. Default to open-ended, mix in others as appropriate.

Type A: Predict Output (open-ended)

What does this code return? Explain your answer.

@Transactional
fun transfer(from: Long, to: Long, amount: Int) {
    val sender = accountRepository.findById(from).orElseThrow()
    val receiver = accountRepository.findById(to).orElseThrow()
    sender.balance -= amount
    receiver.balance += amount
}
// What happens if amount > sender.balance?

The user types their own answer.

Type B: Find the Bug (open-ended)

What's wrong with this code? Explain the issue.

@RestController
class UserController(private val userService: UserService) {
    @GetMapping("/users/{id}")
    fun getUser(@PathVariable id: Long): User {
        return userService.findById(id)  // returns null if not found
    }
}

The user types their own answer.

Type C: Concept Question (multiple-choice allowed)

What is the default propagation level of @Transactional in Spring?

Present 4 choices via AskUserQuestion. Multiple-choice is fine for concept checks.

Type D: Write Code (difficulty 4+ only)

Write a REST endpoint that meets these requirements:

- POST /api/users
- Accepts a JSON body with name (String) and email (String)
- Validates that email contains '@'
- Returns 201 Created with the saved user
- Returns 400 Bad Request if validation fails

The user writes their own code solution.

Feedback Rules

On correct answer:

Correct!

Key point: @Transactional with default propagation (REQUIRED) joins
the existing transaction or creates a new one if none exists.

On wrong answer: Give a short text explanation. Only use ASCII diagrams for things like request flows or architecture that are hard to explain in text alone.

Not quite. The answer is "REQUIRED".

REQUIRED means: if a transaction exists, join it; if not, create a new one.
This is the most common behavior and Spring's default.

Step 3: Results Summary

After all 5 questions, show a summary:

Quiz Results
- Topic: Spring Transaction Management
- Score: 3/5
- Final difficulty: 4/5
- Strengths: @Transactional basics, isolation levels
- Needs work: Propagation types, rollback rules
- Suggestion: Review "transaction propagation" with /backend-study

Rules

  1. Use the selected language - from Step 0. Only code and keywords in English.
  2. One question at a time - next question only after the current one is answered
  3. Open-ended by default - the user must think and write answers. Multiple-choice OK for concept checks.
  4. ASCII diagrams only when needed - default to text explanations
  5. Adaptive difficulty - adjust to the learner's level automatically
  6. Encouraging tone - wrong answers are learning opportunities
  7. No emojis - clean text only

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.31%
按下载量换算26

Claude

31.62%
按下载量换算22

Cursor

18.6%
按下载量换算13

Gemini CLI

10.48%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills