agcel 1.0.1
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.
- package/.agent/workflows/api-gen.md +59 -0
- package/.agent/workflows/architect.md +44 -0
- package/.agent/workflows/brainstorm.md +223 -0
- package/.agent/workflows/build.md +38 -0
- package/.agent/workflows/changelog.md +51 -0
- package/.agent/workflows/checkpoint.md +138 -0
- package/.agent/workflows/commit.md +223 -0
- package/.agent/workflows/debug.md +57 -0
- package/.agent/workflows/deploy.md +76 -0
- package/.agent/workflows/doc.md +247 -0
- package/.agent/workflows/execute-plan.md +225 -0
- package/.agent/workflows/feature.md +255 -0
- package/.agent/workflows/fix.md +323 -0
- package/.agent/workflows/help.md +63 -0
- package/.agent/workflows/index.md +148 -0
- package/.agent/workflows/load.md +112 -0
- package/.agent/workflows/mode.md +170 -0
- package/.agent/workflows/optimize.md +53 -0
- package/.agent/workflows/plan.md +337 -0
- package/.agent/workflows/pr.md +74 -0
- package/.agent/workflows/product-plan.md +36 -0
- package/.agent/workflows/production-deploy.md +39 -0
- package/.agent/workflows/refactor.md +63 -0
- package/.agent/workflows/research.md +116 -0
- package/.agent/workflows/review.md +344 -0
- package/.agent/workflows/security-scan.md +56 -0
- package/.agent/workflows/ship.md +221 -0
- package/.agent/workflows/spawn.md +177 -0
- package/.agent/workflows/status.md +59 -0
- package/.agent/workflows/tdd.md +139 -0
- package/.agent/workflows/test.md +340 -0
- package/.agent/workflows/verify.md +35 -0
- package/LICENSE +21 -0
- package/README.md +67 -0
- package/dist/commands/init.js +142 -0
- package/dist/commands/install.js +98 -0
- package/dist/commands/list.js +49 -0
- package/dist/commands/restart.js +17 -0
- package/dist/commands/start.js +41 -0
- package/dist/commands/status.js +24 -0
- package/dist/commands/stop.js +29 -0
- package/dist/commands/uninstall.js +78 -0
- package/dist/index.js +58 -0
- package/dist/server/index.js +174 -0
- package/dist/utils/index.js +63 -0
- package/package.json +54 -0
- package/skills/api-security-best-practices/SKILL.md +291 -0
- package/skills/api-security-best-practices/references/examples.md +617 -0
- package/skills/architecture/SKILL.md +59 -0
- package/skills/architecture/context-discovery.md +43 -0
- package/skills/architecture/examples.md +94 -0
- package/skills/architecture/pattern-selection.md +68 -0
- package/skills/architecture/patterns-reference.md +50 -0
- package/skills/architecture/trade-off-analysis.md +77 -0
- package/skills/aws-serverless/SKILL.md +327 -0
- package/skills/brainstorming/SKILL.md +234 -0
- package/skills/c4-context/SKILL.md +154 -0
- package/skills/ci-cd-engineer/SKILL.md +50 -0
- package/skills/code-auditing/SKILL.md +55 -0
- package/skills/copywriting/SKILL.md +248 -0
- package/skills/database-engineer/SKILL.md +47 -0
- package/skills/doc-coauthoring/SKILL.md +379 -0
- package/skills/docker-expert/SKILL.md +412 -0
- package/skills/langgraph/SKILL.md +291 -0
- package/skills/postgresql/SKILL.md +73 -0
- package/skills/pricing-strategy/SKILL.md +360 -0
- package/skills/product-manager/SKILL.md +57 -0
- package/skills/prompt-engineer/README.md +659 -0
- package/skills/prompt-engineer/SKILL.md +256 -0
- package/skills/python-patterns/SKILL.md +445 -0
- package/skills/qa-engineer/SKILL.md +42 -0
- package/skills/rag-engineer/SKILL.md +94 -0
- package/skills/react-patterns/SKILL.md +202 -0
- package/skills/secure-refactoring/SKILL.md +54 -0
- package/skills/security-documentation/SKILL.md +53 -0
- package/skills/senior-architect/SKILL.md +213 -0
- package/skills/senior-architect/references/architecture_patterns.md +103 -0
- package/skills/senior-architect/references/system_design_workflows.md +103 -0
- package/skills/senior-architect/references/tech_decision_guide.md +103 -0
- package/skills/senior-architect/scripts/architecture_diagram_generator.py +114 -0
- package/skills/senior-architect/scripts/dependency_analyzer.py +114 -0
- package/skills/senior-architect/scripts/project_architect.py +114 -0
- package/skills/seo-audit/SKILL.md +491 -0
- package/skills/sql-injection-testing/SKILL.md +452 -0
- package/skills/test-driven-development/SKILL.md +375 -0
- package/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/skills/test-fixing/SKILL.md +123 -0
- package/skills/testing-patterns/SKILL.md +263 -0
- package/skills/typescript-expert/SKILL.md +202 -0
- package/skills/typescript-expert/references/advanced-topics.md +252 -0
- package/skills/typescript-expert/references/tsconfig-strict.json +92 -0
- package/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
- package/skills/typescript-expert/references/utility-types.ts +335 -0
- package/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/skills/ui-ux-designer/SKILL.md +46 -0
- package/skills/vercel-deployment/SKILL.md +83 -0
- package/skills/vulnerability-scanner/SKILL.md +280 -0
- package/skills/vulnerability-scanner/checklists.md +121 -0
- package/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/skills/writing-plans/SKILL.md +120 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: copywriting
|
|
3
|
+
description: >
|
|
4
|
+
Use this skill when writing, rewriting, or improving marketing copy
|
|
5
|
+
for any page (homepage, landing page, pricing, feature, product, or about page).
|
|
6
|
+
This skill produces clear, compelling, and testable copy while enforcing
|
|
7
|
+
alignment, honesty, and conversion best practices.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Copywriting
|
|
11
|
+
|
|
12
|
+
## Purpose
|
|
13
|
+
|
|
14
|
+
Produce **clear, credible, and action-oriented marketing copy** that aligns with
|
|
15
|
+
user intent and business goals.
|
|
16
|
+
|
|
17
|
+
This skill exists to prevent:
|
|
18
|
+
- writing before understanding the audience
|
|
19
|
+
- vague or hype-driven messaging
|
|
20
|
+
- misaligned CTAs
|
|
21
|
+
- overclaiming or fabricated proof
|
|
22
|
+
- untestable copy
|
|
23
|
+
|
|
24
|
+
You may **not** fabricate claims, statistics, testimonials, or guarantees.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Operating Mode
|
|
29
|
+
|
|
30
|
+
You are operating as an **expert conversion copywriter**, not a brand poet.
|
|
31
|
+
|
|
32
|
+
- Clarity beats cleverness
|
|
33
|
+
- Outcomes beat features
|
|
34
|
+
- Specificity beats buzzwords
|
|
35
|
+
- Honesty beats hype
|
|
36
|
+
|
|
37
|
+
Your job is to **help the right reader take the right action**.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Phase 1 — Context Gathering (Mandatory)
|
|
42
|
+
|
|
43
|
+
Before writing any copy, gather or confirm the following.
|
|
44
|
+
If information is missing, ask for it **before proceeding**.
|
|
45
|
+
|
|
46
|
+
### 1️⃣ Page Purpose
|
|
47
|
+
- Page type (homepage, landing page, pricing, feature, about)
|
|
48
|
+
- ONE primary action (CTA)
|
|
49
|
+
- Secondary action (if any)
|
|
50
|
+
|
|
51
|
+
### 2️⃣ Audience
|
|
52
|
+
- Target customer or role
|
|
53
|
+
- Primary problem they are trying to solve
|
|
54
|
+
- What they have already tried
|
|
55
|
+
- Main objections or hesitations
|
|
56
|
+
- Language they use to describe the problem
|
|
57
|
+
|
|
58
|
+
### 3️⃣ Product / Offer
|
|
59
|
+
- What is being offered
|
|
60
|
+
- Key differentiator vs alternatives
|
|
61
|
+
- Primary outcome or transformation
|
|
62
|
+
- Available proof (numbers, testimonials, case studies)
|
|
63
|
+
|
|
64
|
+
### 4️⃣ Context
|
|
65
|
+
- Traffic source (ads, organic, email, referrals)
|
|
66
|
+
- Awareness level (unaware, problem-aware, solution-aware, product-aware)
|
|
67
|
+
- What visitors already know or expect
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Phase 2 — Copy Brief Lock (Hard Gate)
|
|
72
|
+
|
|
73
|
+
Before writing any copy, you MUST present a **Copy Brief Summary** and pause.
|
|
74
|
+
|
|
75
|
+
### Copy Brief Summary
|
|
76
|
+
Summarize in 4–6 bullets:
|
|
77
|
+
- Page goal
|
|
78
|
+
- Target audience
|
|
79
|
+
- Core value proposition
|
|
80
|
+
- Primary CTA
|
|
81
|
+
- Traffic / awareness context
|
|
82
|
+
|
|
83
|
+
### Assumptions
|
|
84
|
+
List any assumptions explicitly (e.g. awareness level, urgency, sophistication).
|
|
85
|
+
|
|
86
|
+
Then ask:
|
|
87
|
+
|
|
88
|
+
> “Does this copy brief accurately reflect what we’re trying to achieve?
|
|
89
|
+
> Please confirm or correct anything before I write copy.”
|
|
90
|
+
|
|
91
|
+
**Do NOT proceed until confirmation is given.**
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Phase 3 — Copywriting Principles
|
|
96
|
+
|
|
97
|
+
### Core Principles (Non-Negotiable)
|
|
98
|
+
|
|
99
|
+
- **Clarity over cleverness**
|
|
100
|
+
- **Benefits over features**
|
|
101
|
+
- **Specificity over vagueness**
|
|
102
|
+
- **Customer language over company language**
|
|
103
|
+
- **One idea per section**
|
|
104
|
+
|
|
105
|
+
Always connect:
|
|
106
|
+
> Feature → Benefit → Outcome
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Writing Style Rules
|
|
111
|
+
|
|
112
|
+
### Style Guidelines
|
|
113
|
+
- Simple over complex
|
|
114
|
+
- Active over passive
|
|
115
|
+
- Confident over hedged
|
|
116
|
+
- Show outcomes instead of adjectives
|
|
117
|
+
- Avoid buzzwords unless customers use them
|
|
118
|
+
|
|
119
|
+
### Claim Discipline
|
|
120
|
+
- No fabricated data or testimonials
|
|
121
|
+
- No implied guarantees unless explicitly stated
|
|
122
|
+
- No exaggerated speed or certainty
|
|
123
|
+
- If proof is missing, mark placeholders clearly
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Phase 4 — Page Structure Framework
|
|
128
|
+
|
|
129
|
+
### Above the Fold
|
|
130
|
+
|
|
131
|
+
**Headline**
|
|
132
|
+
- Single most important message
|
|
133
|
+
- Specific value proposition
|
|
134
|
+
- Outcome-focused
|
|
135
|
+
|
|
136
|
+
**Subheadline**
|
|
137
|
+
- Adds clarity or context
|
|
138
|
+
- 1–2 sentences max
|
|
139
|
+
|
|
140
|
+
**Primary CTA**
|
|
141
|
+
- Action-oriented
|
|
142
|
+
- Describes what the user gets
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
### Core Sections (Use as Appropriate)
|
|
147
|
+
|
|
148
|
+
- Social proof (logos, stats, testimonials)
|
|
149
|
+
- Problem / pain articulation
|
|
150
|
+
- Solution & key benefits (3–5 max)
|
|
151
|
+
- How it works (3–4 steps)
|
|
152
|
+
- Objection handling (FAQ, comparisons, guarantees)
|
|
153
|
+
- Final CTA with recap and risk reduction
|
|
154
|
+
|
|
155
|
+
Avoid stacking features without narrative flow.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Phase 5 — Writing the Copy
|
|
160
|
+
|
|
161
|
+
When writing copy, provide:
|
|
162
|
+
|
|
163
|
+
### Page Copy
|
|
164
|
+
Organized by section with clear labels:
|
|
165
|
+
- Headline
|
|
166
|
+
- Subheadline
|
|
167
|
+
- CTAs
|
|
168
|
+
- Section headers
|
|
169
|
+
- Body copy
|
|
170
|
+
|
|
171
|
+
### Alternatives
|
|
172
|
+
Provide 2–3 options for:
|
|
173
|
+
- Headlines
|
|
174
|
+
- Primary CTAs
|
|
175
|
+
|
|
176
|
+
Each option must include a brief rationale.
|
|
177
|
+
|
|
178
|
+
### Annotations
|
|
179
|
+
For key sections, explain:
|
|
180
|
+
- Why this copy was chosen
|
|
181
|
+
- Which principle it applies
|
|
182
|
+
- What alternatives were considered
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Testability Guidance
|
|
187
|
+
|
|
188
|
+
Write copy with testing in mind:
|
|
189
|
+
- Clear, isolated value propositions
|
|
190
|
+
- Headlines and CTAs that can be A/B tested
|
|
191
|
+
- Avoid combining multiple messages into one element
|
|
192
|
+
|
|
193
|
+
If the copy is intended for experimentation, recommend next-step testing.
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## Completion Criteria (Hard Stop)
|
|
198
|
+
|
|
199
|
+
This skill is complete ONLY when:
|
|
200
|
+
- Copy brief has been confirmed
|
|
201
|
+
- Page copy is delivered in structured form
|
|
202
|
+
- Headline and CTA alternatives are provided
|
|
203
|
+
- Assumptions are documented
|
|
204
|
+
- Copy is ready for review, editing, or testing
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## Anti-Patterns
|
|
209
|
+
|
|
210
|
+
### ❌ Fabrication
|
|
211
|
+
- Making up statistics or testimonials
|
|
212
|
+
- Implying guarantees that don't exist
|
|
213
|
+
|
|
214
|
+
### ❌ Vagueness
|
|
215
|
+
- "Best in class", "World leading", "Innovative solution" without proof
|
|
216
|
+
- Focusing on "we" instead of "you"
|
|
217
|
+
|
|
218
|
+
### ❌ Wall of Text
|
|
219
|
+
- Paragraphs longer than 3-4 lines
|
|
220
|
+
- Lack of subheads or visual breaks
|
|
221
|
+
|
|
222
|
+
### ❌ Missing the "So What?"
|
|
223
|
+
- Listing features without explaining the benefit or outcome
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## Key Principles (Summary)
|
|
228
|
+
|
|
229
|
+
- Understand before writing
|
|
230
|
+
- Make assumptions explicit
|
|
231
|
+
- One page, one goal
|
|
232
|
+
- One section, one idea
|
|
233
|
+
- Benefits before features
|
|
234
|
+
- Honest claims only
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## Final Reminder
|
|
239
|
+
|
|
240
|
+
Good copy does not persuade everyone.
|
|
241
|
+
It persuades **the right person** to take **the right action**.
|
|
242
|
+
|
|
243
|
+
If the copy feels clever but unclear,
|
|
244
|
+
rewrite it until it feels obvious.
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
## Gap Analysis Rule
|
|
248
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: database-engineer
|
|
3
|
+
description: Design database schemas, optimize queries, and manage data migrations
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Database Engineer
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Your role is to ensure data integrity, performance, and scalability. You design schemas that efficiently support the application's data access patterns.
|
|
11
|
+
|
|
12
|
+
## When to Use This Skill
|
|
13
|
+
|
|
14
|
+
- Designing new database schemas (SQL or NoSQL)
|
|
15
|
+
- Optimizing slow queries
|
|
16
|
+
- Planning data migrations
|
|
17
|
+
- Ensuring ACID properties
|
|
18
|
+
- Designing indexing strategies
|
|
19
|
+
|
|
20
|
+
## Core Responsibilities
|
|
21
|
+
|
|
22
|
+
1. **Schema Design**: 3rd Normal Form (for SQL) or access-pattern based (for NoSQL).
|
|
23
|
+
2. **Indexing**: Creating indexes to speed up read operations without killing write performance.
|
|
24
|
+
3. **Data Integrity**: Using foreign keys, constraints, and transactions.
|
|
25
|
+
4. **Performance Tuning**: Analyzing `EXPLAIN` plans and optimizing queries.
|
|
26
|
+
|
|
27
|
+
## Best Practices
|
|
28
|
+
|
|
29
|
+
- **Naming Conventions**: Use snake_case for columns, singular/plural consistency for tables.
|
|
30
|
+
- **Primary Keys**: Always use a consistent primary key strategy (UUID vs BigInt).
|
|
31
|
+
- **Migrations**: Never modify schema manually in production; use migration scripts.
|
|
32
|
+
- **Backups**: Ensure backup strategies are in place before major changes.
|
|
33
|
+
|
|
34
|
+
### Example Schema (PostgreSQL)
|
|
35
|
+
```sql
|
|
36
|
+
CREATE TABLE users (
|
|
37
|
+
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
38
|
+
email VARCHAR(255) UNIQUE NOT NULL,
|
|
39
|
+
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW()
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
CREATE INDEX idx_users_email ON users(email);
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## Gap Analysis Rule
|
|
47
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: doc-coauthoring
|
|
3
|
+
description: Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Doc Co-Authoring Workflow
|
|
7
|
+
|
|
8
|
+
This skill provides a structured workflow for guiding users through collaborative document creation. Act as an active guide, walking users through three stages: Context Gathering, Refinement & Structure, and Reader Testing.
|
|
9
|
+
|
|
10
|
+
## When to Offer This Workflow
|
|
11
|
+
|
|
12
|
+
**Trigger conditions:**
|
|
13
|
+
- User mentions writing documentation: "write a doc", "draft a proposal", "create a spec", "write up"
|
|
14
|
+
- User mentions specific doc types: "PRD", "design doc", "decision doc", "RFC"
|
|
15
|
+
- User seems to be starting a substantial writing task
|
|
16
|
+
|
|
17
|
+
**Initial offer:**
|
|
18
|
+
Offer the user a structured workflow for co-authoring the document. Explain the three stages:
|
|
19
|
+
|
|
20
|
+
1. **Context Gathering**: User provides all relevant context while Claude asks clarifying questions
|
|
21
|
+
2. **Refinement & Structure**: Iteratively build each section through brainstorming and editing
|
|
22
|
+
3. **Reader Testing**: Test the doc with a fresh Claude (no context) to catch blind spots before others read it
|
|
23
|
+
|
|
24
|
+
Explain that this approach helps ensure the doc works well when others read it (including when they paste it into Claude). Ask if they want to try this workflow or prefer to work freeform.
|
|
25
|
+
|
|
26
|
+
If user declines, work freeform. If user accepts, proceed to Stage 1.
|
|
27
|
+
|
|
28
|
+
## Stage 1: Context Gathering
|
|
29
|
+
|
|
30
|
+
**Goal:** Close the gap between what the user knows and what Claude knows, enabling smart guidance later.
|
|
31
|
+
|
|
32
|
+
### Initial Questions
|
|
33
|
+
|
|
34
|
+
Start by asking the user for meta-context about the document:
|
|
35
|
+
|
|
36
|
+
1. What type of document is this? (e.g., technical spec, decision doc, proposal)
|
|
37
|
+
2. Who's the primary audience?
|
|
38
|
+
3. What's the desired impact when someone reads this?
|
|
39
|
+
4. Is there a template or specific format to follow?
|
|
40
|
+
5. Any other constraints or context to know?
|
|
41
|
+
|
|
42
|
+
Inform them they can answer in shorthand or dump information however works best for them.
|
|
43
|
+
|
|
44
|
+
**If user provides a template or mentions a doc type:**
|
|
45
|
+
- Ask if they have a template document to share
|
|
46
|
+
- If they provide a link to a shared document, use the appropriate integration to fetch it
|
|
47
|
+
- If they provide a file, read it
|
|
48
|
+
|
|
49
|
+
**If user mentions editing an existing shared document:**
|
|
50
|
+
- Use the appropriate integration to read the current state
|
|
51
|
+
- Check for images without alt-text
|
|
52
|
+
- If images exist without alt-text, explain that when others use Claude to understand the doc, Claude won't be able to see them. Ask if they want alt-text generated. If so, request they paste each image into chat for descriptive alt-text generation.
|
|
53
|
+
|
|
54
|
+
### Info Dumping
|
|
55
|
+
|
|
56
|
+
Once initial questions are answered, encourage the user to dump all the context they have. Request information such as:
|
|
57
|
+
- Background on the project/problem
|
|
58
|
+
- Related team discussions or shared documents
|
|
59
|
+
- Why alternative solutions aren't being used
|
|
60
|
+
- Organizational context (team dynamics, past incidents, politics)
|
|
61
|
+
- Timeline pressures or constraints
|
|
62
|
+
- Technical architecture or dependencies
|
|
63
|
+
- Stakeholder concerns
|
|
64
|
+
|
|
65
|
+
Advise them not to worry about organizing it - just get it all out. Offer multiple ways to provide context:
|
|
66
|
+
- Info dump stream-of-consciousness
|
|
67
|
+
- Point to team channels or threads to read
|
|
68
|
+
- Link to shared documents
|
|
69
|
+
|
|
70
|
+
**If integrations are available** (e.g., Slack, Teams, Google Drive, SharePoint, or other MCP servers), mention that these can be used to pull in context directly.
|
|
71
|
+
|
|
72
|
+
**If no integrations are detected and in Claude.ai or Claude app:** Suggest they can enable connectors in their Claude settings to allow pulling context from messaging apps and document storage directly.
|
|
73
|
+
|
|
74
|
+
Inform them clarifying questions will be asked once they've done their initial dump.
|
|
75
|
+
|
|
76
|
+
**During context gathering:**
|
|
77
|
+
|
|
78
|
+
- If user mentions team channels or shared documents:
|
|
79
|
+
- If integrations available: Inform them the content will be read now, then use the appropriate integration
|
|
80
|
+
- If integrations not available: Explain lack of access. Suggest they enable connectors in Claude settings, or paste the relevant content directly.
|
|
81
|
+
|
|
82
|
+
- If user mentions entities/projects that are unknown:
|
|
83
|
+
- Ask if connected tools should be searched to learn more
|
|
84
|
+
- Wait for user confirmation before searching
|
|
85
|
+
|
|
86
|
+
- As user provides context, track what's being learned and what's still unclear
|
|
87
|
+
|
|
88
|
+
**Asking clarifying questions:**
|
|
89
|
+
|
|
90
|
+
When user signals they've done their initial dump (or after substantial context provided), ask clarifying questions to ensure understanding:
|
|
91
|
+
|
|
92
|
+
Generate 5-10 numbered questions based on gaps in the context.
|
|
93
|
+
|
|
94
|
+
Inform them they can use shorthand to answer (e.g., "1: yes, 2: see #channel, 3: no because backwards compat"), link to more docs, point to channels to read, or just keep info-dumping. Whatever's most efficient for them.
|
|
95
|
+
|
|
96
|
+
**Exit condition:**
|
|
97
|
+
Sufficient context has been gathered when questions show understanding - when edge cases and trade-offs can be asked about without needing basics explained.
|
|
98
|
+
|
|
99
|
+
**Transition:**
|
|
100
|
+
Ask if there's any more context they want to provide at this stage, or if it's time to move on to drafting the document.
|
|
101
|
+
|
|
102
|
+
If user wants to add more, let them. When ready, proceed to Stage 2.
|
|
103
|
+
|
|
104
|
+
## Stage 2: Refinement & Structure
|
|
105
|
+
|
|
106
|
+
**Goal:** Build the document section by section through brainstorming, curation, and iterative refinement.
|
|
107
|
+
|
|
108
|
+
**Instructions to user:**
|
|
109
|
+
Explain that the document will be built section by section. For each section:
|
|
110
|
+
1. Clarifying questions will be asked about what to include
|
|
111
|
+
2. 5-20 options will be brainstormed
|
|
112
|
+
3. User will indicate what to keep/remove/combine
|
|
113
|
+
4. The section will be drafted
|
|
114
|
+
5. It will be refined through surgical edits
|
|
115
|
+
|
|
116
|
+
Start with whichever section has the most unknowns (usually the core decision/proposal), then work through the rest.
|
|
117
|
+
|
|
118
|
+
**Section ordering:**
|
|
119
|
+
|
|
120
|
+
If the document structure is clear:
|
|
121
|
+
Ask which section they'd like to start with.
|
|
122
|
+
|
|
123
|
+
Suggest starting with whichever section has the most unknowns. For decision docs, that's usually the core proposal. For specs, it's typically the technical approach. Summary sections are best left for last.
|
|
124
|
+
|
|
125
|
+
If user doesn't know what sections they need:
|
|
126
|
+
Based on the type of document and template, suggest 3-5 sections appropriate for the doc type.
|
|
127
|
+
|
|
128
|
+
Ask if this structure works, or if they want to adjust it.
|
|
129
|
+
|
|
130
|
+
**Once structure is agreed:**
|
|
131
|
+
|
|
132
|
+
Create the initial document structure with placeholder text for all sections.
|
|
133
|
+
|
|
134
|
+
**If access to artifacts is available:**
|
|
135
|
+
Use `create_file` to create an artifact. This gives both Claude and the user a scaffold to work from.
|
|
136
|
+
|
|
137
|
+
Inform them that the initial structure with placeholders for all sections will be created.
|
|
138
|
+
|
|
139
|
+
Create artifact with all section headers and brief placeholder text like "[To be written]" or "[Content here]".
|
|
140
|
+
|
|
141
|
+
Provide the scaffold link and indicate it's time to fill in each section.
|
|
142
|
+
|
|
143
|
+
**If no access to artifacts:**
|
|
144
|
+
Create a markdown file in the working directory. Name it appropriately (e.g., `decision-doc.md`, `technical-spec.md`).
|
|
145
|
+
|
|
146
|
+
Inform them that the initial structure with placeholders for all sections will be created.
|
|
147
|
+
|
|
148
|
+
Create file with all section headers and placeholder text.
|
|
149
|
+
|
|
150
|
+
Confirm the filename has been created and indicate it's time to fill in each section.
|
|
151
|
+
|
|
152
|
+
**For each section:**
|
|
153
|
+
|
|
154
|
+
### Step 1: Clarifying Questions
|
|
155
|
+
|
|
156
|
+
Announce work will begin on the [SECTION NAME] section. Ask 5-10 clarifying questions about what should be included:
|
|
157
|
+
|
|
158
|
+
Generate 5-10 specific questions based on context and section purpose.
|
|
159
|
+
|
|
160
|
+
Inform them they can answer in shorthand or just indicate what's important to cover.
|
|
161
|
+
|
|
162
|
+
### Step 2: Brainstorming
|
|
163
|
+
|
|
164
|
+
For the [SECTION NAME] section, brainstorm [5-20] things that might be included, depending on the section's complexity. Look for:
|
|
165
|
+
- Context shared that might have been forgotten
|
|
166
|
+
- Angles or considerations not yet mentioned
|
|
167
|
+
|
|
168
|
+
Generate 5-20 numbered options based on section complexity. At the end, offer to brainstorm more if they want additional options.
|
|
169
|
+
|
|
170
|
+
### Step 3: Curation
|
|
171
|
+
|
|
172
|
+
Ask which points should be kept, removed, or combined. Request brief justifications to help learn priorities for the next sections.
|
|
173
|
+
|
|
174
|
+
Provide examples:
|
|
175
|
+
- "Keep 1,4,7,9"
|
|
176
|
+
- "Remove 3 (duplicates 1)"
|
|
177
|
+
- "Remove 6 (audience already knows this)"
|
|
178
|
+
- "Combine 11 and 12"
|
|
179
|
+
|
|
180
|
+
**If user gives freeform feedback** (e.g., "looks good" or "I like most of it but...") instead of numbered selections, extract their preferences and proceed. Parse what they want kept/removed/changed and apply it.
|
|
181
|
+
|
|
182
|
+
### Step 4: Gap Check
|
|
183
|
+
|
|
184
|
+
Based on what they've selected, ask if there's anything important missing for the [SECTION NAME] section.
|
|
185
|
+
|
|
186
|
+
### Step 5: Drafting
|
|
187
|
+
|
|
188
|
+
Use `str_replace` to replace the placeholder text for this section with the actual drafted content.
|
|
189
|
+
|
|
190
|
+
Announce the [SECTION NAME] section will be drafted now based on what they've selected.
|
|
191
|
+
|
|
192
|
+
**If using artifacts:**
|
|
193
|
+
After drafting, provide a link to the artifact.
|
|
194
|
+
|
|
195
|
+
Ask them to read through it and indicate what to change. Note that being specific helps learning for the next sections.
|
|
196
|
+
|
|
197
|
+
**If using a file (no artifacts):**
|
|
198
|
+
After drafting, confirm completion.
|
|
199
|
+
|
|
200
|
+
Inform them the [SECTION NAME] section has been drafted in [filename]. Ask them to read through it and indicate what to change. Note that being specific helps learning for the next sections.
|
|
201
|
+
|
|
202
|
+
**Key instruction for user (include when drafting the first section):**
|
|
203
|
+
Provide a note: Instead of editing the doc directly, ask them to indicate what to change. This helps learning of their style for future sections. For example: "Remove the X bullet - already covered by Y" or "Make the third paragraph more concise".
|
|
204
|
+
|
|
205
|
+
### Step 6: Iterative Refinement
|
|
206
|
+
|
|
207
|
+
As user provides feedback:
|
|
208
|
+
- Use `str_replace` to make edits (never reprint the whole doc)
|
|
209
|
+
- **If using artifacts:** Provide link to artifact after each edit
|
|
210
|
+
- **If using files:** Just confirm edits are complete
|
|
211
|
+
- If user edits doc directly and asks to read it: mentally note the changes they made and keep them in mind for future sections (this shows their preferences)
|
|
212
|
+
|
|
213
|
+
**Continue iterating** until user is satisfied with the section.
|
|
214
|
+
|
|
215
|
+
### Quality Checking
|
|
216
|
+
|
|
217
|
+
After 3 consecutive iterations with no substantial changes, ask if anything can be removed without losing important information.
|
|
218
|
+
|
|
219
|
+
When section is done, confirm [SECTION NAME] is complete. Ask if ready to move to the next section.
|
|
220
|
+
|
|
221
|
+
**Repeat for all sections.**
|
|
222
|
+
|
|
223
|
+
### Near Completion
|
|
224
|
+
|
|
225
|
+
As approaching completion (80%+ of sections done), announce intention to re-read the entire document and check for:
|
|
226
|
+
- Flow and consistency across sections
|
|
227
|
+
- Redundancy or contradictions
|
|
228
|
+
- Anything that feels like "slop" or generic filler
|
|
229
|
+
- Whether every sentence carries weight
|
|
230
|
+
|
|
231
|
+
Read entire document and provide feedback.
|
|
232
|
+
|
|
233
|
+
**When all sections are drafted and refined:**
|
|
234
|
+
Announce all sections are drafted. Indicate intention to review the complete document one more time.
|
|
235
|
+
|
|
236
|
+
Review for overall coherence, flow, completeness.
|
|
237
|
+
|
|
238
|
+
Provide any final suggestions.
|
|
239
|
+
|
|
240
|
+
Ask if ready to move to Reader Testing, or if they want to refine anything else.
|
|
241
|
+
|
|
242
|
+
## Stage 3: Reader Testing
|
|
243
|
+
|
|
244
|
+
**Goal:** Test the document with a fresh Claude (no context bleed) to verify it works for readers.
|
|
245
|
+
|
|
246
|
+
**Instructions to user:**
|
|
247
|
+
Explain that testing will now occur to see if the document actually works for readers. This catches blind spots - things that make sense to the authors but might confuse others.
|
|
248
|
+
|
|
249
|
+
### Testing Approach
|
|
250
|
+
|
|
251
|
+
**If access to sub-agents is available (e.g., in Claude Code):**
|
|
252
|
+
|
|
253
|
+
Perform the testing directly without user involvement.
|
|
254
|
+
|
|
255
|
+
### Step 1: Predict Reader Questions
|
|
256
|
+
|
|
257
|
+
Announce intention to predict what questions readers might ask when trying to discover this document.
|
|
258
|
+
|
|
259
|
+
Generate 5-10 questions that readers would realistically ask.
|
|
260
|
+
|
|
261
|
+
### Step 2: Test with Sub-Agent
|
|
262
|
+
|
|
263
|
+
Announce that these questions will be tested with a fresh Claude instance (no context from this conversation).
|
|
264
|
+
|
|
265
|
+
For each question, invoke a sub-agent with just the document content and the question.
|
|
266
|
+
|
|
267
|
+
Summarize what Reader Claude got right/wrong for each question.
|
|
268
|
+
|
|
269
|
+
### Step 3: Run Additional Checks
|
|
270
|
+
|
|
271
|
+
Announce additional checks will be performed.
|
|
272
|
+
|
|
273
|
+
Invoke sub-agent to check for ambiguity, false assumptions, contradictions.
|
|
274
|
+
|
|
275
|
+
Summarize any issues found.
|
|
276
|
+
|
|
277
|
+
### Step 4: Report and Fix
|
|
278
|
+
|
|
279
|
+
If issues found:
|
|
280
|
+
Report that Reader Claude struggled with specific issues.
|
|
281
|
+
|
|
282
|
+
List the specific issues.
|
|
283
|
+
|
|
284
|
+
Indicate intention to fix these gaps.
|
|
285
|
+
|
|
286
|
+
Loop back to refinement for problematic sections.
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
**If no access to sub-agents (e.g., claude.ai web interface):**
|
|
291
|
+
|
|
292
|
+
The user will need to do the testing manually.
|
|
293
|
+
|
|
294
|
+
### Step 1: Predict Reader Questions
|
|
295
|
+
|
|
296
|
+
Ask what questions people might ask when trying to discover this document. What would they type into Claude.ai?
|
|
297
|
+
|
|
298
|
+
Generate 5-10 questions that readers would realistically ask.
|
|
299
|
+
|
|
300
|
+
### Step 2: Setup Testing
|
|
301
|
+
|
|
302
|
+
Provide testing instructions:
|
|
303
|
+
1. Open a fresh Claude conversation: https://claude.ai
|
|
304
|
+
2. Paste or share the document content (if using a shared doc platform with connectors enabled, provide the link)
|
|
305
|
+
3. Ask Reader Claude the generated questions
|
|
306
|
+
|
|
307
|
+
For each question, instruct Reader Claude to provide:
|
|
308
|
+
- The answer
|
|
309
|
+
- Whether anything was ambiguous or unclear
|
|
310
|
+
- What knowledge/context the doc assumes is already known
|
|
311
|
+
|
|
312
|
+
Check if Reader Claude gives correct answers or misinterprets anything.
|
|
313
|
+
|
|
314
|
+
### Step 3: Additional Checks
|
|
315
|
+
|
|
316
|
+
Also ask Reader Claude:
|
|
317
|
+
- "What in this doc might be ambiguous or unclear to readers?"
|
|
318
|
+
- "What knowledge or context does this doc assume readers already have?"
|
|
319
|
+
- "Are there any internal contradictions or inconsistencies?"
|
|
320
|
+
|
|
321
|
+
### Step 4: Iterate Based on Results
|
|
322
|
+
|
|
323
|
+
Ask what Reader Claude got wrong or struggled with. Indicate intention to fix those gaps.
|
|
324
|
+
|
|
325
|
+
Loop back to refinement for any problematic sections.
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
### Exit Condition (Both Approaches)
|
|
330
|
+
|
|
331
|
+
When Reader Claude consistently answers questions correctly and doesn't surface new gaps or ambiguities, the doc is ready.
|
|
332
|
+
|
|
333
|
+
## Final Review
|
|
334
|
+
|
|
335
|
+
When Reader Testing passes:
|
|
336
|
+
Announce the doc has passed Reader Claude testing. Before completion:
|
|
337
|
+
|
|
338
|
+
1. Recommend they do a final read-through themselves - they own this document and are responsible for its quality
|
|
339
|
+
2. Suggest double-checking any facts, links, or technical details
|
|
340
|
+
3. Ask them to verify it achieves the impact they wanted
|
|
341
|
+
|
|
342
|
+
Ask if they want one more review, or if the work is done.
|
|
343
|
+
|
|
344
|
+
**If user wants final review, provide it. Otherwise:**
|
|
345
|
+
Announce document completion. Provide a few final tips:
|
|
346
|
+
- Consider linking this conversation in an appendix so readers can see how the doc was developed
|
|
347
|
+
- Use appendices to provide depth without bloating the main doc
|
|
348
|
+
- Update the doc as feedback is received from real readers
|
|
349
|
+
|
|
350
|
+
## Tips for Effective Guidance
|
|
351
|
+
|
|
352
|
+
**Tone:**
|
|
353
|
+
- Be direct and procedural
|
|
354
|
+
- Explain rationale briefly when it affects user behavior
|
|
355
|
+
- Don't try to "sell" the approach - just execute it
|
|
356
|
+
|
|
357
|
+
**Handling Deviations:**
|
|
358
|
+
- If user wants to skip a stage: Ask if they want to skip this and write freeform
|
|
359
|
+
- If user seems frustrated: Acknowledge this is taking longer than expected. Suggest ways to move faster
|
|
360
|
+
- Always give user agency to adjust the process
|
|
361
|
+
|
|
362
|
+
**Context Management:**
|
|
363
|
+
- Throughout, if context is missing on something mentioned, proactively ask
|
|
364
|
+
- Don't let gaps accumulate - address them as they come up
|
|
365
|
+
|
|
366
|
+
**Artifact Management:**
|
|
367
|
+
- Use `create_file` for drafting full sections
|
|
368
|
+
- Use `str_replace` for all edits
|
|
369
|
+
- Provide artifact link after every change
|
|
370
|
+
- Never use artifacts for brainstorming lists - that's just conversation
|
|
371
|
+
|
|
372
|
+
**Quality over Speed:**
|
|
373
|
+
- Don't rush through stages
|
|
374
|
+
- Each iteration should make meaningful improvements
|
|
375
|
+
- The goal is a document that actually works for readers
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
## Gap Analysis Rule
|
|
379
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|