|
1 | 1 | # /elaborate — Rephrase for Alignment Verification |
2 | 2 |
|
3 | | -Take the input below and rephrase it back to me — clearer, more structured, more understandable. Use your understanding of the codebase to interpret what I mean and fill in obvious gaps. |
| 3 | +Take the input below and rephrase it, clearer, more structured, more understandable. Use your understanding of the already developed context (can be about codebase workspace, or past conversation regarding this topic etc) to interpret what the input material means and fill in obvious gaps to make it more explicit. |
| 4 | + |
| 5 | +If you dont have any developed relevant context output that the elaboration will be done without relevant context in pure way in terminal as a warning. |
4 | 6 |
|
5 | 7 | ## Input |
6 | 8 |
|
7 | 9 | $ARGUMENTS |
8 | 10 |
|
9 | 11 | ## Instructions |
10 | 12 |
|
11 | | -1. Parse the input. It can be: |
12 | | - - **Raw text only** — notes, a ticket, a data dump, or a loose description. |
13 | | - - **A file path only** — read the file and use its contents as the input. |
14 | | - - **A file path + additional text** — read the file first, then treat the remaining text as extra context or instructions on top of the file contents. Both parts matter. |
| 13 | +1. Consume the input fully and correctly. It can be markdown, file path with code or text files, image paths, MCP links. if file path is given |
15 | 14 |
|
16 | | - If the input starts with something that looks like a file path (e.g. `devdocs/...`, `src/...`, or any path with `/`), attempt to read it as a file. Everything after the path is additional context. |
| 15 | + - if file path is given read the files fully. . |
| 16 | + - if file image or image paths are given consume the images |
| 17 | + - additional text or commands should be respected as well. |
17 | 18 |
|
18 | | -2. Use codebase context to understand what the user is referring to (existing modules, patterns, terminology). |
19 | | -3. Rephrase the input in clear, precise language. Make it structured and easy to follow — organize scattered thoughts, group related ideas, clarify vague phrasing. Keep the user's intent intact, don't reshape it into a format they didn't ask for. |
| 19 | +2. If relevant, use codebase context to understand what the content is referring to (existing modules, patterns, terminology). |
| 20 | +3. Rephrase the input in clear, precise language. Make it structured and easy to follow — organize scattered thoughts, group related ideas, clarify vague phrasing. Keep the content's intent intact, don't reshape it into a format they didn't ask for. |
20 | 21 | 4. After the rephrased version, add: |
21 | | - - **Ambiguities**: Anything that is unclear, has multiple interpretations, or needs a decision — list these explicitly. |
| 22 | + - **Ambiguities Section**: Anything that is unclear for you, has multiple interpretations, or needs a decision to make sense of the rest of the material — list these explicitly in form of questions |
22 | 23 |
|
23 | 24 | ### Output |
24 | 25 |
|
25 | | -5. Save the output as markdown file(s). Split into multiple files if the input covers distinct topics or is large enough to warrant it. |
26 | | - - **If the input was file path(s)** — save the elaborated output in the same folder as the input files. |
27 | | - - **Otherwise** — save under `devdocs/clarifications/<suitable-name>/` (create the directory if needed, use a short descriptive name based on the content). |
28 | | -6. Print the output in the conversation as well. |
29 | | -7. End with: *"Does this capture what you meant? Correct anything that's off before we proceed."* |
| 26 | +output this in devdocs as elaboration.md where the input source material is located in devdocs already. If input was not in devdocs then you can use mkdir command to create a subfolder with relevant name and create it there |
| 27 | + |
| 28 | +if the input covers distinct topics or is large enough to warrant it split into multiple files. But this is only needed if material is really huge and long. if this is the case under devdocs and relevant folder you can create elaboration folder and under it you can create multiple markdown files (use a short descriptive name based on the content).. But again, this is rare case. |
| 29 | + |
| 30 | +## Metadata |
| 31 | + |
| 32 | +Before writing any file, insert a metadata header at the very top by running `git branch --show-current`, `git rev-parse --short HEAD`, and `git config user.name` to populate: |
| 33 | + |
| 34 | +``` |
| 35 | +--- |
| 36 | +created: YYYY-MM-DD |
| 37 | +branch: <current branch> |
| 38 | +base_commit: <short HEAD commit> |
| 39 | +author: <git user.name> |
| 40 | +--- |
| 41 | +``` |
| 42 | + |
| 43 | +--- |
30 | 44 |
|
31 | 45 | ## Purpose |
32 | 46 |
|
33 | 47 | The primary goal is to take messy, scattered input and make it tidy — structured, clear, and easy to read. As a side effect, this also serves as an alignment check: if the rephrased version doesn't match intent, it gets caught here rather than three steps later. Only flag ambiguities that actually matter for moving forward — don't nitpick. |
| 48 | + |
| 49 | + |
0 commit comments