-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Enable optional DeepWiki integration for advanced repository analysis and UI library research. #1072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable optional DeepWiki integration for advanced repository analysis and UI library research. #1072
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -26,6 +26,7 @@ | |||||||||||||||||||||||
| - **Research goals = "{{research_goals}}"** - captured from initial discussion | ||||||||||||||||||||||||
| - Focus on technical architecture and implementation research | ||||||||||||||||||||||||
| - Web search is required to verify and supplement your knowledge with current facts | ||||||||||||||||||||||||
| - **DeepWiki MCP** may be available for authoritative repository documentation (optional enhancement) | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| ## YOUR TASK: | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
|
@@ -69,7 +70,101 @@ For **{{research_topic}}**, I will research: | |||||||||||||||||||||||
| **All claims verified against current public sources.** | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| **Does this technical research scope and approach align with your goals?** | ||||||||||||||||||||||||
| [C] Continue - Begin technical research with this scope | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| ### 2.5 Framework Integration Mode (Optional DeepWiki Enhancement) | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| After confirming scope, ask: | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| "**Does this research involve integrating multiple frameworks or libraries?** | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| If you're researching how frameworks work together (e.g., Tauri + Next.js, or React + a backend framework), I can query authoritative repository documentation via DeepWiki for verified API signatures and integration patterns. | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| [Y] Yes - Enable DeepWiki mode for authoritative framework documentation | ||||||||||||||||||||||||
| [N] No - Standard web research is sufficient for this topic" | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| #### If Y (Enable DeepWiki): | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| "**Which GitHub repositories should I query?** (Maximum 3 for optimal results) | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Format: `owner/repo` (e.g., `tauri-apps/tauri`, `vercel/next.js`) | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Enter repositories (comma-separated):" | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| #### Repository Type Classification (MANDATORY if enabled): | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| For each provided repository, classify its type based on name patterns: | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| | Pattern Match | Type | Query Focus | | ||||||||||||||||||||||||
| | ---------------------------------------- | -------------- | -------------------------------------- | | ||||||||||||||||||||||||
| | `shadcn/*`, `shadcn-ui/*`, `radix-ui/*` | `ui-primitive` | Primitives, composition, accessibility | | ||||||||||||||||||||||||
| | `chakra-ui/*`, `mui/*`, `ant-design/*` | `ui-library` | Components, theming, variants | | ||||||||||||||||||||||||
| | `*-ui/*`, `*ui/*` (general) | `ui-library` | Components, props, customization | | ||||||||||||||||||||||||
| | `tauri-apps/*`, `vercel/*`, `electron/*` | `framework` | APIs, protocols, extensions | | ||||||||||||||||||||||||
| | `*auth*`, `*-auth/*` | `auth-library` | Sessions, providers, security | | ||||||||||||||||||||||||
| | Other | `general` | Standard technical queries | | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Display classification to user: | ||||||||||||||||||||||||
| "**Repository Classification:** | ||||||||||||||||||||||||
| | Repository | Type | Query Focus | | ||||||||||||||||||||||||
| |------------|------|-------------| | ||||||||||||||||||||||||
| | {repo_1} | {type} | {focus_description} | | ||||||||||||||||||||||||
| | {repo_2} | {type} | {focus_description} | | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| **Note:** UI libraries will receive additional component-focused queries for UX Designer downstream use." | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| #### DeepWiki Validation (MANDATORY if enabled): | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| For each provided repository: | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| 1. Call `read_wiki_structure(repo)` to verify indexing | ||||||||||||||||||||||||
| 2. If successful: Store repo with `indexed: true`, extract version if available, store `type` classification | ||||||||||||||||||||||||
| 3. If fails: Warn user - "⚠️ {repo} is not indexed in DeepWiki. Continue without it? [Y/N]" | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Display validation results: | ||||||||||||||||||||||||
| "**DeepWiki Repository Status:** | ||||||||||||||||||||||||
| | Repository | Indexed | Version | | ||||||||||||||||||||||||
| |------------|---------|---------| | ||||||||||||||||||||||||
| | {repo_1} | ✅/❌ | {version} | | ||||||||||||||||||||||||
| | {repo_2} | ✅/❌ | {version} | | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| **Query Budget:** This session will use approximately {estimated} queries. Maximum recommended: 15 queries." | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
Comment on lines
+130
to
+131
|
||||||||||||||||||||||||
| **Query Budget:** This session will use approximately {estimated} queries. Maximum recommended: 15 queries." | |
| **Query Budget:** This session will use approximately {estimated} queries. | |
| _Query budget estimation formula:_ | |
| - 5 queries per repository (Phase 2) | |
| - Plus 5 additional queries for each UI library or UI primitive repository (Phase 3.5) | |
| - Plus up to 1 query per unique pair of repositories for cross-reference detection | |
| _Example:_ For 3 repositories (including 1 UI library), the maximum could be: (3 × 5) + (1 × 5) + (3 pairs × 1) = 23 queries. | |
| **Maximum recommended:** 25 queries per session (soft limit; adjust as needed based on actual repo count and types). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pattern match for shadcn repositories uses
shadcn/*andshadcn-ui/*, but the actual shadcn/ui repository is typically referenced asshadcn-ui/uiorshadcn/ui. The pattern should include consideration for the exact repository naming convention. Consider adding documentation or examples that clarify which specific repositories match these patterns, as shadcn/ui is not an organization but a design system where the actual repository might be structured differently.