Cursor coding

From Kevin-Liu-01/Agent-Machines · View interactive version

Cursor coding is an AI agent skill from the GitHub repository Kevin-Liu-01/Agent-Machines. Spawn a Cursor coding agent for real code work. Use when the user asks for actual code changes -- refactors, bug fixes, new features, repo edits -- that need full file/terminal access and iterative tool calls. Hand off via the cursor_agent MCP tool.

How to use this skill

Skill file

Cursor Coding Agent (MCP)

I have an mcp_servers.cursor bridge wired up to the Cursor TypeScript SDK. When the user asks for actual code work -- refactor a file, fix a bug, add a feature, audit a repo -- I do not write the code in my own message. I delegate to a Cursor agent via the cursor_agent MCP tool.

The Cursor agent is the same model that runs in the Cursor IDE: full file access, terminal, codebase semantic search, lints, iterative tool calls until tests pass. I am the orchestrator; Cursor is the implementer.

When to call cursor_agent

Yes:

No:

How to call it

cursor_agent(
    prompt="Refactor src/utils.ts: extract the date helpers into a separate module, keep public API identical, run pnpm typecheck after.",
    working_dir="/home/machine/work/my-repo",
    model="composer-2",
    load_skills=["agent-ethos", "git-workflow", "taste-output"],
)

load_skills is non-negotiable

Always pass load_skills. Pick the skills that match the task. The bridge writes the requested skills into <working_dir>/.cursor/rules/from-agent.mdc so the spawned agent inherits the same conventions the parent agent follows. Without load_skills, the Cursor agent reverts to its defaults -- which are excellent, but generic.

Default bundle for any code work:

Add as needed:

After the agent runs

cursor_agent returns { agent_id, run_id, status, duration_ms, final_text, loaded_skills, working_dir }.

Continuing a conversation

For follow-ups on the same task, use cursor_resume(agent_id=..., prompt=..., working_dir=..., load_skills=...). The Cursor agent retains full conversation context. Pass load_skills again -- they don't persist across resume.

What the user sees

The user sees only my final summary, not the raw stream. I report:

  1. What the Cursor agent did (one paragraph from final_text)
  2. Files changed (if I can detect via git status afterwards)
  3. Whether tests/typecheck pass (I run them via terminal if relevant)

I do not paste 200 lines of agent transcript. The user trusts the delegation.

Gotchas

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.