Skip to content
Agentmart
Submit a tool

ticket-flush

Persist durable ticket session truth mid-chat: update state.json and create any memory files needed (context, session notes, experiment notes), indexed from…

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-flush

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

Persist durable ticket session truth mid-chat: update state.json and create any memory files needed (context, session notes, experiment notes), indexed from state.json. Invoke as /ticket-flush with no ticket argument — infer the ticket from the open chat. Does not advance plan/implement/analyse phases. Every session runs PRECHECK → LOAD_MEMORY → EXECUTION (flush only).

Use cases: productivity

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-flush

What's inside

Skill name
ticket-flush
Description
Persist durable ticket session truth mid-chat: update state.json and create any memory files needed (context, session notes, experiment notes), indexed from state.json. Invoke as /ticket-flush with no ticket argument — infer the ticket from the open chat. Does not advance plan/implement/analyse phases. Every session runs PRECHECK → LOAD_MEMORY → EXECUTION (flush only).
License
Unlicense
Instructions
68 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Ticket Flush

Persist the open ticket chat into durable memory without advancing product phases.

Read shared rules: [`../ticket-shared/reference.md`](../ticket-shared/reference.md).

## Invocation

`/ticket-flush`

**No ticket argument.** The ticket is already known from the open chat.

## Session

```text
PRECHECK  →  LOAD_MEMORY  →  EXECUTION (flush only)
```

### PRECHECK

1. **Do not ask for a ticket key.** Infer `<TICKET>` from the active conversation: prior skill turns, mentioned key, git branch, or `/tmp/<TICKET>/` already in use.
2. Stop only if the chat has no ticket identity at all.
3. Skip MCP (flush does not call Jira/docs).

### LOAD_MEMORY

1. Load **only** `/tmp/<TICKET>/state.json`.
2. Do not auto-load other memory files; open on demand if refreshing an indexed doc.

### EXECUTION

**Purpose:** Durable persistence mid-chat.

**Steps:**
1. Resolve ticket from chat; load `state.json`.
2. Gather durable notes from the conversation: gotchas, decisions, experiment refs, open questions, user instructions.
3. **Update `state.json` and introduce any memory files that might be needed**, for example:
   - refresh `context.md` (`--context`) when scope understanding changed
   - write a session dump (`--session` / `--session-name`) for chat-durable notes
   - write experiment notes (`--experiment-id` + `--experiment-doc`) when new refs appeared
   - arbitrary docs via `--write-doc-name` + `--write-doc`
4. Index all new/changed paths in `state.json` (`session_path`, `flush_paths`, `experiments`, `context_path`, …).
5. Dump with **`--keep-phase`** so `phase_reached` does not move (unless correcting a broken index path — still prefer `--keep-phase`).
6. Flush never substitutes for `ticket-plan` / `ticket-implement` / `ticket-analyse` EXECUTION.

**Dump example:**

```bash
SKILL_DIR="/root/.claude/skills/ticket-shared"
python "${SKILL_DIR}/scripts/state_memory.py" dump <TICKET> \
  --keep-phase \
  --session "$(cat <<'EOF'
# Flush notes
…
EOF
)" \
  --gotcha "…" \
  --instruction "…" \
  --repo <REPO>
```

**Exit:** state and any new memory files durable; report paths written.

## Final response

Include: inferred `<TICKET>`, `phase_reached` (unchanged), `/tmp/<TICKET>/`, files created/updated, whether `state.json` updated, `next_skill` unchanged.

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-flush skill. Agent Mart. https://agentmart.dev/skills/enricogolfieri-ticket-flush (last updated 2026-10-24)