بنقرة واحدة
setup-env
Create .env from .env.example, auto-detect ~/.claude-* config directories across all repos
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create .env from .env.example, auto-detect ~/.claude-* config directories across all repos
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Stop the running supervisor and all researcher variants
Live tree view of supervisor via cron — agent collects stats every 30s
Dashboard: supervisor status, researcher variants, and metric history
Remove all supervisor leftovers: clones, logs, state, backups
Start the supervisor as a background process
Delete all deployed SAR repos and clean temp files
| name | setup-env |
| description | Create .env from .env.example, auto-detect ~/.claude-* config directories across all repos |
| user_invocable | true |
Create .env files from .env.example templates and auto-detect Claude config directories across all SAR repos.
if [ ! -f .env ]; then
cp .env.example .env
echo "Created .env from .env.example"
else
echo ".env already exists"
fi
DETECTED=$(ls -d ~/.claude-* 2>/dev/null | sort | paste -sd ':' -)
echo "Detected: $DETECTED"
if grep -q '^CLAUDE_CONFIG_DIRS=' .env; then
sed -i '' "s|^CLAUDE_CONFIG_DIRS=.*|CLAUDE_CONFIG_DIRS=${DETECTED}|" .env
else
echo "CLAUDE_CONFIG_DIRS=${DETECTED}" >> .env
fi
Read SUPERVISOR_REPO, RESEARCH_LOOP_REPO, RAG_TARGET_REPO from .env. For each repo that has a .env.example:
for REPO_VAR in SUPERVISOR_REPO RESEARCH_LOOP_REPO; do
REPO_PATH=$(grep "^${REPO_VAR}=" .env | cut -d= -f2)
if [ -d "$REPO_PATH" ] && [ -f "$REPO_PATH/.env.example" ]; then
if [ ! -f "$REPO_PATH/.env" ]; then
cp "$REPO_PATH/.env.example" "$REPO_PATH/.env"
echo "Created $REPO_PATH/.env from .env.example"
fi
if grep -q '^CLAUDE_CONFIG_DIRS=' "$REPO_PATH/.env"; then
sed -i '' "s|^CLAUDE_CONFIG_DIRS=.*|CLAUDE_CONFIG_DIRS=${DETECTED}|" "$REPO_PATH/.env"
else
echo "CLAUDE_CONFIG_DIRS=${DETECTED}" >> "$REPO_PATH/.env"
fi
echo "Updated $REPO_PATH/.env"
fi
done
echo "=== CLAUDE_CONFIG_DIRS ==="
echo "$DETECTED"
echo ""
echo "Updated .env files in:"
echo " - . (integration hub)"
for REPO_VAR in SUPERVISOR_REPO RESEARCH_LOOP_REPO; do
REPO_PATH=$(grep "^${REPO_VAR}=" .env | cut -d= -f2)
[ -f "$REPO_PATH/.env" ] && echo " - $REPO_PATH"
done