Make install a two-line cheat: Claude Code plugin marketplace + installer v2#38
Draft
cgallic wants to merge 2 commits into
Draft
Make install a two-line cheat: Claude Code plugin marketplace + installer v2#38cgallic wants to merge 2 commits into
cgallic wants to merge 2 commits into
Conversation
Research-driven overhaul of the install experience (5-agent research pass; findings in docs/install-ux-research.md). - Package the repo as a Claude Code plugin marketplace: install is now '/plugin marketplace add cgallic/kai-cmo-harness' + '/plugin install kai@kai-marketing-os' — zero terminal, auto-updating. plugins/kai-marketing-os/ ships skills + knowledge + references + contracts + quality gates (~7 MB via dereferenced symlinks; verified empirically with claude CLI v2.1.201 — no workspace/site/.git junk). - install.sh v2: also installs the knowledge base to ~/.claude/kai (v1 shipped skills whose frameworks/contracts/gates never installed), kaicalls-design optional (warn not fail), local-checkout aware. - Add "Kai root note" to 34 skills so knowledge/harness/scripts paths resolve in repo, plugin-cache, and ~/.claude/kai installs; missing scripts are skipped-and-declared, never fabricated. - /kai-start: skip goal-loop CLI when harness_cli is absent; recommend /kai-growth-plan first (works anywhere) instead of /kai-audit. - /kai-audit: qualitative mode when collectors are unavailable. - Fix kai-growth-hacker YAML frontmatter (unquoted colon dropped all skill metadata at runtime). - Set executable bits on install.sh/setup.sh/deploy.sh/setup/bin/*. - README + Quick Start lead with the plugin path; stale counts fixed. Verified: doctor.py --ci clean, golden corpus 4/4, claude plugin validate passes, install.sh end-to-end green, local plugin install registers all 49 skills (~7.7k always-on tokens). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XyDQLHJEfMzefM85qfaCEg
./install.sh, ./deploy.sh, ./setup, and bin/* were committed mode 644, so the documented invocations failed with Permission denied on every fresh clone. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XyDQLHJEfMzefM85qfaCEg
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Install UX overhaul
Research-driven rebuild of the install experience. A 5-agent research pass (current-install audit, ICP profile, best-in-class installer research, technical-constraints audit, adversarial gap critic) is summarized in
docs/install-ux-research.md; this PR ships the design it converged on.The cheat code
The repo is now a Claude Code plugin marketplace. Install is two lines typed inside Claude Code — no terminal, no clone, no config, auto-updating on every push:
plugins/kai-marketing-os/is a curated directory of symlinks (skills,knowledge/,harness/references,harness/skill-contracts,scripts/quality_gates). Claude Code dereferences symlinks when copying a plugin into its cache, so users get the ~7 MB payload the skills actually need — and none of the repo's other ~106 MB (workspace/, .git, site/, mp3s). Empirically verified withclaudeCLI v2.1.201: local marketplace add + install → 0 symlinks in cache, full payload materialized, no junk leaked, all 49 skills registered, ~7.7k always-on tokens.What was broken
install.shv1 copied onlyharness/skills/(848K). 34 of 49 skills referenceknowledge//harness/files and 14 invokescripts/Python that were never installed; the installer verified green anyway./kai-startand the installer both recommended/kai-audit, which hard-requirespython -m scripts.audit.collect→ guaranteedModuleNotFoundErroroutside the repo.kaicalls-designfiles were missing../install.shfailed on every fresh clone.kai-growth-hacker/SKILL.mdhad an unquoted:in its description; YAML parse failure silently dropped all its metadata at runtime (caught byclaude plugin validate).Changes
.claude-plugin/marketplace.json+plugins/kai-marketing-os/— plugin packaging as above.versionintentionally omitted fromplugin.json→ SHA-based auto-updates (docs-recommended for actively developed plugins).install.shv2 — installs the knowledge base to~/.claude/kai/alongside the skills, uses a local checkout when run from one, verifies knowledge + gates + skills,kaicalls-designis warn-not-fail, exit message lands on/kai-startwith time promises. Tested end-to-end.knowledge//harness//scripts/paths against the Kai install root in all three modes (repo checkout, plugin cache,~/.claude/kai); missingscripts/commands are skipped-and-declared, never fabricated./kai-start— goal-loop step auto-skips whenscripts/harness_cli.pyis absent (goal goes into MARKETING.md); first recommendation is/kai-growth-plan(works anywhere),/kai-auditonly when collectors exist./kai-audit— explicit qualitative mode without collectors: cite-what-you-browse, unmeasured numbers go to_data-gaps.md.install.sh,setup.sh,deploy.sh,setup,bin/*.docs/QUICK_START.md— lead with the plugin path; manual install now includes the knowledge payload; stale skill count and brokenseo_lintexample fixed.docs/install-ux-research.md— full research findings, rejected alternatives, and open items (Windows symlink caveat, Four U's Gemini dependency, claude-plugins-community submission,npx skills addpath, legacy-path retirement).Verification
python scripts/doctor.py --ci— clean (45/45 files, instruction chain intact, golden corpus 4/4)python scripts/quality_gates/golden_check.py— 4/4claude plugin validate ./plugins/kai-marketing-os— passes (only the intentional missing-version warning)bash install.sh— end-to-end green from a local checkout; installed skills registered in a live Claude Code session/plugininstall → cache inspected: dereferenced payload, no junk, 49 skills🤖 Generated with Claude Code
https://claude.ai/code/session_01XyDQLHJEfMzefM85qfaCEg
Generated by Claude Code