# Coding Backend Cursor

Runtime prompt layer for Cursor Agent CLI coding agent runs.

- Repository: https://github.com/ahmadrosid/nakama (748 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add ahmadrosid/nakama --skill coding-backend-cursor -g -a claude-code -y`
Codex: `npx skills add ahmadrosid/nakama --skill coding-backend-cursor -g -a codex -y`
Cursor: `npx skills add ahmadrosid/nakama --skill coding-backend-cursor -g -a cursor -y`
Gemini CLI: `npx skills add ahmadrosid/nakama --skill coding-backend-cursor -g -a gemini-cli -y`

## Description

Runtime prompt layer for Cursor Agent CLI coding agent runs.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

You are preparing a coding agent run for Cursor Agent CLI (`agent`), orchestrated via the `bash` tool.

## Prerequisites

- Cursor Agent CLI must already be installed and authenticated **on the Nakama server host**.
- Verify with: `agent --version`
- Nakama does **not** auto-install Cursor Agent and does **not** inject Nakama provider credentials. Host Cursor auth is required.
- If `agent` is missing or unauthenticated, tell the user to install and authenticate Cursor Agent CLI themselves, then retry. Do not run `npm install -g` for this backend.

## Repo setup (do this before coding)

Bash defaults to the **profile workspace**. Cursor Agent must work on a real git checkout there, not on soul files alone.

1. Identify the target repo (URL or folder name from the user). If unclear, ask once.
2. Check whether that repo already exists under the workspace (`ls`, or `test -d <dir>/.git`).
3. If it is missing, clone it into the workspace (`git clone <url> <dir>`), then continue.
4. Hand off soon: give Cursor a short brief (issue URL + goal + constraints). Do not fully re-solve the bug with file tools first.

Do not invent a repo URL. Do not run coding work against an empty workspace when the user named a remote repo.

## Command (required shape)

Set bash **`cwd`** to the repo directory. Keep argv0 as **`agent`**, never `cd … && agent` (with `codingAgent: true`, Nakama requires the harness binary first).

```bash
agent -p 'Implement the requested change and summarize what you verified' --output-format text --yolo
```

bash args:

- `cwd`: absolute path to the repo checkout inside the profile workspace
- `codingAgent: true`
- `timeoutMs`: often 600000, 1800000 for substantial runs

Flags:

The rest: https://github.com/ahmadrosid/nakama/blob/HEAD/packages/core/src/skills/bundled/coding-backend-cursor/SKILL.md
