cc-codeconductor 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +113 -26
- package/dist/index.js +1752 -81
- package/package.json +1 -1
- package/presets/agy/AGENTS.md +354 -0
- package/presets/agy/README.md +47 -0
- package/presets/agy/hooks.json +30 -0
- package/presets/agy/mcp_config.json +3 -0
- package/presets/agy/rules/commit-style.md +1 -0
- package/presets/agy/rules/graphify.md +14 -0
- package/presets/agy/scripts/post-tool.sh +25 -0
- package/presets/agy/scripts/pre-tool.sh +56 -0
- package/presets/agy/settings.json +8 -0
- package/presets/agy/skills/cc-api-contract/SKILL.md +71 -0
- package/presets/agy/skills/cc-db-migration/SKILL.md +70 -0
- package/presets/agy/skills/cc-feature/SKILL.md +115 -0
- package/presets/agy/skills/cc-fix/SKILL.md +124 -0
- package/presets/agy/skills/cc-pagespeed/SKILL.md +101 -0
- package/presets/agy/skills/cc-refactor/SKILL.md +149 -0
- package/presets/agy/skills/cc-review/SKILL.md +142 -0
- package/presets/agy/skills/cc-tdd-cycle/SKILL.md +226 -0
- package/presets/agy/skills/cc-test-plan/SKILL.md +145 -0
- package/presets/agy/skills/commit/SKILL.md +5 -0
- package/presets/agy/workflows/cc-api-contract.md +71 -0
- package/presets/agy/workflows/cc-db-migration.md +70 -0
- package/presets/agy/workflows/cc-feature.md +115 -0
- package/presets/agy/workflows/cc-fix.md +124 -0
- package/presets/agy/workflows/cc-pagespeed.md +101 -0
- package/presets/agy/workflows/cc-refactor.md +149 -0
- package/presets/agy/workflows/cc-review.md +142 -0
- package/presets/agy/workflows/cc-tdd-cycle.md +226 -0
- package/presets/agy/workflows/cc-test-plan.md +145 -0
- package/presets/agy/workflows/commit.md +1 -0
- package/presets/claude/CLAUDE.md +13 -3
- package/presets/claude/claude.json +6 -0
- package/presets/claude/commands/cc/pagespeed.md +103 -0
- package/presets/claude/settings.json +249 -2
- package/presets/claude/skills/conductor-setup/SKILL.md +125 -0
- package/presets/claude/skills/find-skills/SKILL.md +142 -0
- package/presets/claude/skills/multi-agent-orchestration/README.md +144 -0
- package/presets/claude/skills/multi-agent-orchestration/SKILL.md +579 -0
- package/presets/claude/skills/multi-agent-orchestration/examples/framework_implementations.py +362 -0
- package/presets/claude/skills/multi-agent-orchestration/examples/orchestration_patterns.py +411 -0
- package/presets/claude/skills/multi-agent-orchestration/scripts/agent_communication.py +334 -0
- package/presets/claude/skills/multi-agent-orchestration/scripts/benchmarking.py +341 -0
- package/presets/claude/skills/multi-agent-orchestration/scripts/workflow_management.py +334 -0
- package/presets/claude/skills/pagespeed-insights/SKILL.md +443 -0
- package/presets/claude/skills/pagespeed-insights/reference.md +50 -0
- package/presets/claude/skills/pagespeed-perf/SKILL.md +279 -0
- package/presets/claude/skills/workflow-orchestration-patterns/SKILL.md +98 -0
- package/presets/claude/skills/workflow-orchestration-patterns/references/details.md +223 -0
- package/presets/codex/AGENTS.md +19 -14
- package/presets/codex/skills/conductor-setup/SKILL.md +125 -0
- package/presets/codex/skills/find-skills/SKILL.md +142 -0
- package/presets/codex/skills/multi-agent-orchestration/README.md +144 -0
- package/presets/codex/skills/multi-agent-orchestration/SKILL.md +579 -0
- package/presets/codex/skills/multi-agent-orchestration/examples/framework_implementations.py +362 -0
- package/presets/codex/skills/multi-agent-orchestration/examples/orchestration_patterns.py +411 -0
- package/presets/codex/skills/multi-agent-orchestration/scripts/agent_communication.py +334 -0
- package/presets/codex/skills/multi-agent-orchestration/scripts/benchmarking.py +341 -0
- package/presets/codex/skills/multi-agent-orchestration/scripts/workflow_management.py +334 -0
- package/presets/codex/skills/pagespeed-insights/SKILL.md +443 -0
- package/presets/codex/skills/pagespeed-insights/reference.md +50 -0
- package/presets/codex/skills/pagespeed-perf/SKILL.md +279 -0
- package/presets/codex/skills/workflow-orchestration-patterns/SKILL.md +98 -0
- package/presets/codex/skills/workflow-orchestration-patterns/references/details.md +223 -0
- package/presets/opencode/README.md +11 -10
- package/presets/opencode/commands/cc-pagespeed.md +100 -0
- package/presets/opencode/skills/conductor-setup/SKILL.md +125 -0
- package/presets/opencode/skills/find-skills/SKILL.md +142 -0
- package/presets/opencode/skills/multi-agent-orchestration/README.md +144 -0
- package/presets/opencode/skills/multi-agent-orchestration/SKILL.md +579 -0
- package/presets/opencode/skills/multi-agent-orchestration/examples/framework_implementations.py +362 -0
- package/presets/opencode/skills/multi-agent-orchestration/examples/orchestration_patterns.py +411 -0
- package/presets/opencode/skills/multi-agent-orchestration/scripts/agent_communication.py +334 -0
- package/presets/opencode/skills/multi-agent-orchestration/scripts/benchmarking.py +341 -0
- package/presets/opencode/skills/multi-agent-orchestration/scripts/workflow_management.py +334 -0
- package/presets/opencode/skills/pagespeed-insights/SKILL.md +443 -0
- package/presets/opencode/skills/pagespeed-insights/reference.md +50 -0
- package/presets/opencode/skills/pagespeed-perf/SKILL.md +279 -0
- package/presets/opencode/skills/workflow-orchestration-patterns/SKILL.md +98 -0
- package/presets/opencode/skills/workflow-orchestration-patterns/references/details.md +223 -0
- package/presets/seo-hotel/commands/cc-seo-audit.md +17 -9
- package/presets/seo-hotel/commands/cc-seo-llms.md +64 -0
- package/presets/seo-hotel/seo-hotel.yml +55 -0
- package/presets/seo-hotel/settings.json +225 -0
- package/presets/seo-hotel/skills/find-skills/SKILL.md +142 -0
- package/presets/seo-hotel/skills/pagespeed-insights/SKILL.md +443 -0
- package/presets/seo-hotel/skills/pagespeed-insights/reference.md +50 -0
- package/src/presets/manifests/agy.yml +36 -2
- package/src/presets/manifests/claude.yml +5 -0
- package/src/presets/manifests/opencode.yml +4 -0
- package/src/presets/models/agy.yml +16 -0
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
3
|
+
"env": {
|
|
4
|
+
"CLAUDE_CODE_ATTRIBUTION_HEADER": "0",
|
|
5
|
+
"CLAUDE_CODE_DISABLE_1M_CONTEXT": "1",
|
|
6
|
+
"CLAUDE_CODE_DISABLE_AUTO_MEMORY": "1",
|
|
7
|
+
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
|
|
8
|
+
"CLAUDE_CODE_DISABLE_TERMINAL_TITLE": "1",
|
|
9
|
+
"DISABLE_EXTRA_USAGE_COMMAND": "1",
|
|
10
|
+
"DISABLE_TELEMETRY": "1",
|
|
11
|
+
"DISABLE_ERROR_REPORTING": "1",
|
|
12
|
+
"DISABLE_FEEDBACK_COMMAND": "1",
|
|
13
|
+
"CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT": "1",
|
|
14
|
+
"ENABLE_TOOL_SEARCH": "auto",
|
|
15
|
+
"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "80",
|
|
16
|
+
"CLAUDE_CODE_SUBPROCESS_ENV_SCRUB": "1",
|
|
17
|
+
"CLAUDE_CODE_SUBAGENT_MODEL": "haiku",
|
|
18
|
+
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
|
|
19
|
+
"MAX_THINKING_TOKENS": "24000",
|
|
20
|
+
"DISABLE_BUG_COMMAND": "1"
|
|
21
|
+
},
|
|
22
|
+
"attribution": {
|
|
23
|
+
"commit": "",
|
|
24
|
+
"pr": ""
|
|
25
|
+
},
|
|
26
|
+
"includeCoAuthoredBy": false,
|
|
27
|
+
"includeGitInstructions": false,
|
|
3
28
|
"permissions": {
|
|
4
29
|
"allow": [
|
|
5
30
|
"Bash(git status*)",
|
|
@@ -9,9 +34,76 @@
|
|
|
9
34
|
"Bash(./gradlew build*)",
|
|
10
35
|
"Bash(./gradlew check*)",
|
|
11
36
|
"Bash(npm test*)",
|
|
12
|
-
"Bash(npm run lint*)"
|
|
37
|
+
"Bash(npm run lint*)",
|
|
38
|
+
"Bash(ls *)",
|
|
39
|
+
"Bash(cat *)",
|
|
40
|
+
"Bash(grep *)",
|
|
41
|
+
"Bash(rg *)",
|
|
42
|
+
"Bash(find *)",
|
|
43
|
+
"Bash(tree *)",
|
|
44
|
+
"Bash(echo *)",
|
|
45
|
+
"Bash(pwd)",
|
|
46
|
+
"Bash(which *)",
|
|
47
|
+
"Bash(head *)",
|
|
48
|
+
"Bash(tail *)",
|
|
49
|
+
"Bash(wc *)",
|
|
50
|
+
"Bash(diff *)",
|
|
51
|
+
"Bash(git branch*)",
|
|
52
|
+
"Bash(git show*)",
|
|
53
|
+
"Bash(git add*)",
|
|
54
|
+
"Bash(git commit*)",
|
|
55
|
+
"Bash(git stash*)",
|
|
56
|
+
"Bash(git checkout*)",
|
|
57
|
+
"Bash(git restore*)",
|
|
58
|
+
"Bash(git pull*)",
|
|
59
|
+
"Bash(git fetch*)",
|
|
60
|
+
"Bash(git merge*)",
|
|
61
|
+
"Bash(npm run *)",
|
|
62
|
+
"Bash(npm ci)",
|
|
63
|
+
"Bash(pnpm run *)",
|
|
64
|
+
"Bash(pnpm test*)",
|
|
65
|
+
"Bash(pnpm exec *)",
|
|
66
|
+
"Bash(pnpm dlx *)",
|
|
67
|
+
"Bash(yarn run *)",
|
|
68
|
+
"Bash(yarn test*)",
|
|
69
|
+
"Bash(npx *)",
|
|
70
|
+
"Bash(python *)",
|
|
71
|
+
"Bash(python3 *)",
|
|
72
|
+
"Bash(pip list*)",
|
|
73
|
+
"Bash(pip show *)",
|
|
74
|
+
"Bash(pytest*)",
|
|
75
|
+
"Bash(ruff*)",
|
|
76
|
+
"Bash(black --check *)",
|
|
77
|
+
"Bash(./gradlew *)",
|
|
78
|
+
"Bash(gradle *)",
|
|
79
|
+
"Bash(mvn test*)",
|
|
80
|
+
"Bash(mvn compile*)",
|
|
81
|
+
"Bash(java -version)",
|
|
82
|
+
"Bash(kotlin -version)",
|
|
83
|
+
"Bash(docker ps*)",
|
|
84
|
+
"Bash(docker logs*)",
|
|
85
|
+
"Bash(docker compose ps*)",
|
|
86
|
+
"Bash(docker compose logs*)",
|
|
87
|
+
"Read(**)",
|
|
88
|
+
"Write(./src/**)",
|
|
89
|
+
"Write(./app/**)",
|
|
90
|
+
"Write(./pages/**)",
|
|
91
|
+
"Write(./components/**)",
|
|
92
|
+
"Write(./lib/**)",
|
|
93
|
+
"Write(./tests/**)",
|
|
94
|
+
"Write(./test/**)",
|
|
95
|
+
"Write(./__tests__/**)",
|
|
96
|
+
"Write(./prisma/**)",
|
|
97
|
+
"Write(./drizzle/**)",
|
|
98
|
+
"Write(./public/**)",
|
|
99
|
+
"Write(./styles/**)",
|
|
100
|
+
"Write(./scripts/**)",
|
|
101
|
+
"Write(./docs/**)",
|
|
102
|
+
"Edit(**)",
|
|
103
|
+
"WebFetch(*)"
|
|
13
104
|
],
|
|
14
105
|
"deny": [
|
|
106
|
+
"Agent(bypass-runner)",
|
|
15
107
|
"Bash(rm -rf *)",
|
|
16
108
|
"Bash(sudo *)",
|
|
17
109
|
"Bash(su *)",
|
|
@@ -31,7 +123,162 @@
|
|
|
31
123
|
"Bash(git push --force*)",
|
|
32
124
|
"Bash(git push -f*)",
|
|
33
125
|
"Bash(git rebase *)",
|
|
34
|
-
"Bash(git reset --hard *)"
|
|
126
|
+
"Bash(git reset --hard *)",
|
|
127
|
+
"Bash(rm -fr *)",
|
|
128
|
+
"Bash(chmod -R *)",
|
|
129
|
+
"Bash(eval *)",
|
|
130
|
+
"Bash(git push --force origin main*)",
|
|
131
|
+
"Bash(git push --force origin master*)",
|
|
132
|
+
"Bash(git push -f origin main*)",
|
|
133
|
+
"Bash(git push -f origin master*)",
|
|
134
|
+
"Read(./.env)",
|
|
135
|
+
"Read(./.env.*)",
|
|
136
|
+
"Read(./**/.env)",
|
|
137
|
+
"Read(./**/.env.*)",
|
|
138
|
+
"Read(./secrets/**)",
|
|
139
|
+
"Read(./**/credentials.json)",
|
|
140
|
+
"Read(./**/serviceAccount*.json)",
|
|
141
|
+
"Read(./**/*.pem)",
|
|
142
|
+
"Read(./**/*.key)",
|
|
143
|
+
"Read(./**/id_rsa*)",
|
|
144
|
+
"Read(~/.ssh/**)",
|
|
145
|
+
"Read(~/.aws/**)",
|
|
146
|
+
"Read(~/.gnupg/**)",
|
|
147
|
+
"Write(./.env)",
|
|
148
|
+
"Write(./.env.*)",
|
|
149
|
+
"Write(./**/.env)",
|
|
150
|
+
"Edit(./.env)",
|
|
151
|
+
"Edit(./.env.*)",
|
|
152
|
+
"Edit(./**/.env)"
|
|
153
|
+
],
|
|
154
|
+
"ask": [
|
|
155
|
+
"Bash(git push*)",
|
|
156
|
+
"Bash(git push --force*)",
|
|
157
|
+
"Bash(git reset --hard*)",
|
|
158
|
+
"Bash(npm install*)",
|
|
159
|
+
"Bash(npm i *)",
|
|
160
|
+
"Bash(pnpm install*)",
|
|
161
|
+
"Bash(pnpm add *)",
|
|
162
|
+
"Bash(yarn add *)",
|
|
163
|
+
"Bash(pip install*)",
|
|
164
|
+
"Bash(docker run*)",
|
|
165
|
+
"Bash(docker compose up*)",
|
|
166
|
+
"Bash(docker compose down*)",
|
|
167
|
+
"Bash(./gradlew build*)",
|
|
168
|
+
"Bash(./gradlew bootRun*)",
|
|
169
|
+
"Bash(mvn install*)",
|
|
170
|
+
"Bash(mvn deploy*)",
|
|
171
|
+
"Bash(vercel*)",
|
|
172
|
+
"Bash(npx vercel*)"
|
|
173
|
+
],
|
|
174
|
+
"defaultMode": "acceptEdits",
|
|
175
|
+
"disableBypassPermissionsMode": "disable"
|
|
176
|
+
},
|
|
177
|
+
"hooks": {
|
|
178
|
+
"PostToolUse": [
|
|
179
|
+
{
|
|
180
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
181
|
+
"hooks": [
|
|
182
|
+
{
|
|
183
|
+
"type": "command",
|
|
184
|
+
"command": "if echo \"$CLAUDE_TOOL_INPUT_FILE_PATH\" | grep -qE '\\.(ts|tsx|js|jsx|mjs|cjs|json|jsonc|md|mdx|css|scss|html|astro|yaml|yml)$'; then npx --no-install prettier --write \"$CLAUDE_TOOL_INPUT_FILE_PATH\" 2>/dev/null || true; fi"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "command",
|
|
188
|
+
"command": "if echo \"$CLAUDE_TOOL_INPUT_FILE_PATH\" | grep -qE '\\.(ts|tsx|js|jsx|mjs|cjs)$'; then npx --no-install eslint --fix \"$CLAUDE_TOOL_INPUT_FILE_PATH\" 2>/dev/null || true; fi"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"type": "command",
|
|
192
|
+
"command": "if echo \"$CLAUDE_TOOL_INPUT_FILE_PATH\" | grep -qE '\\.py$'; then ruff format \"$CLAUDE_TOOL_INPUT_FILE_PATH\" 2>/dev/null && ruff check --fix \"$CLAUDE_TOOL_INPUT_FILE_PATH\" 2>/dev/null || true; fi"
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"PreToolUse": [
|
|
198
|
+
{
|
|
199
|
+
"matcher": "Bash",
|
|
200
|
+
"hooks": [
|
|
201
|
+
{
|
|
202
|
+
"type": "command",
|
|
203
|
+
"command": "if echo \"$CLAUDE_TOOL_INPUT_COMMAND\" | grep -qE '(\\.env|secrets/|id_rsa|\\.pem|\\.key)\\b' && echo \"$CLAUDE_TOOL_INPUT_COMMAND\" | grep -qE '(cat|less|more|head|tail|cp |mv |scp )'; then echo 'Bloqueado: intento de leer archivos sensibles' >&2; exit 2; fi"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"SubagentStop": [
|
|
209
|
+
{
|
|
210
|
+
"hooks": [
|
|
211
|
+
{
|
|
212
|
+
"type": "command",
|
|
213
|
+
"command": "echo \"[subagent fin] $(date -Iseconds)\" >> ~/.claude/subagent.log"
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"sandbox": {
|
|
220
|
+
"enabled": false,
|
|
221
|
+
"failIfUnavailable": false,
|
|
222
|
+
"autoAllowBashIfSandboxed": true,
|
|
223
|
+
"network": {
|
|
224
|
+
"allowedDomains": [
|
|
225
|
+
"github.com",
|
|
226
|
+
"*.githubusercontent.com",
|
|
227
|
+
"registry.npmjs.org",
|
|
228
|
+
"*.npmjs.org",
|
|
229
|
+
"registry.yarnpkg.com",
|
|
230
|
+
"pypi.org",
|
|
231
|
+
"*.pythonhosted.org",
|
|
232
|
+
"repo.maven.apache.org",
|
|
233
|
+
"repo1.maven.org",
|
|
234
|
+
"services.gradle.org",
|
|
235
|
+
"plugins.gradle.org",
|
|
236
|
+
"*.gradle.org",
|
|
237
|
+
"*.googleapis.com",
|
|
238
|
+
"api.anthropic.com"
|
|
239
|
+
],
|
|
240
|
+
"allowLocalBinding": true
|
|
241
|
+
},
|
|
242
|
+
"filesystem": {
|
|
243
|
+
"denyRead": [
|
|
244
|
+
"~/.ssh",
|
|
245
|
+
"~/.aws",
|
|
246
|
+
"~/.gnupg",
|
|
247
|
+
"./.env",
|
|
248
|
+
"./.env.*"
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
"excludedCommands": [
|
|
252
|
+
"docker *"
|
|
35
253
|
]
|
|
254
|
+
},
|
|
255
|
+
"extraKnownMarketplaces": {
|
|
256
|
+
"agricidaniel-claude-seo": {
|
|
257
|
+
"source": {
|
|
258
|
+
"source": "github",
|
|
259
|
+
"repo": "AgriciDaniel/claude-seo"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"language": "spanish",
|
|
264
|
+
"feedbackSurveyRate": 0,
|
|
265
|
+
"spinnerTipsEnabled": false,
|
|
266
|
+
"alwaysThinkingEnabled": true,
|
|
267
|
+
"effortLevel": "xhigh",
|
|
268
|
+
"awaySummaryEnabled": false,
|
|
269
|
+
"showClearContextOnPlanAccept": true,
|
|
270
|
+
"autoUpdatesChannel": "stable",
|
|
271
|
+
"prefersReducedMotion": false,
|
|
272
|
+
"autoMemoryEnabled": false,
|
|
273
|
+
"showThinkingSummaries": true,
|
|
274
|
+
"skipDangerousModePermissionPrompt": true,
|
|
275
|
+
"editorMode": "vim",
|
|
276
|
+
"fileCheckpointingEnabled": true,
|
|
277
|
+
"showTurnDuration": true,
|
|
278
|
+
"terminalProgressBarEnabled": true,
|
|
279
|
+
"autoConnectIde": true,
|
|
280
|
+
"autoInstallIdeExtension": false,
|
|
281
|
+
"enabledPlugins": {
|
|
282
|
+
"claude-seo@agricidaniel-claude-seo": true
|
|
36
283
|
}
|
|
37
284
|
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: conductor-setup
|
|
3
|
+
description: Configure a Rails project to work with Conductor (parallel coding agents)
|
|
4
|
+
allowed-tools: Bash(chmod *), Bash(bundle *), Bash(npm *), Bash(script/server)
|
|
5
|
+
context: fork
|
|
6
|
+
risk: unknown
|
|
7
|
+
source: community
|
|
8
|
+
metadata:
|
|
9
|
+
author: Shpigford
|
|
10
|
+
version: "1.0"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
Set up this Rails project for Conductor, the Mac app for parallel coding agents.
|
|
14
|
+
|
|
15
|
+
## When to Use
|
|
16
|
+
- You need to configure a Rails project so it runs correctly inside Conductor workspaces.
|
|
17
|
+
- The project should support parallel coding agents with isolated ports, Redis settings, and shared secrets.
|
|
18
|
+
- You want the standard `conductor.json`, `bin/conductor-setup`, and `script/server` scaffolding for a Rails repo.
|
|
19
|
+
|
|
20
|
+
# What to Create
|
|
21
|
+
|
|
22
|
+
## 1. conductor.json (project root)
|
|
23
|
+
|
|
24
|
+
Create `conductor.json` in the project root if it doesn't already exist:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"scripts": {
|
|
29
|
+
"setup": "bin/conductor-setup",
|
|
30
|
+
"run": "script/server"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## 2. bin/conductor-setup (executable)
|
|
36
|
+
|
|
37
|
+
Create `bin/conductor-setup` if it doesn't already exist:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
#!/bin/bash
|
|
41
|
+
set -e
|
|
42
|
+
|
|
43
|
+
# Symlink .env from repo root (where secrets live, outside worktrees)
|
|
44
|
+
[ -f "$CONDUCTOR_ROOT_PATH/.env" ] && ln -sf "$CONDUCTOR_ROOT_PATH/.env" .env
|
|
45
|
+
|
|
46
|
+
# Symlink Rails master key
|
|
47
|
+
[ -f "$CONDUCTOR_ROOT_PATH/config/master.key" ] && ln -sf "$CONDUCTOR_ROOT_PATH/config/master.key" config/master.key
|
|
48
|
+
|
|
49
|
+
# Install dependencies
|
|
50
|
+
bundle install
|
|
51
|
+
npm install
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Make it executable with `chmod +x bin/conductor-setup`.
|
|
55
|
+
|
|
56
|
+
## 3. script/server (executable)
|
|
57
|
+
|
|
58
|
+
Create the `script` directory if needed, then create `script/server` if it doesn't already exist:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
#!/bin/bash
|
|
62
|
+
|
|
63
|
+
# === Port Configuration ===
|
|
64
|
+
export PORT=${CONDUCTOR_PORT:-3000}
|
|
65
|
+
export VITE_RUBY_PORT=$((PORT + 1000))
|
|
66
|
+
|
|
67
|
+
# === Redis Isolation ===
|
|
68
|
+
if [ -n "$CONDUCTOR_WORKSPACE_NAME" ]; then
|
|
69
|
+
HASH=$(printf '%s' "$CONDUCTOR_WORKSPACE_NAME" | cksum | cut -d' ' -f1)
|
|
70
|
+
REDIS_DB=$((HASH % 16))
|
|
71
|
+
export REDIS_URL="redis://localhost:6379/${REDIS_DB}"
|
|
72
|
+
fi
|
|
73
|
+
|
|
74
|
+
exec bin/dev
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Make it executable with `chmod +x script/server`.
|
|
78
|
+
|
|
79
|
+
## 4. Update Rails Config Files
|
|
80
|
+
|
|
81
|
+
For each of the following files, if they exist and contain Redis configuration, update them to use `ENV.fetch('REDIS_URL', ...)` or `ENV['REDIS_URL']` with a fallback:
|
|
82
|
+
|
|
83
|
+
### config/initializers/sidekiq.rb
|
|
84
|
+
If this file exists and configures Redis, update it to use:
|
|
85
|
+
```ruby
|
|
86
|
+
redis_url = ENV.fetch('REDIS_URL', 'redis://localhost:6379/0')
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### config/cable.yml
|
|
90
|
+
If this file exists, update the development adapter to use:
|
|
91
|
+
```yaml
|
|
92
|
+
development:
|
|
93
|
+
adapter: redis
|
|
94
|
+
url: <%= ENV.fetch('REDIS_URL', 'redis://localhost:6379/1') %>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### config/environments/development.rb
|
|
98
|
+
If this file configures Redis for caching, update to use:
|
|
99
|
+
```ruby
|
|
100
|
+
config.cache_store = :redis_cache_store, { url: ENV.fetch('REDIS_URL', 'redis://localhost:6379/0') }
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### config/initializers/rack_attack.rb
|
|
104
|
+
If this file exists and configures a Redis cache store, update to use:
|
|
105
|
+
```ruby
|
|
106
|
+
Rack::Attack.cache.store = ActiveSupport::Cache::RedisCacheStore.new(url: ENV.fetch('REDIS_URL', 'redis://localhost:6379/0'))
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
# Implementation Notes
|
|
110
|
+
|
|
111
|
+
- **Don't overwrite existing files**: Check if conductor.json, bin/conductor-setup, and script/server exist before creating them. If they exist, skip creation and inform the user.
|
|
112
|
+
- **Rails config updates**: Only modify Redis-related configuration. If a file doesn't exist or doesn't use Redis, skip it gracefully.
|
|
113
|
+
- **Create directories as needed**: Create `script/` directory if it doesn't exist.
|
|
114
|
+
|
|
115
|
+
# Verification
|
|
116
|
+
|
|
117
|
+
After creating the files:
|
|
118
|
+
1. Confirm all Conductor files exist and scripts are executable
|
|
119
|
+
2. Run `script/server` to verify it starts without errors
|
|
120
|
+
3. Check that Rails configs properly reference `ENV['REDIS_URL']` or `ENV.fetch('REDIS_URL', ...)`
|
|
121
|
+
|
|
122
|
+
## Limitations
|
|
123
|
+
- Use this skill only when the task clearly matches the scope described above.
|
|
124
|
+
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
|
|
125
|
+
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: find-skills
|
|
3
|
+
description: Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Find Skills
|
|
7
|
+
|
|
8
|
+
This skill helps you discover and install skills from the open agent skills ecosystem.
|
|
9
|
+
|
|
10
|
+
## When to Use This Skill
|
|
11
|
+
|
|
12
|
+
Use this skill when the user:
|
|
13
|
+
|
|
14
|
+
- Asks "how do I do X" where X might be a common task with an existing skill
|
|
15
|
+
- Says "find a skill for X" or "is there a skill for X"
|
|
16
|
+
- Asks "can you do X" where X is a specialized capability
|
|
17
|
+
- Expresses interest in extending agent capabilities
|
|
18
|
+
- Wants to search for tools, templates, or workflows
|
|
19
|
+
- Mentions they wish they had help with a specific domain (design, testing, deployment, etc.)
|
|
20
|
+
|
|
21
|
+
## What is the Skills CLI?
|
|
22
|
+
|
|
23
|
+
The Skills CLI (`npx skills`) is the package manager for the open agent skills ecosystem. Skills are modular packages that extend agent capabilities with specialized knowledge, workflows, and tools.
|
|
24
|
+
|
|
25
|
+
**Key commands:**
|
|
26
|
+
|
|
27
|
+
- `npx skills find [query]` - Search for skills interactively or by keyword
|
|
28
|
+
- `npx skills add <package>` - Install a skill from GitHub or other sources
|
|
29
|
+
- `npx skills check` - Check for skill updates
|
|
30
|
+
- `npx skills update` - Update all installed skills
|
|
31
|
+
|
|
32
|
+
**Browse skills at:** https://skills.sh/
|
|
33
|
+
|
|
34
|
+
## How to Help Users Find Skills
|
|
35
|
+
|
|
36
|
+
### Step 1: Understand What They Need
|
|
37
|
+
|
|
38
|
+
When a user asks for help with something, identify:
|
|
39
|
+
|
|
40
|
+
1. The domain (e.g., React, testing, design, deployment)
|
|
41
|
+
2. The specific task (e.g., writing tests, creating animations, reviewing PRs)
|
|
42
|
+
3. Whether this is a common enough task that a skill likely exists
|
|
43
|
+
|
|
44
|
+
### Step 2: Check the Leaderboard First
|
|
45
|
+
|
|
46
|
+
Before running a CLI search, check the [skills.sh leaderboard](https://skills.sh/) to see if a well-known skill already exists for the domain. The leaderboard ranks skills by total installs, surfacing the most popular and battle-tested options.
|
|
47
|
+
|
|
48
|
+
For example, top skills for web development include:
|
|
49
|
+
- `vercel-labs/agent-skills` — React, Next.js, web design (100K+ installs each)
|
|
50
|
+
- `anthropics/skills` — Frontend design, document processing (100K+ installs)
|
|
51
|
+
|
|
52
|
+
### Step 3: Search for Skills
|
|
53
|
+
|
|
54
|
+
If the leaderboard doesn't cover the user's need, run the find command:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npx skills find [query]
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For example:
|
|
61
|
+
|
|
62
|
+
- User asks "how do I make my React app faster?" → `npx skills find react performance`
|
|
63
|
+
- User asks "can you help me with PR reviews?" → `npx skills find pr review`
|
|
64
|
+
- User asks "I need to create a changelog" → `npx skills find changelog`
|
|
65
|
+
|
|
66
|
+
### Step 4: Verify Quality Before Recommending
|
|
67
|
+
|
|
68
|
+
**Do not recommend a skill based solely on search results.** Always verify:
|
|
69
|
+
|
|
70
|
+
1. **Install count** — Prefer skills with 1K+ installs. Be cautious with anything under 100.
|
|
71
|
+
2. **Source reputation** — Official sources (`vercel-labs`, `anthropics`, `microsoft`) are more trustworthy than unknown authors.
|
|
72
|
+
3. **GitHub stars** — Check the source repository. A skill from a repo with <100 stars should be treated with skepticism.
|
|
73
|
+
|
|
74
|
+
### Step 5: Present Options to the User
|
|
75
|
+
|
|
76
|
+
When you find relevant skills, present them to the user with:
|
|
77
|
+
|
|
78
|
+
1. The skill name and what it does
|
|
79
|
+
2. The install count and source
|
|
80
|
+
3. The install command they can run
|
|
81
|
+
4. A link to learn more at skills.sh
|
|
82
|
+
|
|
83
|
+
Example response:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
I found a skill that might help! The "react-best-practices" skill provides
|
|
87
|
+
React and Next.js performance optimization guidelines from Vercel Engineering.
|
|
88
|
+
(185K installs)
|
|
89
|
+
|
|
90
|
+
To install it:
|
|
91
|
+
npx skills add vercel-labs/agent-skills@react-best-practices
|
|
92
|
+
|
|
93
|
+
Learn more: https://skills.sh/vercel-labs/agent-skills/react-best-practices
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Step 6: Offer to Install
|
|
97
|
+
|
|
98
|
+
If the user wants to proceed, you can install the skill for them:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
npx skills add <owner/repo@skill> -g -y
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The `-g` flag installs globally (user-level) and `-y` skips confirmation prompts.
|
|
105
|
+
|
|
106
|
+
## Common Skill Categories
|
|
107
|
+
|
|
108
|
+
When searching, consider these common categories:
|
|
109
|
+
|
|
110
|
+
| Category | Example Queries |
|
|
111
|
+
| --------------- | ---------------------------------------- |
|
|
112
|
+
| Web Development | react, nextjs, typescript, css, tailwind |
|
|
113
|
+
| Testing | testing, jest, playwright, e2e |
|
|
114
|
+
| DevOps | deploy, docker, kubernetes, ci-cd |
|
|
115
|
+
| Documentation | docs, readme, changelog, api-docs |
|
|
116
|
+
| Code Quality | review, lint, refactor, best-practices |
|
|
117
|
+
| Design | ui, ux, design-system, accessibility |
|
|
118
|
+
| Productivity | workflow, automation, git |
|
|
119
|
+
|
|
120
|
+
## Tips for Effective Searches
|
|
121
|
+
|
|
122
|
+
1. **Use specific keywords**: "react testing" is better than just "testing"
|
|
123
|
+
2. **Try alternative terms**: If "deploy" doesn't work, try "deployment" or "ci-cd"
|
|
124
|
+
3. **Check popular sources**: Many skills come from `vercel-labs/agent-skills` or `ComposioHQ/awesome-claude-skills`
|
|
125
|
+
|
|
126
|
+
## When No Skills Are Found
|
|
127
|
+
|
|
128
|
+
If no relevant skills exist:
|
|
129
|
+
|
|
130
|
+
1. Acknowledge that no existing skill was found
|
|
131
|
+
2. Offer to help with the task directly using your general capabilities
|
|
132
|
+
3. Suggest the user could create their own skill with `npx skills init`
|
|
133
|
+
|
|
134
|
+
Example:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
I searched for skills related to "xyz" but didn't find any matches.
|
|
138
|
+
I can still help you with this task directly! Would you like me to proceed?
|
|
139
|
+
|
|
140
|
+
If this is something you do often, you could create your own skill:
|
|
141
|
+
npx skills init my-xyz-skill
|
|
142
|
+
```
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# Multi-Agent Orchestration - Code Structure
|
|
2
|
+
|
|
3
|
+
This skill uses supporting Python files to keep documentation lean and maintainable.
|
|
4
|
+
|
|
5
|
+
## Directory Structure
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
multi-agent-orchestration/
|
|
9
|
+
├── SKILL.md # Main documentation (patterns, concepts)
|
|
10
|
+
├── README.md # This file
|
|
11
|
+
├── examples/ # Implementation examples
|
|
12
|
+
│ ├── orchestration_patterns.py # Sequential, parallel, hierarchical, consensus
|
|
13
|
+
│ └── framework_implementations.py # CrewAI, AutoGen, LangGraph, Swarm templates
|
|
14
|
+
└── scripts/ # Utility modules
|
|
15
|
+
├── agent_communication.py # Message broker, shared memory, protocols
|
|
16
|
+
├── workflow_management.py # Workflow execution and optimization
|
|
17
|
+
└── benchmarking.py # Performance and collaboration metrics
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Running Examples
|
|
21
|
+
|
|
22
|
+
### 1. Orchestration Patterns
|
|
23
|
+
```bash
|
|
24
|
+
python examples/orchestration_patterns.py
|
|
25
|
+
```
|
|
26
|
+
Demonstrates sequential, parallel, hierarchical, and consensus orchestration.
|
|
27
|
+
|
|
28
|
+
### 2. Framework Templates
|
|
29
|
+
```bash
|
|
30
|
+
python examples/framework_implementations.py
|
|
31
|
+
```
|
|
32
|
+
Templates and configurations for CrewAI, AutoGen, LangGraph, and Swarm frameworks.
|
|
33
|
+
|
|
34
|
+
## Using the Utilities
|
|
35
|
+
|
|
36
|
+
### Agent Communication
|
|
37
|
+
```python
|
|
38
|
+
from scripts.agent_communication import MessageBroker, SharedMemory, CommunicationProtocol
|
|
39
|
+
|
|
40
|
+
# Set up communication
|
|
41
|
+
broker = MessageBroker()
|
|
42
|
+
shared_memory = SharedMemory()
|
|
43
|
+
protocol = CommunicationProtocol(broker, shared_memory)
|
|
44
|
+
|
|
45
|
+
# Send messages between agents
|
|
46
|
+
protocol.request_analysis("agent_a", "agent_b", "Analyze this topic")
|
|
47
|
+
|
|
48
|
+
# Share findings
|
|
49
|
+
protocol.share_findings("agent_a", "analysis_results", {"findings": "..."})
|
|
50
|
+
|
|
51
|
+
# Get communication stats
|
|
52
|
+
stats = broker.get_statistics()
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Workflow Management
|
|
56
|
+
```python
|
|
57
|
+
from scripts.workflow_management import WorkflowExecutor, WorkflowOptimizer
|
|
58
|
+
|
|
59
|
+
# Create and execute workflow
|
|
60
|
+
executor = WorkflowExecutor()
|
|
61
|
+
workflow = executor.create_workflow("workflow_1", "Analysis Workflow")
|
|
62
|
+
|
|
63
|
+
# Add tasks
|
|
64
|
+
executor.add_task("workflow_1", "task_1", "researcher", "Research the topic")
|
|
65
|
+
executor.add_task("workflow_1", "task_2", "analyst", "Analyze findings", dependencies=["task_1"])
|
|
66
|
+
|
|
67
|
+
# Execute
|
|
68
|
+
results = executor.execute_workflow("workflow_1", executor_func)
|
|
69
|
+
|
|
70
|
+
# Analyze workflow
|
|
71
|
+
analysis = WorkflowOptimizer.analyze_dependencies(workflow)
|
|
72
|
+
print(f"Critical path: {analysis['critical_path']}")
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Benchmarking
|
|
76
|
+
```python
|
|
77
|
+
from scripts.benchmarking import TeamBenchmark, AgentEffectiveness, CollaborationMetrics
|
|
78
|
+
|
|
79
|
+
# Benchmark team performance
|
|
80
|
+
benchmark = TeamBenchmark()
|
|
81
|
+
result = benchmark.run_benchmark("sequential_test", orchestrator, test_data)
|
|
82
|
+
|
|
83
|
+
# Track agent effectiveness
|
|
84
|
+
effectiveness = AgentEffectiveness()
|
|
85
|
+
effectiveness.record_agent_task("agent_a", "task_1", success=True, quality_score=0.95, duration=2.5)
|
|
86
|
+
|
|
87
|
+
# Get agent rankings
|
|
88
|
+
rankings = effectiveness.rank_agents()
|
|
89
|
+
for rank, agent, score, metrics in rankings:
|
|
90
|
+
print(f"{rank}. {agent}: {score:.2f}")
|
|
91
|
+
|
|
92
|
+
# Analyze collaboration
|
|
93
|
+
collaboration = CollaborationMetrics()
|
|
94
|
+
collaboration.record_interaction("agent_a", "agent_b", "request", response_time=0.5, successful=True)
|
|
95
|
+
interaction_metrics = collaboration.get_interaction_metrics()
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Integration with SKILL.md
|
|
99
|
+
|
|
100
|
+
- SKILL.md contains conceptual information, orchestration patterns, and best practices
|
|
101
|
+
- Code examples are in `examples/` for clarity and runnable implementations
|
|
102
|
+
- Utilities are in `scripts/` for modular, reusable components
|
|
103
|
+
- This keeps token costs low while maintaining full functionality
|
|
104
|
+
|
|
105
|
+
## Orchestration Patterns Covered
|
|
106
|
+
|
|
107
|
+
1. **Sequential Orchestration** - Tasks execute one after another
|
|
108
|
+
2. **Parallel Orchestration** - Multiple agents work simultaneously
|
|
109
|
+
3. **Hierarchical Orchestration** - Manager coordinates specialist teams
|
|
110
|
+
4. **Consensus-Based** - Agents debate and reach consensus
|
|
111
|
+
5. **Adaptive Workflows** - Orchestration changes based on progress
|
|
112
|
+
6. **DAG-Based** - Workflow as directed acyclic graph
|
|
113
|
+
|
|
114
|
+
## Framework Implementations
|
|
115
|
+
|
|
116
|
+
- **CrewAI** - Clear roles, hierarchical structure
|
|
117
|
+
- **AutoGen** - Multi-turn conversations, group discussions
|
|
118
|
+
- **LangGraph** - State management, complex workflows
|
|
119
|
+
- **Swarm** - Simple handoffs, conversational workflows
|
|
120
|
+
|
|
121
|
+
## Key Features
|
|
122
|
+
|
|
123
|
+
- **Token Efficient**: Modular code structure reduces LLM context usage
|
|
124
|
+
- **Production Ready**: Includes monitoring, optimization, and benchmarking
|
|
125
|
+
- **Framework Agnostic**: Works with any agent framework
|
|
126
|
+
- **Communication Patterns**: Direct, tool-mediated, and manager-based
|
|
127
|
+
- **Performance Metrics**: Team and individual agent effectiveness tracking
|
|
128
|
+
|
|
129
|
+
## Communication Patterns
|
|
130
|
+
|
|
131
|
+
- **Direct Communication**: Agent-to-agent message passing
|
|
132
|
+
- **Tool-Mediated**: Agents use shared memory/database
|
|
133
|
+
- **Manager-Based**: Central coordinator manages communication
|
|
134
|
+
- **Broadcast**: One-to-many messaging
|
|
135
|
+
|
|
136
|
+
## Next Steps
|
|
137
|
+
|
|
138
|
+
1. Define agent roles and expertise
|
|
139
|
+
2. Choose orchestration pattern (sequential, parallel, hierarchical)
|
|
140
|
+
3. Select communication approach (direct, shared memory, manager)
|
|
141
|
+
4. Implement workflow with task definitions
|
|
142
|
+
5. Set up monitoring and metrics
|
|
143
|
+
6. Benchmark and optimize
|
|
144
|
+
7. Deploy and iterate
|