Skip to content

Install/uninstall onboarding UX: prerequisites, profiles, ruflo-onboard, mental model - #4

Merged
pacphi merged 13 commits into
mainfrom
feat/install-onboarding-ux
May 29, 2026
Merged

Install/uninstall onboarding UX: prerequisites, profiles, ruflo-onboard, mental model#4
pacphi merged 13 commits into
mainfrom
feat/install-onboarding-ux

Conversation

@pacphi

@pacphi pacphi commented May 29, 2026

Copy link
Copy Markdown
Owner

Summary

Turns install.sh into a friendly machine bootstrap and closes the onboarding gap for users who haven't yet installed the npm prerequisites.

  • Prerequisites are now explicit. New README "✅ Prerequisites" section (required: Node 20–26, npm, ruflo; optional: agentic-qe). Clarifies that security + learning ship inside ruflo and are activated, not separately installed.
  • install.sh profiles + interactive default. --full (ruflo + agentic-qe + heal), --ruflo-only, --minimal; granular --with-aqe/--no-aqe/--heal/etc.; --yes/no-TTY non-interactive. Preflight dep checks, npm-prereq install (with sudo hint on EACCES), and an optional in-process heal that sources the shipped helpers (no logic duplication). Context-aware next-steps banner.
  • uninstall.sh symmetric, safe-by-default. Default stays kit-only; opt-in --remove-ruflo/--remove-aqe/--purge remove the global npm packages, gated behind explicit flags + confirmation. --yes confirms for scripted use; no-TTY without --yes declines and warns.
  • Per-project onboarding. New ruflo-onboard one-command wrapper (setup-projectlearning-verify → optional --aqe), plus "Next: …" breadcrumbs on ruflo-resync / ruflo-setup-project / ruflo-learning-verify.
  • Mental model. New README "🧭 Which command do I run?" guide: install.sh once, ruflo-resync after upgrades, ruflo-onboard per repo.

Design spec and implementation plan are under docs/superpowers/.

Test Plan

No unit-test framework in this repo; verification is syntax + lint + dry-run behavior (all run, all pass):

  • bash -n clean on install.sh, uninstall.sh, shell/ruflo-functions.sh, bin/ruflo-learning-verify
  • shellcheck -S warning clean on install.sh and uninstall.sh
  • ./install.sh --minimal --dry-run → no npm/heal sections; --ruflo-only → ruflo only; --full --yes --dry-run → both packages + heal, no prompts
  • No-TTY (piped) run never blocks on a prompt
  • ./uninstall.sh --dry-run → kit-only; --purge --dry-run → lists both npm uninstall -g with no prompt
  • Conflicting flags warn (--with-aqe --no-aqe); --shell fish rejected (exit 2); next-steps banner has no numbering gaps
  • Every command/flag/function referenced in the README verified against the scripts
  • Human review

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant