setup
БесплатноБез исполняемых скриптовНе проверенRun initial Deus setup — dependencies, container, credentials, service, and CLI. Channels are added separately after setup completes. Triggers on "setup"…
от sliamh11★ 50 звёзд на GitHubОб этом скилле
Deus Setup
Run setup steps automatically. Only pause when user action is required (channel authentication, configuration choices). Setup uses bash setup.sh for bootstrap, then npx tsx setup/index.ts --step <name> for all other steps. Steps emit structured status blocks to stdout. Verbose logs go to logs/setup.log.
Principle: When something is broken or missing, fix it. Don't tell the user to go fix it themselves unless it genuinely requires their manual action (e.g. authenticating a channel, pasting a secret token). If a dependency is missing, install it. If a service won't start, diagnose and repair. Ask the user for permission when needed, then do the work.
UX Note: Use AskUserQuestion for all user-facing questions.
CRITICAL: Do NOT add git remotes (git remote add), fetch from external repos, or install npm packages from the public registry outside of step 0. All channel code and packages are local in the repo. If something seems missing, check packages/ and src/channels/ before looking externally.
Vault structure default: The memory step seeds CLAUDE.md (identity + critical rules + index + session state). Only CLAUDE.md auto-loads every turn — everything else loads on demand via memory_tree.
0. Git & Fork Setup
Check the git remote configuration to ensure the user has a proper setup for receiving updates.
Run:
git remote -v
Determine which case applies based on the origin URL:
Case A — origin points to the Deus source repo (user cloned directly instead of forking):
The user cloned instead of forking. AskUserQuestion: "You cloned Deus directly. We recommend forking so you can push your customizations. Would you like to set up a fork?"
- Fork now (recommended) — walk them through it
- Continue without fork — they'll only have local changes
If fork: instruct the user to fork the repo on GitHub (they need to do this in their browser), then ask them for their GitHub username. Run:
git remote rename origin upstream
git remote add origin https://github.com/<their-username>/deus.git
git push --force origin main
Verify with git remote -v.
If continue without fork: they'll only have local changes.
Case B — origin points to a different repo, no upstream remote:
Determine if the user owns the origin repo (it's their fork) or if they cloned someone else's repo:
- Get the authenticated GitHub user:
gh api user --jq .login - Extract the owner from the origin URL (e.g.
sliamh11fromsliamh11/Deus) - Compare them.
If the user OWNS origin (their GitHub username matches origin owner):
- Check if origin is a fork:
gh repo view --json parent --jq '.parent.owner.login + "/" + .parent.name' - If it's a fork → add the parent as upstream:
git remote add upstream https://github.com/<parent-owner>/<parent-name>.git - If it's NOT a fork → this is the source repo. No upstream needed (Case D).
If the user does NOT own origin (they cloned someone else's repo):
- They're using that repo as their source of truth. Do NOT add upstream. Their
originis already their update source.
Case C — both origin and upstream exist:
Already configured. Continue.
Case D — origin points to the source repo (no parent):
This is the maintainer's own repo or a direct clone. No upstream needed. Continue.
1. Bootstrap (Node.js + Dependencies)
Run bash setup.sh and parse the status block.
- If NODE_OK=false → Node.js is missing or too old. Use
AskUserQuestion: Would you like me to install Node.js 22?If confirmed:- macOS:
brew install node@22(if brew available) or install nvm thennvm install 22 - Linux:
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt-get install -y nodejs, or nvm - After installing Node, re-run
bash setup.sh
- macOS:
- If DEPS_OK=false → Read
logs/setup.log. Try: deletenode_modules, re-runbash setup.sh. If native module build fails, install build tools (xcode-select --installon macOS,build-essentialon Linux), then retry. - If NATIVE_OK=false → better-sqlite3 failed to load. Install build tools and re-run.
- Record PLATFORM and IS_WSL for later steps.
2. Check Environment
Run npx tsx setup/index.ts --step environment and parse the status block.
- If HAS_AUTH=true → WhatsApp is already configured, inform user
- If HAS_REGISTERED_GROUPS=true → note existing config
- Record APPLE_CONTAINER and DOCKER values for step 3
3. Container Runtime
3a. Install Docker
- DOCKER=running → continue to 3b
- DOCKER=installed_not_running → start Docker:
- macOS:
open -a Docker - Linux:
sudo systemctl start docker - Windows: launch Docker Desktop from Start menu if not in system tray.
- After starting, check once with
docker info. If it fails, do NOT poll in a loop — use AskUserQuestion: "Docker is starting up. Let me know when it's ready (you'll see the Docker icon in the system tray turn solid)." Then verif
- macOS:
Установить setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл setup?
Run initial Deus setup — dependencies, container, credentials, service, and CLI. Channels are added separately after setup completes. Triggers on "setup", "install", "configure deus", or first-time setup requests.
Как установить скилл setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic