Decisions cursor worker

From tensology/decisionsai · View interactive version

Decisions cursor worker is an AI agent skill from the GitHub repository tensology/decisionsai. Use when Cursor is running work that originated from DecisionsAI tickets, projects, workflows, or Initiative proposals.

How to use this skill

Skill file

DecisionsAI Cursor Worker

When a task comes from DecisionsAI:

  1. Treat the instruction as project-bound work. Use the provided ticket, board,

workflow, and project context as the source of truth.

  1. Keep edits scoped to the project folder and the explicit ticket outcome.
  2. If the prompt includes previous-step context or a result packet, use it as

state handed over by the DecisionsAI workflow. Do not discard it when

implementing or validating the current step.

  1. Respect the model selected by DecisionsAI/Cursor runtime. Do not claim a

different model was used unless the runtime explicitly reports it.

  1. For workflow steps, iterate inside the step before reporting complete:

do → test → self-assess (drift, security, UI sanity) → correct → report.

Use bundled skills when listed in the work packet. The human steers via the

orchestrator, not by programming sub-steps in Cursor.

Report status in this shape (one field per line) so the orchestrator records it:

Status: completed | failed | needs_input
Summary: ...
Tests run: ...
Drift check: ...
Security: ...
UI assessment: ...
Self-corrections: ...
Files changed: ...
Blockers: ...
  1. If a ticket lacks enough context, return Status: needs_input with the

specific missing decision instead of inventing requirements.

  1. If the task is part of a workflow, include any artifact paths or validation

output the next workflow step needs.

  1. If DecisionsAI asks for a practical implementation, make a real, inspectable

artifact rather than a plan-only response unless the instruction is explicitly

an audit or planning step.

  1. Prefer the Cursor IDE/chat surface as the primary execution context. The CLI

is fallback transport for automation or setup checks, not the canonical

conversation. Keep responses structured so DecisionsAI can checkpoint,

retry, escalate, continue, or close the workflow step.

This chat is the Cursor IDE thread for the open project. It is independent

of the Decisions Development section and whichever harness that section is

using. A follow-up from the user stays in this chat. Report every turn with

the reporter. It prints thread_id= and locks that Cursor chat id for the

project. Pass --thread-id with that value on later reports in this chat.

Pass --new-thread only when the user asked to start a new Cursor chat.

  1. When a task is too broad for one pass, complete the safest useful slice and

set Next step to the exact continuation DecisionsAI should queue.

  1. Apply the DecisionsAI harness prerequisites on every implementation task:
  1. For any normal Cursor IDE/chat prompt inside a DecisionsAI project folder,

even when it did not originate from a workflow packet, report the turn to

DecisionsAI as a project IDE session. At the start of the prompt, call:

python3 ~/.cursor/plugins/local/decisions-cursor/scripts/report_decisions_event.py --event-type cursor_prompt_submitted --status observed --input "<user prompt>" --thread-id "<cursor chat id when known>"

Before the final response, call:

python3 ~/.cursor/plugins/local/decisions-cursor/scripts/report_decisions_event.py --cwd "<project folder>" --turn-output "Status: completed\nSummary: <short result summary>" --thread-id "<cursor chat id when known>"

If both sides of a completed turn are only available at the end, call:

python3 ~/.cursor/plugins/local/decisions-cursor/scripts/report_decisions_event.py --cwd "<project folder>" --turn-input "<user prompt>" --turn-output "Status: completed\nSummary: <short result summary>"

For workflow work packets, the reporter auto-discovers the bridge URL and

execution session from the newest .tickets/ticket_*.md or .tickets/decisionsai_*.md file.

  1. If the prompt includes a [DECISIONS CURSOR CALLBACK] block, treat that as

live workflow metadata. Use the callback URL or reporter script in that

block to report meaningful events back to DecisionsAI:

submission connected to this DecisionsAI run, including follow-up prompts

typed directly in Cursor.

corrects the approach.

If there is no workflow callback block, still report project chat events

through the reporter script. It will use the current working directory to

create or resume a DecisionsAI project IDE session:

python3 ~/.cursor/plugins/local/decisions-cursor/scripts/report_decisions_event.py --event-type cursor_prompt_submitted --status observed --message "<what changed>"

  1. Do not keep steering only inside the Cursor conversation. If the human gives

new direction while a DecisionsAI workflow is running, report it so

DecisionsAI can store the event, update workflow memory, and let the

orchestrator decide whether to continue, validate, retry, or ask a follow-up.

  1. Before reporting an event, assume DecisionsAI may or may not be open. If

DecisionsAI is reachable and the callback or reporter succeeds, continue

normally. If DecisionsAI is not reachable, keep working without surfacing a

bridge error to the user unless the task explicitly asks for diagnostics.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.