# Mindful Clicks — Claude Code auto setup

> **Claude, read this whole file before doing anything, then follow it in order.** This only works if you have real file and terminal access (Claude Code, desktop app Code tab, or terminal). If you're running in a plain browser chat with no tools, skip straight to Step 0 below and stop there.

## Step 0: check what you can actually do

Before touching anything, confirm you have file write and shell access (e.g. you can run `pwd` and write a file). If you do **not** — you're in a browser-only session with no tools — tell the person plainly: "This setup needs Claude Code (desktop app or terminal), which I don't have access to right now. Go to setup.mindfulclicks.com.au and follow the browser walkthrough instead — same result, just done by hand." Then stop. Do not guess at commands you can't run.

If you do have tool access, continue.

## Step 0.5: resume if this has run before

Check whether `~/.claude/mindful-clicks-setup-progress.md` exists.
- If it doesn't exist: this is a first run. Continue to Step 1.
- If it exists, read it — it's a short checklist marking which steps already completed (see the shape at the bottom of Step 1). Tell the person plainly what's already done and what's left, e.g. "Looks like we already set up your workspace and connected your token last time — just skills left. Want to pick up there?" Skip any step marked done, unless they specifically ask you to redo it.

After completing **each** step below (1 through 3), update or create that file with the shape shown at the end of Step 1 — one line per step, done or not, so an interrupted setup (closed terminal, lost connection, whatever) picks back up instead of starting over or silently redoing work.

## Step 1: personal workspace scaffold

Check whether `~/.claude/CLAUDE.md` already exists.
- If it exists, **do not overwrite it**. Read it, and if it doesn't already have a rules folder reference or a project registry, ask the person whether you should add one, and only touch what they agree to.
- If it does not exist, create it with a short index (see shape below) and create `~/.claude/rules/` with one starter file.

`~/.claude/CLAUDE.md`:
```markdown
# <Their Name>'s Root Workspace

Single orchestration index. Standing rules live in `~/.claude/rules/`, always loaded.

@rules/execution-discipline.md

## Project Registry

| Project | Path | Type |
|---------|------|------|
| Mindful Clicks dashboard | app.mindfulclicks.com.au | Agency automations, approvals, billing |
```

`~/.claude/rules/execution-discipline.md`:
```markdown
# Execution Discipline

## Plan-first (non-trivial tasks only)
For tasks touching several files or anything unfamiliar: present a short plan before executing.

## Verification gates
Never declare a task complete without proof — run it, show output, confirm the file exists.

## Autonomous problem-solving
When something fails mid-task: diagnose, fix, continue. Only escalate for a decision only they can make.
```

This is theirs from here on — it's a personal setup, not a Mindful Clicks product. The registry entry above is just a pointer so you remember the dashboard exists.

After this step, write `~/.claude/mindful-clicks-setup-progress.md`:
```markdown
# Mindful Clicks setup progress

- [x] Step 1: personal workspace scaffold
- [ ] Step 2: connect to Mindful Clicks
- [ ] Step 3: install skills
```
Update the checkboxes as you go — this file is how Step 0.5 knows what to skip on a re-run.

## Step 2: connect their own Claude to Mindful Clicks

Ask them: "Do you have a personal API token yet? Generate one at app.mindfulclicks.com.au → Settings → API Tokens if not, then paste it here." **Never write the token into a file, never log it, never ask for it any other way.**

Once they've pasted it, register the MCP connector:
```bash
claude mcp add --transport http mindful-clicks https://digitalytics-mcp.digitalyticsagency.workers.dev --header "Authorization: Bearer <their token>"
```
If that exact flag doesn't match your installed version, run `claude mcp add --help` first and adjust — don't guess blindly at syntax that might have changed.

**Verify it actually worked** before telling them it's done: call the `list_automations` tool through the new connector. If it returns their real automation queue (even an empty one), it worked. If it errors, say exactly what the error was — don't declare success on a bad token.

Update the progress file's Step 2 line once this genuinely works, not just once you've run the command.

## Step 3: install skills locally

Ask **before each one**, don't bulk-install: "Want me to install the [skill name] skill? It [one-line description from below]." For each they say yes to, fetch the real file and write it to `~/.claude/skills/<slug>/SKILL.md`:

