A Claude Code / Codex plugin that helps you learn how to build while AI writes the code.
Python
docs: add quick start and verification guide
Noah Kim0b83a07c1cd3
diff --git a/README.md b/README.mdindex 39a99a5..eb91822 100644--- a/README.md+++ b/README.md@@ -1,2 +1,73 @@-# sensible-vibes-A Claude Code plugin that helps you learn how to build while AI writes the code.+# SensibleVibes++**You build. AI writes.**++A Claude Code plugin that helps you learn how to build software while AI writes the code. At meaningful decisions, Claude asks how you'd approach the problem, refines the approach with you, then writes the implementation when you're ready.++## Get started++You need [Claude Code](https://code.claude.com/docs/en/setup) and Python 3 (`python3` on your PATH).++In Claude Code, run:++```text+/plugin marketplace add nykooi1/sensible-vibes+/plugin install sensible-vibes@sensible-vibes+```++Restart Claude Code in the project you want to work on, then run:++```text+/sensible-vibes:learn+```++Answer a few short setup questions, then ask Claude to build something. Starting fresh or joining an unfamiliar repository both work. For an existing repository, Claude first inspects the code and sketches a small system map.++## What it feels like++```text+You: Add Stripe subscriptions.++Claude: ◆ BUILD CHECKPOINT+Stripe can deliver the same event more than once.+How would you prevent it from updating a subscription twice?++You: Save the event ID and check whether we already handled it?++Claude: Yes—that's the idea behind idempotency.++◆ DECISION REVIEW+We'll save the event ID and update the subscription in one+transaction, so concurrent deliveries can't process it twice.++1. Implement+2. Discuss first+```++Answer in plain English. If you're unsure, say “I don't know” or “skip,” and Claude explains the approach. Before implementing a checkpoint decision, choose **Implement** or **Discuss first** to ask questions, raise concerns, or explore alternatives. Claude writes the code.++## Make it yours++- “Use fewer checkpoints.”+- “Focus on backend architecture.”+- “Use multiple-choice questions.”+- “Just implement this one.”+- “Pause learning.” Resume with `/sensible-vibes:learn`.++Preferences, learning notes, and a project map live in `.sensible-vibes/` in your project. Learning mode resumes in future sessions and after compaction. Add `.sensible-vibes/` to your `.gitignore` to keep your notes out of Git; the plugin won't change it silently.++No extra account, backend, or telemetry. Saved notes are included in Claude's context, so your normal Claude Code data settings still apply.++## Try a local checkout++Before this version is published, or to develop locally, launch Claude from your project with an absolute path to this checkout:++```sh+claude --plugin-dir /absolute/path/to/sensible-vibes+```++Then run `/sensible-vibes:learn`. [Development and testing](docs/development.md).++## License++[MIT](LICENSE). You can use, modify, and share this software, including commercially. Keep the license notice with copies. The software comes without a warranty.diff --git a/docs/development.md b/docs/development.mdnew file mode 100644index 0000000..9d8da3e--- /dev/null+++ b/docs/development.md@@ -0,0 +1,103 @@+# Development++V1 is a Claude Code skill, Markdown instructions, and one read-only Python hook.+There are no packages to install. Python 3.8+ is sufficient for the hook and tests.++## Local checks++```sh+claude plugin validate .claude-plugin/plugin.json+claude plugin validate .claude-plugin/marketplace.json+claude plugin validate skills+python3 -B -m unittest discover -s tests -v+git diff --check+```++The tests execute the registered hook command with real JSON stdin in temporary+projects. They cover activation, restoration, partial onboarding, paused mode,+subdirectories, repository/worktree boundaries, missing/invalid files, symlinks,+bounded context, and read-only behavior. They do not prove teaching quality.++## Conversation smoke tests++Use an authenticated Claude Code session and temporary copies of projects.+Launch with `claude --plugin-dir /absolute/path/to/sensible-vibes`.++1. **Fresh project:** Run `/sensible-vibes:learn`. Choose a new project, describe+ a small CLI, and accept preference defaults. Check that all three state files+ are created, the map separates proposed from implemented components, and no+ understanding is marked demonstrated without evidence.+2. **Existing unfamiliar repository:** Use a separate copy of a real repository.+ Choose the existing-repository flow. Confirm Claude reads actual entry points+ and configuration, gives an accurate short map before familiarity questions,+ asks whole-system versus focused scope, and doesn't invent a frontend/database.+3. **Checkpoint → implementation:** Ask for a meaningful feature, such as durable+ storage or retrying an external request. Confirm Claude asks one reasoning+ question before implementing the decision. Give a partial answer; check that+ it refines the answer and offers Implement / Discuss first. Select Discuss+ first, ask for clarification or propose an alternative, and confirm it stays+ paused and updates the approach if needed. Select Implement;+ check it writes the code and records only evidenced learning. Restart while a+ decision review is pending and confirm it preserves that pause.+4. **Skip and adaptation:** Say “I don't know” or “skip.” Confirm Claude explains+ the approach and offers the decision review without quizzing again. “Just+ implement it” should proceed. Make a trivial edit and confirm no checkpoint. After demonstrating+ a concept, check that later questions address new decisions rather than repeat it.+5. **Lifecycle:** Restart, resume, `/clear`, and `/compact`. Confirm preferences,+ the map, and mastered concepts survive without repeated onboarding. Pause+ learning, restart, and confirm it stays paused; invoke Learn to resume.++Do not commit `.sensible-vibes/` or test transcripts. The plugin recommends an+ignore rule during onboarding, but changes `.gitignore` only after telling the+user and receiving their instruction to make the edit.++## Design and official references++Verified against current first-party documentation on 2026-09-28:++- [Plugin creation](https://code.claude.com/docs/en/plugins/create): standard+ component directories and `--plugin-dir` for local loading.+- [Skills](https://code.claude.com/docs/en/skills): the command is+ `/sensible-vibes:learn`. Explicit invocation starts onboarding; the hook restores+ behavior in later sessions only where a learner profile already exists.+- [Hooks](https://code.claude.com/docs/en/hooks): `SessionStart` sources include+ `startup`, `resume`, `clear`, `compact`, and `fork`. The hook emits+ `hookSpecificOutput.additionalContext`, keeping it below the 10,000-character+ limit. It embeds behavior and bounded profile/map excerpts, plus pending-decision+ markers and a progress topic index; Claude reads full relevant notes when necessary.+- [Marketplace creation](https://code.claude.com/docs/en/plugin-marketplaces):+ the small catalog points to this repository's plugin root. The GitHub install+ instructions work after these files are published to the remote repository.+- [Anthropic's learning-output-style plugin](https://github.com/anthropics/claude-plugins-official/tree/main/plugins/learning-output-style):+ inspected its SessionStart configuration and context injection. SensibleVibes+ supplies its own reasoning-first instructions and leaves implementation to AI.++No `PreCompact` hook is needed: it doesn't provide an opportunity for Claude to+save learning notes through `additionalContext`. Save notes at meaningful events+and restore them through `SessionStart` with source `compact`. Unsaved reasoning+can still be lost if a session ends before Claude writes it; the hook doesn't+infer progress from transcripts. State writes are performed by Claude using+normal permissions, so denied writes should be reported rather than called saved.++Keep V1 local and terminal-native. No backend, analytics, accounts, separate LLM+calls, scoring engine, or custom UI. Saved context is processed by Claude Code+under the user's existing data settings.++## V1 verification++Tested on 2026-09-28 with Claude Code 2.1.240:++- Plugin, marketplace, and skill validation passed; installation in an isolated+ local marketplace configuration succeeded.+- All 16 hook tests passed, including simulated compact/clear/resume events.+- Live Claude sessions completed fresh-project onboarding and orientation of an+ unfamiliar copy of this repository. A new session restored saved preferences.+- The fresh-project session asked about persistence, reviewed the learner's JSON+ storage proposal, waited through clarification (the choice was initially named+ Ask a question; now Discuss first), then wrote+ the CLI after Implement. Its five generated CLI/storage tests passed locally.++The live tests used print mode with file tools, exercising the plain-text choice+fallback. Native interactive choices and the actual `/compact` command still need+an interactive smoke test. Checkpoint quality remains model-dependent; these+examples verify the interaction, not a guarantee for every conversation.