Skip to content
Agentmart
Submit a tool

ticket-implement

Implement an approved SERVER ticket plan: create branch, code+tests, validate, open a draft PR.

Skill by enricogolfieri

IndexedUnlicense★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/enricogolfieri-ticket-implement

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Implement an approved SERVER ticket plan: create branch, code+tests, validate, open a draft PR. Use when invoking /ticket-implement <TICKET> after ticket-plan. Refuses PERF-only tickets (point to ticket-analyse). Every session runs PRECHECK → LOAD_MEMORY → EXECUTION (implement phases only).

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ticket-implement

What's inside

Skill name
ticket-implement
Description
Implement an approved SERVER ticket plan: create branch, code+tests, validate, open a draft PR. Use when invoking /ticket-implement <TICKET> after ticket-plan. Refuses PERF-only tickets (point to ticket-analyse). Every session runs PRECHECK → LOAD_MEMORY → EXECUTION (implement phases only).
License
Unlicense
Instructions
81 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Ticket Implement

Implement an approved **SERVER** ticket on a dedicated branch through draft PR.

Read shared rules: [`../ticket-shared/reference.md`](../ticket-shared/reference.md).
For edit discipline: change only what the plan says; preserve existing comments/logging/formatting; minimal diff.

## Invocation

`/ticket-implement <TICKET>`

## Session

```text
PRECHECK  →  LOAD_MEMORY  →  EXECUTION (implement phases only)
```

1. Follow **PRECHECK** and **LOAD_MEMORY** in the shared reference (`state.json` only).
2. On demand, open `plan_path` / `context_path` / `design_path` from indexes when needed.
3. **Guards:**
   - Require an approved plan (`plan_path` set, or `phase_reached` at/after `PHASE_2_PLAN_MODE` with plan approval recorded). If missing, stop and point to `/ticket-plan <TICKET>`.
   - If `ticket_kind` is `perf`, refuse and point to `/ticket-analyse <TICKET>`.

## EXECUTION phases

```text
PHASE_3_IMPLEMENT → OPEN_DRAFT_PR
```

### PHASE_3_IMPLEMENT

**Purpose:** Implement the approved plan on a ticket branch.

**Steps:**
1. **Branch from `state.json`:**
   - If `state.branch` is already set (resume): check out that branch (never edit on `master`/`main`). Then **extract existing changes** before editing — follow [`../extract-author-changes/SKILL.md`](../extract-author-changes/SKILL.md) using `state.base_ref` (fallback `origin/master`) as the PR base, including uncommitted WIP. Also refresh `--capture-patch`.
   - If `state.branch` is missing (first implement): **before any repo edit**, dump with `--ensure-branch --branch-keywords <kw1>,<kw2>`.
2. Branch naming (first create only): `<PROJECT>-<number>-<keyword1>-<keyword2>-…` (2–4 kebab-case keywords; script builds the name).
3. Confirm `state.json` has `branch` and `base_ref`; `git branch --show-current` matches `state.branch`.
4. Follow the approved plan. If evidence changes the plan materially, stop and ask for re-approval (`ticket-plan`).
5. Keep implementation and tests in the same work unit. Match repo patterns.
6. Focused validation (compile, unit-test, resmoke, or smoke skills as appropriate).
7. Commit on the ticket branch as you go.

**Dump:**
- Entry: `--phase PHASE_3_IMPLEMENT --ensure-branch --branch-keywords … --capture-patch`
- Checkpoints: `--capture-patch`, refreshed gotchas
- After validation: `--validation "…"`

**Exit:** implementation + validation complete → `OPEN_DRAFT_PR`.

### OPEN_DRAFT_PR

**Purpose:** Push branch and open a **draft** PR.

**Steps:**
1. Pre-PR consistency: `state.json` current; on-demand verify `context`/`design` paths exist if indexed; branch matches; refresh `--capture-patch` if needed.
2. Follow pull-request guidelines for the repo.
3. `git push -u origin <branch>`.
4. Open a **draft** PR with the ticket in the title.
5. Concise description including validation results.
6. Never write `Co-authored-by:` or agent attribution.

**Dump:** `--phase OPEN_DRAFT_PR --extra-json '{"pr_url":"…"}' --capture-patch --next-skill ticket-resume`.

**Exit:** draft PR opened. Report PR URL.

## Script

```bash
SKILL_DIR="/root/.claude/skills/ticket-shared"
python "${SKILL_DIR}/scripts/state_memory.py" dump <TICKET> \
  --phase PHASE_3_IMPLEMENT --ensure-branch --branch-keywords kw1,kw2 \
  --capture-patch --repo <REPO>
```

## Final response

Include: `phase_reached`, `/tmp/<TICKET>/`, `branch`, validation, PR URL if any, whether `state.json` updated, `next_skill`.

From enricogolfieri/workspace-mongo, Unlicense.

More from enricogolfieri/workspace-mongo

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Aug 12, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Unlicense
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from enricogolfieri

Cite this page

ticket-implement skill. Agent Mart. https://agentmart.dev/skills/enricogolfieri-ticket-implement (last updated 2026-10-24)