Skip to main content
prompt GP ChatGPT

press_key — Claude Code prompt for interface keys

press_key — a prompt for Claude Code presses navigation and editing keys on the current screen. Its result describes the interface change and reports a new location when the screen changes.

Apache-2.0 ★ 9,488 updated 2026-11-16

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/press_key.md
Open on GitHub

What press_key does

The prompt presses a navigation or editing key on the current screen. A key can be supplied by name or numeric code. Requests for volume, power, home, recents, search, assistant, camera, or media keys are rejected.

The result reports an effect: done means a clear interface change; smallchange covers a focus move, a toggle, a small element change, or a screen that may still be loading; no_effect means nothing visibly changed; place_changed gives the new location in effect.to. After smallchange, inspect the screen. After no_effect, try a different approach rather than pressing the key again.

What it helps with

  • press a navigation key on the current screen
  • send an editing key by name or code
  • check whether a key press changed the interface

Example prompts for the agent

  • Press Enter on the current screen.
  • Move focus with Tab and report the visible change.
  • Press keycode 13 and check the result.

How to install press_key

Manually: put the files in place

.claude/commands/press_key.md

Questions about press_key

How do I install press_key in Claude Code?

Add the prompt file at .claude/commands/press_key.md.

What does press_key do?

It presses navigation or editing keys on the current screen and reports the effect on the interface.

Which keys does press_key reject?

It rejects volume, power, home, recents, search, assistant, camera, and media keys.

Source text

press_key.md · Apache-2.0
Press a navigation or editing key on the current screen. Allowed: {{keys}} (by name or numeric keycode). Volume, power, home, recents, search, assistant, camera and media keys are rejected. The result's effect says what the action did to the interface: done (a clear change), small_change (only focus, a toggle or one or two elements changed, or it may still be loading: check it), no_effect (nothing in the interface changed: try another way instead of repeating) or place_changed (now somewhere else, given in effect.to).

© wangzan101 · Apache-2.0 · wangzan101/Mika

Similar prompts

All prompts for Agent setup: memory, context, orchestration →

From the same set132

The whole set →
conversation_title The conversation_title Claude Code prompt names a conversation from its first message. It picks out the topic and returns a brief title in the message’s language. GP ChatGPT ★ 9,488repo stars find_visually find_visually — a prompt for Claude Code and ChatGPT that locates a button, icon, or input by sight. It kicks in when the element list misses the target or an app draws its own interface. GP ChatGPT ★ 9,488repo stars web_keep_open The web_keep_open Claude Code prompt keeps the current tab open after a task ends. Use it when a video, course, or audio should keep playing after the agent replies. GP ChatGPT ★ 9,488repo stars web_run_site_command The web_run_site_command Claude Code prompt runs a named command for the current site to extract structured data from an open page. Open the target page first. GP ChatGPT ★ 9,488repo stars task_memory_search The task_memory_search prompt for Claude Code finds summaries of earlier tasks across conversations. Search by task wording, then narrow results by app package or start date. GP ChatGPT ★ 9,488repo stars spawn_agent The spawn_agent Claude Code prompt sends a child agent to investigate a bounded question. It returns a short observation; that result alone does not finish the main task. GP ChatGPT ★ 9,488repo stars phone_wait The phone_wait Claude Code prompt waits for text, an activity screen, or a settled phone display. Its Android port responds to accessibility events. GP ChatGPT ★ 9,488repo stars phone_scroll The phone_scroll Claude Code prompt scrolls an Android app screen. Set a direction, gesture amount, or scroll region. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open