-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathskill.json
More file actions
250 lines (250 loc) · 9.71 KB
/
skill.json
File metadata and controls
250 lines (250 loc) · 9.71 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
{
"name": "SwarmOrchestrator",
"version": "4.11.2",
"description": "Local Python orchestration skill: multi-agent workflows via shared blackboard file, permission gating, token budget scripts, and persistent project context. The bundled Python scripts make no network calls and have zero third-party dependencies. Workflow delegations via the host platform's sessions_send may invoke external model APIs.",
"author": "Network-AI Community",
"homepage": "https://network-ai.org",
"repository": "https://github.com/Jovancoding/Network-AI", "source": "https://github.com/Jovancoding/Network-AI", "license": "MIT",
"tags": ["multi-agent", "swarm", "orchestration", "governance", "audit", "permissions", "security", "blackboard", "budget", "local-only"],
"runtime": "python",
"entrypoint": "scripts/swarm_guard.py",
"gateway": "local",
"install": {
"description": "No install step required. All Python scripts use standard library only (zero third-party packages). Simply ensure python3 is available and run scripts directly from the scripts/ directory.",
"python": {
"requirements": "requirements.txt",
"requirements_note": "requirements.txt contains zero required packages. All scripts use Python stdlib only.",
"install_command": "# No install needed",
"scripts": ["scripts/blackboard.py", "scripts/swarm_guard.py", "scripts/check_permission.py", "scripts/validate_token.py", "scripts/revoke_token.py", "scripts/context_manager.py"],
"note": "All scripts run locally only. No external network calls. No third-party dependencies."
}
},
"capabilities": {
"delegate_task": {
"description": "Delegate a task to a specialized sub-agent within the swarm",
"parameters": {
"targetAgent": {
"type": "string",
"required": true,
"description": "The identifier of the target agent to receive the task"
},
"taskPayload": {
"type": "object",
"required": true,
"description": "The task context, instructions, and any required data"
},
"priority": {
"type": "string",
"enum": ["low", "normal", "high", "critical"],
"default": "normal",
"description": "Task priority level for queue ordering"
},
"timeout": {
"type": "number",
"default": 30000,
"description": "Maximum execution time in milliseconds"
},
"requiresAuth": {
"type": "boolean",
"default": false,
"description": "Whether this task requires a permission grant (via check_permission.py)"
}
},
"returns": {
"type": "object",
"properties": {
"taskId": { "type": "string" },
"status": { "type": "string" },
"result": { "type": "any" },
"agentTrace": { "type": "array" }
}
}
},
"query_swarm_state": {
"description": "Query the current state of the agent swarm, including active tasks, blackboard contents, and agent availability",
"parameters": {
"scope": {
"type": "string",
"enum": ["all", "agents", "tasks", "blackboard", "permissions"],
"default": "all",
"description": "The scope of state information to retrieve"
},
"agentFilter": {
"type": "array",
"items": { "type": "string" },
"description": "Optional list of agent IDs to filter results"
},
"includeHistory": {
"type": "boolean",
"default": false,
"description": "Include historical task execution data"
}
},
"returns": {
"type": "object",
"properties": {
"timestamp": { "type": "string" },
"activeAgents": { "type": "array" },
"pendingTasks": { "type": "array" },
"blackboardSnapshot": { "type": "object" },
"permissionGrants": { "type": "array" }
}
}
},
"spawn_parallel_agents": {
"description": "Spawn multiple sub-agents in parallel for complex task decomposition",
"parameters": {
"tasks": {
"type": "array",
"required": true,
"items": {
"type": "object",
"properties": {
"agentType": { "type": "string" },
"taskPayload": { "type": "object" }
}
},
"description": "Array of parallel tasks to execute"
},
"synthesisStrategy": {
"type": "string",
"enum": ["merge", "vote", "chain", "first-success"],
"default": "merge",
"description": "How to combine results from parallel agents"
}
},
"returns": {
"type": "object",
"properties": {
"synthesizedResult": { "type": "any" },
"individualResults": { "type": "array" },
"executionMetrics": { "type": "object" }
}
}
},
"request_permission": {
"description": "Request permission for sensitive operations via the local permission gating script",
"parameters": {
"resourceType": {
"type": "string",
"enum": ["DATABASE", "PAYMENTS", "EMAIL", "FILE_EXPORT"],
"required": true,
"description": "The type of protected resource being requested"
},
"justification": {
"type": "string",
"required": true,
"description": "Reason for requesting access"
},
"scope": {
"type": "string",
"description": "Specific scope of access needed"
}
},
"returns": {
"type": "object",
"properties": {
"granted": { "type": "boolean" },
"grantToken": { "type": "string" },
"expiresAt": { "type": "string" },
"restrictions": { "type": "array" }
}
}
},
"update_blackboard": {
"description": "Write or update entries on the shared blackboard for cross-agent coordination",
"parameters": {
"key": {
"type": "string",
"required": true,
"description": "The blackboard entry key"
},
"value": {
"type": "any",
"required": true,
"description": "The data to store"
},
"ttl": {
"type": "number",
"description": "Time-to-live in seconds (optional)"
}
},
"returns": {
"type": "object",
"properties": {
"success": { "type": "boolean" },
"previousValue": { "type": "any" }
}
}
},
"inject_context": {
"description": "Read the persistent project context file and return a formatted markdown block for injection into an agent system prompt. This is Layer 3 (long-lived) memory — architecture decisions, goals, tech stack, milestones, and banned approaches that every agent in the swarm should know.",
"parameters": {},
"returns": {
"type": "object",
"properties": {
"contextMarkdown": { "type": "string", "description": "Formatted markdown block ready to prepend to an agent system prompt" },
"updatedAt": { "type": "string", "description": "ISO timestamp of last context update" }
}
}
},
"update_context": {
"description": "Persist a decision, milestone update, stack entry, goal, or banned approach to the project context file (Layer 3 memory). Changes are appended and survive across sessions.",
"parameters": {
"section": {
"type": "string",
"required": true,
"enum": ["decisions", "milestones", "stack", "goals", "banned", "project"],
"description": "The context section to update"
},
"add": {
"type": "any",
"description": "Item to append (JSON object or plain string, depending on section)"
},
"set": {
"type": "object",
"description": "Key-value pairs to merge into the section (use for stack and project)"
},
"complete": {
"type": "string",
"description": "Milestone name to mark completed (milestones section only)"
}
},
"returns": {
"type": "object",
"properties": {
"success": { "type": "boolean" },
"section": { "type": "string" }
}
}
}
},
"permissions": {
"required": ["local_filesystem", "internal_skill_calls"],
"optional": ["external_api_access"],
"permissionGating": {
"enabled": true,
"protectedResources": ["DATABASE", "PAYMENTS", "EMAIL", "FILE_EXPORT"],
"note": "Permission checks are implemented locally via scripts/check_permission.py using weighted scoring (justification 40%, trust 30%, risk 30%). No external auth service."
}
},
"dependencies": {},
"config": {
"blackboardPath": "./swarm-blackboard.md",
"maxParallelAgents": null,
"maxParallelAgents_default": "Infinity (no hard cap since v4.0.0 — set to a positive integer to enforce a limit)",
"defaultTimeout": 30000,
"enableTracing": true
},
"env": {},
"privacy": {
"audit_log": {
"path": "data/audit_log.jsonl",
"scope": "local-only",
"description": "Append-only JSONL audit log recording operation metadata (agentId, action, timestamp, outcome). Stays in local data/ directory. No data is sent externally by this skill.",
"contains": ["agentId", "action", "timestamp", "outcome", "resource", "justification (free-text, agent-provided)"],
"pii_warning": "Justification fields are free-text and may contain user-supplied content. Do not put PII, secrets, or credentials in justification strings. Restrict file permissions on data/ and rotate logs periodically.",
"does_not_contain": ["API keys", "external endpoints"]
}
}
}