@99percentpeople/pi-codex-api 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,282 @@
1
+ ---
2
+ name: gpt-image-prompts
3
+ description: Craft and refine production-ready prompts for GPT Image 2. Use when a user needs an image-generation prompt, a stronger visual brief, prompt variations, or precise edit instructions for photos, illustrations, posters, ads, product visuals, characters, diagrams, or reference-guided images.
4
+ license: MIT
5
+ compatibility: Prompt-only guidance optimized for GPT Image 2. It does not require or prescribe an image tool, API, credential, or file workflow.
6
+ ---
7
+
8
+ # GPT Image Prompts
9
+
10
+ Write clear, visually specific prompts for GPT Image 2. Preserve the user's idea
11
+ and improve only the details that materially increase control, composition, and
12
+ image quality.
13
+
14
+ This is a **prompt-writing skill only**. Do not turn its output into a tool
15
+ manual, API request, command, path policy, authentication flow, or error guide.
16
+ Tool selection and execution are outside this skill.
17
+
18
+ ## Output contract
19
+
20
+ - Return a ready-to-use image prompt, not a tutorial, unless the user asks for
21
+ an explanation.
22
+ - Keep simple requests to one to three clear sentences. Use short labeled lines
23
+ for complex scenes, edits, layouts, or exact in-image text.
24
+ - Preserve the user's language and all exact quoted text. Do not translate,
25
+ paraphrase, or "improve" required copy unless asked.
26
+ - If the user asks for multiple options, make each variation intentionally
27
+ different in art direction, composition, palette, or mood—not minor synonym
28
+ changes.
29
+ - Do not include tool names, model parameters, JSON, API fields, output paths,
30
+ credentials, or implementation steps in the final prompt.
31
+ - Ask one concise question only when a missing detail would make the result
32
+ materially wrong, such as the exact required text, the edit target, or a
33
+ contradictory composition. Otherwise make the smallest reasonable inference.
34
+
35
+ ## Core method
36
+
37
+ ### 1. Preserve intent
38
+
39
+ Identify the user's non-negotiables before adding detail:
40
+
41
+ - what the image is for;
42
+ - the main subject and action;
43
+ - required style or medium;
44
+ - required composition or orientation;
45
+ - exact text that must appear;
46
+ - elements that must stay unchanged;
47
+ - elements that must not appear.
48
+
49
+ Do not invent extra characters, props, slogans, logos, brand colors, story
50
+ beats, or side-specific placement that the request does not imply.
51
+
52
+ ### 2. Choose the right amount of detail
53
+
54
+ - If the request is already specific, normalize it into a clean visual brief
55
+ without adding creative requirements.
56
+ - If it is vague, add only high-value visual decisions: a useful framing,
57
+ coherent lighting, a compatible palette, and concrete material or texture
58
+ cues.
59
+ - Prefer observable descriptions over vague praise. Use "soft window light from
60
+ the left, low contrast, warm highlights" instead of "beautiful lighting".
61
+ - Prefer a few strong constraints over a long negative-prompt inventory.
62
+
63
+ ### 3. Structure the prompt
64
+
65
+ Use this order when relevant:
66
+
67
+ 1. **Purpose and format** — editorial illustration, campaign image, book cover,
68
+ product visual, poster, diagram, character sheet, and so on.
69
+ 2. **Scene or backdrop** — place, era, weather, environment, and depth.
70
+ 3. **Subject and action** — appearance, pose, gaze, scale, interaction, and the
71
+ focal moment.
72
+ 4. **Style or medium** — photograph, watercolor, gouache, ink, oil, 3D, collage,
73
+ printmaking, flat graphic design, and its concrete visual traits.
74
+ 5. **Composition** — framing, viewpoint, perspective, subject placement,
75
+ hierarchy, negative space, and crop.
76
+ 6. **Lighting and color** — direction, softness, contrast, time of day, palette,
77
+ atmosphere, and mood.
78
+ 7. **Materials and finish** — surfaces, fabric, skin, paper, brushwork, grain,
79
+ imperfections, or print texture.
80
+ 8. **Text** — exact wording, typography, size, color, placement, and frequency.
81
+ 9. **Constraints** — what to preserve, what to avoid, and what must not change.
82
+
83
+ Not every prompt needs every section. Remove empty or low-value lines.
84
+
85
+ ## Visual direction
86
+
87
+ ### Photorealistic scenes
88
+
89
+ Use `photorealistic` explicitly when realism is the goal. Describe the image as
90
+ a real moment being photographed:
91
+
92
+ - camera distance and framing: close-up, medium shot, wide shot, full body;
93
+ - viewpoint: eye-level, top-down, low angle, over-the-shoulder;
94
+ - natural light and atmosphere;
95
+ - believable skin, fabric, material wear, reflections, and imperfections;
96
+ - candid pose, gaze, and object interaction;
97
+ - restrained processing when the image should feel documentary or unstaged.
98
+
99
+ Camera and lens language is useful for overall look, but do not overload the
100
+ prompt with technical specifications that do not affect the requested image.
101
+
102
+ ### Illustration and painting
103
+
104
+ Describe visual properties rather than relying on an artist's name:
105
+
106
+ - medium and surface: watercolor on cold-press paper, thick oil on canvas,
107
+ gouache, charcoal, risograph, woodblock, cel animation, digital matte painting;
108
+ - mark-making: loose washes, dry-brush texture, visible impasto, fine crosshatch,
109
+ clean geometric shapes, soft pencil underdrawing;
110
+ - edge treatment: crisp silhouette, lost-and-found edges, soft atmospheric
111
+ contours, bold ink outline;
112
+ - shape language and depth: rounded friendly forms, angular silhouettes,
113
+ layered foreground/midground/background;
114
+ - palette and value structure: muted earth tones, limited duotone, luminous
115
+ jewel colors, high-key pastels, deep chiaroscuro;
116
+ - finish: handmade irregularity, subtle paper grain, screen-print misregistration,
117
+ polished animation background.
118
+
119
+ For a consistent character, repeat the defining facial features, proportions,
120
+ outfit, palette, and personality in every revision.
121
+
122
+ ### Composition and people
123
+
124
+ When composition matters, specify:
125
+
126
+ - orientation or canvas intent: portrait, landscape, square, panoramic;
127
+ - focal point and visual hierarchy;
128
+ - foreground, midground, and background relationships;
129
+ - usable negative space only when copy or UI genuinely needs it;
130
+ - body framing such as "full body visible, feet included";
131
+ - gaze and action such as "looking at the open book, not at the camera";
132
+ - hand/object interaction such as "both hands naturally gripping the handle".
133
+
134
+ Use left/right placement only when the user or intended layout requires it.
135
+
136
+ ## Text inside images
137
+
138
+ Text is a visual constraint, not an afterthought:
139
+
140
+ - Put exact copy in quotes or ALL CAPS.
141
+ - Say `verbatim`, specify that it appears exactly once, and prohibit extra text.
142
+ - Specify typography category, weight, color, alignment, placement, and relative
143
+ size.
144
+ - Keep copy short where possible.
145
+ - For an uncommon name or difficult word, add a spelling cue such as
146
+ `S-T-R-I-P-E`, while retaining the normal verbatim text that must be rendered.
147
+ - For posters, diagrams, and infographics, define hierarchy and reading order;
148
+ require sharp, legible text and adequate whitespace.
149
+
150
+ Example constraint:
151
+
152
+ ```text
153
+ Text (verbatim, exactly once): "WEEKLY PLAN"
154
+ Typography: bold white geometric sans-serif, centered at the top, large headline
155
+ No other words, letters, logos, signatures, or watermarks.
156
+ ```
157
+
158
+ ## Reference images
159
+
160
+ When images are provided, assign each a role instead of treating every image as
161
+ an edit target:
162
+
163
+ ```text
164
+ Image 1: base scene and composition reference.
165
+ Image 2: subject identity reference.
166
+ Image 3: color and brushwork reference only.
167
+ ```
168
+
169
+ Then state the relationship explicitly: what to borrow, what to transplant,
170
+ what to change, and what must remain untouched. For compositing, specify
171
+ placement, scale, perspective, lighting, contact shadows, and occlusion.
172
+
173
+ ## Precise edits
174
+
175
+ Lead with the single requested change, followed by a preservation lock:
176
+
177
+ ```text
178
+ Change only <target change>.
179
+ Preserve <identity, geometry, pose, framing, lighting, background, typography>.
180
+ Keep everything else exactly unchanged.
181
+ Do not add <unwanted elements>.
182
+ ```
183
+
184
+ Repeat the preservation lock on every edit iteration. For identity-sensitive
185
+ work, explicitly preserve face, facial features, skin tone, body shape,
186
+ proportions, pose, expression, hair, and camera angle as applicable.
187
+
188
+ ## Iteration
189
+
190
+ Improve images through small, diagnosable revisions:
191
+
192
+ 1. Establish the core scene and composition.
193
+ 2. Review the mismatch in concrete visual terms.
194
+ 3. Change one major variable at a time.
195
+ 4. Restate critical invariants so the image does not drift.
196
+
197
+ Good follow-ups:
198
+
199
+ - `Keep the same composition; make the window light warmer and softer.`
200
+ - `Change only the jacket to dark navy wool; preserve identity and pose.`
201
+ - `Remove the extra tree; keep the landscape, camera angle, and palette unchanged.`
202
+
203
+ Avoid rewriting the entire prompt when a targeted correction is enough.
204
+
205
+ ## Prompt templates
206
+
207
+ ### New image
208
+
209
+ ```text
210
+ Purpose: <intended asset and audience>
211
+ Scene: <setting, era, weather, backdrop>
212
+ Subject: <main subject, appearance, action, gaze, interaction>
213
+ Style/medium: <visual medium and concrete stylistic traits>
214
+ Composition: <orientation, framing, viewpoint, placement, negative space>
215
+ Lighting/color: <direction, softness, contrast, palette, mood>
216
+ Materials/texture: <important surfaces and finish>
217
+ Text (verbatim): "<exact copy>"
218
+ Constraints: <must include; must preserve; must avoid>
219
+ ```
220
+
221
+ ### Edit
222
+
223
+ ```text
224
+ Primary change: Change only <specific target>.
225
+ Preserve: <identity, geometry, pose, composition, lighting, background, text>.
226
+ Integration: Match <perspective, scale, material behavior, shadows, color temperature>.
227
+ Constraints: Keep everything else exactly unchanged; <additional exclusions>.
228
+ ```
229
+
230
+ ### Reference-guided image
231
+
232
+ ```text
233
+ Image 1: <role>.
234
+ Image 2: <role>.
235
+ Primary request: <new scene or transformation>.
236
+ Borrow from references: <identity/style/palette/composition cues>.
237
+ Preserve: <locked attributes>.
238
+ Do not copy or add: <logos, unrelated text, extra elements>.
239
+ ```
240
+
241
+ ## Examples
242
+
243
+ ### Natural photograph
244
+
245
+ ```text
246
+ Create a photorealistic candid photograph of an elderly sailor adjusting a net
247
+ on a small fishing boat while his dog rests nearby. Medium close-up at eye
248
+ level, soft coastal daylight, shallow depth of field, subtle film grain, natural
249
+ color, weathered skin, worn fabric, and salt-aged wood. The moment should feel
250
+ honest and unstaged—no glamorization, heavy retouching, text, or watermark.
251
+ ```
252
+
253
+ ### Painterly illustration
254
+
255
+ ```text
256
+ Create a quiet fantasy editorial illustration of a lone herbalist crossing a
257
+ misty alpine meadow at dawn. Hand-painted gouache on textured paper, simplified
258
+ rounded shapes, soft dry-brush edges, layered atmospheric depth, muted sage and
259
+ umber palette with a small amber accent on the lantern. Wide landscape
260
+ composition with the figure small against the mountains; no text, logo, or
261
+ watermark.
262
+ ```
263
+
264
+ ### Poster with exact text
265
+
266
+ ```text
267
+ Create a minimal vertical event poster built from bold cobalt and warm ivory
268
+ geometric shapes with generous negative space and crisp screen-print texture.
269
+ Text (verbatim, exactly once): "NIGHT MARKET". Set it in a heavy condensed
270
+ sans-serif, ivory, centered in the upper third as the dominant element. No
271
+ other words, letters, logos, signatures, or watermarks.
272
+ ```
273
+
274
+ ### Surgical edit
275
+
276
+ ```text
277
+ Change only the white dining chairs to natural oak chairs with realistic wood
278
+ grain. Preserve the exact room geometry, camera angle, table, walls, floor,
279
+ lighting direction, contact shadows, and all surrounding objects. Match the
280
+ original perspective and color temperature. Keep everything else exactly
281
+ unchanged; add no new decor or text.
282
+ ```