-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskill_analysis.json
More file actions
executable file
·214 lines (214 loc) · 5.58 KB
/
Copy pathskill_analysis.json
File metadata and controls
executable file
·214 lines (214 loc) · 5.58 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
{
"name": "Code2Database-analysis",
"version": "1.3.0",
"description": "Deep semantic analysis sub-skill for Code2Database. Activated when the user asks about concurrency safety, data races, value flow, parameter flow, data dependencies, path feasibility, invariants, FFI boundaries, commit provenance, lock-held regions, resource alloc/free, blast radius, or direct queries into the cgdb layer via 19 cgdb_* MCP tools. Use when /Code2Database hands off a deep-analysis question, or when the user types /Code2Database-analysis. Not for: graph building/scanning/browsing (parent /Code2Database); transactions/daemon/profile/exports (/Code2Database-ops).",
"trigger": "/Code2Database-analysis",
"parent_skill": "Code2Database",
"languages": [
"C",
"C++",
"Go",
"Python",
"Java",
"Rust",
"ASM"
],
"tier_1_commands": [
"concurrency-analyze",
"detect-races",
"lock-coverage",
"value-flow",
"param-flow",
"data-dep",
"field-access",
"path-feasible",
"blast-radius",
"find-invariants",
"ffi-trace",
"blame-node",
"query"
],
"commands": [
"add-semantic-edges",
"apply-invariants",
"apply-semantics",
"audit-log",
"blame-node",
"blast-radius",
"check-bounds",
"check-clones",
"check-cycles",
"check-infinite-loop",
"check-recursion",
"code-slice",
"concurrency-analyze",
"concurrency-risks",
"data-dep",
"data-lifecycle",
"describe-commit",
"detect-races",
"diagnose",
"diff-chains",
"explain-label",
"explore-flow",
"extract-invariants",
"extract-invariants-llm",
"extract-semantics",
"extract-signals",
"ffi-detect",
"ffi-list",
"ffi-trace",
"ffi-types",
"field-access",
"field-flow",
"find-commits",
"find-invariants",
"graph-provenance",
"happens-before",
"hw-reach",
"hybrid-search",
"impact",
"intent-query",
"io-path",
"key-paths",
"lock-coverage",
"memory-ordering",
"neighbors",
"node-history",
"null-source",
"param-flow",
"path",
"path-feasible",
"path-guards",
"query",
"reason",
"resolve-chain",
"reverse-trace",
"runtime-guards",
"semantic-search",
"taint-analysis",
"think-chain",
"unbalanced-alloc-free",
"value-flow",
"who-allocates",
"who-frees",
"who-locks",
"why-ambiguous"
],
"cgdb_mcp_tools": [
"cgdb_search_symbols",
"cgdb_find_invokers",
"cgdb_find_invoked",
"cgdb_get_definition",
"cgdb_get_function_body",
"cgdb_get_source",
"cgdb_get_struct_layout",
"cgdb_find_type_definition",
"cgdb_find_ops_impls",
"cgdb_find_cfg_paths",
"cgdb_find_data_flow",
"cgdb_find_aliases",
"cgdb_find_lock_held_calls",
"cgdb_check_race_condition",
"cgdb_find_configs_for",
"cgdb_find_nodes_under_config",
"cgdb_index_status",
"cgdb_time_travel_query",
"cgdb_list_versions"
],
"routing_table": {
"Is this thread-safe?": [
"concurrency-risks",
"concurrency-analyze",
"detect-races",
"lock-coverage",
"happens-before",
"memory-ordering",
"who-locks"
],
"Where does this NULL/value come from?": [
"value-flow",
"param-flow",
"data-dep",
"data-lifecycle",
"io-path"
],
"What breaks if I change this?": [
"impact",
"blast-radius",
"neighbors",
"path",
"diff-chains"
],
"Is this path feasible?": [
"path-feasible",
"resolve-chain",
"extract-signals"
],
"What invariants does this function enforce?": [
"extract-invariants",
"find-invariants",
"apply-invariants"
],
"Which Python/Go/Rust function calls into C?": [
"ffi-detect",
"ffi-list",
"ffi-trace",
"ffi-types"
],
"Which commit introduced this?": [
"blame-node",
"describe-commit",
"node-history",
"graph-provenance",
"find-commits"
],
"Who allocates/frees this resource?": [
"who-allocates",
"who-frees",
"unbalanced-alloc-free",
"add-semantic-edges"
],
"Query cgdb tables directly (clang backend)": [
"cgdb_search_symbols",
"cgdb_find_invokers",
"cgdb_find_invoked",
"cgdb_get_definition",
"cgdb_get_function_body",
"cgdb_get_source",
"cgdb_get_struct_layout",
"cgdb_find_type_definition",
"cgdb_find_ops_impls",
"cgdb_find_cfg_paths",
"cgdb_find_data_flow",
"cgdb_find_aliases",
"cgdb_find_lock_held_calls",
"cgdb_check_race_condition",
"cgdb_find_configs_for",
"cgdb_find_nodes_under_config",
"cgdb_index_status",
"cgdb_time_travel_query",
"cgdb_list_versions"
]
},
"on_demand_commands": [
"think-chain",
"intent-query",
"extract-invariants-llm",
"explain-label",
"why-ambiguous",
"extract-semantics",
"apply-semantics",
"audit-log"
],
"extraction_backends": [
"auto",
"clang",
"tree-sitter"
],
"activation_model": "User explicitly invokes /Code2Database-analysis, OR /Code2Database core skill detects a deep-analysis question (concurrency, data flow, invariants, FFI, provenance, path feasibility, cgdb) and hands off with the phrase 'activate Code2Database-analysis sub-skill'.",
"shared_resources": {
"scripts": "scripts/ (shared with parent and ops sub-skill — single CLI)",
"mcp_server": "All 83 MCP tools (36 code2database_* + 19 cgdb_* + 28 design-report) accessible regardless of sub-skill activation. MCP is separate from skill layer."
}
}