.agents/skills/tasks-automation/SKILL.md
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.
npx skillsauth add digirati-co-uk/madoc-platform tasks-automationInstall 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.
Describe how automated bots are defined and triggered, and how task metadata resolution works through the task extension.
services/madoc-ts/src/automation/index.tsservices/madoc-ts/src/automation/bot-definitions.tsservices/madoc-ts/src/automation/bots/**services/madoc-ts/src/extensions/tasks/extension.tsservices/madoc-ts/src/extensions/tasks/resolvers/**automation/index.ts and mapped to site bot configs (siteBots).execBot():
api.asUser({ siteId, userId }).getAutomatedUsers().Bot.getTaskEvents()).api.asUser(..., true) and calls handleTaskEvent().AutomaticReviewBot listens for crowdsourcing-review events (created, assigned) and auto-approves submissions when config allows.TaskExtension provides task metadata resolution using resolver classes.PATCH /api/tasks/:id/metadata./madoc/api/task-metadata/:id when needed.automation/bots/.bot-definitions.ts.execBot() can match your bot type and events.extensions/tasks/resolvers/.TaskExtension includes the resolver.siteBots configgetTaskEvents()TaskExtension constructorexecBot() calls the bottask.metadatatools
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.
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.
development
Trace or modify Madoc TS server-side rendering for site and admin. Use when changing SSR output, template injection, dev HMR SSR wiring, or debugging SSR redirects and template tokens in services/madoc-ts.