跳到正文
Skillpedia
分析与电子表格48k · #5372

oneroster-csv-validator

它能做什么

这个智能体会在你把学生名册文件(CSV 格式)发送到 Clever、ClassLink 等系统之前,检查它们是否正确。它会确保所有信息都正确关联,并且格式符合 OneRoster 标准。

适用场景

  • ✓当 Clever 系统拒绝你的学生文件时。
  • ✓当你想检查学生和班级之间有没有关联错误时。
  • ✓在发送数据之前,确保不会出现问题。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/oneroster-csv-validator/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/oneroster-csv-validator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“帮我验证一下 OneRoster 学生文件。”

每周 5 个新技能,1 分钟读完。

工作原理

这个智能体会对比组成学生名册的多个 CSV 文件。它会检查学生、教师和班级的 ID 是否正确,以及文件是否符合 OneRoster 标准的规则。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

OneRoster CSV Validator: Strict 1EdTech Data Integrity & Pre-Flight Linter

Perform rigorous pre-flight validation on OneRoster v1.1 and v1.2 CSV roster bundles prior to SIS/Clever/ClassLink ingestion: audit foreign key referential integrity, eliminate orphan enrollments, enforce bulk vs delta partitioning, and sanitize encoding traps.

When to Use This Skill

Activate this skill when:

  • Validating or debugging student information system (SIS) roster export packages (.zip archives or CSV directories) for OneRoster v1.1 or v1.2 compliance.
  • The user asks: "Why is Clever rejecting our OneRoster zip file?", "Check for orphaned userSourcedIds in enrollments.csv", "Validate bulk vs delta mode in OneRoster CSVs", or "Sanitize UTF-8 BOM characters from school rosters".
  • Auditing relational integrity across manifest.csv, orgs.csv, users.csv, courses.csv, classes.csv, enrollments.csv, and academicSessions.csv.
  • Preparing automated pre-flight CI/CD pipelines to catch corrupted student or teacher records before nightly SIS sync runs.

Do NOT use this skill when:

  • Integrating OneRoster REST / OAuth 2.0 API endpoints (this skill focuses strictly on CSV table bindings).
  • Generating synthetic or fabricated student PII without authorization.
  • Working on generic non-standard CSV spreadsheets that do not follow 1EdTech specifications.

Core Mental Models & Non-Negotiable Rules

  1. The Manifest Root Authority Law:

    • manifest.csv MUST reside strictly at the root level of the ZIP archive (never nested inside a subfolder).
    • It MUST declare the exact specification version: oneroster.version,1.1 or oneroster.version,1.2.
    • It MUST list every single file present in the exchange. If a CSV file is present in the archive but omitted from manifest.csv, or listed in manifest.csv but missing from the zip, the package is rejected.
  2. The Strict Bulk vs Delta Partition:

    • One exchange bundle = strictly ONE operational mode.
    • Bulk Exchange Mode: Represents a complete master snapshot. In OneRoster 1.1, rows MUST NOT contain dateLastModified or status columns. In 1.2, all status fields MUST be active.
    • Delta Exchange Mode: Represents incremental changes. Every row MUST contain a valid ISO 8601 UTC timestamp (YYYY-MM-DDTHH:MM:SS.sssZ) in dateLastModified and a valid status (active or tobedeleted).
    • Mixing bulk and delta formats within the same archive is a fatal validation failure.
  3. The Foreign Key Referential Integrity Hierarchy:

    • Relational dependency chain: $$\mathbf{orgs.csv} \longleftarrow \mathbf{courses.csv} \longleftarrow \mathbf{classes.csv} \longleftarrow \mathbf{enrollments.csv} \longrightarrow \mathbf{users.csv}$$
    • Every schoolSourcedId in users.csv and classes.csv MUST resolve to an existing sourcedId in orgs.csv.
    • Every courseSourcedId in classes.csv MUST resolve to courses.csv.
    • Every userSourcedId and classSourcedId in enrollments.csv MUST resolve to active primary keys in users.csv and classes.csv.
    • Zero Orphan Tolerance: A single orphan link (e.g. enrolling a deleted student ID) invalidates the batch.
  4. Strict Role Enum Constraint Axioms:

    • In users.csv: role MUST strictly match the OneRoster enum:
      • v1.1: administrator, proctor, student, teacher.
      • v1.2: adds aide, guardian, parent, staff.
    • In enrollments.csv: role is strictly constrained to administrator, proctor, student, teacher. Custom vendor roles (substitute, dean) must be mapped to valid specification enums.
    • Primary sourcedId values MUST be case-sensitively unique strings (RFC 4122 UUID format strongly recommended).
  5. RFC 4180 CSV & UTF-8 BOM Sanitization:

    • Files MUST be encoded in UTF-8 without Byte Order Mark (BOM).
    • Microsoft Excel frequently prepends \xEF\xBB\xBF to CSV exports, corrupting the first column name (sourcedId $\neq$ sourcedId).
    • Fields containing commas, double-quotes, or newlines MUST be enclosed in double quotes ("). Literal quotes inside fields must be escaped as "".

Named Sins & Anti-Patterns (Что категорически ЗАПРЕЩЕНО)

Anti-Pattern Manifestation in CSV Packages Mandatory Production Counter-Rule
Nested Archive Packaging Zipping a parent folder (district_roster/manifest.csv). Manifest and CSVs MUST reside at the archive root (/manifest.csv).

…

常见问题

什么是 OneRoster 标准?

它是一种标准格式,用于在不同学校系统之间交换学生信息。

什么是“孤立文件”?

指的是那些没有正确关联到现有学生或班级的信息。

为什么文件需要是不带 BOM 的 UTF-8 编码?

这是一种文本编码标准,可以避免读取特殊字符时出错,并确保列名能被正确识别。

详情

作者的原始描述

Validates 1EdTech / IMS Global OneRoster v1.1 and v1.2 CSV roster sets: manifest integrity, bulk vs delta strictness, foreign key references, and encoding sanitization. Trigger phrases: oneroster csv validator, validate oneroster zip, clever roster error, oneroster sourcedid.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5372
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能