Add design fingerprinting engine with semantic embeddings#4
Merged
nahiyankhan merged 2 commits intomainfrom Apr 6, 2026
Merged
Add design fingerprinting engine with semantic embeddings#4nahiyankhan merged 2 commits intomainfrom
nahiyankhan merged 2 commits intomainfrom
Conversation
…terpretation Evolves Ghost from registry-only audit to a design language fingerprinting system. Projects can now be profiled without a registry, fingerprints compared for distance, and design languages clustered across repos via embedding vectors. New capabilities: - `ghost profile` generates a DesignFingerprint (palette, spacing, typography, surfaces, architecture) - `ghost compare` computes per-dimension distance between two fingerprints - Extractor plugin system (Tailwind MVP + CSS fallback) for framework-agnostic material gathering - LLM interpretation layer (Anthropic/OpenAI as optional peer deps) for rich fingerprint generation - Deterministic 64-dim embedding vector for similarity/clustering - Deterministic registry fingerprinting (no LLM needed for shadcn registries) Existing `ghost scan` is fully preserved — designSystems is now optional in config. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Replace the hand-engineered 64-dim feature vector with optional model-generated embeddings. The fingerprint is rendered as natural language and sent to a text embedding model, producing vectors that capture semantic similarity across different CSS methodologies. New optional config field `embedding` with provider/model/apiKey. Falls back to env vars (OPENAI_API_KEY, VOYAGE_API_KEY) and to the deterministic vector when no embedding config is present. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
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
ghost profileandghost comparecommands that fingerprint a project's design language (palette, spacing, typography, surfaces, architecture) without requiring a registryghost scanis fully preserved —designSystemsis now optional in configWhat changed
fingerprint/): profile, compare, describe, embed, and registry-based fingerprintingextractors/): pluggable Tailwind and CSS extractors for gathering design materialsllm/): Anthropic and OpenAI providers with structured prompts for fingerprint generation and summarizationghost-cli): newprofileandcomparesubcommandsGhostConfigand new fingerprint typesTest plan
ghost profileon a Tailwind project and verify fingerprint outputghost profileon a plain CSS project (fallback extractor)ghost comparebetween two fingerprints and verify distance scoresghost scanto confirm existing behavior is unaffected🤖 Generated with Claude Code