| Slug | Fetch from |
|---|---|
| store-operator | https://app.mindfulclicks.com.au/skills/store-operator.md |
| deal-desk | https://app.mindfulclicks.com.au/skills/deal-desk.md |
| cart-recovery | https://app.mindfulclicks.com.au/skills/cart-recovery.md |
| rfm-segmentation | https://app.mindfulclicks.com.au/skills/rfm-segmentation.md |
| shopify-sales-report | https://app.mindfulclicks.com.au/skills/shopify-sales-report.md |
| meeting-prep | https://app.mindfulclicks.com.au/skills/meeting-prep.md |
| win-loss-analyzer | https://app.mindfulclicks.com.au/skills/win-loss-analyzer.md |
| renewal-spotter | https://app.mindfulclicks.com.au/skills/renewal-spotter.md |
| review-response | https://app.mindfulclicks.com.au/skills/review-response.md |
| competitor-watch | https://app.mindfulclicks.com.au/skills/competitor-watch.md |
| inventory-reorder | https://app.mindfulclicks.com.au/skills/inventory-reorder.md |
| ad-fatigue-detector | https://app.mindfulclicks.com.au/skills/ad-fatigue-detector.md |
| bundle-upsell-suggester | https://app.mindfulclicks.com.au/skills/bundle-upsell-suggester.md |
| proposal-nudger | https://app.mindfulclicks.com.au/skills/proposal-nudger.md |
| lead-qualifier | https://app.mindfulclicks.com.au/skills/lead-qualifier.md |
| weekly-roundup | https://app.mindfulclicks.com.au/skills/weekly-roundup.md |
| content-critic | https://app.mindfulclicks.com.au/skills/content-critic.md |
| goal-tracker | https://app.mindfulclicks.com.au/skills/goal-tracker.md |
| reminder-nudger | https://app.mindfulclicks.com.au/skills/reminder-nudger.md |
| meeting-action-extractor | https://app.mindfulclicks.com.au/skills/meeting-action-extractor.md |
| financial-anomaly-detector | https://app.mindfulclicks.com.au/skills/financial-anomaly-detector.md |
| shopping-agent | https://app.mindfulclicks.com.au/skills/shopping-agent.md |
| merchant-agent | https://app.mindfulclicks.com.au/skills/merchant-agent.md |
| marketing-pod | https://app.mindfulclicks.com.au/skills/marketing-pod.md |
| contract-proposal-writer | https://app.mindfulclicks.com.au/skills/contract-proposal-writer.md |
| commercial-forecaster | https://app.mindfulclicks.com.au/skills/commercial-forecaster.md |
| financial-analyst | https://app.mindfulclicks.com.au/skills/financial-analyst.md |
| mc-doc-coauthoring | https://app.mindfulclicks.com.au/skills/mc-doc-coauthoring.md |
| mc-internal-comms | https://app.mindfulclicks.com.au/skills/mc-internal-comms.md |
| mc-brand-guidelines | https://app.mindfulclicks.com.au/skills/mc-brand-guidelines.md |
| time-billing-tracker | https://app.mindfulclicks.com.au/skills/time-billing-tracker.md |
| invoice-chaser | https://app.mindfulclicks.com.au/skills/invoice-chaser.md |
| retainer-utilization-tracker | https://app.mindfulclicks.com.au/skills/retainer-utilization-tracker.md |
| client-intake-triage | https://app.mindfulclicks.com.au/skills/client-intake-triage.md |
| sow-drafter | https://app.mindfulclicks.com.au/skills/sow-drafter.md |
| scope-creep-flagger | https://app.mindfulclicks.com.au/skills/scope-creep-flagger.md |
| client-file-brief | https://app.mindfulclicks.com.au/skills/client-file-brief.md |
| seo-technical-audit | https://app.mindfulclicks.com.au/skills/seo-technical-audit.md |
| seo-content-brief | https://app.mindfulclicks.com.au/skills/seo-content-brief.md |
| seo-onpage-fixer | https://app.mindfulclicks.com.au/skills/seo-onpage-fixer.md |
| ai-search-visibility-geo | https://app.mindfulclicks.com.au/skills/ai-search-visibility-geo.md |
| seasonal-moments-drafts | https://app.mindfulclicks.com.au/skills/seasonal-moments-drafts.md |
| weekly-content-batch | https://app.mindfulclicks.com.au/skills/weekly-content-batch.md |
| story-video-batch | https://app.mindfulclicks.com.au/skills/story-video-batch.md |
| organic-winners-to-ad | https://app.mindfulclicks.com.au/skills/organic-winners-to-ad.md |
| ad-account-health-check | https://app.mindfulclicks.com.au/skills/ad-account-health-check.md |
| product-feed-health | https://app.mindfulclicks.com.au/skills/product-feed-health.md |
| scheduled-post-safety-check | https://app.mindfulclicks.com.au/skills/scheduled-post-safety-check.md |
| major-sale-readiness-countdown | https://app.mindfulclicks.com.au/skills/major-sale-readiness-countdown.md |
| retargeting-audience-readiness | https://app.mindfulclicks.com.au/skills/retargeting-audience-readiness.md |
| sale-creative-kit-builder | https://app.mindfulclicks.com.au/skills/sale-creative-kit-builder.md |

