/nanopm:pm-setup-cloudfrom nanopm
Configures Supabase cloud sync for nanopm wiki. One-time setup: enter project URL and anon key, run migration, push local wiki to cloud. After setup, pages sync automatically.
Ships in nanopm. 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.
None: SKILL.md is the whole skill.
Multi-host portability rules. When invoking
AskUserQuestion:
- The
headerfield MUST be a short noun phrase (≤ 12 characters). Mistral Vibe rejects longer headers withstring_too_long. Pick from:Start,Target,Scope,Audience,Methodology,Feature,Question.- The
optionslist MUST have at least 2 items. Vibe rejects empty/single-option calls. For free-text input, always provide ≥ 2 framing options (e.g.Yes, here's the input/Skip) — never callask_user_questionwithoptions: [].
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || \
source .nanopm/lib/nanopm.sh 2>/dev/null || \
{ echo "ERROR: nanopm not installed. Run: curl -fsSL https://raw.githubusercontent.com/nmrtn/nanopm/main/setup | bash"; exit 1; }
nanopm_preamble
if nanopm_supabase_configured 2>/dev/null; then
_SB_URL=$(grep '^NANOPM_SUPABASE_URL=' "$HOME/.nanopm/.env" 2>/dev/null | cut -d= -f2- | tr -d '"' | tr -d "'")
echo "SUPABASE_STATUS: already configured (${_SB_URL:-set via env var})"
else
echo "SUPABASE_STATUS: not configured"
fi
Read the output above.
SUPABASE_STATUS: already configured → ask the user whether to reconfigure or run a re-sync, then jump to Phase 4 if they want re-sync.SUPABASE_STATUS: not configured → proceed to Phase 2.Ask the user if they already have a Supabase project for nanopm:
Never ask the user to paste their URL or key into the chat. Credentials must not appear in the conversation. Instead, tell the user to create or edit ~/.nanopm/.env in their own terminal or editor. Show them the exact format:
# ~/.nanopm/.env — never commit this file
NANOPM_SUPABASE_URL=https://YOUR-PROJECT-REF.supabase.co
NANOPM_SUPABASE_KEY=sb_publishable_YOUR-KEY
Tell them: "In your Supabase project go to Settings → API Keys. Use the Publishable key (starts with sb_publishable_) — it works with RLS enabled. Do NOT use the Secret key (sb_secret_) for this; that's for privileged server-side use only."
They can create it with:
! cat > ~/.nanopm/.env << 'EOF'
NANOPM_SUPABASE_URL=https://YOUR-PROJECT-REF.supabase.co
NANOPM_SUPABASE_KEY=YOUR-ANON-KEY
EOF
chmod 600 ~/.nanopm/.env
(They fill in the real values themselves — never paste them into chat.)
Ask them to confirm when done.
Once the user confirms, verify the credentials are present (without printing them):
source ~/.nanopm/lib/nanopm.sh 2>/dev/null
nanopm_supabase_configured && echo "CREDENTIALS: present" || echo "CREDENTIALS: missing — please check ~/.nanopm/.env"
Run the database migration. Try the Supabase MCP first (preferred — no CLI needed), then fall back to instructions:
# Check if supabase CLI is available
command -v supabase >/dev/null 2>&1 && echo "SUPABASE_CLI: available" || echo "SUPABASE_CLI: not found"
# Check if migration file exists
[ -f "supabase/migrations/001_nanopm_wiki.sql" ] && echo "MIGRATION_FILE: present" || echo "MIGRATION_FILE: not found"
If Supabase MCP is available (mcp__supabase__apply_migration): read supabase/migrations/001_nanopm_wiki.sql and apply it via the MCP tool.
If Supabase CLI is available: run supabase db push (requires supabase login first).
Otherwise: tell the user to copy the contents of supabase/migrations/001_nanopm_wiki.sql into their Supabase SQL editor at https://supabase.com/dashboard/project/<ref>/sql and run it.
Wait for confirmation that the migration ran before continuing.
Push all local wiki pages to Supabase:
~/.nanopm/bin/nanopm-ingest-agent --project . sync
If it prints sync: pushed N page(s) → success.
If it errors → show the error to the user and suggest checking the URL/key.
Print a summary:
CLOUD_CONFIGURED ✓
URL: <url>
Pages: <N> pushed
Auto-sync: push happens after every wiki write; pull happens at the start
of each skill run (throttled to once per 10 minutes).
To share with a teammate:
1. Send them the Supabase URL + anon key out-of-band (Slack DM, 1Password, etc.)
2. They create ~/.nanopm/.env with the same values (never in chat)
3. They run /pm-setup-cloud — it verifies credentials and does the initial pull
4. From then on, sync is automatic
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/pm-add-feedbackThe single ingestion door for raw user signal. Accepts a file path, pasted text (--paste), or a connector source (Granola, Dovetail, Google Drive, tickets), archives it verbatim under .nanopm/raw/<type>/<id> before extraction, applies a Mom-Test discovery filter to pull problems + verbatim quotes, then runs the learning loop: Pass 1 grounds EXISTING opportunities (append verbatim, propose a provenance upgrade toward evidence-backed), Pass 2 surfaces NEW strategy-coherent opportunities. Every grounded/created opportunity is bidirectionally linked to its raw source, and the run ends with a machine-readable run-summary. One batched human confirmation before writes; headless (viewer) runs fall back to write-then-review with ⚠ low-confidence./pm-archiveArchive one entity (opportunity, solution, objective, competitor, or persona) with a polished, contextual reason sentence. Argument: <type>/<slug> (e.g. opportunity/cold-start-context or solution/inline-viewer-pane). User context: the raw reason and kind — 'implemented: ...', 'dropped: ...', 'absorbed: ...' for opportunities/solutions; 'completed: ...', 'abandoned: ...' for objectives; 'defunct: ...', 'pivoted: ...', 'irrelevant: ...' for competitors; 'outgrown: ...', 'dropped: ...' for personas./pm-brainstormJam with Nano, your expert CPO. An informal, context-loaded thinking partner for product ideas, user problems, and what-to-build-next — Nano knows your company context and current objectives, no gate, no PRD. Sessions are named and resumable via your host's native session resume./pm-breakdownBreak a PRD into engineering tasks and hand off to one of six peer targets: Linear, GitHub Issues, OpenSpec, gstack, Symphony (OpenAI's orchestrator), or Human-readable markdown. No preferred default — you pick the target./pm-business-modelDefine how the company makes money. Reverse-engineers the business model from pricing pages, prior nanopm artifacts, and the codebase when they exist, or builds it from scratch by interviewing you when the repo is empty. Produces the wiki Define page `.nanopm/wiki/docs/business-model.md` — model type, revenue streams, pricing & packaging, and GTM motion./pm-challenge-meChallenge Me. Adversarial product challenge: a skeptical-CPO read of what you're building, who for, and the biggest strategic gap — then three direct challenges you should answer, starting with the question you're avoiding. Produces .nanopm/wiki/docs/challenges.md.npx claudepluginhub nmrtn/nanopm --plugin nanopmOther plugins' skills for the same job