54 lines
1.6 KiB
JSON
54 lines
1.6 KiB
JSON
{
|
|
"pattern": {
|
|
"id": "pat_{{TIMESTAMP_ID}}",
|
|
"timestamp": "{{ISO_TIMESTAMP}}",
|
|
"title": "{{Pattern Title}}",
|
|
"description": "{{Detailed description of the pattern}}",
|
|
"context": "{{Where/when this pattern was discovered}}",
|
|
"example": {
|
|
"file": "{{path/to/example/file}}",
|
|
"lines": "{{start}}-{{end}}",
|
|
"snippet": "{{Code snippet demonstrating the pattern}}"
|
|
},
|
|
"tags": ["{{tag1}}", "{{tag2}}", "{{tag3}}"],
|
|
"feature": "{{feature-name}}",
|
|
"usageCount": 0
|
|
},
|
|
|
|
"gotcha": {
|
|
"id": "got_{{TIMESTAMP_ID}}",
|
|
"timestamp": "{{ISO_TIMESTAMP}}",
|
|
"title": "{{Issue Title}}",
|
|
"problem": "{{Description of the problem encountered}}",
|
|
"solution": "{{How to solve/avoid the problem}}",
|
|
"context": "{{When/where this was encountered}}",
|
|
"tags": ["{{tag1}}", "{{tag2}}"],
|
|
"feature": "{{feature-name}}"
|
|
},
|
|
|
|
"codebase": {
|
|
"id": "cb_{{TIMESTAMP_ID}}",
|
|
"timestamp": "{{ISO_TIMESTAMP}}",
|
|
"path": "{{directory/path/}}",
|
|
"insight": "{{Structural insight about this part of codebase}}",
|
|
"examples": ["{{Example1}}", "{{Example2}}"],
|
|
"tags": ["{{tag1}}", "{{tag2}}"]
|
|
},
|
|
|
|
"session": {
|
|
"session_id": "ses_{{TIMESTAMP_ID}}",
|
|
"timestamp": "{{ISO_TIMESTAMP}}",
|
|
"feature": "{{feature-name}}",
|
|
"duration": "{{Xh Ym}}",
|
|
"insights_saved": [
|
|
{"type": "pattern", "id": "{{pattern_id}}"},
|
|
{"type": "gotcha", "id": "{{gotcha_id}}"}
|
|
],
|
|
"files_modified": [
|
|
"{{path/to/file1}}",
|
|
"{{path/to/file2}}"
|
|
],
|
|
"summary": "{{Brief summary of what was accomplished}}"
|
|
}
|
|
}
|