OpenParable
Skip to content
← Back to skills

Raindrop Router

Agent Building
raindrop-router

Raindrop Router is an Agent Skill for agent building published in the MoaidHathot/Neovim-Moaid repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Classification ruleset used by the raindrop-processor's `classify` step. It maps every raindrop to a (medium, intent) pair and selects which child processor orchestration owns the heavy lifting. Tags are sparse: usually zero or one user-provided intent tag; everything else is inferred.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/MoaidHathot/Neovim-Moaid/blob/HEAD/config/Orchestra/Workspace/orchestrations/Personal/RaindropWatcher/skills/raindrop-router/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/raindrop-router, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Raindrop Router

Your single job is to output one JSON object of the form:

{
  "medium": "video" | "article",
  "intent": "recipe" | "session" | "generic",
  "processor": "<child-orchestration-name>",
  "reasoning": "<one short sentence>"
}

Nothing else -- no markdown fences, no commentary, no greetings.

Step 1 -- Determine medium from the URL host (deterministic)

If the URL host matches any of these patterns, set medium = "video":

PatternNotes
youtube.com, youtu.be, m.youtube.comYouTube
vimeo.com, player.vimeo.comVimeo
*.sharepoint.com with /stream.aspx?SharePoint Stream
web.microsoftstream.comMicrosoft Stream
build.microsoft.com/sessions/Microsoft Build sessions
ignite.microsoft.com/sessions/Microsoft Ignite sessions
learn.microsoft.com/.../sessions/Microsoft Learn (recorded session players)
medius.studios.msMicrosoft Medius
events.microsoft.com/.../session/Microsoft Events
*.twitch.tv/videos/Twitch VOD
tiktok.com/@*/video/TikTok
URL ends in .mp4, .mov, .mkv, .webm, .m4vDirect media
local file path under file://Local media (treat as video)

Otherwise medium = "article".

Step 2 -- Determine intent (tags first, then URL, then inference)

Look at the raindrop's tags array first. The recognised intent tags (case-insensitive):

Tag(s)Maps to intent
recipe, cooking, foodrecipe
session, talk, lecture, keynote, conference, webinar, coursesession
(anything else, or no tag at all)(decide below)

If no intent tag matches, apply these heuristics:

  1. URL hints -- if the host is in {build.microsoft.com, ignite.microsoft.com, events.microsoft.com, learn.microsoft.com, web.microsoftstream.com} and the path mentions session/keynote/talk, set intent = "session".
  2. Title / note hints -- if the title or note contains words like "ingredients", "preheat", "tbsp", "tsp", a cooking measurement, or a recipe name pattern, set intent = "recipe".
  3. Title / note hints -- if the title or note contains words like "presentation slides", "conference", "session", "keynote", or a session code like "KEY01"/"BRK205", set intent = "session".
  4. Otherwise intent = "generic".

The user can always override inference by adding a single tag (e.g. recipe); a matching tag wins over heuristics.

Step 3 -- Choose the processor

The routing table is closed -- use exactly these orchestration names and no others:

mediumintentprocessor
videoreciperaindrop-video-recipe-processor
videosessionraindrop-video-session-processor
videogenericraindrop-video-generic-processor
articlereciperaindrop-article-recipe-processor
articlesessionraindrop-article-generic-processor
articlegenericraindrop-article-generic-processor

If the table maps a slot to the generic processor (article+session), still set intent = "session" in the output so the processor can use a session-flavored synth prompt section. The processor name is the source of truth; the intent field is descriptive.

Step 4 -- Write the reasoning

The reasoning field must explain in one short sentence why you chose this (medium, intent) pair, e.g.:

  • "URL host youtube.com -> video; tag 'recipe' present -> recipe."
  • "URL host example.com -> article; no intent tag; note mentions 'ingredients' -> recipe."
  • "URL host build.microsoft.com/sessions -> video; URL hint 'sessions' -> session."

Do not include hedging ("I think", "it seems"). Be terse.

Output format -- strict

Output ONLY a single JSON object on stdout. No code fences. No prose around it. Example valid output:

{"medium":"video","intent":"recipe","processor":"raindrop-video-recipe-processor","reasoning":"URL host youtube.com -> video; tag 'recipe' present -> recipe."}