Provides setup, recipes, and extension code for CrestApps Orchard Core Learning Assessments: quizzes, grading lists, gradebooks, grade scales, and Moodle import. Activates when users mention quizzes, attempts, grading, or gradebook in CrestApps Learning courses.
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 quizzes in CrestApps Learning courses. A quiz is a course item that owns a scored survey of the Surveys module: Surveys owns every question, question bank, pool, attempt, score, grade, accommodation and regrade (see orchardcore-surveys). Learning Assessments adds the course item, the course-level grading list, the gradebook and the Moodle import. Courses, enrollments and progress are covered by orchardcore-learning.
CrestApps.OrchardCore.Learning.Assessments (or CrestApps.OrchardCore.Cms.Core.Targets) in the web/startup project. Reference CrestApps.OrchardCore.Learning.Assessments.Abstractions (QuizPart, IGradingQueueSource) or ...Assessments.Core from your module, and CrestApps.OrchardCore.Learning.Core for LearningSurveyContexts.orchardcore-surveys).LearningSurveyResultObserver and ILearnerProgressService; to react to attempts, add an ISurveyResponseObserver and filter on the context kind LearningEnrollment.{ "steps": [...] }.sealed modifier, except View Models.| Feature | ID | Depends on |
|---|---|---|
| Learning Assessments | CrestApps.OrchardCore.Learning.Assessments | Learning, Surveys (CrestApps.OrchardCore.Surveys) |
| Learning Gradebook | CrestApps.OrchardCore.Learning.Assessments.Gradebook | Learning Assessments |
| Learning Moodle Import | CrestApps.OrchardCore.Learning.Assessments.MoodleImport | Learning Assessments, Learning SCORM Packages, Course Categories, Content Transfer (CrestApps.OrchardCore.ContentTransfer), OrchardCore.Media |
QTI files import into Surveys question banks through the Surveys QTI Question Import feature (CrestApps.OrchardCore.Surveys.Qti); Learning has no QTI feature of its own.
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.Surveys",
"CrestApps.OrchardCore.Learning.Assessments",
"CrestApps.OrchardCore.Learning.Assessments.Gradebook"
],
"disable": []
}
]
}
Quiz (QuizLesson) has TitlePart, HtmlBodyPart, CourseItemPart (kind Quiz, completion modes Passed, Submitted, Graded; the kind produces a grade and decides its own pass, CourseItemKindDescriptor.DecidesPass, so the item editor offers no pass mark) and QuizPart:
QuizPart | Meaning |
|---|---|
SurveyId | The survey the quiz owns. QuizPartHandler creates it from the Surveys Quiz template on the first save (kind Quiz, owner Content:{quiz id}, signed-in audience, no public web link). A copied quiz gets a copy of the original's survey (ILearningSurveyService.CopyOwnedSurveyAsync). |
GradingMethod | How a learner's attempts combine into the quiz grade: Highest, Average, First or Latest (editor label The quiz grade is). |
Everything else is the survey's: questions, pools drawing from question banks, time limit, pass mark, score bands, review options, immediate feedback, questions per page, attempt limit, delay and opening window. The quiz editor shows the survey's status, question count and published version, with Edit questions (the designer), Attempts and window (the survey's access page), Accommodations and Attempts. Learners can attempt the quiz once its survey is published.
The editor also sets an Access code and an Honor statement (QuizStartSettings, Learning.Assessments.Core). The access code is the password of the survey's default collector (kind LearningCourseItem), checked by Surveys with its limit of five wrong codes in fifteen minutes; the honor statement is the survey's statement (SurveyAccessSettings.Statement), accepted on the quiz panel before each attempt and kept as SurveyResponse.StatementAcceptedUtc. Both apply as soon as the quiz is saved, even as a draft, and a copied quiz keeps them (only the code's hash is copied).
{
"steps": [
{
"name": "Content",
"data": [
{
"ContentItemId": "4safetyquiz00000000000quiz",
"ContentType": "QuizLesson",
"DisplayText": "Safety check",
"Latest": true,
"Published": true,
"TitlePart": { "Title": "Safety check" },
"CourseItemPart": { "Kind": "Quiz", "CompletionMode": "Passed", "Gradable": true, "Weight": 1 },
"QuizPart": {
"SurveyId": "<id of the quiz survey, imported with the Surveys steps>",
"GradingMethod": "Highest"
},
"ContainedPart": { "ListContentItemId": "<course id>", "Order": 1 }
}
]
}
]
}
Quizzes move with the Content step; their surveys, versions and responses move with the Surveys recipe steps. An import keeps a SurveyId whose survey has not arrived yet (a deployment may run its content step first) instead of creating a blank survey.
An attempt is a Surveys SurveyResponse. The quiz panel (QuizPartLearnerDisplayDriver) posts to POST learning/quizzes/{quizId}/start; ILearningSurveyService.StartAsync (Learning.Core) starts or continues a response whose context is the learner's enrollment (LearningEnrollment:{enrollment id}) with CourseId, EnrollmentId and CourseItemId in its properties. The learner answers on the Surveys runner (/s/r/{response id}), which links back to the course. Attempt again and the attempts left come from ILearningSurveyService.CheckStartAsync, which runs the same access rules as the start (accommodations included); a response is shown with its score and a Review link only as the survey's review settings allow.
| Learning extension | Contract | Does |
|---|---|---|
LearningEnrollmentAccessRule | ISurveyAccessRule | Start, resume and complete only while the learner may open the item (enrolled, item published and released, access not ended), for a response of their own enrollment. A new quiz attempt needs an active enrollment; an attempt already started may still be finished. An unpublished quiz's survey refuses everyone. A timed attempt started with access may be submitted after access ended. |
LearningSurveyResultObserver | ISurveyResponseObserver | Records the course item result when a response is completed, graded, rescored, voided or deleted. A retention delete changes nobody's progress. |
QuizResultProvider | ILearningSurveyItemResultProvider | The quiz grade from QuizGradeCalculator (grading method over the enrollment's graded responses, voided ones left out); the pass from the survey's own rule, SurveyPassRule (score band, else pass mark; neither means no pass decision). |
LearningSurveyAccessProvider, LearningManagerSurveyAccessProvider, AssessmentsSurveyAccessProvider | ISurveyAccessProvider | Course staff manage their course items' surveys; site-wide Learning roles reach the surveys course items own, and no other survey. |
LearningSurveyGradingScope | ISurveyGradingScope | A course's Graders, Instructors and Assistants grade its quiz responses (latest item versions, so drafts stay gradable). |
AssessmentsScoreChangeCheck | ISurveyScoreChangeCheck | Changing a given score of a course item's survey (change score, score again, regrade versions, voiding or deleting a scored response) needs Override grades. |
LearningSurveyResponseFieldProvider | ISurveyResponseFieldProvider | Adds CourseId, CourseTitle and EnrollmentId to the Surveys SurveyResponses data set. |
Highest, Latest or First the quiz takes the chosen attempt's own Passed; Average is decided against the version of the latest graded attempt on the unrounded average. The result sets CourseItemResult.PassDecided; a graded quiz without a pass decision sets CompletedWithoutPassDecision, so When the learner passes completes it neither passed nor failed.CourseItemResult.CompletionOnly): no score reaches the gradebook and the item stays out of the course grade.StaffResultRecorder), so a late grade still reaches an expired enrollment, but does not complete it.Grading, regrades, accommodations, score history, workflow events, webhooks, notifications, the audit trail, item analysis reports and attempt data sets are those of Surveys (orchardcore-surveys); filter them by the context kind LearningEnrollment.
/Admin/learning/grading) lists the work waiting for a grader in the courses the person grades, oldest first, merged from every IGradingQueueSource (GradingQueue). Quiz responses come from QuizResponseGradingQueueSource (kind QuizResponse) and open the Surveys grading page; Learning Coursework adds its submissions. The grader's own work is never listed (GradingQueueQuery.GraderUserId). Anonymous survey attempts follow the Surveys small-group rule and show a keyed label instead of a name.GradingScope (Learning.Assessments.Core): Grade the work of every course grades every course; course Graders, Instructors and Assistants grade their course with Manage the courses you teach./Admin/learning/gradebook, Learning Gradebook) shows, for one course, each learner's item scores, category scores and course grade, as percentages or on a grade scale.CourseGradeCalculator (Learning.Core): only gradable items with weight above zero count; a missing score counts as zero, except an item whose result is completion only (CourseItemProgress.CompletionOnly), which is left out. Without categories the grade is the weighted mean of items; with CoursePart.GradeCategories (Id, Name, Weight, DropLowest) each category is the weighted mean of its items after dropping the lowest, and the course grade the weighted mean of categories; uncategorized items form No category. A grade is null only when nothing counts; when nothing in the course gives a grade (HasNoGradeSource), a minimum grade criterion is met without a check. ComputeBreakdown returns CourseGradeBreakdown.| Menu | Page | Permission |
|---|---|---|
| Learning > Grading | /Admin/learning/grading | GradeAssessments, else ManageOwnCourses |
| Learning > Gradebook | /Admin/learning/gradebook | ViewLearnerRecords, else ManageOwnCourses |
| Learning > Grade Scales | /Admin/learning/grade-scales | ManageGradeScales |
Question banks and the Surveys grading page are Surveys > Question Banks and Surveys > Grading; accommodations open from the quiz editor (orchardcore-surveys).
| Permission | Display name | Grants |
|---|---|---|
GradeAssessments | Grade the work of every course | The grading list for every course; grading and reading the responses of every survey a course item owns |
OverrideGrades | Override grades | Changing a graded coursework score or a given score of a course item's survey; voiding and deleting their scored responses |
ManageGradeScales | Manage grade scales | Creating and editing grade scales |
All three go to Administrator by default. ManageQuestionBanks and ViewQuestionBanks are Surveys permissions now; the Learning roles recipe grants the own-survey Surveys permissions (ManageOwnSurveys, PublishOwnSurveys, ViewOwnSurveyResponses, GradeOwnSurveyResponses, ManageOwnSurveyOverrides), never the site-wide ones. A site whose roles came from an earlier version of that recipe keeps the site-wide Surveys grants until an administrator removes them or runs the recipe again.
{
"steps": [
{
"name": "LearningGradeScales",
"GradeScales": [
{
"ItemId": "4lettergrades0000000000001",
"Name": "Letter grades",
"Bands": [
{ "MinPercent": 90, "Label": "A", "Passing": true },
{ "MinPercent": 80, "Label": "B", "Passing": true },
{ "MinPercent": 70, "Label": "C", "Passing": true },
{ "MinPercent": 0, "Label": "F", "Passing": false }
]
}
]
}
]
}
LearningGradeScales updates by ItemId; a scale without a name or bands is skipped. Deployment step Learning Grade Scales (category Learning). Both publish CrestApps Recipes schemas.Learning Moodle Import reads Moodle .mbz backups (zip or tar.gz) on the import page of the Course type: the course in its category, enrolment and completion, sections, SCORM packages, files, links, pages and labels, coursework, feedback surveys and choices, and quizzes whose owned survey gets the settings. Questions map onto the QTI item model (MoodleQuestionMapper) and through the Surveys QTI mapper into a Surveys question bank per Moodle question category; random slots become question pools. Details in Moodle import.
| Registration | Use it to |
|---|---|
services.AddGradingQueueSource<T>() | Put your own waiting work in Learning > Grading (IGradingQueueSource.ListWaitingAsync(GradingQueueQuery) returns GradingQueuePage of GradingQueueItem) |
services.AddSurveyResponseObserver<T>() | Hear quiz attempts (ISurveyResponseObserver), filtered on the LearningEnrollment context kind |
ILearningSurveyItemResultProvider | Turn the responses of a survey-owning course item kind into a CourseItemResult (Kind, Build) |
A source returns the count of its waiting work and its oldest items, at most query.Take, limited to query.CourseIds when it is not null, never the grader's own work. Your grading page records the score with ILearnerProgressService.RecordResultAsync.
public sealed record OralExam(string Id, string Number, string UserId, string CourseId, string CourseItemId, string CourseItemTitle, DateTime RecordedUtc);
public interface IOralExamStore
{
Task<(int Count, IReadOnlyList<OralExam> Items)> ListWaitingAsync(IReadOnlyCollection<string> courseIds, string excludedUserId, int take, CancellationToken cancellationToken);
}
public sealed class OralExamGradingQueueSource : IGradingQueueSource
{
private readonly IOralExamStore _store;
public OralExamGradingQueueSource(IOralExamStore store)
{
_store = store;
}
public async Task<GradingQueuePage> ListWaitingAsync(GradingQueueQuery query, CancellationToken cancellationToken = default)
{
// CourseIds is null for someone who grades every course; nobody grades their own work.
var (count, exams) = await _store.ListWaitingAsync(query.CourseIds, query.GraderUserId, query.Take, cancellationToken);
return new GradingQueuePage
{
Count = count,
Items = exams.Select(exam => new GradingQueueItem
{
Kind = "OralExam",
Id = exam.Id,
UserId = exam.UserId,
CourseId = exam.CourseId,
ItemId = exam.CourseItemId,
ItemTitle = exam.CourseItemTitle,
Reference = exam.Number,
Icon = "fa-solid fa-microphone",
SubmittedUtc = exam.RecordedUtc,
Area = "MyCompany.OralExams",
Controller = "OralExamGrading",
Action = "Grade",
RouteValues = { ["id"] = exam.Id },
}).ToList(),
};
}
}
// Startup: services.AddGradingQueueSource<OralExamGradingQueueSource>();
public sealed class QuizAttemptGradedObserver : ISurveyResponseObserver
{
private readonly ILogger _logger;
public QuizAttemptGradedObserver(ILogger<QuizAttemptGradedObserver> logger)
{
_logger = logger;
}
public Task GradedAsync(SurveyResponseEventContext context)
{
var response = context.Response;
// Course attempts carry the learner's enrollment as their context; every other survey's responses are skipped.
if (response is null || response.IsTest ||
context.Survey?.Kind != SurveyKinds.Quiz ||
response.Context is not { Kind: LearningSurveyContexts.EnrollmentKind } enrollment)
{
return Task.CompletedTask;
}
_logger.LogInformation("Attempt {Attempt} of enrollment {EnrollmentId} scored {Percent}% (passed: {Passed}).",
response.AttemptNumber, enrollment.Id, response.Percent, response.Passed);
return Task.CompletedTask;
}
}
// Startup: services.AddSurveyResponseObserver<QuizAttemptGradedObserver>();
Observers run after the change is saved; queue outside calls as deferred tasks and stay idempotent.
LearningEnrollmentAccessRule allows only the course item's collector through the enrollment.orchardcore-learning.Related skills: orchardcore-surveys (questions, banks, attempts, grading, accommodations, Surveys workflows, webhooks, reports and data sets), orchardcore-learning, orchardcore-learning-certifications, orchardcore-learning-standards, orchardcore-content-transfer.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchard-core, learning-management, quiz, gradebook, moodle-import
/crestapps-orchardcore:orchardcore-learning-assessmentsfrom 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./orchardcore-addressesSkill for the CrestApps Orchard Core Addresses module (CrestApps.OrchardCore.Addresses, Addresses.Countries, Addresses.GooglePlaces). Covers the immutable Address value shared by customers, checkout, orders, shipping and taxation, per-country address formats from Google address data with AddAddressesCore, IAddressFormatProvider and AddressFormat, IAddressValidator and AddressProblem, IAddressFormatter, the AddressEditor shape with IAddressEditorService and AddressEditorOptions, CreateAddressEditorAsync and CreateAddressDisplayAsync, ICountryService and managed Country content items, address suggestions through IAddressAutocompleteProvider, ContactInfo, NamedAddress and IShippingAddressBook, the Google Places provider with its protected API key, the address-autocomplete rate-limit group, and the ManageAddressSuggestions permission. Use it when requests mention Orchard Core addresses, international address formats, address validation, a country list, address autocomplete or Google Places./orchardcore-advanced-seoSkill for the CrestApps Orchard Core Advanced SEO module (CrestApps.OrchardCore.Seo), which publishes schema.org structured data as one JSON-LD graph per page and for NLWeb answers. Covers the Schema.org part (SchemaOrgPart, SchemaOrgPartSettings with SchemaType and property mappings from Content, Fixed, Editor or Liquid sources), the StructuredDataSettings site settings and their deployment step, the ManageAdvancedSeoSettings permission, Orchard Core SEO, Search, Products and Reviews integration, the getSchemaOrgOptions, configureContentTypeSchemaOrg and configureSiteStructuredData AI tools, describing pages in code with IPageStructuredData, the structured-data tag helper and the structured_data Liquid filter, and extending with IStructuredDataProvider, ContentPartStructuredDataProvider and SelfDescribingParts. Use this skill when requests mention schema.org, JSON-LD, structured data, rich results, Google required properties, product or article markup, or Advanced SEO in Orchard Core./orchardcore-agentic-commerceSkill for the CrestApps Orchard Core Agentic Commerce module (CrestApps.OrchardCore.AgenticCommerce), which lets AI agents such as Gemini and ChatGPT buy from the store with the Universal Commerce Protocol (UCP), the Agentic Commerce Protocol (ACP) and the AP2 mandates extension (preview). Covers every feature (UCP, account linking, catalog and cart, MCP and A2A bindings, ACP, Agent Product Feeds, AP2), the /.well-known/ucp and /.well-known/acp.json discovery documents, checkout session endpoints, agent platforms and their sign-in, AgenticCommerceSettings, store signing keys in Secrets, idempotency, payment handlers (Stripe shared payment tokens, Google Pay, test credentials), delegated 3-D Secure, embedded checkout, signed order updates, the AgentPlatforms recipe step, and extending with IAgentPaymentHandler, IUcpProfileContributor, IUcpCheckoutExtension and IAgentOrderPublisher. Use it when requests mention agentic commerce, selling through AI agents, UCP, ACP, AP2, agent checkout or agent product feeds./orchardcore-agreementsSkill for the CrestApps Orchard Core Agreements module (CrestApps.OrchardCore.Agreements), support and maintenance contracts with accounts. Covers the Agreement record with its SA- number, status, period and covered hours (a block or a monthly allowance with rounding), Content > Agreements, the account Service tab, the ManageAgreements and ViewAgreements permissions, the Agreements recipe and deployment step, module terms in Properties with IAgreementTermsValidator, IAgreementUsageProvider and IAgreementBalanceService, the hourly lifecycle task with IAgreementObserver, account manager notifications, and the Agreement Usage and Burn-down reports. Use this skill when requests mention service agreements, support contracts, prepaid or retainer hours, entitlements or agreement expiry. Strong matches include Agreement, AgreementHours, AgreementStatus, AgreementBalance, AgreementUsage, IAgreementManager, IAgreementObserver and TicketAgreementTerms.Other plugins' skills for the same job