Логотип Wendy Cloud Iterate

Wendy Cloud Iterate

Организация
wendylabsinc
wendy-cloud-iterate

Autonomous continuous integration loop for the Wendy Cloud repository. Use when asked to: (1) iterate on the cloud stack, (2) find and fix bugs in Wendy Cloud, (3) run the cloud test loop, (4) continuously test the Swift broker, (5) scan for regressions after new features. This skill manages the full local dev stack autonomously including starting Docker, the Swift broker, pki-core, running tests, diagnosing failures, and applying fixes.

Add to TypingMind

Обзор

Издательwendylabsinc
Репозиторийclaude-skills
Название навыкаwendy-cloud-iterate
Звёзды
62
Форки
5
Файлы в комплекте
Только инструкции
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — wendylabsinc. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Wendy Cloud Iterate в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/wendylabsinc/claude-skills/tree/main/wendy-cloud-iterate
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wendylabsinc/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/wendy-cloud-iterate .claude/skills/wendy-cloud-iterate
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Wendy Cloud Iterate в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Wendy Cloud Iterate, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Wendy Cloud Iterate не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Wendy Cloud Iterate

This skill drives an autonomous continuous loop that starts the Wendy Cloud dev stack, runs the integration test suite, diagnoses any failures, attempts fixes, and self-paces based on results.

Prerequisites Check

Run this block at the very start of every session before touching any code or starting any service. Fix every gap before proceeding.

bash
#!/usr/bin/env bash
set -euo pipefail
MISSING=()

# --- Homebrew (needed to install everything else on macOS) ---
if ! command -v brew &>/dev/null; then
  echo "Installing Homebrew..."
  /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

# --- Docker Desktop ---
if ! command -v docker &>/dev/null; then
  echo "Docker not found. Install Docker Desktop from https://www.docker.com/products/docker-desktop/ then re-run."
  MISSING+=("Docker Desktop")
else
  # Docker installed but daemon not running — start it
  if ! docker info &>/dev/null 2>&1; then
    echo "Starting Docker Desktop..."
    open -a Docker
    echo "Waiting for Docker to be ready..."
    until docker info &>/dev/null 2>&1; do sleep 3; done
    echo "Docker ready."
  fi
fi

# --- GitHub CLI ---
if ! command -v gh &>/dev/null; then
  echo "Installing gh..."
  brew install gh
fi
# Check auth
if ! gh auth status &>/dev/null 2>&1; then
  echo "gh is not authenticated. Run: gh auth login"
  MISSING+=("gh auth (run: gh auth login)")
fi

# --- Swift toolchain ---
if ! command -v swift &>/dev/null; then
  echo "Swift not found. Install Xcode or the Swift toolchain from https://swift.org/download/"
  MISSING+=("Swift toolchain")
fi

# --- protoc (required for Swift broker build) ---
if ! command -v protoc &>/dev/null; then
  echo "Installing protoc..."
  brew install protobuf
fi

# --- wendy CLI ---
if ! command -v wendy &>/dev/null; then
  echo "Installing wendy CLI..."
  brew install wendy
fi

# --- pki-core repo ---
if [ ! -d "/Users/wendy/Documents/Projects/pki-core" ]; then
  echo "Cloning pki-core..."
  gh repo clone wendylabsinc/pki-core /Users/wendy/Documents/Projects/pki-core -- --depth=1
fi

# --- Cloud repo ---
if [ ! -d "/Users/wendy/Documents/Projects/cloud" ]; then
  echo "Cloning cloud repo..."
  gh repo clone wendylabsinc/cloud /Users/wendy/Documents/Projects/cloud
fi

# --- Chrome MCP ---
# The Chrome MCP extension enables autonomous browser control (needed for
# wendy auth login). Check by listing connected browsers.
# If the tool is unavailable, auth must be completed manually.
CHROME_MCP_AVAILABLE=true
if ! command -v google-chrome &>/dev/null && ! ls /Applications/Google\ Chrome.app &>/dev/null 2>&1; then
  echo "WARNING: Google Chrome not found. Install Chrome and the Claude Chrome extension"
  echo "         to enable autonomous wendy auth login."
  CHROME_MCP_AVAILABLE=false
fi

