.agents/skills/crowdsourcing-task-review-workflow/SKILL.md
Understand and modify the full Madoc TS crowdsourcing contribution and review pipeline. Use when changing claim creation rules, crowdsourcing-task and crowdsourcing-review lifecycle behavior, reviewer assignment policy, or project settings that control submission/review flow in services/madoc-ts.
npx skillsauth add digirati-co-uk/madoc-platform crowdsourcing-task-review-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Provide a reliable map of how contribution tasks and review tasks are created, transitioned, and gated by project/template/site settings.
services/madoc-ts/src/gateway/tasks/crowdsourcing-task.tsservices/madoc-ts/src/gateway/tasks/crowdsourcing-review.tsservices/madoc-ts/src/routes/projects/create-resource-claim.tsservices/madoc-ts/src/routes/projects/update-resource-claim.tsservices/madoc-ts/src/routes/projects/assign-review.tsservices/madoc-ts/src/routes/projects/update-revision-task.tsservices/madoc-ts/src/utility/claim-utilities.tsservices/madoc-ts/src/extensions/capture-models/crowdsourcing-api.tsservices/madoc-ts/src/types/schemas/project-configuration.tsreferences/pipeline-and-settings.mdcrowdsourcing-task is created or reused and tied to a capture-model revision.status = 2), a crowdsourcing-review task is created/reused.crowdsourcing-task events: madoc-ts.status.-1, .2, .3, .4, plus assignment notifications.crowdsourcing-review events: madoc-ts.created, .assigned, .status.3.canUserClaimResource(...) + project settings + existing subtasks.claimGranularity and shadow.showCaptureModelOnManifest.assign-review.ts checks linked submission revisions for unresolved tabular markers (status = "flag") before assignment, and AutomaticReviewBot.ts also skips submissions with unresolved flags as a safety net. Tabular markers with status = "note" are informational and do not block assignment/auto-review.Treat these as first-class when debugging behavior:
claimGranularitymaxContributionsPerResourcerevisionApprovalsRequiredcontributionWarningTimerandomlyAssignReviewermanuallyAssignedRevieweradminsAreReviewersmodelPageOptions.preventContributionAfterRejectionmodelPageOptions.preventContributionAfterSubmissionmodelPageOptions.preventMultipleUserSubmissionsPerResourcemodelPageOptions.preventContributionAfterManifestUnassignallowSubmissionsWhenCanvasCompleteshadow.showCaptureModelOnManifestreviewOptions.allowMergingreviewOptions.enableAutoReviewSee references/pipeline-and-settings.md for each setting’s code path.
These appear in project-template types but are not currently enforced in the main runtime path:
ProjectTemplate.configuration.tasks.generateOnCreateProjectTemplate.configuration.tasks.generateOnNewContentProjectTemplate.hooks.onCreateReviewProjectTemplate.hooks.onAssignReviewDo not assume they affect runtime unless you add explicit call sites.
projectId, manifestId, canvasId, revisionId, status).prepareResourceClaim and createResourceClaim for structure creation and gating.crowdsourcing-task state (revisionId, reviewTask, userManifestTask).status.2, status.3, status.4, status.-1).assign-review.ts) and review actions (crowdsourcing-api.ts).use-canvas-user-tasks.ts and use-manifest-user-tasks.ts if behavior looks inconsistent with backend.crowdsourcing-manifest-task, crowdsourcing-canvas-task) with user contribution tasks (crowdsourcing-task).canUserClaimResource and modelPageOptions restrictions.claimGranularity = manifest) when diagnosing canvas claim issues.revisionId and verify policy behavior.status=2) and verify review task create/reuse behavior.tools
Work on Madoc TS shared utility helpers (JWT, metadata, errors, IIIF helpers, auth helpers). Use when changing core utility functions or shared helpers in services/madoc-ts.
development
Work on Madoc TS shared type definitions and schema contracts. Use when updating TypeScript types, JSON schema shapes, or cross-layer data contracts in services/madoc-ts.
tools
Understand and extend Madoc TS task automation, including bots and task-related extensions. Use when adding task automation, bot behavior, or task metadata resolution in services/madoc-ts.
development
Work on Madoc TS site SSR pipeline, HTML template injection, and site render data wiring. Use when changing site SSR behavior, template tokens, or site SSR data wiring in services/madoc-ts.