Do hubspot task
Fetch and complete a single HubSpot task via the HubSpot MCP. Use when the user wants to complete a HubSpot task, check what tasks are pending, or mark a task done. Triggers on: "HubSpot task", "do my task", "complete task", "mark task complete", "next task".From its SKILL.md
npx -y skills add DealDeploy/dd-plugin --skill do-hubspot-taskAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.6 KB, as published. Nobody here has run it
Do HubSpot Task
Fetch, process, and complete exactly one HubSpot task per invocation. NEVER process more than one task. If the user wants to complete multiple tasks, they must invoke this skill multiple times.
The user may specify which task to complete. If no specific task is given, pick the oldest due task.
1. Identify Current User
Call get_user_details to get the authenticated user's ownerId. If this fails, stop.
2. Fetch Tasks
Build a search_crm_objects query for incomplete tasks owned by the current user that have the CLAUDE: prefix in the subject:
search_crm_objects(
objectType="tasks",
filterGroups=[
{
"filters": [
{ "propertyName": "hubspot_owner_id", "operator": "EQ", "value": "{owner_id}" },
{ "propertyName": "hs_task_status", "operator": "NEQ", "value": "COMPLETED" },
{ "propertyName": "hs_timestamp", "operator": "LTE", "value": "{end_of_today_unix_ms}" },
{ "propertyName": "hs_task_subject", "operator": "CONTAINS_TOKEN", "value": "CLAUDE:" }
]
}
],
properties=["hs_task_subject", "hs_task_body", "hs_task_status", "hs_task_type", "hs_timestamp", "hubspot_owner_id"]
)
CRITICAL: Only process tasks whose hs_task_subject starts with "CLAUDE: ". After fetching results, verify that each task's subject begins with "CLAUDE: " (case-sensitive). Discard any tasks that don't match. This is a hard requirement — never process a task without the "CLAUDE: " prefix, even if the user asks you to.
If the user specified additional filters (e.g. by subject keyword, task type, date range), add those as additional filters. If no tasks found, report that and stop.
3. Select One Task
Pick exactly one task to process:
- If the user specified which task, select that one.
- Otherwise, select the task with the oldest
hs_timestamp(earliest due).
Present the selected task to the user with its subject, type, due date, and body summary. Do NOT process any other tasks.
4. Resolve Associated Records
For the selected task, use search_crm_objects with an association filter to find the associated contact and/or company. Retrieve relevant properties like firstname, lastname, email, company, jobtitle, hs_linkedin_url.
5. Execute Task Action
Process the single task based on its subject and body content. The task body (hs_task_body) contains instructions — strip HTML tags and trim whitespace.
CRITICAL: You MUST actually execute the task, not just describe it. After reading the task instructions, identify every action required to fulfill them and invoke all relevant tools and skills to carry out those actions immediately. Do NOT simply summarize what needs to be done — DO IT.
Examples of what "execute" means:
- If the task says "send an email to the contact" → compose and send the email using the appropriate tool
- If the task says "update the contact's job title" → call
manage_crm_objectsto update the property - If the task says "create a deal for this company" → call
manage_crm_objectsto create the deal - If the task says "research this company" → use web search, then log findings as a note on the record
- If the task requires multiple actions → invoke ALL of them, not just the first one
If the task instructions are ambiguous or you genuinely cannot determine what action to take, THEN ask the user. But if the instructions are clear, execute them without asking for confirmation first.
REMEMBER TO INVOKE ANY SKILLS RELVANT TO THE TASK.
Never ask user for confirmation to execute the task — just do it. The user invoked this skill to get the task done, so get it done.
6. Mark Task Complete
After successfully processing the task:
manage_crm_objects(
confirmationStatus="CONFIRMATION_WAIVED_FOR_SESSION",
updateRequest={
"objects": [{
"objectType": "tasks",
"objectId": {task_id},
"properties": {
"hs_task_status": "COMPLETED"
}
}]
}
)
HubSpot update errors are non-blocking — log but don't stop.
Guardrails
- ONE task per invocation — never process more than one task, even if many are available
- Never execute tasks assigned to another user
- Verify
hubspot_owner_idmatches the current user before processing the task - Completed tasks won't be re-processed (idempotent)