(Note: mc-doc-coauthoring, mc-internal-comms, and mc-brand-guidelines are prefixed because claude.ai already has skills published under the plain names — a real collision found during upload testing, not a typo.)

Only offer the ones matching their segment:
- **ecommerce**: store-operator, cart-recovery, rfm-segmentation, shopify-sales-report, review-response, competitor-watch, inventory-reorder, ad-fatigue-detector, bundle-upsell-suggester, shopping-agent, merchant-agent, marketing-pod, seo-technical-audit, seo-content-brief, seo-onpage-fixer, ai-search-visibility-geo, seasonal-moments-drafts, weekly-content-batch, story-video-batch, organic-winners-to-ad, ad-account-health-check, product-feed-health, scheduled-post-safety-check, major-sale-readiness-countdown, retargeting-audience-readiness, sale-creative-kit-builder
- **b2b**: deal-desk, meeting-prep, win-loss-analyzer, renewal-spotter, proposal-nudger, lead-qualifier, contract-proposal-writer, commercial-forecaster, financial-analyst
- **professional_services**: time-billing-tracker, invoice-chaser, retainer-utilization-tracker, client-intake-triage, sow-drafter, scope-creep-flagger, client-file-brief
- **all segments** (offer regardless of ecommerce/b2b/professional_services): weekly-roundup, content-critic, goal-tracker, reminder-nudger, meeting-action-extractor, financial-anomaly-detector, mc-doc-coauthoring, mc-internal-comms, mc-brand-guidelines

Ask which segment they are if it isn't already obvious from the conversation — ecommerce, b2b, or professional services (consultants, agencies, accountants, legal, and similar). Once you've gone through every relevant skill (whether they said yes or no to each), mark Step 3 done in the progress file — this step is "complete" once they've been asked, not only if they installed all of them.

## Step 4: what's left, and why you can't do it for them

Be plain about the boundary — this isn't a gap in this file, it's a real security limit that applies no matter what:

"A few things are left, and no automated setup — mine or anyone else's — can do them for you, because each one needs you to personally click through something in your own browser:
1. **Connect your tools** (Gmail, Shopify, and whichever others apply) — official connectors, done in claude.ai → Settings → Connectors.
2. **Turn on your Skills bundle** in claude.ai's own Settings → Capabilities, if you're using claude.ai in the browser alongside Claude Code.
3. **Book time / see what's automated for you** — your dashboard's Schedule tab books real time on your agency contact's calendar, the Documents tab has any files they've shared with you, and your Overview shows a real month-by-month count of what's actually run for you plus your payment history.

Go to setup.mindfulclicks.com.au for the first two, and app.mindfulclicks.com.au for the third — everything else in this file is already done."

Give them both links plainly, then move to Step 5.

## Step 5: a real welcome summary, not just "done"

Before ending the session, call `list_automations` (and `check_my_cost` if it's available) one more time through the connector, and give them a genuine summary of their own current state — not a canned "you're all set" message. Something like: "You're connected. Your automation queue currently has [N] item(s) [waiting for approval / nothing yet, which is normal for a fresh account]. From here, just talk to me — ask me to check your automations, approve something, or ask your agency contact anything." If the queue is empty, say that plainly; don't invent activity to sound more finished than it is.

Mark the progress file fully complete, and stop.
