Provides setup and extension code for the CrestApps Orchard Core Timeline module, which adds comments, internal notes, and events to any record. Covers TimelineEntry, visibility, field changes, files, and permissions.
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 and extension code for the CrestApps Timeline module. A timeline keeps comments, internal notes and events on any record (a RecordRef such as WorkOrder:4abc... or Content:4xyz...), newest first, with who wrote them, the field changes they record and their files. Ticket replies, notes and history, work order notes, order notes and the Notes tab of accounts and contacts all live in it.
CrestApps.OrchardCore.Timeline in the web/startup project. Tickets depends on it; enable CrestApps.OrchardCore.Attachments for files on entries.CrestApps.OrchardCore.Timeline.Abstractions (models, ITimelineService, handlers, access providers, TimelineConstants, TimelinePermissions, registration helpers) or CrestApps.OrchardCore.Timeline.Core (AddTimelineCore(), store, default services) from your module.ITimelineService checks nothing about the user. A page acting for a user asks ITimelineAccessService, which asks the ITimelineAccessProvider registered for the record kind. A kind without a provider is refused, so register one for each record kind you show.UpdateAsync only for metadata (properties, channel, external id).ImportAsync with TimelineEntryIds.FromSource(...) ids for history from elsewhere, so re-running adds nothing and nothing is announced.{ "steps": [...] }.sealed modifier, except View Models.| Feature | ID | Depends on |
|---|---|---|
| Timeline | CrestApps.OrchardCore.Timeline | CrestApps.OrchardCore.Resources (the composer's file drop input) |
Category Organization. Optional integrations turn on with other features: OrchardCore.Notifications (mentions), OrchardCore.Contents (content item provider and cleanup), CrestApps.OrchardCore.Attachments (files on entries), OrchardCore.Recipes.Core / OrchardCore.Deployment (steps), OrchardCore.DataPipelines.Core (data set).
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.Timeline",
"CrestApps.OrchardCore.Attachments"
],
"disable": []
}
]
}
The module adds no admin menu: each module shows a record's timeline on its own pages.
TimelineEntry (a CatalogItem in the Timeline collection, indexed by TimelineEntryIndex):
| Member | Meaning |
|---|---|
Subject | The record, RecordRef(Kind, Id) (CrestApps.OrchardCore.Records) |
Kind | Open string: Comment, Note, Event (TimelineConstants.Kinds) or your own (Tickets adds Reply) |
Visibility | Public (everyone who may read the record, customer included) or Internal |
Author | PartyRef; empty for the site. AuthorName only for an author no party source knows (a guest who wrote by e-mail) |
Body | Plain text, up to 20,000 characters (TimelineConstants.MaxBodyLength) |
Changes | TimelineFieldChange { Field, From, To } as people read them |
AttachmentIds | The entry's files (owner kind TimelineEntry) |
Channel | Where it came in or went out (Email, Portal); empty for the admin |
ExternalId | The id outside the site, such as an e-mail message id (indexed, up to 255 characters) |
CreatedUtc, RedactedUtc, RedactedBy | Stamps |
Record, kind, channel and author are limited to 64 characters (MaxIndexedLength). An entry needs a subject, a kind, and a body, change or attachment.
| Method | Does |
|---|---|
AddAsync(entry) | Checks, stamps, saves, runs ITimelineEntryHandler.AddingAsync (may refuse) and AddedAsync |
ImportAsync(entry) | Same checks, keeps a long body whole, tells no handler; an entry whose id is stored is left as it is |
UpdateAsync(entryId, change) | Changes only TimelineEntryChanges (properties, channel, external id), such as a delivery status; TimelineConstants.Properties.Notice shows a warning badge |
FindAsync(entryId), FindByExternalIdAsync(externalId) | Copies of stored entries |
ListAsync(TimelineQuery) | Pages { Subject, Kinds, IncludeInternal, Skip, Take = 50 } newest first; returns TimelinePage(Entries, Total) |
RedactAsync(entryId, by) | Empties the body, keeps the entry and its changes |
DeleteAllAsync(subject) | Removes a deleted record's timeline and tells each entry's handlers (so files go too) |
ScrubAsync(subject, scrub) | Rewrites bodies, author names and change values for a personal data erasure |
var result = await _timelineService.AddAsync(new TimelineEntry
{
Subject = new RecordRef("Inspection", inspection.Id),
Kind = TimelineConstants.Kinds.Event,
Visibility = TimelineVisibility.Internal,
Author = new PartyRef(PartyKinds.User, userId),
Changes = [new TimelineFieldChange { Field = "Status", From = "Scheduled", To = "Done" }],
});
if (!result.Succeeded)
{
// result.Errors says why.
}
ITimelineFileService.ListAsync(TimelineFileQuery { Subjects, InternalSubjects, Skip, Take }) pages the files of one or more records newest first from TimelineAttachmentIndex, internal entries' files only for InternalSubjects, never those of redacted entries.
| Provider | Covers |
|---|---|
ContentItemTimelineAccess (with OrchardCore.Contents) | Record kind Content. Staff (internal entries) are people who may edit the item and every item of its type; public entries only on types opted in with services.AllowPublicTimelineEntries("Project"). Anonymous visitors read nothing. |
| Tickets, Work Orders, Orders | Their own providers for Ticket, WorkOrder and order records |
ITimelineAccessService.GetVisibleAsync(user, subjects, visibility) checks many records with one call per kind; override ITimelineAccessProvider.GetVisibleAsync with one query for a large store.
| Permission | Display name | Default role |
|---|---|---|
RedactTimelineEntries | Redact timeline entries | Administrator |
Redacting also needs the right to read the entry.
@await Component.InvokeAsync("Timeline", new { subject = $"Inspection:{Model.InspectionId}", title = T["Notes"].Value })
subject (required, Kind:Id), title, returnUrl, kinds (comma-separated kinds to show).Admin/timeline/add (route TimelineAdd); Redact asks through the confirm dialog, then posts to Admin/timeline/redact/{id} (TimelineRedact) and deletes the entry's files.Admin/timeline/entry/{id}?kinds= (TimelineEntry) opens the record at the page that shows the entry; each entry has the element id timeline-entry-{id}.TimelineOptions.ComposerKinds): Add note (internal Note) and Add comment (public Comment). Add a button for your kind with services.AddTimelineComposerKind(new TimelineComposerKind { ... }), or override the TimelineComposer shape (alternate TimelineComposer__{Kind}) and post to your own action.With OrchardCore.Notifications on, @username in an entry sends the TimelineMention notification type (Mentions) with a link to the record, unless the user may not read the entry. The notification doesn't carry the text. An e-mail address is not a mention.
| Task or step | Does |
|---|---|
Remove files no timeline entry kept (TimelineOrphanFilesBackgroundTask, hourly at minute 17) | Removes files of record kinds with a timeline access provider that no entry keeps, a day after upload |
Timeline.DeleteRecords resumable step | Deletes a content item's (and a ticket's) timeline when the item is removed for good, retried until done |
Timeline.IndexFiles resumable step | Indexed the files of existing entries when the files index shipped |
A file is stored before its entry; a module that attaches files to such records outside a timeline must keep them in an entry, or the sweeper removes them.
The TimelineEntries step (TimelineConstants.RecipeStepName) adds entries through ImportAsync: checked, stamped, nothing announced, an existing ItemId left as it is.
{
"steps": [
{
"name": "TimelineEntries",
"Entries": [
{
"ItemId": "4tl0000000000000000000000a",
"Subject": "WorkOrder:4abc0000000000000000000000",
"Kind": "Note",
"Visibility": "Internal",
"Author": { "Kind": "User", "Id": "4user000000000000000000000" },
"Body": "Customer asked for a morning visit.",
"CreatedUtc": "2026-11-02T14:30:00Z"
}
]
}
]
}
The Timeline entries deployment step (category Content) exports every entry of the record kinds in SubjectKinds (comma-separated, such as WorkOrder,Order), oldest first. With CrestApps Recipes on, both have schemas.
With OrchardCore.DataPipelines.Core on, the Timeline data source has the TimelineEntries data set (record, kind, visibility, channel, text, author, attachments and changes count), filtered 500 rows at a time through each kind's access provider; redacted text is empty.
| Seam | Register with |
|---|---|
ITimelineAccessProvider (SubjectKind, CanViewAsync, CanAddAsync, optional batched GetVisibleAsync) | services.AddTimelineAccessProvider<T>() |
ITimelineEntryHandler (AddingAsync with an error list, AddedAsync, RedactedAsync, UpdatedAsync, DeletedAsync) | services.AddTimelineEntryHandler<T>() |
| Public entries on a content type | services.AllowPublicTimelineEntries("TypeName") |
| Composer button | services.AddTimelineComposerKind(...) |
Access provider and entry handler examples are in references/timeline-extensions.md.
| Symptom | Check |
|---|---|
| The card renders nothing | No access provider for the record kind, or the user may not view the record. |
| Customers don't see comments on a content type | Public entries on content types need AllowPublicTimelineEntries. |
AddAsync refused | Missing subject or kind, empty entry, body over 20,000 characters, or kind/channel/author over 64 characters. |
| No file picker on the composer | CrestApps.OrchardCore.Attachments is not enabled. |
| Files vanished a day after upload | They weren't kept in a timeline entry of a kind with an access provider. |
| No mention notifications | OrchardCore.Notifications is off, or the user can't read the entry. |
| Re-running an import duplicated history | Give imported entries stable ids with TimelineEntryIds.FromSource(...) or a fixed ItemId. |
Related skills: orchardcore-attachments, orchardcore-tickets, orchardcore-work-orders, orchardcore-accounts, orchardcore-orders, orchardcore-omnichannel-management, orchardcore-notifications.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/crestapps-orchardcore:orchardcore-timelinefrom 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