Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

feat(09-02): add /ops:settings skill and update ops router

auroracapitalaf7222257825
diff --git a/claude-ops/skills/ops-merge/SKILL.md b/claude-ops/skills/ops-merge/SKILL.md
index 299d01fe..0f7c97c8 100644
--- a/claude-ops/skills/ops-merge/SKILL.md
+++ b/claude-ops/skills/ops-merge/SKILL.md
@@ -155,11 +155,29 @@ Branch: <headRefName>
<classification-specific instructions>
For needs-rebase:
- 1. Create worktree from the PR branch
- 2. Rebase on <baseBranchRef>: `git rebase <base>`
- 3. Resolve any conflicts (prefer incoming for .planning/, prefer HEAD for code)
- 4. Push with --force-with-lease --no-verify
- 5. Verify PR is now MERGEABLE
+ 1. Create worktree: `git worktree add /tmp/ops-rebase-<pr-number> <headRefName>`
+ 2. cd into worktree: `cd /tmp/ops-rebase-<pr-number>`
+ 3. Fetch latest: `git fetch origin`
+ 4. Attempt rebase: `git rebase origin/<baseBranchRef> 2>&1`
+ 5. If rebase SUCCEEDS (exit 0):
+ - Push force-with-lease: `git push --force-with-lease origin <headRefName>`
+ - Clean up worktree: `git worktree remove /tmp/ops-rebase-<pr-number> --force`
+ - Report: `✓ Rebased <repo>#<number> — conflict resolved`
+ 6. If rebase FAILS (exit non-zero):
+ - Capture the conflicting files: `git diff --name-only --diff-filter=U`
+ - Show the diff: `git diff HEAD`
+ - Abort the rebase: `git rebase --abort`
+ - Clean up worktree: `git worktree remove /tmp/ops-rebase-<pr-number> --force`
+ - Surface to orchestrator with the diff output and a structured conflict report:
+ ```json
+ {
+ "pr": <number>,
+ "repo": "<repo>",
+ "status": "conflict",
+ "conflicting_files": ["<file1>", "<file2>"],
+ "diff_summary": "<first 500 chars of diff>"
+ }
+ ```
For needs-ci-fix:
1. Get failed check logs: `gh run view <id> --repo <repo> --log-failed | tail -80`
@@ -182,7 +200,37 @@ After fixing:
Use `model: "sonnet"` for all fixer agents.
-### Phase 4 — Collect results and confirm merges
+### Phase 4 — Resolve surfaced conflicts
+
+For each PR returned with `status: "conflict"` from a fixer agent:
+
+1. Display the conflict summary:
+```
+━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+ OPS ► MERGE — Conflict in <repo>#<number>
+━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+ Branch: <headRefName> → <baseBranchRef>
+ Conflicting files:
+ - <file1>
+ - <file2>
+
+<diff_summary>
+──────────────────────────────────────────────────────
+```
+
+2. Use AskUserQuestion (max 4 options — CLAUDE.md Rule 1):
+
+```
+[Accept incoming (theirs)] [Keep current branch (ours)] [Open manual resolution] [Skip this PR]
+```
+
+3. Based on response:
+ - **Accept incoming (theirs)**: Create worktree, rebase with `git checkout --theirs .` on each conflicting file, `git add .`, `git rebase --continue`, push force-with-lease
+ - **Keep current branch (ours)**: Create worktree, rebase with `git checkout --ours .` on each conflicting file, `git add .`, `git rebase --continue`, push force-with-lease
+ - **Open manual resolution**: Print step-by-step instructions for the operator to resolve manually, then check in with `git push` confirmation before continuing the merge pipeline
+ - **Skip this PR**: Note as `unresolved-conflict`, include in final report
+
+### Phase 5 — Collect results and confirm merges
As fixers complete:
@@ -194,7 +242,7 @@ As fixers complete:
```
3. If still red: report what's still broken, do not merge
-### Phase 5 — `--main` sync (only if flag is set)
+### Phase 6 — `--main` sync (only if flag is set)
For each repo that has separate `dev` and `main` branches:
@@ -211,7 +259,7 @@ For each repo that has separate `dev` and `main` branches:
5. If CI green: `gh pr merge <sync-pr-number> --repo <repo> --merge --admin` (merge commit, not squash)
6. Pull main back into dev: `git -C <path> fetch origin && git -C <path> checkout dev && git -C <path> merge origin/main --no-edit`
-### Phase 6 — Final report
+### Phase 7 — Final report
```
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
diff --git a/claude-ops/skills/ops-settings/SKILL.md b/claude-ops/skills/ops-settings/SKILL.md
new file mode 100644
index 00000000..b2afb899
--- /dev/null
+++ b/claude-ops/skills/ops-settings/SKILL.md
@@ -0,0 +1,117 @@
+---
+name: ops-settings
+description: Post-setup credential manager. Shows current integration status (configured/missing/expired) and lets you update individual credentials without re-running the full setup wizard. Runs a smoke test after each update.
+argument-hint: "[integration-name] [--status]"
+allowed-tools:
+ - Bash
+ - Read
+ - Write
+ - Edit
+ - AskUserQuestion
+effort: low
+maxTurns: 20
+---
+
+## Runtime Context
+
+```!
+PREFS="${CLAUDE_PLUGIN_DATA_DIR:-$HOME/.claude/plugins/data/ops-ops-marketplace}/preferences.json"
+cat "$PREFS" 2>/dev/null || echo '{}'
+```
+
+# OPS ► SETTINGS
+
+Manage credentials and integration config after initial setup.
+
+## Parse arguments
+
+- `--status` or empty → show full credential status dashboard
+- `<integration-name>` → jump directly to updating that integration (e.g. `/ops:settings stripe`)
+- `--status <integration-name>` → show status of one integration only
+
+## Credential Status Dashboard
+
+Read `preferences.json`. For each known integration, check whether the key exists and is non-empty. Also probe liveness where possible.
+
+Display as a table:
+
+```
+━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+ OPS ► SETTINGS — Integration Status
+━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+ Integration Status Last Updated
+ ─────────────────── ──────────── ─────────────
+ GitHub (gh cli) ✅ active (always active if gh auth status)
+ Stripe ✅ configured 2026-04-14
+ RevenueCat ✅ configured 2026-04-14
+ Telegram ✅ configured 2026-04-13
+ Slack ⚠️ missing —
+ Linear ✅ configured 2026-04-11
+ Sentry ⚠️ missing —
+ AWS ✅ active (always active if aws sts works)
+ Shopify ⚠️ missing —
+ Klaviyo ⚠️ missing —
+ Meta Ads ⚠️ missing —
+ GA4 ⚠️ missing —
+ ElevenLabs ⚠️ missing —
+ Datadog ⚠️ missing —
+ New Relic ⚠️ missing —
+ ...
+
+ ✅ N configured ⚠️ N missing
+──────────────────────────────────────────────────────
+```
+
+## Probe liveness
+
+For integrations with a cheap health check, run it to distinguish "configured but expired" from "configured and active":
+
+| Integration | Probe | Active signal |
+|-------------|-------|---------------|
+| Stripe | `curl -s -o /dev/null -w "%{http_code}" -u "${stripe_key}:" https://api.stripe.com/v1/balance` | 200 |
+| GitHub | `gh auth status 2>&1` | "Logged in" |
+| AWS | `aws sts get-caller-identity --output text 2>/dev/null` | exits 0 |
+| Linear | `cat "$PREFS" | jq -r .linear_team` | non-empty |
+
+Show `🔴 expired` if probe fails for a previously-configured key.
+
+## Update an integration
+
+When a specific integration is selected (via argument or user pick from dashboard):
+
+1. Show current value (masked): `sk_live_••••••••••••••••` (last 4 chars visible)
+2. Use AskUserQuestion to confirm the update action:
+ ```
+ [Enter new value] [Test current value] [Clear this credential] [Back to dashboard]
+ ```
+3. For "Enter new value": prompt with `AskUserQuestion` text input
+4. Write new value to `preferences.json` via `jq` update:
+ ```bash
+ tmp=$(mktemp)
+ jq --arg v "$NEW_VALUE" --arg k "$KEY_NAME" '.[$k] = $v' "$PREFS" > "$tmp" && mv "$tmp" "$PREFS"
+ ```
+5. Run smoke test immediately after update (see Smoke Tests section)
+6. Report: `✅ Stripe key updated — smoke test passed` or `⚠️ Key saved but smoke test failed: <reason>`
+
+## Smoke Tests
+
+| Integration | Smoke test command |
+|-------------|-------------------|
+| Stripe | `curl -s -u "${new_key}:" https://api.stripe.com/v1/balance \| jq .object` → must be "balance" |
+| RevenueCat | `curl -s -H "Authorization: Bearer ${new_key}" "https://api.revenuecat.com/v1/subscribers/test_user" \| jq .subscriber` → non-null |
+| Telegram | `node ${CLAUDE_PLUGIN_ROOT}/telegram-server/index.js --health 2>&1` → "healthy" |
+| Slack | `curl -s -H "Authorization: Bearer ${new_token}" https://slack.com/api/auth.test \| jq .ok` → true |
+| Shopify | `curl -s -H "X-Shopify-Access-Token: ${new_token}" "https://${store_url}/admin/api/2024-01/shop.json" \| jq .shop.name` → non-null |
+| Klaviyo | `curl -s -H "Authorization: Klaviyo-API-Key ${new_key}" https://a.klaviyo.com/api/accounts/ \| jq '.data[0].id'` → non-null |
+| Datadog | `curl -s -H "DD-API-KEY: ${new_key}" https://api.datadoghq.com/api/v1/validate \| jq .valid` → true |
+| New Relic | `curl -s -H "Api-Key: ${new_key}" https://api.newrelic.com/v2/applications.json \| jq '.applications | length'` → numeric |
+
+## CLI/API Reference
+
+| Command | Purpose |
+|---------|---------|
+| `cat "$PREFS" \| jq 'keys'` | List all configured keys |
+| `jq --arg v "$V" --arg k "$K" '.[$k] = $v' "$PREFS"` | Update a single key |
+| `gh auth status` | Verify GitHub CLI auth |
+| `aws sts get-caller-identity` | Verify AWS auth |
diff --git a/claude-ops/skills/ops/SKILL.md b/claude-ops/skills/ops/SKILL.md
index c683c1df..6fdb458a 100644
--- a/claude-ops/skills/ops/SKILL.md
+++ b/claude-ops/skills/ops/SKILL.md
@@ -44,6 +44,8 @@ Route `$ARGUMENTS` to the correct ops skill:
| voice, call, tts, transcribe, phone | `/ops:ops-voice $ARGUMENTS` |
| yolo | `/ops-yolo` |
| doctor, health, fix, diagnose | `/ops:ops-doctor` |
+| settings, credentials, creds, config, reconfigure | `/ops:ops-settings $ARGUMENTS` |
+| integrate, connect, add-api, saas | `/ops:ops-integrate $ARGUMENTS` |
| speedup, clean, optimize, cleanup | `/ops:ops-speedup` |
| orchestrate, subagents, agents, dispatch, run | `/ops:ops-orchestrate $ARGUMENTS` |