# --- Report ---
if [ ${#MISSING[@]} -gt 0 ]; then
  echo ""
  echo "BLOCKED: the following must be resolved manually before the loop can run:"
  for item in "${MISSING[@]}"; do
    echo "  - $item"
  done
  exit 1
fi

echo "All prerequisites satisfied."
echo "Chrome MCP available: $CHROME_MCP_AVAILABLE"

If Chrome MCP is not available, wendy auth login must be completed manually by the user: open the URL printed by the CLI in a browser, select the org, and wait for "Certificates saved." before the loop proceeds.

Autonomy Grants

You are fully autonomous in this skill. You may:

  • Clone or pull any repository from GitHub under the wendylabsinc org without asking
  • Run any make target in any of the repos
  • Run docker compose commands (up, down, restart, logs)
  • Run wendy CLI commands
  • Edit source files to fix bugs (commit the fix afterward)
  • Push commits to the current branch
  • Open pull requests via gh pr create

Do NOT ask for confirmation before any of the above. If something is missing (a repo, a binary, a config file), fix it autonomously.

Repository Layout

The Wendy Cloud monorepo lives at /Users/wendy/Documents/Projects/cloud. Sibling repos:

RepoLocationPurpose
cloud/Users/wendy/Documents/Projects/cloudMain monorepo (console/ frontend, swift/ broker)
pki-core/Users/wendy/Documents/Projects/pki-corePKI certificate authority engine

If pki-core is missing from disk, clone it:

bash
gh repo clone wendylabsinc/pki-core /Users/wendy/Documents/Projects/pki-core -- --depth=1

Stack Architecture

Services and ports

PortServiceNotes
50051 (host)Swift brokerPlaintext gRPC
50052 (host)Swift tunnel-brokerOne-way TLS
8080 (host)Swift broker HTTPVideo REST/WebSocket
9200 (host)DashboardURL the launch scripts print; not a service in docker-compose.yml
9400 (host)EnvoygRPC-web proxy (Docker Compose)
9443 (host)pki-coreCertificate issuance
9300 (host)PostgresPrimary DB

There is no Go services container any more; the swift-broker service in docker-compose.yml binds 50051, 50052 and 8080 directly.

Starting the full stack

bash
cd /Users/wendy/Documents/Projects/cloud
make dev-docker   # broker in Docker, no Swift toolchain needed
# or
make dev-local    # broker built on the host, fast rebuilds

Both are zero-parameter (scripts/wendy-cloud-up-docker.sh / scripts/wendy-cloud-up.sh): they start Postgres, the Swift broker, tunnel-broker and gRPC-web Envoy, seed a dev user and org, and copy docker-compose.override.yml.example to the gitignored docker-compose.override.yml on first run. If the override is missing, copy the example again rather than hand-writing one. The broker reads JWT_SECRET directly (compose default local-dev-jwt-secret-change-in-prod).

Verify the broker is up:

bash
lsof -iTCP:50051 -iTCP:50052 -iTCP:8080 -sTCP:LISTEN -nP 2>/dev/null

Authenticating the CLI Against the Local Stack

KNOWN BROKEN END TO END (WDY-2330). Dev Login and this CLI auth flow no longer authenticate against the broker: the dev cookie yields a session the UI accepts, but every data-bearing RPC answers UNAUTHENTICATED (cloud docs/local-dev.md). Treat the steps below as the shape of the flow, not a way to get a working cert.

The wendy CLI needs a local auth session to call the Swift broker. Run this once per session (the session persists in ~/.wendy/config.json):

bash
cd /Users/wendy/Documents/Projects/cloud
wendy auth login --cloud http://localhost:9200 --cloud-grpc localhost:50051 --json > /tmp/wendy-auth-out.txt 2>&1 &
sleep 3
cat /tmp/wendy-auth-out.txt  # shows the cli-auth URL with callback port

Then use the Chrome MCP tools to complete the flow:

  1. Read the callback port from the output: http://localhost:9200/cli-auth?redirect_uri=http%3A%2F%2F127.0.0.1%3A<PORT>%2Fcli-callback
  2. Navigate to that URL: mcp__Claude_in_Chrome__navigate with url: "http://localhost:9200/cli-auth?redirect_uri=http://127.0.0.1:<PORT>/cli-callback"
  3. If redirected to /login: click "Dev Login (local only)" at approximately coordinate (756, 508), wait 3s, re-navigate to the cli-auth URL
  4. Once the org list loads, click "Select" next to "wendylabsinc" (row 2, button at approximately coordinate (1113, 391))
  5. Wait 8 seconds for certificate issuance to complete
  6. Verify: cat /tmp/wendy-auth-out.txt should end with Certificates saved.

Expected successful output:

Received enrollment token.
Authentication successful. Certificates saved.

Running the Test Suite

Swift integration tests (primary signal)

bash
cd /Users/wendy/Documents/Projects/cloud
make test-swift 2>&1 | tail -40

Filter to a specific test (the Makefile target has no FILTER knob):

bash
cd swift && swift test --filter TestCreateAsset

Tests use BrokerFixture (in-process gRPC, MockPKIServer, real Postgres). No real Swift broker or pki-core needed for tests. Approximately 60 tests across 6 suites.

Bug Finding and Fixing

What to check each iteration

  1. Run make test-swift — any failures are the primary signal.
  2. Check broker logs for runtime errors. With make dev-local they go only to the launcher terminal (swift/scripts/start-local.sh runs the broker in the background on stdout; no log file). With make dev-docker: docker compose logs --since 10m swift-broker 2>/dev/null | grep -iE "error|fatal|panic" | tail -20
  3. Run wendy discover --json 2>&1 | head -10 — verify Gerrit (wendyos-gerrit.local) is reachable if hardware testing is the goal.

Fix workflow — worktree per fix, pull request required

Every code change follows this sequence. Do NOT commit directly to the current branch.

Step 1: Identify the current branch

bash
git -C /Users/wendy/Documents/Projects/cloud branch --show-current
# Note this as BASE_BRANCH

Step 2: Create a worktree for the fix

bash
BASE=/Users/wendy/Documents/Projects/cloud
BRANCH=fix/<short-description>   # e.g. fix/nil-bool-cast
git -C "$BASE" worktree add "$BASE/.worktrees/$BRANCH" -b "$BRANCH"

Step 3: Dispatch a subagent to implement and test the fix in the worktree

Give the subagent:

  • The exact file(s) and line(s) to change
  • The root cause and the fix
  • Instructions to run cd swift && swift test --filter <TestName> inside the worktree to verify
  • Instructions to commit once tests pass

The subagent works entirely inside $BASE/.worktrees/$BRANCH and never touches the main checkout.

Step 4: UI smoke test and plan expansion

The UI smoke test plan lives in the cloud repo and is meant to grow. Your job is not only to execute it but to expand it when you find gaps.

Read the plan:

bash
cat /Users/wendy/Documents/Projects/cloud/docs/testing/ui-smoke-test.md

Execute: Run all sections relevant to the change using Chrome MCP tools at http://localhost:9200 (the plan's own banner says it does not pass today, WDY-2330). At minimum always run sections 1 (Authentication) and 6 (Console errors). Take a screenshot after each section.

Expand: After executing, identify gaps using the route grep in the plan's "Finding gaps" block:

bash
grep -r "path:\|href=\|router.push\|<Link" \
  /Users/wendy/Documents/Projects/cloud/console/src \
  --include="*.tsx" --include="*.ts" -h \
  | grep -oE '"[/][^"]*"' | sort -u

Cross-reference with the coverage index table at the top of the plan. For any route or flow that appears in the source but not in the index, write a new section following the format in the "Adding new sections" block and add it to the plan file inside the current worktree. The additions travel with the pull request.

Attach screenshots to the pull request body as evidence of each executed section.

Step 5: Open a pull request and wait for CI

bash
cd "$BASE/.worktrees/$BRANCH"
gh pr create --base BASE_BRANCH --title "fix: <description>" --body "..."
gh pr checks --watch   # wait for all checks to pass

Do NOT proceed until gh pr checks reports all green. If CI fails, diagnose and push additional commits to the same branch.

Step 6: Merge and clean up

bash
gh pr merge --squash --delete-branch
git -C "$BASE" worktree remove "$BASE/.worktrees/$BRANCH"

Only after the pull request is merged does the fix land on the current branch.

When to open a Linear issue instead of fixing inline:

  • The fix touches more than 30 lines or spans multiple subsystems
  • Root cause is unclear after 15 minutes of investigation
  • Fix requires architectural changes

Common failure modes

SymptomLikely CauseFix
Bool? nil creates OID 0 paramsPostgresNIO can't infer type for nil BoolUse \(value)::bool explicit cast
connection pool exhaustedPostgres default max_connections (100) hitSet pool size to 1 in TestDB.swift
Handler not registered in BrokerFixtureHandler created but never added to test serverRegister handler in BrokerFixture.swift
Address already in use on :50051 or :50052Previous broker process still runningpkill -f start-local.sh; pkill -f /.build/.*broker; sleep 2
unknown profile "operator-tier-a"pki-core profile name mismatch; operator certs must use profile "operator"Fixed in CertificateServiceHandler.swift (both IssueCertificate and RefreshCertificate)
certificate is not valid for client authenticationProduction CLI cert missing clientAuth Extended Key UsageKnown cloud PKI bug; use local stack for testing
pki-core unavailable at startuppki-core repo not clonedClone to /Users/wendy/Documents/Projects/pki-core and relaunch with make dev-local / make dev-docker

Loop Behavior

Pacing

After each iteration, schedule the next wake-up based on what was found:

OutcomeNext check
Failures found and fixed5 minutes (confirm the fix held)
Failures found, not fixed10 minutes (allow time for manual review)
Everything clean30 minutes

Self-termination

The loop terminates itself after 3 consecutive clean iterations — no test failures, no broker errors, no new smoke test gaps, device reachable or skipped.

To end the loop, simply do not schedule the next wake-up. Log a termination message and stop. The loop resumes on the next explicit /loop invocation.

[wendy-cloud-iterate] 3 consecutive clean scans. Nothing left to fix.
  Terminating loop. Run again with /loop to restart.

Track the consecutive clean count in the iteration summary. Reset it to 0 whenever a failure is found or a fix is applied, even if the fix succeeds.

The threshold of 3 is intentional: one clean scan after a fix is not enough to confirm stability (the next test run could expose a regression the fix introduced). Three clean scans at 30-minute intervals means the stack has been stable for 90 minutes, which is a reasonable confidence threshold before handing back control.

If you want to run indefinitely (e.g. leaving the loop running overnight), pass no-auto-terminate as part of the invocation prompt:

/loop Use the wendy-cloud-iterate skill to continuously scan the Wendy Cloud
repository. Do not auto-terminate.

Iteration summary

Log this at the end of every iteration:

[wendy-cloud-iterate] Iteration N complete.
  Tests: X passed, Y failed
  Fixes applied: <list or "none">
  Smoke test: <sections run> / <gaps added: N>
  Device: <reachable / unreachable / skipped>
  Consecutive clean: Z/3
  Next check: Xm  (or "loop terminated")

Device Testing (optional)

Device tests verify that a real WendyOS device can be reached and responds correctly. They are optional — skip if no device is connected or if the production cert lacks clientAuth Extended Key Usage (a known cloud PKI bug).

Identifying the device

If a device was named in the conversation (e.g. "use gerrit", "test against my Jetson"), use that hostname directly.

Otherwise, discover what is on the network:

bash
wendy discover --json 2>&1

In autonomous loop mode, use the first device returned by discover. If the list is empty, log "no device found — skipping device tests" and continue.

In interactive mode (user is present), present the discovered list and ask which device to use before proceeding.

Store the chosen hostname as DEVICE_HOST (just the hostname, no port):

bash
DEVICE_HOST=<hostname>   # e.g. wendyos-gerrit.local or 192.168.1.42

Running device checks

bash
# Verify reachability on the plaintext port
wendy discover --json 2>&1 | grep "$DEVICE_HOST"

# Check device info (requires valid clientAuth cert)
wendy cloud device info --device "$DEVICE_HOST" --json 2>&1 | head -20

If device info fails with "certificate is not valid for client authentication", skip the mTLS checks — this is the known production PKI bug, not a regression.

Часто задаваемые вопросы

Что делает навык ИИ Wendy Cloud Iterate?

Autonomous continuous integration loop for the Wendy Cloud repository. Use when asked to: (1) iterate on the cloud stack, (2) find and fix bugs in Wendy Cloud, (3) run the cloud test loop, (4) continuously test the Swift broker, (5) scan for regressions after new features. This skill manages the full local dev stack autonomously including starting Docker, the Swift broker, pki-core, running tests, diagnosing failures, and applying fixes.

Зачем использовать Wendy Cloud Iterate в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Wendy Cloud Iterate — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Wendy Cloud Iterate в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/wendylabsinc/claude-skills/tree/main/wendy-cloud-iterate. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Wendy Cloud Iterate?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Wendy Cloud Iterate?

С любым количеством. В TypingMind вы можете использовать Wendy Cloud Iterate с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Wendy Cloud Iterate?

Навык опубликован на GitHub. Издатель — wendylabsinc. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип openclaw

Openclaw Pr Maintainer

openclaw
ОрганизацияПопулярный

Проверяйте и сортируйте по приоритету проблемы OpenClaw и pull request, исправляйте их или вносите изменения в репозиторий, опираясь на актуальные данные исходного кода и стандартный процесс сопровождения.

82.2K
391K
Файлы: 5
Открыть
Логотип openclaw

Openclaw Refactor Docs

openclaw
ОрганизацияПопулярный

Переработайте существующую страницу документации OpenClaw: сохраните подтверждённую источниками информацию, измените структуру и проверьте результат.

82.2K
391K
Инструкции
Открыть
Логотип openclaw

Openclaw Repair Sweep

openclaw
ОрганизацияПопулярный

Проводите кампании по исправлению выбранных проблем и PR в OpenClaw: координируйте исполнителей, устанавливайте первопричины и вносите исправления или закрывайте проверенные задачи в пределах запрошенных полномочий.

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Test Performance

openclaw
ОрганизацияПопулярный

Сравнивайте производительность, диагностируйте проблемы и оптимизируйте время выполнения тестов OpenClaw и набора тестов плагинов, узкие места при импорте, загрузку CPU и RSS, рост кучи и медленные пути покрытия кода.

82.2K
391K
Файлы: 1
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