@slycode/slycode 0.1.18 → 0.2.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.
- package/dist/web/.next/BUILD_ID +1 -1
- package/dist/web/.next/build-manifest.json +2 -2
- package/dist/web/.next/server/app/_global-error.html +2 -2
- package/dist/web/.next/server/app/_global-error.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.html +1 -1
- package/dist/web/.next/server/app/_not-found.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/dist/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/project/[id]/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__46b023d4._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__4c7995bf._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__4d0d3464._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__543058c2._.js +3 -3
- package/dist/web/.next/server/chunks/[root-of-the-server]__6d330d40._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__884d73e4._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__949bb248._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__949d814c._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__aa814a86._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__ad64e04f._.js +2 -2
- package/dist/web/.next/server/chunks/[root-of-the-server]__baa99257._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__bbb4b3ac._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__bf286c26._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__ce429522._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__d38c7a96._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__e9b0e744._.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__f1fe18e6._.js +2 -2
- package/dist/web/.next/server/chunks/ssr/[root-of-the-server]__677b7660._.js +1 -1
- package/dist/web/.next/server/chunks/ssr/[root-of-the-server]__79c0188d._.js +1 -1
- package/dist/web/.next/server/chunks/ssr/src_lib_registry_ts_2fc87c9c._.js +1 -1
- package/dist/web/.next/server/pages/404.html +1 -1
- package/dist/web/.next/server/pages/500.html +2 -2
- package/dist/web/.next/static/chunks/7660448872d80e27.js +4 -0
- package/dist/web/.next/static/chunks/{4793f1f83885d568.js → b694f741bb34ac84.js} +1 -1
- package/dist/web/src/components/ClaudeTerminalPanel.tsx +15 -11
- package/dist/web/src/lib/store-scanner.ts +70 -10
- package/dist/web/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/templates/kanban-seed.json +1 -1
- package/dist/store/.backups/actions/onboard.md +0 -33
- package/dist/store/.backups/actions/review.md +0 -37
- package/dist/store/.backups/actions/show-card.md +0 -20
- package/dist/store/.backups/checkpoint/SKILL.md +0 -43
- package/dist/store/.backups/context-priming/SKILL.md +0 -153
- package/dist/store/.backups/context-priming/references/area-index.md +0 -101
- package/dist/store/.backups/context-priming/references/areas/claude-actions.md +0 -120
- package/dist/store/.backups/context-priming/references/areas/messaging.md +0 -177
- package/dist/store/.backups/context-priming/references/areas/scripts-deployment.md +0 -138
- package/dist/store/.backups/context-priming/references/areas/skills.md +0 -135
- package/dist/store/.backups/context-priming/references/areas/terminal-bridge.md +0 -232
- package/dist/store/.backups/context-priming/references/areas/web-frontend.md +0 -252
- package/dist/store/.backups/context-priming/references/maintenance.md +0 -128
- package/dist/store/.ignored-updates.json +0 -37
- package/dist/store/actions/analyse-implementation.md +0 -72
- package/dist/store/actions/archive.md +0 -36
- package/dist/store/actions/clear.md +0 -13
- package/dist/store/actions/complete.md +0 -34
- package/dist/store/actions/continue.md +0 -20
- package/dist/store/agents/doc-updater.md +0 -619
- package/dist/store/mcp/context7.json +0 -8
- package/dist/store/skills/claude-code-docs-maintainer/SKILL.md +0 -168
- package/dist/store/skills/create-command/SKILL.md +0 -92
- package/dist/store/skills/doc-discovery/SKILL.md +0 -18
- package/dist/store/skills/doc-update/SKILL.md +0 -15
- package/dist/store/skills/dummy/SKILL.md +0 -22
- package/dist/store/skills/interactive-explainer/SKILL.md +0 -557
- package/dist/store/skills/interactive-explainer/assets/base_template.html +0 -780
- package/dist/store/skills/interactive-explainer/references/design_patterns.md +0 -486
- package/dist/store/skills/interactive-explainer/references/visualization_libraries.md +0 -512
- package/dist/store/skills/problem_summary/SKILL.md +0 -11
- package/dist/store/skills/reference-fetch/SKILL.md +0 -206
- package/dist/store/skills/skill-creator/LICENSE.txt +0 -202
- package/dist/store/skills/skill-creator/SKILL.md +0 -246
- package/dist/store/skills/skill-creator/scripts/init_skill.py +0 -303
- package/dist/store/skills/skill-creator/scripts/package_skill.py +0 -110
- package/dist/store/skills/skill-creator/scripts/quick_validate.py +0 -65
- package/dist/web/.next/static/chunks/5b44413f6e5b9e66.js +0 -4
- /package/dist/web/.next/static/{heUrgyJAcziZUlrZpGOPA → BbBq5FNe-sYRKe8Pc24UW}/_buildManifest.js +0 -0
- /package/dist/web/.next/static/{heUrgyJAcziZUlrZpGOPA → BbBq5FNe-sYRKe8Pc24UW}/_clientMiddlewareManifest.json +0 -0
- /package/dist/web/.next/static/{heUrgyJAcziZUlrZpGOPA → BbBq5FNe-sYRKe8Pc24UW}/_ssgManifest.js +0 -0
|
@@ -1,557 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: interactive-explainer
|
|
3
|
-
version: 1.0.1
|
|
4
|
-
updated: 2026-02-22
|
|
5
|
-
description: This skill creates single-page interactive HTML explainers for any topic including code architecture, documentation, system design, user workflows, or conceptual explanations. The skill should be used when users ask for visual explanations, interactive documentation, architecture diagrams, tutorials, or "explain X visually". It produces beautiful, step-through HTML files with graphs, flowcharts, animations, and interactive elements that help viewers quickly understand complex topics.
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Interactive Explainer
|
|
9
|
-
|
|
10
|
-
This skill transforms complex topics into engaging, single-page HTML explainers with interactive visualizations, step-through navigation, and beautiful presentation.
|
|
11
|
-
|
|
12
|
-
## When This Skill Applies
|
|
13
|
-
|
|
14
|
-
Trigger this skill when the request involves:
|
|
15
|
-
- "Explain X visually" or "create an interactive explanation"
|
|
16
|
-
- "Make a visual guide for..." or "interactive documentation"
|
|
17
|
-
- "Show me how X works" (when visual output is implied)
|
|
18
|
-
- Architecture diagrams, system overviews, or flow explanations
|
|
19
|
-
- User tutorials, onboarding guides, or walkthroughs
|
|
20
|
-
- Any request for visual/interactive representation of concepts, code, or systems
|
|
21
|
-
|
|
22
|
-
## Output Location
|
|
23
|
-
|
|
24
|
-
All explainer files are created in: `documentation/interactive/`
|
|
25
|
-
|
|
26
|
-
Create this directory if it doesn't exist. Name files descriptively:
|
|
27
|
-
- `architecture_overview.html`
|
|
28
|
-
- `message_flow_explained.html`
|
|
29
|
-
- `sdk_quickstart_guide.html`
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## Workflow Overview
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
Phase 1: Discovery → Phase 2: Research → Phase 3: Design → Phase 4: Build → Phase 5: Polish
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Execute each phase fully before proceeding to the next.
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## Phase 1: Discovery
|
|
44
|
-
|
|
45
|
-
**Goal:** Understand exactly what needs to be explained and to whom.
|
|
46
|
-
|
|
47
|
-
### 1.1 Classify the Content Type
|
|
48
|
-
|
|
49
|
-
Determine the primary content type from the request:
|
|
50
|
-
|
|
51
|
-
| Content Type | Indicators | Example Request |
|
|
52
|
-
|--------------|------------|-----------------|
|
|
53
|
-
| **Code Architecture** | File paths, classes, modules, "how does X work" | "Explain the SDK architecture" |
|
|
54
|
-
| **Data/Message Flow** | Pipeline, flow, routing, "how data moves" | "Show message routing flow" |
|
|
55
|
-
| **API Reference** | Endpoints, methods, parameters | "Interactive API docs" |
|
|
56
|
-
| **User Workflow** | Tutorial, guide, "how to use" | "User guide for the chat app" |
|
|
57
|
-
| **System Design** | Infrastructure, services, deployment | "Explain the server architecture" |
|
|
58
|
-
| **Concept/Theory** | Abstract concepts, "what is X" | "Explain WebSocket protocol" |
|
|
59
|
-
| **Comparison** | "vs", "compare", "differences" | "REST vs WebSocket comparison" |
|
|
60
|
-
|
|
61
|
-
### 1.2 Identify the Audience
|
|
62
|
-
|
|
63
|
-
Determine expertise level to calibrate depth:
|
|
64
|
-
- **Beginner**: More context, simpler terms, guided progression
|
|
65
|
-
- **Intermediate**: Technical terms okay, focus on patterns and flows
|
|
66
|
-
- **Expert**: Deep dives, edge cases, implementation details
|
|
67
|
-
|
|
68
|
-
### 1.3 Define Scope
|
|
69
|
-
|
|
70
|
-
List the specific things that must be covered. Avoid scope creep.
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## Phase 2: Research
|
|
75
|
-
|
|
76
|
-
**Goal:** Gather complete understanding of the topic before designing.
|
|
77
|
-
|
|
78
|
-
### 2.1 For Code-Based Topics
|
|
79
|
-
|
|
80
|
-
Read and understand ALL relevant code:
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
1. Identify entry points and main files
|
|
84
|
-
2. Trace dependencies and imports
|
|
85
|
-
3. Map relationships between components
|
|
86
|
-
4. Note key functions/methods and their purposes
|
|
87
|
-
5. Understand data structures and state
|
|
88
|
-
6. Identify patterns and architectural decisions
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
**Critical:** Do not start building until the entire relevant codebase is understood. Read files thoroughly, not just skimming.
|
|
92
|
-
|
|
93
|
-
### 2.2 For External Documentation
|
|
94
|
-
|
|
95
|
-
Fetch and process reference materials:
|
|
96
|
-
|
|
97
|
-
```
|
|
98
|
-
1. Use WebFetch for external URLs
|
|
99
|
-
2. Use Read for local documentation
|
|
100
|
-
3. Extract key concepts and relationships
|
|
101
|
-
4. Identify hierarchy of information
|
|
102
|
-
5. Note examples and use cases
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### 2.3 For Conceptual Topics
|
|
106
|
-
|
|
107
|
-
Research through multiple angles:
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
1. Core definition and purpose
|
|
111
|
-
2. Historical context if relevant
|
|
112
|
-
3. Key components/parts
|
|
113
|
-
4. How parts interact
|
|
114
|
-
5. Common use cases
|
|
115
|
-
6. Comparison to related concepts
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
### 2.4 Create Knowledge Map
|
|
119
|
-
|
|
120
|
-
Before proceeding, create a mental model:
|
|
121
|
-
- What are the main entities/concepts?
|
|
122
|
-
- How do they relate to each other?
|
|
123
|
-
- What is the flow/sequence of operations?
|
|
124
|
-
- What are the key decision points?
|
|
125
|
-
- What would surprise or confuse someone new?
|
|
126
|
-
|
|
127
|
-
---
|
|
128
|
-
|
|
129
|
-
## Phase 3: Design
|
|
130
|
-
|
|
131
|
-
**Goal:** Plan the structure and visualization approach.
|
|
132
|
-
|
|
133
|
-
### 3.1 Select Primary Visualization Pattern
|
|
134
|
-
|
|
135
|
-
Reference: `references/design_patterns.md`
|
|
136
|
-
|
|
137
|
-
| Content Type | Primary Pattern | Secondary Options |
|
|
138
|
-
|--------------|-----------------|-------------------|
|
|
139
|
-
| Code Architecture | Component Network (vis.js) | Mermaid class diagrams |
|
|
140
|
-
| Data/Message Flow | Animated Flow (CSS/GSAP) | Mermaid sequence diagrams |
|
|
141
|
-
| API Reference | Interactive Reference | Tables + code blocks |
|
|
142
|
-
| User Workflow | Step-Through Guide | Reveal.js style |
|
|
143
|
-
| System Design | 3D Architecture (Three.js) | vis.js network |
|
|
144
|
-
| Concept/Theory | Progressive Reveal | D3 hierarchy |
|
|
145
|
-
| Comparison | Side-by-Side Matrix | Radar charts |
|
|
146
|
-
|
|
147
|
-
### 3.2 Plan Sections
|
|
148
|
-
|
|
149
|
-
Structure content into 5-7 logical sections:
|
|
150
|
-
|
|
151
|
-
```
|
|
152
|
-
1. Overview (always first)
|
|
153
|
-
- What is this?
|
|
154
|
-
- Why does it matter?
|
|
155
|
-
- Key terms
|
|
156
|
-
|
|
157
|
-
2-5. Core Content Sections
|
|
158
|
-
- One major concept per section
|
|
159
|
-
- Build progressively
|
|
160
|
-
- Include visualizations
|
|
161
|
-
|
|
162
|
-
6. Integration/Connections (if applicable)
|
|
163
|
-
- How parts connect
|
|
164
|
-
- External dependencies
|
|
165
|
-
|
|
166
|
-
7. Summary/Quick Reference (always last)
|
|
167
|
-
- Key takeaways
|
|
168
|
-
- Quick reference card
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
### 3.3 Choose Supporting Visualizations
|
|
172
|
-
|
|
173
|
-
For each section, determine:
|
|
174
|
-
- Primary visualization (main focus)
|
|
175
|
-
- Supporting elements (code blocks, tables, lists)
|
|
176
|
-
- Interactive elements (click handlers, tooltips)
|
|
177
|
-
|
|
178
|
-
Reference: `references/visualization_libraries.md`
|
|
179
|
-
|
|
180
|
-
### 3.4 Design Data Structures
|
|
181
|
-
|
|
182
|
-
Plan the JavaScript data structures needed:
|
|
183
|
-
|
|
184
|
-
```javascript
|
|
185
|
-
// Example: Component network data
|
|
186
|
-
const components = [
|
|
187
|
-
{ id: 'client', label: 'Client', type: 'frontend', description: '...' },
|
|
188
|
-
{ id: 'server', label: 'Server', type: 'backend', description: '...' }
|
|
189
|
-
];
|
|
190
|
-
|
|
191
|
-
const connections = [
|
|
192
|
-
{ from: 'client', to: 'server', label: 'HTTP/WebSocket' }
|
|
193
|
-
];
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
---
|
|
197
|
-
|
|
198
|
-
## Phase 4: Build
|
|
199
|
-
|
|
200
|
-
**Goal:** Create the HTML file with all content and visualizations.
|
|
201
|
-
|
|
202
|
-
### 4.1 Use the Base Template
|
|
203
|
-
|
|
204
|
-
Start with: `assets/base_template.html`
|
|
205
|
-
|
|
206
|
-
The template provides:
|
|
207
|
-
- All CDN library imports
|
|
208
|
-
- Dark theme CSS variables
|
|
209
|
-
- Navigation system
|
|
210
|
-
- Section structure
|
|
211
|
-
- Detail panel
|
|
212
|
-
- Code copy functionality
|
|
213
|
-
|
|
214
|
-
### 4.2 Customize the Template
|
|
215
|
-
|
|
216
|
-
Replace placeholders:
|
|
217
|
-
- `{{TITLE}}` - The explainer title
|
|
218
|
-
- `{{SECTIONS}}` - The section content
|
|
219
|
-
|
|
220
|
-
### 4.3 Build Each Section
|
|
221
|
-
|
|
222
|
-
Section HTML structure:
|
|
223
|
-
|
|
224
|
-
```html
|
|
225
|
-
<section class="section" data-title="Section Name">
|
|
226
|
-
<div class="section-header">
|
|
227
|
-
<h1 class="section-title">Section Title</h1>
|
|
228
|
-
<p class="section-subtitle">Brief description of this section</p>
|
|
229
|
-
</div>
|
|
230
|
-
|
|
231
|
-
<!-- Main visualization -->
|
|
232
|
-
<div class="viz-container viz-full">
|
|
233
|
-
<!-- Visualization content -->
|
|
234
|
-
</div>
|
|
235
|
-
|
|
236
|
-
<!-- Supporting content -->
|
|
237
|
-
<div class="grid-2">
|
|
238
|
-
<div class="card">...</div>
|
|
239
|
-
<div class="card">...</div>
|
|
240
|
-
</div>
|
|
241
|
-
</section>
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
### 4.4 Implement Visualizations
|
|
245
|
-
|
|
246
|
-
#### Mermaid Diagrams
|
|
247
|
-
|
|
248
|
-
**Critical: Mermaid in Hidden Sections**
|
|
249
|
-
|
|
250
|
-
Mermaid cannot render into hidden elements (`display: none`). Since sections are hidden until navigated to, use:
|
|
251
|
-
|
|
252
|
-
1. Set `startOnLoad: false` in mermaid.initialize()
|
|
253
|
-
2. Manually call `mermaid.run()` when navigating to a section:
|
|
254
|
-
|
|
255
|
-
```javascript
|
|
256
|
-
// In goToSection function:
|
|
257
|
-
const mermaidDivs = activeSection.querySelectorAll('.mermaid');
|
|
258
|
-
mermaidDivs.forEach(el => {
|
|
259
|
-
if (el.querySelector('svg')) return; // Already rendered
|
|
260
|
-
const code = el.textContent;
|
|
261
|
-
el.innerHTML = code;
|
|
262
|
-
mermaid.run({ nodes: [el] });
|
|
263
|
-
});
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
**Dark Theme Styling**
|
|
267
|
-
|
|
268
|
-
Use dark fills with colored strokes for better theme integration (not bright solid fills):
|
|
269
|
-
|
|
270
|
-
```html
|
|
271
|
-
<pre class="mermaid">
|
|
272
|
-
flowchart LR
|
|
273
|
-
A[Step 1] --> B[Step 2] --> C[Step 3]
|
|
274
|
-
style A fill:#1a3a4a,stroke:#00d4ff,stroke-width:2px,color:#00d4ff,rx:10,ry:10
|
|
275
|
-
style B fill:#1a3a3a,stroke:#4ecdc4,stroke-width:2px,color:#4ecdc4,rx:10,ry:10
|
|
276
|
-
style C fill:#1a2a1a,stroke:#2ecc71,stroke-width:2px,color:#2ecc71,rx:10,ry:10
|
|
277
|
-
</pre>
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
**Scaling for Readability**
|
|
281
|
-
|
|
282
|
-
Mermaid diagrams render small by default. Use CSS to scale:
|
|
283
|
-
|
|
284
|
-
```css
|
|
285
|
-
.mermaid-container {
|
|
286
|
-
display: flex;
|
|
287
|
-
justify-content: center;
|
|
288
|
-
align-items: center;
|
|
289
|
-
padding: 4rem 2rem;
|
|
290
|
-
min-height: 250px;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.mermaid-container .mermaid {
|
|
294
|
-
transform: scale(2.5);
|
|
295
|
-
transform-origin: center center;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/* Thicker arrows for visibility */
|
|
299
|
-
.mermaid-container .mermaid .flowchart-link {
|
|
300
|
-
stroke-width: 3px !important;
|
|
301
|
-
}
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
**Known Limitation**: Vertical text centering inside Mermaid nodes is not reliably controllable via CSS. The text positioning is handled internally by Mermaid's SVG generation.
|
|
305
|
-
|
|
306
|
-
#### vis.js Network
|
|
307
|
-
```html
|
|
308
|
-
<div id="network1" class="network-container"></div>
|
|
309
|
-
<script>
|
|
310
|
-
const nodes = new vis.DataSet([...]);
|
|
311
|
-
const edges = new vis.DataSet([...]);
|
|
312
|
-
new vis.Network(document.getElementById('network1'), {nodes, edges}, options);
|
|
313
|
-
</script>
|
|
314
|
-
```
|
|
315
|
-
|
|
316
|
-
#### Chart.js
|
|
317
|
-
|
|
318
|
-
**Critical**: Chart.js with `maintainAspectRatio: false` requires a fixed-height container, otherwise the chart grows infinitely and crashes the browser:
|
|
319
|
-
|
|
320
|
-
```html
|
|
321
|
-
<div style="position: relative; height: 300px; width: 100%;">
|
|
322
|
-
<canvas id="myChart"></canvas>
|
|
323
|
-
</div>
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
#### Code Blocks
|
|
327
|
-
```html
|
|
328
|
-
<div class="code-block">
|
|
329
|
-
<div class="code-header">
|
|
330
|
-
<span class="code-filename">example.py</span>
|
|
331
|
-
<button class="code-copy">Copy</button>
|
|
332
|
-
</div>
|
|
333
|
-
<pre><code class="language-python">def example():
|
|
334
|
-
pass</code></pre>
|
|
335
|
-
</div>
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
### 4.5 Add Interactivity
|
|
339
|
-
|
|
340
|
-
**Click to Show Details:**
|
|
341
|
-
```html
|
|
342
|
-
<div class="card" data-detail onclick="showDetail('Title', 'Content HTML')">
|
|
343
|
-
...
|
|
344
|
-
</div>
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
**Hover Tooltips:**
|
|
348
|
-
```javascript
|
|
349
|
-
element.addEventListener('mouseenter', (e) => {
|
|
350
|
-
showTooltip(e.target.dataset.info, e.pageX, e.pageY);
|
|
351
|
-
});
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
**Network Node Click:**
|
|
355
|
-
```javascript
|
|
356
|
-
network.on('click', function(params) {
|
|
357
|
-
if (params.nodes.length > 0) {
|
|
358
|
-
const nodeData = nodes.get(params.nodes[0]);
|
|
359
|
-
showDetail(nodeData.label, nodeData.description);
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
### 4.6 Style Considerations
|
|
365
|
-
|
|
366
|
-
- Use CSS variables for consistent theming
|
|
367
|
-
- Maintain visual hierarchy with font sizes
|
|
368
|
-
- Add subtle animations for engagement
|
|
369
|
-
- Ensure text contrast meets accessibility standards
|
|
370
|
-
- Test responsive breakpoints
|
|
371
|
-
|
|
372
|
-
---
|
|
373
|
-
|
|
374
|
-
## Phase 5: Polish
|
|
375
|
-
|
|
376
|
-
**Goal:** Refine and verify the final output.
|
|
377
|
-
|
|
378
|
-
### 5.1 Content Review
|
|
379
|
-
|
|
380
|
-
- [ ] All planned sections are present
|
|
381
|
-
- [ ] Information is accurate and complete
|
|
382
|
-
- [ ] Technical terms are explained or obvious
|
|
383
|
-
- [ ] Examples are realistic and helpful
|
|
384
|
-
- [ ] Flow is logical and progressive
|
|
385
|
-
|
|
386
|
-
### 5.2 Visual Review
|
|
387
|
-
|
|
388
|
-
- [ ] Visualizations render correctly
|
|
389
|
-
- [ ] Colors are consistent with theme
|
|
390
|
-
- [ ] Text is readable at all sizes
|
|
391
|
-
- [ ] Animations are smooth, not jarring
|
|
392
|
-
- [ ] Icons are relevant and helpful
|
|
393
|
-
|
|
394
|
-
### 5.3 Interaction Review
|
|
395
|
-
|
|
396
|
-
- [ ] Navigation works (buttons + keyboard)
|
|
397
|
-
- [ ] All clickable elements respond
|
|
398
|
-
- [ ] Detail panel opens/closes correctly
|
|
399
|
-
- [ ] Code copy buttons work
|
|
400
|
-
- [ ] No console errors
|
|
401
|
-
|
|
402
|
-
### 5.4 Responsive Check
|
|
403
|
-
|
|
404
|
-
Test layout at:
|
|
405
|
-
- Desktop (1200px+)
|
|
406
|
-
- Tablet (768px - 1024px)
|
|
407
|
-
- Mobile (< 768px)
|
|
408
|
-
|
|
409
|
-
### 5.5 Final Touches
|
|
410
|
-
|
|
411
|
-
- Add favicon if appropriate
|
|
412
|
-
- Verify all external CDN links work
|
|
413
|
-
- Add print styles if needed
|
|
414
|
-
- Consider adding a "last updated" date
|
|
415
|
-
|
|
416
|
-
---
|
|
417
|
-
|
|
418
|
-
## Library Quick Reference
|
|
419
|
-
|
|
420
|
-
### When to Use Each Library
|
|
421
|
-
|
|
422
|
-
| Library | Best For | Complexity |
|
|
423
|
-
|---------|----------|------------|
|
|
424
|
-
| **Mermaid** | Quick flowcharts, sequence diagrams, ER diagrams | Low |
|
|
425
|
-
| **vis.js** | Interactive network graphs, architecture diagrams | Medium |
|
|
426
|
-
| **D3.js** | Custom data visualizations, hierarchies | High |
|
|
427
|
-
| **Chart.js** | Standard charts (bar, line, pie, radar) | Low |
|
|
428
|
-
| **Three.js** | 3D visualizations, spatial representations | High |
|
|
429
|
-
| **GSAP** | Complex animations, scroll-triggered effects | Medium |
|
|
430
|
-
| **Cytoscape.js** | Graph theory, network analysis | Medium |
|
|
431
|
-
|
|
432
|
-
### CDN Links (All in Base Template)
|
|
433
|
-
|
|
434
|
-
All libraries are pre-loaded in `assets/base_template.html`. No additional imports needed unless using specialized components.
|
|
435
|
-
|
|
436
|
-
---
|
|
437
|
-
|
|
438
|
-
## Common Patterns
|
|
439
|
-
|
|
440
|
-
### Architecture Overview Section
|
|
441
|
-
|
|
442
|
-
```html
|
|
443
|
-
<section class="section" data-title="Architecture">
|
|
444
|
-
<div class="section-header">
|
|
445
|
-
<h1 class="section-title">System Architecture</h1>
|
|
446
|
-
<p class="section-subtitle">How the components fit together</p>
|
|
447
|
-
</div>
|
|
448
|
-
|
|
449
|
-
<div class="viz-container viz-with-sidebar">
|
|
450
|
-
<div id="archNetwork" class="network-container"></div>
|
|
451
|
-
<div class="sidebar">
|
|
452
|
-
<h3>Components</h3>
|
|
453
|
-
<div id="componentList">
|
|
454
|
-
<!-- Populated dynamically -->
|
|
455
|
-
</div>
|
|
456
|
-
</div>
|
|
457
|
-
</div>
|
|
458
|
-
</section>
|
|
459
|
-
```
|
|
460
|
-
|
|
461
|
-
### Data Flow Section
|
|
462
|
-
|
|
463
|
-
```html
|
|
464
|
-
<section class="section" data-title="Data Flow">
|
|
465
|
-
<div class="section-header">
|
|
466
|
-
<h1 class="section-title">Message Flow</h1>
|
|
467
|
-
<p class="section-subtitle">How data moves through the system</p>
|
|
468
|
-
</div>
|
|
469
|
-
|
|
470
|
-
<div class="viz-container viz-full">
|
|
471
|
-
<pre class="mermaid">
|
|
472
|
-
sequenceDiagram
|
|
473
|
-
participant C as Client
|
|
474
|
-
participant S as Server
|
|
475
|
-
participant D as Database
|
|
476
|
-
C->>S: Request
|
|
477
|
-
S->>D: Query
|
|
478
|
-
D-->>S: Results
|
|
479
|
-
S-->>C: Response
|
|
480
|
-
</pre>
|
|
481
|
-
</div>
|
|
482
|
-
|
|
483
|
-
<div class="grid-3">
|
|
484
|
-
<div class="card">
|
|
485
|
-
<div class="card-title"><i data-lucide="send"></i> Request</div>
|
|
486
|
-
<div class="card-content">Description of request phase</div>
|
|
487
|
-
</div>
|
|
488
|
-
<!-- More cards -->
|
|
489
|
-
</div>
|
|
490
|
-
</section>
|
|
491
|
-
```
|
|
492
|
-
|
|
493
|
-
### Quick Reference Section
|
|
494
|
-
|
|
495
|
-
```html
|
|
496
|
-
<section class="section" data-title="Reference">
|
|
497
|
-
<div class="section-header">
|
|
498
|
-
<h1 class="section-title">Quick Reference</h1>
|
|
499
|
-
<p class="section-subtitle">Key information at a glance</p>
|
|
500
|
-
</div>
|
|
501
|
-
|
|
502
|
-
<table class="data-table">
|
|
503
|
-
<thead>
|
|
504
|
-
<tr>
|
|
505
|
-
<th>Component</th>
|
|
506
|
-
<th>Purpose</th>
|
|
507
|
-
<th>Key Methods</th>
|
|
508
|
-
</tr>
|
|
509
|
-
</thead>
|
|
510
|
-
<tbody>
|
|
511
|
-
<tr>
|
|
512
|
-
<td><span class="badge badge-primary">Client</span></td>
|
|
513
|
-
<td>Handles user interactions</td>
|
|
514
|
-
<td><code>connect()</code>, <code>send()</code></td>
|
|
515
|
-
</tr>
|
|
516
|
-
</tbody>
|
|
517
|
-
</table>
|
|
518
|
-
</section>
|
|
519
|
-
```
|
|
520
|
-
|
|
521
|
-
---
|
|
522
|
-
|
|
523
|
-
## Quality Checklist
|
|
524
|
-
|
|
525
|
-
Before delivering the explainer:
|
|
526
|
-
|
|
527
|
-
### Content Quality
|
|
528
|
-
- [ ] Topic is fully researched
|
|
529
|
-
- [ ] All claims are accurate
|
|
530
|
-
- [ ] Examples are realistic
|
|
531
|
-
- [ ] Progression is logical
|
|
532
|
-
|
|
533
|
-
### Visual Quality
|
|
534
|
-
- [ ] Visualizations load and render
|
|
535
|
-
- [ ] Colors follow the theme
|
|
536
|
-
- [ ] Text is readable
|
|
537
|
-
- [ ] Animations are smooth
|
|
538
|
-
|
|
539
|
-
### Technical Quality
|
|
540
|
-
- [ ] No console errors
|
|
541
|
-
- [ ] All libraries load from CDN
|
|
542
|
-
- [ ] Navigation works completely
|
|
543
|
-
- [ ] Responsive at all breakpoints
|
|
544
|
-
|
|
545
|
-
### User Experience
|
|
546
|
-
- [ ] Can understand without prior knowledge (if beginner audience)
|
|
547
|
-
- [ ] Interactive elements are discoverable
|
|
548
|
-
- [ ] Information density is appropriate
|
|
549
|
-
- [ ] Time to consume is reasonable
|
|
550
|
-
|
|
551
|
-
---
|
|
552
|
-
|
|
553
|
-
## Resources
|
|
554
|
-
|
|
555
|
-
- `references/visualization_libraries.md` - Detailed library documentation and examples
|
|
556
|
-
- `references/design_patterns.md` - Patterns for different content types
|
|
557
|
-
- `assets/base_template.html` - Starting template with all imports and base styling
|