Token导航 LogoToken导航TokenDH.com
待分类需要联网github未标认证来源可访问许可证需确认审计通过

xapi-specificationxapi 规范

Agent Skill

xapi-specification 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,415

周安装

211

GitHub Stars

公开资料未说明

下载量

2,284
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/tim80411/ai-agent-extension --skill 'xAPI Specification'

简介

xapi-specification 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 它主要面向开发者在协作流程中快速获取仓库上下文信息。
  • 适用于需要自动化处理代码审查和项目进度跟踪的场景。

SKILL.md

xAPI Specification Knowledge Base

Provide comprehensive guidance on xAPI (Experience API) specification for educational assessment and learning analytics.

Core Concepts

Statement Structure

An xAPI Statement follows the "Actor-Verb-Object" pattern with optional Result and Context:

{
  "actor": { },      // Who performed the action
  "verb": { },       // What action was performed
  "object": { },     // What was acted upon
  "result": { },     // Outcome of the action (optional)
  "context": { },    // Additional context (optional)
  "timestamp": "",   // When the action occurred
  "id": ""           // Unique statement identifier (UUID)
}

Required Fields

  1. Actor - Agent or Group performing the action
  2. Verb - Action taken (URI + display name)
  3. Object - Activity, Agent, or Statement Reference

Actor Types

Agent (single learner):

{
  "objectType": "Agent",
  "name": "Learner Name",
  "mbox": "mailto:learner@example.com"
}

Account-based identification (recommended for LMS):

{
  "objectType": "Agent",
  "account": {
    "homePage": "https://lms.example.com",
    "name": "user123"
  }
}

Verb Structure

Define verbs with URI identifier and display text:

{
  "id": "http://adlnet.gov/expapi/verbs/answered",
  "display": {
    "en-US": "answered"
  }
}

Consult references/verbs.md for the complete ADL and cmi5 verb registry.

Object (Activity) Structure

{
  "objectType": "Activity",
  "id": "https://example.com/activities/quiz-123",
  "definition": {
    "name": { "en-US": "Quiz on xAPI Basics" },
    "description": { "en-US": "A quiz testing knowledge of xAPI" },
    "type": "http://adlnet.gov/expapi/activities/assessment"
  }
}

Result Structure

Capture assessment outcomes:

{
  "score": {
    "scaled": 0.85,
    "raw": 85,
    "min": 0,
    "max": 100
  },
  "success": true,
  "completion": true,
  "response": "choice-a",
  "duration": "PT30S"
}

Duration format: ISO 8601 duration (PT = Period Time, e.g., PT1H30M = 1 hour 30 minutes)

Context Structure

Provide additional information about the learning experience:

{
  "registration": "uuid-for-attempt",
  "contextActivities": {
    "parent": [{ "id": "https://example.com/course-123" }],
    "grouping": [{ "id": "https://example.com/program-abc" }],
    "category": [{ "id": "https://w3id.org/xapi/cmi5/context/categories/cmi5" }]
  },
  "platform": "Example LMS",
  "language": "en-US"
}

Interaction Types for Assessments

xAPI supports these interaction types for quiz questions:

TypeDescriptionUse Case
true-falseBinary choiceYes/No, True/False questions
choiceMultiple choiceSingle or multiple selection
fill-inText inputShort answer questions
long-fill-inLong textEssay questions
matchingPair matchingMatch items from two lists
performanceTask stepsProcedural tasks
sequencingOrder itemsArrange in correct sequence
likertScale ratingSurvey/opinion questions
numericNumber inputMathematical answers

Consult references/interaction-types.md for detailed examples of each type.

Activity Types

Common activity types for educational contexts:

CategoryType URIUse Case
Assessmenthttp://adlnet.gov/expapi/activities/assessmentQuizzes, exams
Questionhttp://adlnet.gov/expapi/activities/cmi.interactionIndividual questions
Coursehttp://adlnet.gov/expapi/activities/courseCourse container
Modulehttp://adlnet.gov/expapi/activities/moduleCourse sections
Lessonhttp://adlnet.gov/expapi/activities/lessonIndividual lessons

Consult references/activity-types.md for the complete registry.

cmi5 Profile

cmi5 is a standardized xAPI profile for e-learning. Key requirements:

  1. Defined verbs: launched, initialized, completed, passed, failed, abandoned, waived, terminated
  2. Mandatory context: registration, sessionId, masteryScore
  3. Required extensions: sessionId, launchMode, launchURL

For cmi5-compliant statements, consult references/cmi5-profile.md.

Statement Generation Workflow

To generate a valid xAPI statement:

  1. Identify the Actor (learner/user information)
  2. Select appropriate Verb from ADL registry
  3. Define the Object (activity being tracked)
  4. Include Result for assessment outcomes
  5. Add Context for hierarchical relationships
  6. Generate UUID for statement ID
  7. Add timestamp in ISO 8601 format

Validation Checklist

Validate statements against these criteria:

Structural validation:

  • Actor has valid identifier (mbox, account, or openid)
  • Verb has id (URI) and display (language map)
  • Object has id and objectType

Vocabulary validation:

  • Verb URI matches ADL/cmi5 registry
  • Activity type URI is valid

cmi5 validation:

  • Context includes registration UUID
  • Context includes sessionId extension
  • Correct verb sequence (launched → initialized →... → terminated)

Interaction validation:

  • interactionType matches response format
  • correctResponsesPattern format matches interactionType
  • choices/scale/source/target arrays are valid for type

Additional Resources

Reference Files

Detailed specifications and registries:

  • references/verbs.md - Complete ADL and cmi5 verb registry
  • references/activity-types.md - Activity type URIs and usage
  • references/interaction-types.md - Detailed interaction type examples
  • references/cmi5-profile.md - cmi5 requirements and extensions

External Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.98%
按下载量换算822

Claude

29.96%
按下载量换算684

Cursor

17.92%
按下载量换算409

Gemini CLI

8.41%
按下载量换算192

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills