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.
Shell agent-teamsai-agentai-automationanthropicautonomous-agentawsbusiness-operationsclaudeclaude-codeclaude-code-plugindevopsecommerceinbox-zeroklaviyomarketingmcpmorning-briefingpr-automationshopifyterminal
fix(ci): address optimizer review findings
auroracapitalfd11f13b7209
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 02d00dd3..f59fc80e 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -13,94 +13,90 @@ concurrency:group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}cancel-in-progress: truejobs:- optimize_ci:+ optimize-ci:name: Graphite CI Optimizer+ if: github.event_name == 'pull_request'runs-on: ubuntu-latestoutputs:- skip: ${{ steps.check_skip.outputs.skip }}+ skip: ${{ steps.check-skip.outputs.skip }}steps:- - name: Optimize CI- id: check_skip- uses: withgraphite/graphite-ci-action@main- with:- graphite_token: ${{ secrets.GRAPHITE_CI_TOKEN }}+ - name: Optimize CI+ id: check-skip+ uses: withgraphite/graphite-ci-action@402a89bc8aa6db18ae1f9c61953d001d5f9d828f # main+ with:+ graphite_token: ${{ secrets.GRAPHITE_CI_TOKEN }}+lint-and-check:+ if: always() && (github.event_name != 'pull_request' || needs.optimize-ci.outputs.skip == 'false')+ needs: optimize-ciruns-on: ${{ matrix.os }}strategy:matrix:os: [ubuntu-latest, ubuntu-24.04]steps:- - uses: actions/checkout@v7- - uses: actions/setup-node@v7- with:- node-version: "20"+ - uses: actions/checkout@v7+ - uses: actions/setup-node@v7+ with:+ node-version: "20"- - name: Install dependencies- run: cd claude-ops && npm ci+ - name: Install dependencies+ run: cd claude-ops && npm ci- - name: Syntax check (Node scripts)- run: |- node --check claude-ops/bin/ops-slack-autolink.mjs- node --check claude-ops/bin/ops-telegram-autolink.mjs- node --check claude-ops/telegram-server/index.js+ - name: Syntax check (Node scripts)+ run: |+ node --check claude-ops/bin/ops-slack-autolink.mjs+ node --check claude-ops/bin/ops-telegram-autolink.mjs+ node --check claude-ops/telegram-server/index.js- - name: Syntax check (Shell scripts)- run: |- bash -n claude-ops/bin/ops-merge-scan- bash -n claude-ops/bin/ops-prs- bash -n claude-ops/bin/ops-ci- bash -n claude-ops/bin/ops-git- bash -n claude-ops/bin/ops-infra- bash -n claude-ops/bin/ops-unread- bash -n claude-ops/bin/ops-gather- bash -n claude-ops/bin/ops-setup-detect- bash -n claude-ops/bin/ops-setup-install- bash -n claude-ops/bin/ops-projects- bash -n claude-ops/scripts/ops-gsd-registry-sync.sh+ - name: Syntax check (Shell scripts)+ run: |+ bash -n claude-ops/bin/ops-merge-scan+ bash -n claude-ops/bin/ops-prs+ bash -n claude-ops/bin/ops-ci+ bash -n claude-ops/bin/ops-git+ bash -n claude-ops/bin/ops-infra+ bash -n claude-ops/bin/ops-unread+ bash -n claude-ops/bin/ops-gather+ bash -n claude-ops/bin/ops-setup-detect+ bash -n claude-ops/bin/ops-setup-install+ bash -n claude-ops/bin/ops-projects+ bash -n claude-ops/scripts/ops-gsd-registry-sync.sh- - name: Prettier check- run: cd claude-ops && npx prettier --check "**/*.{js,mjs,json}" --ignore-path .gitignore+ - name: Prettier check+ run: cd claude-ops && npx prettier --check "**/*.{js,mjs,json}" --ignore-path .gitignore- - name: Install gitleaks- run: |- curl -sSfL --retry 3 --retry-delay 5 https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/gitleaks_8.30.1_linux_x64.tar.gz | tar xz- chmod +x gitleaks- - name: Run gitleaks- run: ./gitleaks detect --source . --config claude-ops/.gitleaks.toml --verbose+ - name: Install gitleaks+ run: |+ curl -sSfL --retry 3 --retry-delay 5 https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/gitleaks_8.30.1_linux_x64.tar.gz | tar xz+ chmod +x gitleaks+ - name: Run gitleaks+ run: ./gitleaks detect --source . --config claude-ops/.gitleaks.toml --verbose# Dedicated, INDEPENDENT gate against personal data (PII) reaching this PUBLIC# repo — contributor usernames, home paths, personal emails, AWS account IDs,# phone numbers. Runs with no `needs:` so it executes on every PR regardless of- # the secret-scan job's state. Catches the class that leaked into history- # (scrubbed 2026-06-07).- needs:- - optimize_ci- if: needs.optimize_ci.outputs.skip == 'false'+ # the optimizer or secret-scan job's state. Catches the class that leaked into+ # history (scrubbed 2026-06-07).pii-gate:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v7- - name: PII / personal-data scan- run: bash claude-ops/tests/test-no-secrets.sh+ - uses: actions/checkout@v7+ - name: PII / personal-data scan+ run: bash claude-ops/tests/test-no-secrets.sh- needs:- - optimize_ci- if: needs.optimize_ci.outputs.skip == 'false'test-suite:+ if: always() && needs.lint-and-check.result == 'success' && (github.event_name != 'pull_request' || needs.optimize-ci.outputs.skip == 'false')runs-on: ${{ matrix.os }}- needs:- - optimize_ci- - lint-and-check+ needs: [optimize-ci, lint-and-check]strategy:matrix:os: [ubuntu-latest, ubuntu-24.04]steps:- - uses: actions/checkout@v7- - name: Install test dependencies- run: |- sudo apt-get install -y shellcheck 2>/dev/null || true- - name: Run full test suite- run: bash claude-ops/tests/run-all.sh- env:- CI: true- if: needs.optimize_ci.outputs.skip == 'false'+ - uses: actions/checkout@v7+ - name: Install test dependencies+ run: |+ sudo apt-get install -y shellcheck 2>/dev/null || true+ - name: Run full test suite+ run: bash claude-ops/tests/run-all.sh+ env:+ CI: truediff --git a/.github/workflows/claude.yml b/.github/workflows/claude.ymlindex 857893d4..955546b4 100644--- a/.github/workflows/claude.yml+++ b/.github/workflows/claude.yml@@ -12,27 +12,17 @@ on:concurrency:- # Auto-cancel superseded runs for same workflow+ref/PR (Sam 2026-07-14)- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}+ # Use the event object ID so separate comments and reviews do not cancel each+ # other. Re-delivery of the same event still replaces its prior run.+ group: ${{ github.workflow }}-${{ github.event.comment.id || github.event.review.id || github.event.issue.id || github.run_id }}cancel-in-progress: truejobs:- optimize_ci:- name: Graphite CI Optimizer- runs-on: ubuntu-latest- outputs:- skip: ${{ steps.check_skip.outputs.skip }}- steps:- - name: Optimize CI- id: check_skip- uses: withgraphite/graphite-ci-action@main- with:- graphite_token: ${{ secrets.GRAPHITE_CI_TOKEN }}claude:- if: |-- needs.optimize_ci.outputs.skip == 'false' && ((github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) ||+ if: |+ (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) ||(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) ||(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.review.author_association)) ||- (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association)))+ (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association))runs-on: ubuntu-latestpermissions:contents: write@@ -41,14 +31,12 @@ jobs:id-token: writeactions: readsteps:- - name: Checkout repository- uses: actions/checkout@v7- with:- fetch-depth: 1+ - name: Checkout repository+ uses: actions/checkout@v7+ with:+ fetch-depth: 1- - name: Run Claude Code- uses: anthropics/claude-code-action@v1- with:- claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}- needs:- - optimize_ci+ - name: Run Claude Code+ uses: anthropics/claude-code-action@239e3a730883eeb5c53db12b0fc9573b3024b126 # v1+ with:+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex cedd4860..06dc1768 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -3,7 +3,7 @@ name: Releaseon:push:tags:- - "v*"+ - "v*"concurrency:@@ -16,148 +16,131 @@ permissions:jobs:# ─── 1. GitHub Release from CHANGELOG ───────────────────────────────────────- optimize_ci:- name: Graphite CI Optimizer- runs-on: ubuntu-latest- outputs:- skip: ${{ steps.check_skip.outputs.skip }}- steps:- - name: Optimize CI- id: check_skip- uses: withgraphite/graphite-ci-action@main- with:- graphite_token: ${{ secrets.GRAPHITE_CI_TOKEN }}create-release:runs-on: ubuntu-latestoutputs:version: ${{ steps.version.outputs.VERSION }}notes_file: ${{ steps.changelog.outputs.NOTES_FILE }}steps:- - uses: actions/checkout@v7- with:- fetch-depth: 0-- - name: Extract version from tag- id: version- run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"-- - name: Parse CHANGELOG for this version- id: changelog- run: |- VERSION="${{ steps.version.outputs.VERSION }}"- NOTES=$(awk -v ver="$VERSION" '- /^## \[/ {- if (found) exit- if (index($0, "[" ver "]") > 0) found=1- next- }- found { print }- ' claude-ops/CHANGELOG.md)-- if [[ -z "$NOTES" ]]; then- NOTES="Release v${VERSION}. See CHANGELOG.md for details."- fi-- # Write to file to avoid quoting issues- echo "$NOTES" > /tmp/release-notes.md- echo "NOTES_FILE=/tmp/release-notes.md" >> "$GITHUB_OUTPUT"-- - name: Create GitHub Release- uses: softprops/action-gh-release@v3- with:- tag_name: ${{ github.ref_name }}- name: "claude-ops v${{ steps.version.outputs.VERSION }}"- body_path: ${{ steps.changelog.outputs.NOTES_FILE }}- draft: false- prerelease: ${{ contains(github.ref_name, '-') }}- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ - uses: actions/checkout@v7+ with:+ fetch-depth: 0++ - name: Extract version from tag+ id: version+ run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"++ - name: Parse CHANGELOG for this version+ id: changelog+ run: |+ VERSION="${{ steps.version.outputs.VERSION }}"+ NOTES=$(awk -v ver="$VERSION" '+ /^## \[/ {+ if (found) exit+ if (index($0, "[" ver "]") > 0) found=1+ next+ }+ found { print }+ ' claude-ops/CHANGELOG.md)++ if [[ -z "$NOTES" ]]; then+ NOTES="Release v${VERSION}. See CHANGELOG.md for details."+ fi++ # Write to file to avoid quoting issues+ echo "$NOTES" > /tmp/release-notes.md+ echo "NOTES_FILE=/tmp/release-notes.md" >> "$GITHUB_OUTPUT"++ - name: Create GitHub Release+ uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3+ with:+ tag_name: ${{ github.ref_name }}+ name: "claude-ops v${{ steps.version.outputs.VERSION }}"+ body_path: ${{ steps.changelog.outputs.NOTES_FILE }}+ draft: false+ prerelease: ${{ contains(github.ref_name, '-') }}+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}# ─── 2. Open a PR with the version bumps ────────────────────────────────────# Branch protection on `main` rejects direct pushes from github-actions[bot],# so the previous "Commit version bumps" step silently failed every release.# We now open a PR against main with the bumps and let the maintainer# squash-merge.- needs:- - optimize_ci- if: needs.optimize_ci.outputs.skip == 'false'bump-version-pr:- needs:- - optimize_ci- - create-release+ needs: create-releaseruns-on: ubuntu-lateststeps:- - uses: actions/checkout@v7- with:- fetch-depth: 0- token: ${{ secrets.GITHUB_TOKEN }}-- - name: Configure git- run: |- git config user.name "github-actions[bot]"- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"-- - name: Bump versions in plugin/marketplace/package JSON- env:- VERSION: ${{ needs.create-release.outputs.version }}- run: |- # Use jq for safe JSON edits when available; fall back to sed otherwise.- if command -v jq >/dev/null 2>&1; then- tmp=$(mktemp)- jq --arg v "$VERSION" '.version = $v' claude-ops/.claude-plugin/plugin.json > "$tmp" \- && mv "$tmp" claude-ops/.claude-plugin/plugin.json- jq --arg v "$VERSION" '.version = $v' claude-ops/package.json > "$tmp" \- && mv "$tmp" claude-ops/package.json- jq --arg v "$VERSION" '.plugins |= map(if .name == "ops" then .version = $v else . end)' \- .claude-plugin/marketplace.json > "$tmp" \- && mv "$tmp" .claude-plugin/marketplace.json- else- # Fallback: target the literal "version" line in each file. This is- # less safe (matches the first .version key) but keeps the workflow- # working on minimal runners.- sed -i "0,/\"version\":/{s/\"version\": \"[^\"]*\"/\"version\": \"${VERSION}\"/}" \- claude-ops/.claude-plugin/plugin.json- sed -i "0,/\"version\":/{s/\"version\": \"[^\"]*\"/\"version\": \"${VERSION}\"/}" \- claude-ops/package.json- # marketplace.json — only the ops plugin entry, not the marketplace meta- sed -i "/\"name\": \"ops\"/,/\"version\":/{s/\"version\": \"[^\"]*\"/\"version\": \"${VERSION}\"/}" \- .claude-plugin/marketplace.json- fi-- - name: Open bump PR- env:- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- VERSION: ${{ needs.create-release.outputs.version }}- run: |- BRANCH="release/bump-${VERSION}"- if git diff --quiet; then- echo "no version changes to commit (already at v${VERSION})"- exit 0- fi- git checkout -B "$BRANCH"- git add claude-ops/.claude-plugin/plugin.json \- claude-ops/package.json \- .claude-plugin/marketplace.json- git commit -m "chore: bump version to ${VERSION} [skip ci]"- git push -f origin "$BRANCH"-- # Write PR body to a file to avoid YAML/shell quoting hell- cat > /tmp/bump-pr-body.md <<EOF- Auto-generated by the Release workflow after publishing v${VERSION}.-- Bumps:- - \`claude-ops/.claude-plugin/plugin.json\`- - \`claude-ops/package.json\`- - \`.claude-plugin/marketplace.json\` (\`plugins.ops.version\`)-- Squash-merge to finish the release. Safe to merge — no code changes.- EOF-- # Open the PR; ignore failure if it already exists- gh pr create \- --base main \- --head "$BRANCH" \- --title "chore: bump version to ${VERSION}" \- --body-file /tmp/bump-pr-body.md \- || echo "PR may already exist for $BRANCH — skipping create"- if: needs.optimize_ci.outputs.skip == 'false'+ - uses: actions/checkout@v7+ with:+ fetch-depth: 0+ token: ${{ secrets.GITHUB_TOKEN }}++ - name: Configure git+ run: |+ git config user.name "github-actions[bot]"+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"++ - name: Bump versions in plugin/marketplace/package JSON+ env:+ VERSION: ${{ needs.create-release.outputs.version }}+ run: |+ # Use jq for safe JSON edits when available; fall back to sed otherwise.+ if command -v jq >/dev/null 2>&1; then+ tmp=$(mktemp)+ jq --arg v "$VERSION" '.version = $v' claude-ops/.claude-plugin/plugin.json > "$tmp" \+ && mv "$tmp" claude-ops/.claude-plugin/plugin.json+ jq --arg v "$VERSION" '.version = $v' claude-ops/package.json > "$tmp" \+ && mv "$tmp" claude-ops/package.json+ jq --arg v "$VERSION" '.plugins |= map(if .name == "ops" then .version = $v else . end)' \+ .claude-plugin/marketplace.json > "$tmp" \+ && mv "$tmp" .claude-plugin/marketplace.json+ else+ # Fallback: target the literal "version" line in each file. This is+ # less safe (matches the first .version key) but keeps the workflow+ # working on minimal runners.+ sed -i "0,/\"version\":/{s/\"version\": \"[^\"]*\"/\"version\": \"${VERSION}\"/}" \+ claude-ops/.claude-plugin/plugin.json+ sed -i "0,/\"version\":/{s/\"version\": \"[^\"]*\"/\"version\": \"${VERSION}\"/}" \+ claude-ops/package.json+ # marketplace.json — only the ops plugin entry, not the marketplace meta+ sed -i "/\"name\": \"ops\"/,/\"version\":/{s/\"version\": \"[^\"]*\"/\"version\": \"${VERSION}\"/}" \+ .claude-plugin/marketplace.json+ fi++ - name: Open bump PR+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ VERSION: ${{ needs.create-release.outputs.version }}+ run: |+ BRANCH="release/bump-${VERSION}"+ if git diff --quiet; then+ echo "no version changes to commit (already at v${VERSION})"+ exit 0+ fi+ git checkout -B "$BRANCH"+ git add claude-ops/.claude-plugin/plugin.json \+ claude-ops/package.json \+ .claude-plugin/marketplace.json+ git commit -m "chore: bump version to ${VERSION} [skip ci]"+ git push -f origin "$BRANCH"++ # Write PR body to a file to avoid YAML/shell quoting hell+ cat > /tmp/bump-pr-body.md <<EOF+ Auto-generated by the Release workflow after publishing v${VERSION}.++ Bumps:+ - \`claude-ops/.claude-plugin/plugin.json\`+ - \`claude-ops/package.json\`+ - \`.claude-plugin/marketplace.json\` (\`plugins.ops.version\`)++ Squash-merge to finish the release. Safe to merge — no code changes.+ EOF++ # Open the PR; ignore failure if it already exists+ gh pr create \+ --base main \+ --head "$BRANCH" \+ --title "chore: bump version to ${VERSION}" \+ --body-file /tmp/bump-pr-body.md \+ || echo "PR may already exist for $BRANCH — skipping create"