ChatGPT Prompting Hack¶
| Category | Prompt Engineering |
| Status | โ Completed |
| Repo | nextwork-chatgpt-prompting-hack |
| Original NextWork guide | nextwork.ai |
Learning project
Practice work following a NextWork guide, separate from my production projects.
๐ NextWork learning project. This is a practice project I built while working through NextWork's ChatGPT Prompting Hack guide. It is part of my Learning portfolio and is fully separate from my production projects.
Category: Learning โบ Prompt Engineering
Status: โ
Completed
Overview¶
Two habits for better results: structure every prompt as Goal, Context, Output, and Boundaries, and meta-prompt, where you give a rough idea and let the model ask clarifying questions, then rewrite your prompt. Each technique is shown as a before/after pair.
Summary¶
The GOCB framework template, a before/after comparison, and the meta-prompting template all ran on a local model (outputs saved). For the secret mission, the meta-prompt is now a hotkey: typing ;meta anywhere expands it into the full template, and ;final expands the follow-up. I tested it live with the real espanso text expander typing into a terminal, and built a macOS Text Replacements file from the same source.
The checks behind this are in docs/verification.txt.
Skills & tools¶
Prompt engineering, GOCB framework, Meta-prompting, Ollama
What I built¶
prompts/1-vague.mdvsprompts/2-structured-gocb.md: the same task, before and after the framework.prompts/3-meta-prompt.md: a two-turn meta-prompt (the model asks questions, I answer, and it writes the final prompt).TEMPLATES.md: reusable copy-paste templates.run_prompts.py: runs every prompt (including multi-turn follow-ups) on a local model.outputs/: the real responses from the verification run.hotkey/espanso/match/meta-prompt.yml: the;metaand;finalexpansions for espanso (cross-platform: macOS, Linux, Windows).hotkey/make_macos_plist.pyโhotkey/macos/Text Substitutions.plist: the same expansions in macOS's native Text Replacements format (drag it into System Settings โ Keyboard โ Text Replacements).hotkey/live_test.sh+hotkey/docs/hotkey-live-test.txt: a live test. On a private X display, the real espanso daemon runs with these matches, xdotool types;metaand;finalinto a terminal, and the terminal receives the expanded templates.
How to run¶
ollama pull qwen2.5:1.5b
pip install ollama
python run_prompts.py # writes outputs/*.md
prompts/ (turns are separated by ---FOLLOWUP---).
# Linux/macOS/Windows with espanso: copy hotkey/espanso/match/meta-prompt.yml into $(espanso path config)/match/
# macOS built-in: python3 hotkey/make_macos_plist.py, then drag hotkey/macos/Text Substitutions.plist into Text Replacements
Verification¶
I ran the verification command on 2026-12-02. The full output is in docs/verification.txt.
rm -rf outputs && PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH python run_prompts.py && python3 check_outputs.py Goal && python3 hotkey/make_macos_plist.py && python3 -c "import plistlib;d=plistlib.load(open('hotkey/macos/Text Substitutions.plist','rb'));assert [x['shortcut'] for x in d]==[';meta',';final'];print('OK plist')" && grep -q 'HOTKEY OK' hotkey/docs/hotkey-live-test.txt
Notes¶
Platform substitution (secret mission): the guide uses macOS's built-in text replacement. My build machine is Linux, so I proved the hotkey with espanso, which works the same way (type a short keyword anywhere and it expands), and generated the macOS import file from the same match list so it's one drag-and-drop on a Mac. The model substitution (local model for ChatGPT) is unchanged from before.
Original project: https://nextwork.ai/projects/5af15a1f-39bc-4e78-a881-bd5576183eeb ยท Part of my NextWork Learning portfolio (hub).
Verification output¶
From docs/verification.txt:
$ rm -rf outputs && PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH python run_prompts.py && python3 check_outputs.py Goal && python3 hotkey/make_macos_plist.py && python3 -c "import plistlib;d=plistlib.load(open('hotkey/macos/Text Substitutions.plist','rb'));assert [x['shortcut'] for x in d]==[';meta',';final'];print('OK plist')" && grep -q 'HOTKEY OK' hotkey/docs/hotkey-live-test.txt
wrote outputs/1-vague.md (1 turn(s))
wrote outputs/2-structured-gocb.md (1 turn(s))
wrote outputs/3-meta-prompt.md (2 turn(s))
OK 1-vague.md: 308 words
OK 2-structured-gocb.md: 219 words
OK 3-meta-prompt.md: 434 words
OK some output mentions 'Goal': 1-vague.md
wrote /workspace/nextwork-portfolio/learning/prompt-engineering/chatgpt-prompting-hack/hotkey/macos/Text Substitutions.plist with 2 replacements: ;meta, ;final
OK plist
[exit code 0]