feat: /hance skill (install, run, try, batch, ui)#28
Open
RichardBray wants to merge 6 commits into
Open
Conversation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Two pieces of infra for the upcoming /hance skill (spec: docs/superpowers/specs/2026-05-01-hance-skill-design.md): - scripts/install-agent.sh: terse, line-per-step installer for the skill's setup subcommand. Refuses Windows, no interactive prompts, prints OK on success. - scripts/build-preset-index.ts + presets/index.json: canonical preset metadata index (name, description, keywords, characteristics, path) so the look-matching logic in 'try' doesn't need to read every .hlook. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- skills/hance/ with SKILL.md routing + 5 subcommand docs (setup, run, try, batch, ui) and 2 reference docs (preset-index, compare-page) - delete skills/match-look (subsumed by /hance try) - /compare route in packages/ui via path-based dispatch in index.tsx, new ComparePage component renders 2x2 grid with Edit hand-off - server.ts: /api/local-file (allowlisted), /api/initial-look, /api/seed-edit endpoints, plus setInitialLook / allowFilePath exports - App.tsx seeds editor with initial look on mount when present - core/preset-index.ts exports buildPresetIndex / rebuildPresetIndex; rebuild wired into UI server (POST/PUT/DELETE/rename/import) and CLI hance preset save; build-preset-index.ts delegates to it Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Also adds the skill files (previously silently ignored) and teaches /hance setup to offer ffmpeg install per OS package manager. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…gitignore preset index - /compare → editor hand-off now uses ?look= query param instead of POST /api/seed-edit + GET /api/initial-look. Removes server-side mutable state. - Delete scripts/install-agent.sh; setup skill now verifies bun + ffmpeg and shows example bunx invocations. - Gitignore presets/index.json (generated artifact); skill rebuilds it on demand. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1c412b7 to
57e8d47
Compare
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.
Summary
Test plan
🤖 Generated with Claude Code