Implements e-learning standards (SCORM 1.2/2004, cmi5, IMS, xAPI 1.0.3 LRS, LTI 1.3) for CrestApps Orchard Core Learning. Use when working with learning packages, Tin Can, Articulate, or external tools in CrestApps Learning.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an Orchard Core expert. Generate accurate setup, recipes and extension code for the standards support of CrestApps Learning. Each standard adds a course item kind or an endpoint on top of orchardcore-learning; results reach the learner's progress through ILearnerProgressService.RecordResultAsync. None of these modules is certified by ADL or 1EdTech and none makes a conformance claim.
CrestApps.OrchardCore.Learning.Packages, ...Learning.Xapi and/or ...Learning.Lti (or CrestApps.OrchardCore.Cms.Core.Targets) in the web/startup project. Reference *.Abstractions / *.Core projects from your module.CourseItemPart.AllowSelfReported). LTI FullyGraded scores are server results.{ "steps": [...] }.sealed modifier, except View Models.| Feature | ID | Depends on |
|---|---|---|
| Learning SCORM Packages | CrestApps.OrchardCore.Learning.Packages.Scorm | Learning |
| Learning cmi5 Packages | CrestApps.OrchardCore.Learning.Packages.Cmi5 | Learning SCORM Packages, Learning Record Store |
| Learning Record Store | CrestApps.OrchardCore.Learning.Xapi | Learning, OrchardCore.OpenId, OrchardCore.OpenId.Management |
| External Tools | CrestApps.OrchardCore.Learning.Lti | Learning, OrchardCore.OpenId.Server, OrchardCore.OpenId.Validation, OrchardCore.Secrets |
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.Learning.Packages.Scorm",
"CrestApps.OrchardCore.Learning.Packages.Cmi5",
"CrestApps.OrchardCore.Learning.Xapi",
"CrestApps.OrchardCore.Learning.Lti"
],
"disable": []
}
]
}
A LearningPackage content item (TitlePart, HtmlBodyPart, LearningPackagePart, CourseItemPart, kind LearningPackage). Save the item, then Import a package in its editor (/Admin/learning/packages/{contentItemId}/upload, needs Import learning packages and edit rights). The import goes into a draft, so learners keep the current package until it is published.
| Completion mode | The item completes when |
|---|---|
PackageReported (default) | SCORM 1.2 lesson_status is completed or passed; SCORM 2004 evaluated completion_status is completed |
Passed | The package passes the learner (SCORM 2004 evaluated success_status); failed fails the item |
MinimumScore | The item's score reaches its pass mark, whatever the package reports |
MarkedDone | The learner marks it done |
Viewed | The learner opens it (set automatically for IMS content packages, which have no run-time API) |
LearningPackageOptions, configure in code): MaxUploadBytes 500 MB, MaxEntries 10,000, MaxExpandedBytes 1 GB. Every entry path is checked before anything is written; a DTD in the manifest is refused.completion_status.OpenInNewWindow, MaxAttempts and GradingMethod (Highest, Average, First, Latest).web.config are refused at import.App_Data, or a blob container with Protected Files - Azure Blob Storage, which a launch reads through a local copy, PackageArchiveCache), never in the media library.Multi-frame packages (Articulate Rise and Storyline 360 with scormdriver/scormdriver.js) fail in strict opaque-origin mode ("LMS Initialize Failed"). Give them a content host: a separate origin that serves only package files, set in the Package content host card of Settings > Learning Packages (ManageLearningPackageSettings). Add the host to the tenant's host names, give it TLS, and prefer another registrable domain so it never shares cookies with the site.
{
"steps": [
{
"name": "Settings",
"LearningPackageContentHostSettings": {
"BaseUrl": "https://example-packages.com"
}
}
]
}
On the content host every path except /learning/packages/run/{token}/{path} and /learning/packages/frame/{token} returns 404, and Cookie and Authorization headers are stripped. Run-time details, launch tokens, the SCORM data models and cmi5 are in SCORM and cmi5 runtime.
With Learning cmi5 Packages, the import page also takes a .zip with cmi5.xml at its root (AUs that are package files or absolute https URLs). Launches write LMS.LaunchData, the launched statement and an abandoned statement for a session left open, and hand the AU an endpoint, fetch URL (POST /learning/cmi5/fetch/<token>), registration, activityId and an account actor (never an e-mail). The LRS enforces cmi5 statement rules for that registration; satisfied moves the item's result into Learning. waived, Browse mode and AU sequencing are not built.
The LRS is at /learning/xapi/ (statements, activities/state, activities/profile, agents/profile, activities, agents, about). Requests need X-Experience-API-Version 1.0.x (2.0.0 is refused with 400).
Api scheme (Authorization Server and Token Validation on, client credentials flow), or HTTP Basic client id:client secret for a confidential application. Launch tokens use Basic with user name xapi-launch.limit up to 100). Limits (XapiOptions): 20 MB request, 500 statements of 256 KB, 16 MB attachments, 1 MB documents.LearningXapi: 1,200 requests a minute per address when Rate Limits is on.Details in xAPI Learning Record Store.
JWT access token format. Under Settings > OpenID Connect > Token Validation, choose this tenant.ManageExternalTools), whose editor groups its fields in the Tool, Client, Launch, Privacy and services and Platform details cards: client id, deployment id, login initiation URL, redirect URIs, target link URI, Deep Linking URL, JWKS URL or key set, custom parameters, privacy level (Anonymous, Name, NameAndEmail), roster and grade access, Can be launched. Saving creates or updates the tool's OpenID application (confidential, private_key_jwt).ExternalToolItem, ExternalToolItemPart: ToolId, TargetLinkUri, CustomParameters, ScoreMaximum, LineItemLabel), or let course staff use Content from external tools (Deep Linking) on the course editor.Platform endpoints to give the tool: issuer (site Base URL), /learning/lti/authorize, /learning/lti/jwks, /connect/token, /learning/lti/deep-linking/return. Launches open in a new window from GET /learning/lti/launch/{itemId}. A tool never gets a user id: sub is an HMAC of the user id with the tool's SubjectSalt (LtiSubjects.For). The platform key is the Learning.Lti.Platform key set in Secrets, rotated every 90 days. Details in LTI platform.
| Menu | Page | Permission |
|---|---|---|
| Settings > Learning Packages | Site settings group learning-packages | ManageLearningPackageSettings |
| Learning > Learning Statements | /Admin/learning/statements | ReadAllLearningStatements |
| Learning > External Tools | /Admin/learning/external-tools | ManageExternalTools |
| Package item editor | Import a package at /Admin/learning/packages/{contentItemId}/upload | ImportLearningPackages + edit the item |
| Permission | Display name | Implied by | Notes |
|---|---|---|---|
ImportLearningPackages | Import learning packages | ManageCourses | |
ManageLearningPackageSettings | Manage learning package settings | ||
WriteLearningStatements | Write learning statements to the Learning Record Store | For LRS clients | |
ReadAllLearningStatements | Read all learning statements of the Learning Record Store | Also opens the admin list | |
ReadOwnLearningStatements | Read the learning statements the client stored | ReadAllLearningStatements | |
ManageLearningDocuments | Manage the documents of the Learning Record Store | State and profile documents, activities and agents | |
ManageExternalTools | Manage external tools | Security critical |
{
"steps": [
{
"name": "LearningExternalTools",
"Tools": [
{
"ItemId": "4videotool0000000000000001",
"Name": "Video platform",
"ClientId": "video-platform",
"DeploymentId": "1",
"LoginInitiationUrl": "https://tool.example.com/lti/login",
"TargetLinkUri": "https://tool.example.com/lti/launch",
"DeepLinkingUrl": "https://tool.example.com/lti/deep-link",
"JwksUrl": "https://tool.example.com/.well-known/jwks.json",
"PrivacyLevel": "Name",
"AllowNamesAndRoles": true,
"AllowGrades": true,
"Enabled": true,
"SubjectSalt": "<salt exported from the source site>"
}
]
}
]
}
| Step | Carries | Deployment step |
|---|---|---|
LearningExternalTools | Tools by ItemId, including SubjectSalt so tool-side ids stay stable; the OpenID applications move with Orchard Core's OpenID application step | External Tools (category Learning) |
LearningPackageRuntimeStates | States (learner by UserName, EnrollmentId, PackageItemId, CourseId, Standard, SCORM 2004 Attempts and Cmi2004); imported only into an enrollment of the named person in the named course, with values valid for the standard | Learning Package Runtime States (Learner Records), opt-in, Export learner records |
LearningStatements | Statements of { Statement, Voided, ClientId, AuthorityKey }; keeps id, stored and authority, skips identical statements, reports different ones | Learning Statements (Learner Records), opt-in, Export learner records |
Package items export as content, but the package file does not: import it again on the target site.
| Area | What it adds |
|---|---|
| Workflows | Learning Statement Stored (filter by verbs; input StatementId, Verb, ObjectType, ObjectId, Registration, ActorAccountName, ActorAccountHomePage, ClientId, Voided, StoredUtc); External Score Received (filter by grading progress; input includes ToolId, CourseId, CourseItemId, LineItemId, UserId, ScoreGiven, ScoreMaximum, Percent, GradingProgress, RecordedInProgress) |
| Data source | Learning.Xapi with LearningStatements (no e-mail addresses), needs View learning reports |
| Personal data | Package runtime states, statements and documents of the person's agents, and LTI scores are exported and erased (states of completed enrollments are stripped, not deleted) |
| Registration | Use it to |
|---|---|
services.AddXapiStatementFilter<T>() | IXapiStatementFilter.OnWritingAsync(context, next): refuse a request (context.Reject(status, message)), hold a lock over the write, act on context.Stored |
services.AddXapiStatementObserver<T>() | IXapiStatementObserver.StoredAsync(records, credential) after statements are stored |
XapiStatementService.WriteTrustedAsync | Store statements your module writes with its own authority (no filters) |
XapiLaunchTokens, XapiDocumentStore | Make launch tokens for content you launch; read and write documents |
services.AddLtiScoreObserver<T>() | ILtiScoreObserver.ScoreReceivedAsync(LtiScoreReceivedContext) with tool, line item, score, percent |
IExternalToolManager, IExternalToolStore, ILtiPlatform, LtiSubjects.For | Manage tools, describe the platform, compute a tool's subject id |
public sealed class CompletedStatementObserver : IXapiStatementObserver
{
private readonly ILogger _logger;
public CompletedStatementObserver(ILogger<CompletedStatementObserver> logger)
{
_logger = logger;
}
public Task StoredAsync(IReadOnlyList<XapiStatementRecord> records, XapiCredential credential)
{
_logger.LogInformation("{Count} statements stored.", records.Count);
return Task.CompletedTask;
}
}
public sealed class LtiScoreLogger : ILtiScoreObserver
{
private readonly ILogger _logger;
public LtiScoreLogger(ILogger<LtiScoreLogger> logger)
{
_logger = logger;
}
public Task ScoreReceivedAsync(LtiScoreReceivedContext context)
{
_logger.LogInformation("Tool {Tool} posted {Percent}% (recorded in progress: {Recorded}).", context.Tool.Name, context.Percent, context.RecordedInProgress);
return Task.CompletedTask;
}
}
// Startup:
// services.AddXapiStatementObserver<CompletedStatementObserver>();
// services.AddLtiScoreObserver<LtiScoreLogger>();
StateTooLarge).SameSite=Lax cookie is not sent in a cross-site frame.FullyGraded scores on a line item bound to an External tool item count.Related skills: orchardcore-learning, orchardcore-learning-certifications, orchardcore-learning-assessments, orchardcore-openid, orchardcore-secrets, orchardcore-rate-limits.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/crestapps-orchardcore:orchardcore-learning-standardsfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job