-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconcept-tree.json
More file actions
393 lines (393 loc) Β· 13.9 KB
/
concept-tree.json
File metadata and controls
393 lines (393 loc) Β· 13.9 KB
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
{
"version": "1.0.0",
"description": "CodeSensei skill tree β defines all learnable concepts, prerequisites, and mastery criteria",
"categories": {
"fundamentals": {
"name": "Programming Fundamentals",
"icon": "π§±",
"belt_requirement": "white",
"concepts": {
"variables": {
"name": "Variables",
"xp_to_master": 50,
"prerequisites": [],
"description": "Storing and naming data",
"triggers": ["let", "const", "var", "="]
},
"data-types": {
"name": "Data Types",
"xp_to_master": 50,
"prerequisites": ["variables"],
"description": "Strings, numbers, booleans, arrays, objects",
"triggers": ["string", "number", "boolean", "true", "false", "null"]
},
"conditionals": {
"name": "Conditionals",
"xp_to_master": 75,
"prerequisites": ["variables", "data-types"],
"description": "If/else logic and decision-making",
"triggers": ["if", "else", "switch", "ternary", "?"]
},
"functions": {
"name": "Functions",
"xp_to_master": 100,
"prerequisites": ["variables"],
"description": "Reusable blocks of code",
"triggers": ["function", "=>", "return", "const.*=.*=>"]
},
"loops": {
"name": "Loops",
"xp_to_master": 75,
"prerequisites": ["variables", "conditionals"],
"description": "Repeating actions",
"triggers": ["for", "while", "forEach", "map", ".map("]
},
"arrays": {
"name": "Arrays",
"xp_to_master": 75,
"prerequisites": ["variables", "data-types"],
"description": "Ordered lists of data",
"triggers": ["[]", "push", "pop", "filter", "map", "reduce"]
},
"objects": {
"name": "Objects",
"xp_to_master": 75,
"prerequisites": ["variables", "data-types"],
"description": "Structured data with named properties",
"triggers": ["{}", "key:", "value", "property"]
},
"python": {
"name": "Python",
"xp_to_master": 100,
"prerequisites": ["variables", "functions"],
"description": "Python language syntax and conventions",
"triggers": [".py", "def ", "print(", "import ", "pip ", "__name__"]
}
}
},
"web-basics": {
"name": "Web Basics",
"icon": "π",
"belt_requirement": "white",
"concepts": {
"html": {
"name": "HTML",
"xp_to_master": 75,
"prerequisites": [],
"description": "Page structure and content",
"triggers": [".html", "<div>", "<h1>", "<p>", "<form>"]
},
"css": {
"name": "CSS",
"xp_to_master": 75,
"prerequisites": ["html"],
"description": "Styling and visual design",
"triggers": [".css", "color:", "font-size:", "display:", "margin:", "padding:"]
},
"how-browsers-work": {
"name": "How Browsers Work",
"xp_to_master": 50,
"prerequisites": ["html"],
"description": "Request-response cycle and rendering",
"triggers": ["localhost", "http://", "https://"]
}
}
},
"javascript": {
"name": "JavaScript",
"icon": "β‘",
"belt_requirement": "yellow",
"concepts": {
"js-basics": {
"name": "JavaScript Basics",
"xp_to_master": 100,
"prerequisites": ["fundamentals.variables", "fundamentals.functions"],
"description": "JS syntax and core features",
"triggers": [".js", ".mjs", "console.log"]
},
"async-await": {
"name": "Async/Await",
"xp_to_master": 150,
"prerequisites": ["js-basics", "fundamentals.functions"],
"description": "Handling asynchronous operations",
"triggers": ["async", "await", "Promise", ".then("]
},
"imports-exports": {
"name": "Imports & Exports",
"xp_to_master": 75,
"prerequisites": ["js-basics"],
"description": "Code organization across files",
"triggers": ["import", "export", "require(", "module.exports"]
},
"json": {
"name": "JSON",
"xp_to_master": 50,
"prerequisites": ["fundamentals.objects"],
"description": "Data format for communication",
"triggers": [".json", "JSON.parse", "JSON.stringify"]
},
"dom-manipulation": {
"name": "DOM Manipulation",
"xp_to_master": 100,
"prerequisites": ["html", "js-basics"],
"description": "Changing the page with JavaScript",
"triggers": ["document.", "getElementById", "querySelector", "addEventListener"]
},
"typescript": {
"name": "TypeScript",
"xp_to_master": 150,
"prerequisites": ["js-basics"],
"description": "JavaScript with static types for catching bugs early",
"triggers": [".ts", ".tsx", "interface", "type ", ": string", ": number", ": boolean"]
}
}
},
"terminal": {
"name": "Terminal & Tools",
"icon": "π»",
"belt_requirement": "yellow",
"concepts": {
"terminal-navigation": {
"name": "Terminal Navigation",
"xp_to_master": 50,
"prerequisites": [],
"description": "Moving around in the command line",
"triggers": ["cd ", "ls", "pwd", "mkdir"]
},
"package-management": {
"name": "Package Management",
"xp_to_master": 100,
"prerequisites": ["terminal-navigation"],
"description": "Installing and managing dependencies",
"triggers": ["npm install", "npm i ", "yarn add", "pip install", "package.json"]
},
"git": {
"name": "Git Version Control",
"xp_to_master": 150,
"prerequisites": ["terminal-navigation"],
"description": "Tracking code changes",
"triggers": ["git add", "git commit", "git push", "git pull", ".git"]
},
"environment-variables": {
"name": "Environment Variables",
"xp_to_master": 75,
"prerequisites": ["terminal-navigation"],
"description": "Managing secrets and configuration",
"triggers": [".env", "process.env", "dotenv"]
}
}
},
"frontend": {
"name": "Frontend Frameworks",
"icon": "π¨",
"belt_requirement": "orange",
"concepts": {
"react-components": {
"name": "React Components",
"xp_to_master": 150,
"prerequisites": ["js-basics", "html"],
"description": "Building reusable UI pieces",
"triggers": [".jsx", ".tsx", "React", "export default function"]
},
"props": {
"name": "Props",
"xp_to_master": 100,
"prerequisites": ["react-components"],
"description": "Passing data to components",
"triggers": ["props", "{ children }", "interface.*Props"]
},
"state": {
"name": "State Management",
"xp_to_master": 150,
"prerequisites": ["react-components"],
"description": "Component memory and reactivity",
"triggers": ["useState", "setState", "useReducer"]
},
"effects": {
"name": "Effects & Lifecycle",
"xp_to_master": 150,
"prerequisites": ["state", "async-await"],
"description": "Side effects and data fetching",
"triggers": ["useEffect", "useCallback", "useMemo"]
},
"routing": {
"name": "Client Routing",
"xp_to_master": 100,
"prerequisites": ["react-components"],
"description": "Navigation between pages",
"triggers": ["react-router", "next/router", "next/link", "useRouter"]
}
}
},
"backend": {
"name": "Backend Development",
"icon": "βοΈ",
"belt_requirement": "green",
"concepts": {
"servers": {
"name": "Servers",
"xp_to_master": 150,
"prerequisites": ["js-basics", "how-browsers-work"],
"description": "Handling requests and responses",
"triggers": ["express", "fastify", "app.listen", "server.js"]
},
"routes": {
"name": "API Routes",
"xp_to_master": 100,
"prerequisites": ["servers"],
"description": "Defining endpoints",
"triggers": ["app.get", "app.post", "router.", "api/"]
},
"middleware": {
"name": "Middleware",
"xp_to_master": 100,
"prerequisites": ["routes"],
"description": "Request processing pipeline",
"triggers": ["app.use(", "middleware", "next()"]
},
"authentication": {
"name": "Authentication",
"xp_to_master": 200,
"prerequisites": ["routes", "environment-variables"],
"description": "User login and security",
"triggers": ["jwt", "session", "bcrypt", "passport", "auth"]
},
"rest-api": {
"name": "REST APIs",
"xp_to_master": 150,
"prerequisites": ["routes", "json"],
"description": "Designing and consuming APIs",
"triggers": ["GET", "POST", "PUT", "DELETE", "fetch(", "axios"]
},
"testing": {
"name": "Testing",
"xp_to_master": 150,
"prerequisites": ["functions", "js-basics"],
"description": "Automated tests that verify code works correctly",
"triggers": ["jest", "vitest", "describe(", "it(", "test(", "expect(", ".test.", ".spec."]
}
}
},
"databases": {
"name": "Databases",
"icon": "ποΈ",
"belt_requirement": "green",
"concepts": {
"sql-basics": {
"name": "SQL Basics",
"xp_to_master": 150,
"prerequisites": ["fundamentals.objects"],
"description": "Querying and managing data",
"triggers": ["SELECT", "INSERT", "UPDATE", "DELETE", ".sql"]
},
"database-schema": {
"name": "Database Schema",
"xp_to_master": 100,
"prerequisites": ["sql-basics"],
"description": "Designing data structures",
"triggers": ["CREATE TABLE", "schema.prisma", "migration"]
},
"orm": {
"name": "ORMs",
"xp_to_master": 150,
"prerequisites": ["sql-basics", "js-basics"],
"description": "Database access from code",
"triggers": ["prisma", "sequelize", "drizzle", "typeorm", "knex"]
},
"relationships": {
"name": "Data Relationships",
"xp_to_master": 150,
"prerequisites": ["database-schema"],
"description": "Connecting tables and data models",
"triggers": ["FOREIGN KEY", "JOIN", "hasMany", "belongsTo", "@relation"]
}
}
},
"deployment": {
"name": "Deployment",
"icon": "π",
"belt_requirement": "blue",
"concepts": {
"hosting": {
"name": "Hosting & Deployment",
"xp_to_master": 150,
"prerequisites": ["servers"],
"description": "Making your app available to the world",
"triggers": ["vercel", "netlify", "railway", "render", "deploy"]
},
"docker": {
"name": "Docker",
"xp_to_master": 200,
"prerequisites": ["hosting", "terminal-navigation"],
"description": "Containerized applications",
"triggers": ["Dockerfile", "docker-compose", "docker build"]
},
"ci-cd": {
"name": "CI/CD",
"xp_to_master": 200,
"prerequisites": ["git", "hosting"],
"description": "Automated testing and deployment",
"triggers": [".github/workflows", "github actions", "pipeline"]
}
}
},
"architecture": {
"name": "Architecture",
"icon": "ποΈ",
"belt_requirement": "blue",
"concepts": {
"client-server": {
"name": "Client-Server Architecture",
"xp_to_master": 100,
"prerequisites": ["react-components", "servers"],
"description": "How frontend and backend work together",
"triggers": []
},
"design-patterns": {
"name": "Design Patterns",
"xp_to_master": 200,
"prerequisites": ["client-server"],
"description": "Common solutions to common problems",
"triggers": ["singleton", "factory", "observer", "MVC"]
},
"scalability": {
"name": "Scalability",
"xp_to_master": 200,
"prerequisites": ["design-patterns", "hosting"],
"description": "Building for growth",
"triggers": ["cache", "redis", "CDN", "load balancer"]
}
}
},
"debugging": {
"name": "Debugging",
"icon": "π",
"belt_requirement": "white",
"concepts": {
"error-reading": {
"name": "Error Reading",
"xp_to_master": 15,
"prerequisites": [],
"description": "Understanding error messages and stack traces",
"triggers": ["error", "Error:", "Traceback", "ENOENT", "stack trace"]
},
"debugging-mindset": {
"name": "Debugging Mindset",
"xp_to_master": 20,
"prerequisites": ["error-reading"],
"description": "Systematic approach to finding and fixing bugs",
"triggers": ["debug", "breakpoint", "console.log", "print("]
},
"common-errors": {
"name": "Common Errors",
"xp_to_master": 25,
"prerequisites": ["error-reading", "debugging-mindset"],
"description": "Recognizing and fixing common programming errors",
"triggers": ["TypeError", "ReferenceError", "SyntaxError", "undefined", "null"]
}
}
}
},
"total_concepts": 45,
"mastery_quiz_threshold": 3
}