/ana:cloud-settingfrom ana
Provisions an Azure VM, installs Node, tmux, and Claude Code, clones a project, runs an ANA server, and exposes it via Cloudflare Tunnel with systemd units for persistence. Use for moving ANA projects from laptop to server.
Ships in ana. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turns a fresh cloud VM into a running ANA host in one pass. Every step is idempotent and scriptable, so the same skill works for a new project (prosecution, sales, lab, …) by changing PROJECT.
laptop ──ssh/pem──► VM ┬─ tmux <PROJECT>-ana ── claude (coding agent = backend)
├─ ana-<PROJECT>.service ── node server.js 127.0.0.1:8809
└─ cloudflared.service ── tunnel ──► https://<PROJECT>.<domain>
| Var | Example | Notes |
|---|---|---|
PROJECT | prosecution | folder ~/Projects/<PROJECT>, tmux <PROJECT>-ana, unit ana-<PROJECT> |
REPO | https://github.com/tykimos/agent-native-agent | what to clone into the project folder |
VM_IP, VM_USER, PEM | 52.231.69.212, azureuser, ~/ana/connect/demo-vm_key.pem | SSH target |
PORT | 8809 | ANA server port (bind stays 127.0.0.1) |
CF_TOKEN | eyJ… | Cloudflare Tunnel token (Zero Trust → Tunnels → Install connector). Treat as a secret: never commit, never echo in logs. |
PUBLIC_HOST | prosecution.anahub.io | public hostname mapped in the Cloudflare dashboard |
Azure-only (when the VM does not exist yet): RG, LOCATION (koreacentral), VM_NAME, SIZE (Standard_B2as_v2), IMAGE (Ubuntu2404).
scripts/azure-create-vm.sh — az vm create with Trusted Launch, SSH key, Ubuntu 24.04, only port 22 open (the ANA port is never exposed; Cloudflare Tunnel is the only ingress). Prints the public IP and saves the PEM.
Write connect/<VM_NAME>.md (outside the repo, e.g. ~/ana/connect/) using templates/connect.md: IPs, RG, subscription, size, key file, SSH one-liner, and — after setup — the systemd unit names and public URL. Keep the PEM next to it, chmod 400.
scripts/setup-vm.sh run on the VM (pipe it through ssh). It:
tmux git curl (apt), Node 22 (NodeSource), Claude Code (curl -fsSL https://claude.ai/install.sh | bash) and adds ~/.local/bin to PATH;mkdir -p ~/Projects/<PROJECT> and clones REPO if absent;<PROJECT>-ana (200×50, cwd = repo) running claude, unless it already exists.ssh -i $PEM $VM_USER@$VM_IP 'bash -s' -- < scripts/setup-vm.sh # with PROJECT/REPO exported, or pass as args
Claude Code needs a browser OAuth. From the tmux pane: pick theme → login method (1 = subscription) → it prints a URL. Drive it remotely with tmux send-keys/capture-pane, hand the URL to the user, then paste the code back with tmux send-keys -l "<code>" Enter. Afterwards press Shift+Tab (tmux send-keys BTab) to switch to accept edits so file edits don't block; read-only Bash prompts can be approved with "don't ask again".
scripts/install-cloudflared.sh <CF_TOKEN> — adds the Cloudflare apt repo, installs cloudflared, runs cloudflared service install <token> (systemd, auto-start). Then in Zero Trust → Networks → Tunnels → Public Hostname map PUBLIC_HOST → http://localhost:<PORT>. Ingress is remotely managed, so no local config file. Verify from the VM first (curl https://<PUBLIC_HOST>/api/health); the laptop may lag on DNS for a few minutes.
scripts/install-services.sh <PROJECT> [PORT] renders templates/*.service and enables:
<PROJECT>-ana-tmux.service — oneshot, creates the tmux session with claude --continue || claude only if it does not exist (never kills a working agent).ana-<PROJECT>.service — node server.js with TMUX_SESSION=<PROJECT>-ana PORT=<PORT> BIND=127.0.0.1, Restart=always, ordered after the tmux unit.Why systemd and not tmux for the server: auto-start on boot, restart on crash, journalctl logs. The agent stays in tmux because ANA's runtime is the tmux pane (paste-buffer / capture-pane).
ssh -i $PEM $VM_USER@$VM_IP 'systemctl is-active ana-'$PROJECT' '$PROJECT'-ana-tmux cloudflared; curl -s localhost:'$PORT'/api/health'
Expect session:true, ready:true. Health fields: busy (agent thinking), dialog (permission prompt waiting — approve via tmux or the dashboard).
| Need | Command (on VM) |
|---|---|
| Attach to agent | tmux attach -t <PROJECT>-ana |
| Send a prompt remotely | tmux load-buffer -b p file && tmux paste-buffer -d -b p -t <PROJECT>-ana && tmux send-keys -t <PROJECT>-ana Enter |
| Server logs / restart | sudo journalctl -u ana-<PROJECT> -f / sudo systemctl restart ana-<PROJECT> |
| Tunnel logs | sudo journalctl -u cloudflared -f |
| Rotate tunnel token | sudo cloudflared service uninstall && sudo cloudflared service install <new> |
BIND=127.0.0.1. The ANA server has no auth; Cloudflare Tunnel (+ optional Cloudflare Access) is the perimeter. Never open the port in the NSG.kill-session on a tmux pane where the agent is mid-task; the tmux unit is written to be a no-op when the session exists.PROJECT and PORT, and add another public hostname on the same tunnel.scripts/azure-create-vm.sh (opens in a new tab)scripts/install-cloudflared.sh (opens in a new tab)scripts/install-services.sh (opens in a new tab)scripts/setup-vm.sh (opens in a new tab)templates/ana-project.service (opens in a new tab)templates/connect.md (opens in a new tab)templates/project-ana-tmux.service (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub agent-native-agent/docs-ana --plugin ana16 skills in this plugin
/agent-requestsPort ANA's Requests, Evolve, PRD and Knowledge tabs — Requests (what the agent needs from the user — pending data-change diffs, approval / decision / access requests, work only the user can do, missing information), Evolve (the agent looks at the work and the usage log and proposes what to do now and how the app should change, then builds the approved ones) and PRD (what this ANA is and does — the agent writes it, people edit it, every version is kept). Knowledge (an ontology and a graph that start empty and the agent fills from the work). Every card speaks plainly (why / ask / effect / ifNot). Also triggers on "PRD", "요구사항 문서", "지식", "온톨로지". Use when the user says "Requests 탭", "에이전트가 요청", "사용자에게 요청", "Evolve", "진화 제안", "개선 제안 탭", or when ana-update reports agent-requests / agent-evolve missing./anaAttach ANA (Agent-Native Agent) to an existing web app or service so the user can operate it by watching a dashboard and chatting with a coding agent that runs inside tmux — chat is injected via tmux paste-buffer and the session is mirrored via capture-pane, with zero dependencies (no MCP, no bridge, no hooks, no plugin runtime). Use this whenever the user wants to "add ANA / a chat+watch dashboard to my app", "attach a coding-agent chat to an existing service", "make my dashboard talk to a tmux agent", "화면 보면서 대화로 조작", "기존 서비스에 ANA 붙이기", or to scaffold the standalone ANA base app. The single file `channel-core.js` is the whole runtime — drop it in and mount it./ana-updateBring an existing, customized ANA up to date with the latest upstream ANA (github.com/tykimos/agent-native-agent) feature by feature — compare first, report what is new/missing/outdated, then port only what the user picks, using the per-feature skills (chat-window, context-chips, work-and-knowledge, app-shell, agent-requests, trust-checks). Never overwrite the ANA's own domain code. Use when the user says "최신 내용으로 업데이트해", "ANA 업데이트", "update this ANA", "upstream이랑 뭐가 달라", "새 기능 가져와", "base-ana 개선사항 적용", or gives the ANA GitHub URL and asks to sync./app-shellPort ANA's app shell — one workspace, six top tabs (PRD with Current / History, Work with a sub-tab per kind of work, Knowledge with Ontology / Graph, Requests · Evolve · Update with Waiting / In progress / Done), the bottom menu on phones, sub-tabs, badges, right-aligned profile, "New version available" reload pill, and the remembered tab. Use when the user says "하단 메뉴", "탭 구조", "모바일 네비게이션", "워크 탭", "서브탭", or when ana-update reports app-tabs missing./audio-cd-rip오디오 CD를 mp3로 리핑해 contents/music 앨범 폴더로 만든다. CD 케이스·표지 사진에서 곡명을 읽거나 MusicBrainz로 조회해 album.json 메타를 작성하고, 커버 이미지를 저장해 음악 탭(/music)에 바로 뜨게 한다. "CD 복사해줘", "CD를 mp3로", "앨범 넣어줘", "음악 CD 리핑" 요청 시 사용./chat-windowPort or rebuild the ANA chat window so it looks and behaves like the Claude app — full-width session combo, user bubbles + markdown replies + collapsible tool groups rendered from the agent's own JSONL log (Claude Code and Codex), floating composer with model pill, model/effort sheet, 5-hour/weekly usage rings, voice dictation, file attachments, reliable send state, iOS keyboard fit, one ledger per session. Use when the user says "채팅창 개선", "채팅창 스킬", "클로드 앱처럼", "모델 선택", "한도 표시", "음성 입력", "코덱스 지원", "세션별로 따로", "port the chat window", or when ana-update reports chat-* features missing.2 plugins ship this exact skill · first indexed Aug 22, 2026
Other plugins' skills for the same job