conductor-setup by sickn33/antigravity-awesome-skills
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill conductor-setup为 Conductor(并行编码代理的 Mac 应用)设置此 Rails 项目。
如果项目根目录下不存在 conductor.json,请创建它:
{
"scripts": {
"setup": "bin/conductor-setup",
"run": "script/server"
}
}
如果不存在 bin/conductor-setup,请创建它:
#!/bin/bash
set -e
# 从仓库根目录(存放密钥的地方,在工作树之外)创建 .env 的符号链接
[ -f "$CONDUCTOR_ROOT_PATH/.env" ] && ln -sf "$CONDUCTOR_ROOT_PATH/.env" .env
# 创建 Rails 主密钥的符号链接
[ -f "$CONDUCTOR_ROOT_PATH/config/master.key" ] && ln -sf "$CONDUCTOR_ROOT_PATH/config/master.key" config/master.key
# 安装依赖项
bundle install
npm install
使用 chmod +x bin/conductor-setup 使其可执行。
如果需要,创建 script 目录,然后如果不存在 ,请创建它:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
script/server#!/bin/bash
# === 端口配置 ===
export PORT=${CONDUCTOR_PORT:-3000}
export VITE_RUBY_PORT=$((PORT + 1000))
# === Redis 隔离 ===
if [ -n "$CONDUCTOR_WORKSPACE_NAME" ]; then
HASH=$(printf '%s' "$CONDUCTOR_WORKSPACE_NAME" | cksum | cut -d' ' -f1)
REDIS_DB=$((HASH % 16))
export REDIS_URL="redis://localhost:6379/${REDIS_DB}"
fi
exec bin/dev
使用 chmod +x script/server 使其可执行。
对于以下每个文件,如果它们存在并且包含 Redis 配置,请更新它们以使用 ENV.fetch('REDIS_URL', ...) 或 ENV['REDIS_URL'] 并提供一个回退值:
如果此文件存在并配置了 Redis,请更新它以使用:
redis_url = ENV.fetch('REDIS_URL', 'redis://localhost:6379/0')
如果此文件存在,请更新开发环境适配器以使用:
development:
adapter: redis
url: <%= ENV.fetch('REDIS_URL', 'redis://localhost:6379/1') %>
如果此文件为缓存配置了 Redis,请更新它以使用:
config.cache_store = :redis_cache_store, { url: ENV.fetch('REDIS_URL', 'redis://localhost:6379/0') }
如果此文件存在并配置了 Redis 缓存存储,请更新它以使用:
Rack::Attack.cache.store = ActiveSupport::Cache::RedisCacheStore.new(url: ENV.fetch('REDIS_URL', 'redis://localhost:6379/0'))
script/ 目录不存在,请创建它。创建文件后:
script/server 以验证其启动无误ENV['REDIS_URL'] 或 ENV.fetch('REDIS_URL', ...)每周安装量
104
仓库
GitHub 星标
27.4K
首次出现
2026年1月28日
安全审计
安装于
gemini-cli96
codex93
opencode93
github-copilot90
claude-code89
cursor87
Set up this Rails project for Conductor, the Mac app for parallel coding agents.
Create conductor.json in the project root if it doesn't already exist:
{
"scripts": {
"setup": "bin/conductor-setup",
"run": "script/server"
}
}
Create bin/conductor-setup if it doesn't already exist:
#!/bin/bash
set -e
# Symlink .env from repo root (where secrets live, outside worktrees)
[ -f "$CONDUCTOR_ROOT_PATH/.env" ] && ln -sf "$CONDUCTOR_ROOT_PATH/.env" .env
# Symlink Rails master key
[ -f "$CONDUCTOR_ROOT_PATH/config/master.key" ] && ln -sf "$CONDUCTOR_ROOT_PATH/config/master.key" config/master.key
# Install dependencies
bundle install
npm install
Make it executable with chmod +x bin/conductor-setup.
Create the script directory if needed, then create script/server if it doesn't already exist:
#!/bin/bash
# === Port Configuration ===
export PORT=${CONDUCTOR_PORT:-3000}
export VITE_RUBY_PORT=$((PORT + 1000))
# === Redis Isolation ===
if [ -n "$CONDUCTOR_WORKSPACE_NAME" ]; then
HASH=$(printf '%s' "$CONDUCTOR_WORKSPACE_NAME" | cksum | cut -d' ' -f1)
REDIS_DB=$((HASH % 16))
export REDIS_URL="redis://localhost:6379/${REDIS_DB}"
fi
exec bin/dev
Make it executable with chmod +x script/server.
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:
If this file exists and configures Redis, update it to use:
redis_url = ENV.fetch('REDIS_URL', 'redis://localhost:6379/0')
If this file exists, update the development adapter to use:
development:
adapter: redis
url: <%= ENV.fetch('REDIS_URL', 'redis://localhost:6379/1') %>
If this file configures Redis for caching, update to use:
config.cache_store = :redis_cache_store, { url: ENV.fetch('REDIS_URL', 'redis://localhost:6379/0') }
If this file exists and configures a Redis cache store, update to use:
Rack::Attack.cache.store = ActiveSupport::Cache::RedisCacheStore.new(url: ENV.fetch('REDIS_URL', 'redis://localhost:6379/0'))
script/ directory if it doesn't exist.After creating the files:
script/server to verify it starts without errorsENV['REDIS_URL'] or ENV.fetch('REDIS_URL', ...)Weekly Installs
104
Repository
GitHub Stars
27.4K
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli96
codex93
opencode93
github-copilot90
claude-code89
cursor87
opencli:将网站转为命令行工具,复用Chrome登录状态,无需凭证 | 自动化爬虫替代方案
3,100 周安装
Govilo To Go:一键生成付费文件解锁链接,支持加密货币收款
3,000 周安装
Vercel 组件构建指南:UI组件开发、无障碍设计、可组合API与npm发布
3,200 周安装
LangChain 人在回路中间件:AI 工具调用人工审批与安全控制
3,200 周安装
LangChain框架选择指南:Deep Agents、LangGraph、LangChain对比与决策
3,200 周安装
为游戏添加程序化音乐和音效 - Web Audio API 音序器与合成指南
103 周安装