-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcode-generation.json
More file actions
52 lines (46 loc) · 1.68 KB
/
Copy pathcode-generation.json
File metadata and controls
52 lines (46 loc) · 1.68 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
{
"skill_cartridge": {
"id": "code-generation-v2",
"name": "Code Generation",
"version": "2.0.0",
"category": "code-intelligence",
"load_blueprint": {
"trigger_keywords": ["write code", "generate", "create function", "implement", "code that"],
"task_patterns": [
"Write a function that *",
"Generate code for *",
"Implement * in *"
],
"related_skills": ["code-review", "test-generation"],
"conflicts": []
},
"injection_payload": {
"system_prompt_addon": "You have Code Generation capability. Generate syntactically correct, idiomatic code. Include error handling. Match the requested language style.",
"context_knowledge": "Languages: Python, JavaScript, TypeScript, Go, Rust, Java. Patterns: Input-Process-Output, Error handling, Documentation.",
"example_patterns": [
{"input": "Write Python fibonacci", "output": "def fibonacci(n: int) -> list[int]: ..."}
]
},
"execution_parameters": {
"tolerance_level": "close",
"confidence_threshold": 0.90,
"fallback_skill": null,
"max_context_tokens": 3000
},
"composition_rules": {
"can_combine_with": ["test-generation", "code-review"],
"sequence_before": ["testing"],
"enhances": ["debugging"]
},
"completion_protocol": {
"status_values": ["DONE", "DONE_WITH_CONCERNS", "BLOCKED", "NEEDS_CONTEXT"],
"required_evidence": ["file_modified", "code_compiles", "tests_pass"],
"escalation_triggers": {
"failed_attempts": 3,
"security_sensitive": true,
"scope_exceeds_verification": true
}
},
"skill_ref": "@code"
}
}