swarm repositories / source
aboutsummaryrefslogtreecommitdiff
path: root/assemble-pro-review-package/SKILL.md
blob: 5f0780c8e382837a25c442db47015772aaf631d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
---
name: assemble-pro-review-package
description: Assemble a throwaway review bundle for an external expert or professional reviewer. Use when the user asks for a pro review package, reviewer handoff, expert audit bundle, or similar package that should include a single synthesized review prompt, the most relevant current design/spec/audit material for a specific goal, and aggressively inlined code, logs, and other text surfaces from the local repo plus any relevant rival or prior-art codebases.
---

# Assemble Pro Review Package

You are creating a design or implementation review package for an out-of-band pro model
or other expert to review. This package should focus on the task or subproblem supplied
by the user in context. If you feel the problem is too vague for targeted review, push back
and help the user sharpen it.

Create the package in a subdir of `/tmp` unless the user asks otherwise. Do not
commit it. Echo back the path you've used when done.

The reviewer-facing markdown surface must be a single top-level concatenated document.
Assume the prompt text itself is the primary payload and that helper zips are secondary
spillover only. Write that document so its full text can be copied directly into a
one-shot pro-model prompt without further assembly. Use theory of mind: write for a
highly capable reviewer who has no hidden context beyond the prompt text and any uploaded
overflow artifacts.

Default to a giga-prompt posture. OpenAI currently documents a 400k context window for
manually selected GPT-5.4 Thinking on the ChatGPT Pro tier, with 272k input tokens and
128k max output. Spending roughly 100k input tokens on a single review handoff is
acceptable when the material is load-bearing. Do not be shy about inlining large logs,
code paths, or external reference surfaces when they materially bear on the question. Do
not pad with junk either.

Use `scripts/inline_section.py` to append labeled sections into the prompt doc while
enforcing a hard 100k-token ceiling counted with `o200k_base` by default. OpenAI publicly
documents `tiktoken` as the tokenizer family to use programmatically for OpenAI models,
but does not publicly document the exact ChatGPT-web tokenizer mapping for GPT-5.4 Pro, so
`o200k_base` is the operative approximation unless better evidence is available.

## Workflow

1. Infer the review target.
   Determine the specific implementation goal, design question, or problem statement.

2. Write one top-level review prompt document.
   Include:
   - broad objective
   - current tactical objective
   - current live benchmark, failure regime, or otherwise uncertainty
   - the exact question the reviewer should focus on

   Address the pro model directly. The document should read as an instruction
   and context handoff to the reviewer, not as notes about a bundle someone
   else prepared.

3. Smart-concatenate the most relevant docs into sections of that document.
   Usually:
   - current pseudocode or normative spec
   - current design note
   - current audit or experiment note

   Include only what directly bears on the review target.
   Do not emit multiple markdown docs when one structured document will do.
   The prompt doc should normally contain the actual textual payload rather than an index
   pointing to helper artifacts.

4. Curate the largest useful inlined source surface that still clears the budget.
   Include:
   - the core local implementation files
   - when relevant, relevant external reference files that encode e.g.
     comparable mechanism in a rival implementation, reference literature
     materials, tightly-relevant logs or metrics, etc.

   Use the budget aggressively when the omitted context would otherwise force the reviewer
   to infer too much. Inline real source, real logs, and real rival code rather than
   summarizing them away. Reviewer performance still degrades on irrelevant sludge, so
   never lazily dump the whole source tree or giant logs without hand-attesting their
   relevance. The standard is not "smallest possible bundle"; it is "maximally clarifying
   bundle under the hard token ceiling."

5. Keep markdown singular, raw, and top-level.
   The package should have exactly one primary markdown handoff document in the
   package root. Any reviewer-facing markdown content should be merged into that
   document as sections rather than emitted as separate files.

6. Treat zips as overflow, not as the primary review surface.
   Zip only when:
   - the payload is binary
   - the payload is enormous and only partly load-bearing
   - inlining it would burst the hard budget
   - the reviewer may still benefit from optional deep inspection

   Prefer inlining textual artifacts directly. Do not put `.md` files inside the zips.

7. Build a clear throwaway package.
   Prefer:
   - one top-level raw review prompt doc
   - top-level zip files
   - optional subdirectories only for unzipped source or artifact staging

8. Make the prompt doc self-sufficient.
   It should read as one coherent handoff prompt, not as a bag of fragments.
   Use explicit section headings and refer to uploaded helper zips by filename
   only when needed.
   Do not use phrases like `this package` or `the package` inside the prompt
   document. Write as if speaking directly to the reviewer about the task,
   context, questions, and attached artifacts.

9. Put an explicit front-matter note near the top of the prompt.
   The note should explain that:
   - the reviewer is expected to consume a very large inlined prompt
   - this is intentional rather than accidental
   - the current GPT-5.4 ChatGPT reasoning tier has enough context for it
   - the reviewer should prefer the inlined text over any helper zip unless the prompt
     explicitly points to the zip for overflow detail

   Suggested wording:
   `This prompt intentionally inlines a very large amount of primary material. That is
   deliberate rather than accidental: current GPT-5.4 ChatGPT reasoning tiers perform
   better when the relevant source, logs, and reference implementations are present in the
   prompt itself instead of hidden behind attachments. OpenAI currently documents 400k
   context for manually selected GPT-5.4 Thinking on the Pro tier (272k input + 128k max
   output), so spending roughly 100k input tokens on a single high-stakes review handoff
   is well within the intended operating range. Treat the inlined text as the primary
   review surface; use any uploaded overflow artifacts only when this prompt points you to
   them explicitly.`

## Selection Rule

Include a file only if it:
- defines intended behavior
- explains the active failure or design pressure
- implements the hot path in question
- implements the external mechanism or reference point being compared, when such a comparison is relevant
- records the measurement motivating the review

Prefer inlining the relevant span rather than merely listing the file path.

## Output

Report only:
- package root
- main review prompt doc path
- zip paths
- a short note on what was included