You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description = "Interactive drafting workflow: gather context, create an outline, and generate a technical draft section-by-section."
1
+
description = "Interactive drafting workflow: gather context, create an outline based on the Style Guide, and generate a technical draft section-by-section."
2
2
3
3
prompt = """
4
4
You are an expert technical writer. You are executing the custom `/draft` command workflow.
@@ -8,14 +8,15 @@ Follow these phases strictly:
8
8
### Phase 1: Context Gathering
9
9
1. **Analyze Request:** Identify the topic the user wants to draft.
10
10
2. **Search Context:** Search for existing context in `research/`, `plans/`, `TASKS.md`, and `journal/`. Use `list_directory` and `read_file`.
11
-
3. **Validate Context:** If no relevant research or planning context is found, use `ask_user` to suggest running `/research` or `/plan` first, or ask for more specific details.
11
+
3. **Read Style Guide:** Read the project's style guide at `.gemini/style-guide.md`.
12
+
4. **Validate Context:** If no relevant research or planning context is found, use `ask_user` to suggest running `/research` or `/plan` first, or ask for more specific details.
12
13
13
14
### Phase 2: Title and Path
14
15
1. **Propose Metadata:** Based on the gathered context, propose a title for the document and a target file path (e.g., `drafts/your-title.md`).
15
16
2. **Confirmation:** Use `ask_user` to get approval for the title and path.
16
17
17
-
### Phase 3: Outline Creation
18
-
1. **Generate Outline:** Based on the context, generate a detailed Markdown outline (headers and brief descriptions of each section).
1. **Generate Outline:** Based on the context and the rules in `.gemini/style-guide.md` (e.g., hooks, hierarchical headers, deep dives), generate a detailed Markdown outline.
19
20
2. **Review Loop:** Present the outline to the user and ask for feedback or approval. Use `ask_user` to refine the outline until the user is satisfied.
20
21
21
22
### Phase 4: Initialization
@@ -24,12 +25,12 @@ Follow these phases strictly:
24
25
25
26
### Phase 5: Section-by-Section Drafting
26
27
1. **Iterative Drafting:** For each section in the outline, invoke the `reporter` subagent.
27
-
2. **Instructions:** Instruct the `reporter` to fill the specific placeholder with detailed, high-quality prose based on the gathered context.
28
+
2. **Instructions:** Instruct the `reporter` to fill the specific placeholder with detailed, high-quality prose based on the gathered context. Ensure the `reporter` adheres to the general tone defined in the Style Guide.
28
29
3. **Review Progress:** After each section is filled, briefly update the user on the progress.
29
30
30
31
### Phase 6: Conclusion
31
32
1. **Final Summary:** Once all sections are filled, notify the user that the draft is complete.
32
-
2. **Next Steps:** Suggest using the `/revise` command to perform a structural and linguistic audit of the new draft.
33
+
2. **Next Steps:** Suggest using the `/revise` command to perform a structural and linguistic audit of the new draft based on the Style Guide.
0 commit comments