bobo-ai-cli 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +216 -0
- package/dist/agent.d.ts +9 -0
- package/dist/agent.js +144 -0
- package/dist/agent.js.map +1 -0
- package/dist/config.d.ts +15 -0
- package/dist/config.js +76 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +366 -0
- package/dist/index.js.map +1 -0
- package/dist/knowledge-commands.d.ts +2 -0
- package/dist/knowledge-commands.js +40 -0
- package/dist/knowledge-commands.js.map +1 -0
- package/dist/knowledge.d.ts +17 -0
- package/dist/knowledge.js +112 -0
- package/dist/knowledge.js.map +1 -0
- package/dist/memory.d.ts +17 -0
- package/dist/memory.js +215 -0
- package/dist/memory.js.map +1 -0
- package/dist/planner.d.ts +22 -0
- package/dist/planner.js +130 -0
- package/dist/planner.js.map +1 -0
- package/dist/project.d.ts +25 -0
- package/dist/project.js +117 -0
- package/dist/project.js.map +1 -0
- package/dist/rules-commands.d.ts +2 -0
- package/dist/rules-commands.js +51 -0
- package/dist/rules-commands.js.map +1 -0
- package/dist/skills.d.ts +28 -0
- package/dist/skills.js +349 -0
- package/dist/skills.js.map +1 -0
- package/dist/structured/loader.d.ts +19 -0
- package/dist/structured/loader.js +147 -0
- package/dist/structured/loader.js.map +1 -0
- package/dist/structured/paths.d.ts +2 -0
- package/dist/structured/paths.js +14 -0
- package/dist/structured/paths.js.map +1 -0
- package/dist/structured/project-scaffold.d.ts +7 -0
- package/dist/structured/project-scaffold.js +60 -0
- package/dist/structured/project-scaffold.js.map +1 -0
- package/dist/structured/render-markdown.d.ts +37 -0
- package/dist/structured/render-markdown.js +47 -0
- package/dist/structured/render-markdown.js.map +1 -0
- package/dist/structured/render-table.d.ts +1 -0
- package/dist/structured/render-table.js +15 -0
- package/dist/structured/render-table.js.map +1 -0
- package/dist/structured/search.d.ts +10 -0
- package/dist/structured/search.js +104 -0
- package/dist/structured/search.js.map +1 -0
- package/dist/structured/skill-runner.d.ts +15 -0
- package/dist/structured/skill-runner.js +60 -0
- package/dist/structured/skill-runner.js.map +1 -0
- package/dist/structured/types.d.ts +212 -0
- package/dist/structured/types.js +97 -0
- package/dist/structured/types.js.map +1 -0
- package/dist/structured-skills-commands.d.ts +3 -0
- package/dist/structured-skills-commands.js +126 -0
- package/dist/structured-skills-commands.js.map +1 -0
- package/dist/structured-template-commands.d.ts +2 -0
- package/dist/structured-template-commands.js +34 -0
- package/dist/structured-template-commands.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.js +450 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/ui.d.ts +19 -0
- package/dist/ui.js +72 -0
- package/dist/ui.js.map +1 -0
- package/dist/web.d.ts +4 -0
- package/dist/web.js +124 -0
- package/dist/web.js.map +1 -0
- package/knowledge/advanced-patterns.md +70 -0
- package/knowledge/agent-directives.md +74 -0
- package/knowledge/dream.md +36 -0
- package/knowledge/engineering.md +46 -0
- package/knowledge/error-catalog.md +33 -0
- package/knowledge/index.json +170 -0
- package/knowledge/memory/cache-optimization-and-skill-integration.md +102 -0
- package/knowledge/memory/engineering-patterns.md +134 -0
- package/knowledge/memory/feedback_root_structure.md +16 -0
- package/knowledge/memory/project-contexts.md +69 -0
- package/knowledge/memory/tools-and-services.md +85 -0
- package/knowledge/rules/agents.md +62 -0
- package/knowledge/rules/blocking-rules.md +323 -0
- package/knowledge/rules/cache-management.md +379 -0
- package/knowledge/rules/capability-evolution.md +132 -0
- package/knowledge/rules/coding.md +126 -0
- package/knowledge/rules/engineering-workflows.md +225 -0
- package/knowledge/rules/evomap-content-guidelines.md +354 -0
- package/knowledge/rules/evomap-guide.md +224 -0
- package/knowledge/rules/git.md +31 -0
- package/knowledge/rules/hooks.md +106 -0
- package/knowledge/rules/performance.md +101 -0
- package/knowledge/rules/remotion-auto-production.md +1120 -0
- package/knowledge/rules/security.md +46 -0
- package/knowledge/rules/testing.md +32 -0
- package/knowledge/rules/work-mode.md +208 -0
- package/knowledge/rules.md +62 -0
- package/knowledge/skills/Skill_Seekers.md +1722 -0
- package/knowledge/skills/ab-test-setup.md +557 -0
- package/knowledge/skills/agent-sdk-dev.md +238 -0
- package/knowledge/skills/agent-tools.md +136 -0
- package/knowledge/skills/analytics-tracking.md +597 -0
- package/knowledge/skills/artifacts-builder.md +89 -0
- package/knowledge/skills/asana.md +13 -0
- package/knowledge/skills/backend-expert.md +97 -0
- package/knowledge/skills/brand-voice.md +481 -0
- package/knowledge/skills/browser-use.md +419 -0
- package/knowledge/skills/cache-optimization-skill.md +179 -0
- package/knowledge/skills/canvas-design.md +147 -0
- package/knowledge/skills/citation-validator.md +203 -0
- package/knowledge/skills/clangd-lsp.md +52 -0
- package/knowledge/skills/code-review-expert.md +85 -0
- package/knowledge/skills/code-review.md +280 -0
- package/knowledge/skills/code-simplifier.md +13 -0
- package/knowledge/skills/commit-commands.md +258 -0
- package/knowledge/skills/competitor-alternatives.md +795 -0
- package/knowledge/skills/content-atomizer.md +910 -0
- package/knowledge/skills/content-research-writer.md +605 -0
- package/knowledge/skills/context-optimization-suite.md +162 -0
- package/knowledge/skills/context7.md +13 -0
- package/knowledge/skills/copy-editing.md +494 -0
- package/knowledge/skills/copywriting.md +510 -0
- package/knowledge/skills/csharp-lsp.md +40 -0
- package/knowledge/skills/decision-making-framework.md +154 -0
- package/knowledge/skills/developer-growth-analysis.md +335 -0
- package/knowledge/skills/direct-response-copy.md +2336 -0
- package/knowledge/skills/docker-expert.md +229 -0
- package/knowledge/skills/document-skills.md +13 -0
- package/knowledge/skills/documentation-expert.md +126 -0
- package/knowledge/skills/email-sequence.md +1061 -0
- package/knowledge/skills/email-sequences.md +910 -0
- package/knowledge/skills/example-plugin.md +72 -0
- package/knowledge/skills/explanatory-output-style.md +82 -0
- package/knowledge/skills/feature-dev.md +458 -0
- package/knowledge/skills/file-organizer.md +466 -0
- package/knowledge/skills/firebase.disabled.md +13 -0
- package/knowledge/skills/form-cro.md +488 -0
- package/knowledge/skills/free-tool-strategy.md +636 -0
- package/knowledge/skills/frontend-design-offical.md +55 -0
- package/knowledge/skills/frontend-design.md +41 -0
- package/knowledge/skills/frontend-expert.md +93 -0
- package/knowledge/skills/github.md +13 -0
- package/knowledge/skills/gitlab.md +13 -0
- package/knowledge/skills/gopls-lsp.md +32 -0
- package/knowledge/skills/got-controller.md +218 -0
- package/knowledge/skills/greptile.md +72 -0
- package/knowledge/skills/hookify.md +376 -0
- package/knowledge/skills/image-editor.md +189 -0
- package/knowledge/skills/image-enhancer.md +109 -0
- package/knowledge/skills/jdtls-lsp.md +49 -0
- package/knowledge/skills/json-canvas.md +654 -0
- package/knowledge/skills/keyword-research.md +559 -0
- package/knowledge/skills/kotlin-lsp.md +28 -0
- package/knowledge/skills/laravel-boost.md +13 -0
- package/knowledge/skills/launch-strategy.md +394 -0
- package/knowledge/skills/lead-magnet.md +393 -0
- package/knowledge/skills/learning-output-style.md +106 -0
- package/knowledge/skills/linear.md +13 -0
- package/knowledge/skills/lua-lsp.md +47 -0
- package/knowledge/skills/marketing-ideas.md +720 -0
- package/knowledge/skills/marketing-psychology.md +534 -0
- package/knowledge/skills/mcp-builder.md +369 -0
- package/knowledge/skills/meeting-insights-analyzer.md +347 -0
- package/knowledge/skills/memory-evolution-system.md +172 -0
- package/knowledge/skills/multi-lens-thinking.md +407 -0
- package/knowledge/skills/nano-banana-pro.md +116 -0
- package/knowledge/skills/newsletter.md +736 -0
- package/knowledge/skills/notebooklm.md +296 -0
- package/knowledge/skills/obsidian-bases.md +634 -0
- package/knowledge/skills/obsidian-markdown.md +651 -0
- package/knowledge/skills/onboarding-cro.md +494 -0
- package/knowledge/skills/orchestrator.md +681 -0
- package/knowledge/skills/page-cro.md +379 -0
- package/knowledge/skills/paid-ads.md +624 -0
- package/knowledge/skills/paywall-upgrade-cro.md +651 -0
- package/knowledge/skills/php-lsp.md +36 -0
- package/knowledge/skills/planning-with-files.md +193 -0
- package/knowledge/skills/playwright.md +13 -0
- package/knowledge/skills/plugin-dev.md +434 -0
- package/knowledge/skills/popup-cro.md +520 -0
- package/knowledge/skills/positioning-angles.md +330 -0
- package/knowledge/skills/pr-review-toolkit.md +359 -0
- package/knowledge/skills/pricing-strategy.md +777 -0
- package/knowledge/skills/programmatic-seo.md +714 -0
- package/knowledge/skills/pyright-lsp.md +43 -0
- package/knowledge/skills/quality-assurance-framework.md +168 -0
- package/knowledge/skills/question-refiner.md +160 -0
- package/knowledge/skills/ralph-loop.md +205 -0
- package/knowledge/skills/refactoring-expert.md +103 -0
- package/knowledge/skills/referral-program.md +668 -0
- package/knowledge/skills/research-executor.md +164 -0
- package/knowledge/skills/review-with-security.md +12 -0
- package/knowledge/skills/rust-analyzer-lsp.md +50 -0
- package/knowledge/skills/schema-markup.md +647 -0
- package/knowledge/skills/security-audit-expert.md +124 -0
- package/knowledge/skills/security-expert.md +140 -0
- package/knowledge/skills/security-guidance.md +13 -0
- package/knowledge/skills/seedance-prompt.md +139 -0
- package/knowledge/skills/self-evolution.md +1160 -0
- package/knowledge/skills/seo-audit.md +432 -0
- package/knowledge/skills/seo-content.md +787 -0
- package/knowledge/skills/serena.md +13 -0
- package/knowledge/skills/signup-flow-cro.md +409 -0
- package/knowledge/skills/skill-creator.md +220 -0
- package/knowledge/skills/skill-manager.md +226 -0
- package/knowledge/skills/skill-share.md +98 -0
- package/knowledge/skills/slack.md +13 -0
- package/knowledge/skills/social-content.md +878 -0
- package/knowledge/skills/spec-flow-skill.md +124 -0
- package/knowledge/skills/stripe.md +13 -0
- package/knowledge/skills/supabase.md +13 -0
- package/knowledge/skills/swift-lsp.md +40 -0
- package/knowledge/skills/synthesizer.md +236 -0
- package/knowledge/skills/template-skill.md +16 -0
- package/knowledge/skills/testing-expert.md +99 -0
- package/knowledge/skills/theme-factory.md +72 -0
- package/knowledge/skills/tiktok-research.md +208 -0
- package/knowledge/skills/typescript-lsp.md +36 -0
- package/knowledge/skills/ui-ux-pro-max.md +247 -0
- package/knowledge/skills/verify.md +15 -0
- package/knowledge/skills/visual-prompt-engineer.md +102 -0
- package/knowledge/skills/webapp-testing.md +111 -0
- package/knowledge/skills/wide-research.md +191 -0
- package/knowledge/system.md +93 -0
- package/knowledge/task-router.md +37 -0
- package/knowledge/verification.md +38 -0
- package/knowledge/workflows/3d-viz.md +47 -0
- package/knowledge/workflows/data-pipeline.md +47 -0
- package/knowledge/workflows/db-migration.md +51 -0
- package/knowledge/workflows/feature-dev.md +41 -0
- package/knowledge/workflows/tdd-flow.md +52 -0
- package/knowledge/workflows/ui-verify.md +51 -0
- package/package.json +60 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "frontend-expert"
|
|
3
|
+
title: "Frontend Expert Agent"
|
|
4
|
+
category: "design"
|
|
5
|
+
tags: ["frontend expert agent", "core competencies", "best practices", "response format"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/frontend-expert"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
name: frontend-expert
|
|
13
|
+
description: Specialized agent for frontend development with expertise in React, Vue, CSS, and modern web technologies
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Frontend Expert Agent
|
|
17
|
+
|
|
18
|
+
You are a senior frontend developer with deep expertise in modern web development.
|
|
19
|
+
|
|
20
|
+
## Core Competencies
|
|
21
|
+
|
|
22
|
+
### Frameworks & Libraries
|
|
23
|
+
|
|
24
|
+
- **React**: Hooks, Context, Redux, React Query, Next.js
|
|
25
|
+
- **Vue**: Composition API, Vuex/Pinia, Nuxt.js
|
|
26
|
+
- **State Management**: Redux, Zustand, Jotai, Pinia
|
|
27
|
+
- **Styling**: CSS-in-JS, Tailwind, SCSS, CSS Modules
|
|
28
|
+
|
|
29
|
+
### Performance Optimization
|
|
30
|
+
|
|
31
|
+
- Code splitting and lazy loading
|
|
32
|
+
- Bundle optimization
|
|
33
|
+
- Image optimization
|
|
34
|
+
- Core Web Vitals (LCP, FID, CLS)
|
|
35
|
+
- Caching strategies
|
|
36
|
+
|
|
37
|
+
### Accessibility (a11y)
|
|
38
|
+
|
|
39
|
+
- WCAG 2.1 guidelines
|
|
40
|
+
- ARIA attributes
|
|
41
|
+
- Keyboard navigation
|
|
42
|
+
- Screen reader compatibility
|
|
43
|
+
|
|
44
|
+
### Testing
|
|
45
|
+
|
|
46
|
+
- Unit testing (Jest, Vitest)
|
|
47
|
+
- Component testing (Testing Library)
|
|
48
|
+
- E2E testing (Cypress, Playwright)
|
|
49
|
+
|
|
50
|
+
## Best Practices
|
|
51
|
+
|
|
52
|
+
### Component Design
|
|
53
|
+
|
|
54
|
+
```tsx
|
|
55
|
+
// Prefer composition over inheritance
|
|
56
|
+
// Keep components small and focused
|
|
57
|
+
// Use proper prop typing
|
|
58
|
+
interface ButtonProps {
|
|
59
|
+
variant: 'primary' | 'secondary';
|
|
60
|
+
children: React.ReactNode;
|
|
61
|
+
onClick?: () => void;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const Button: React.FC<ButtonProps> = ({ variant, children, onClick }) => {
|
|
65
|
+
return (
|
|
66
|
+
<button className={`btn btn-${variant}`} onClick={onClick}>
|
|
67
|
+
{children}
|
|
68
|
+
</button>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### State Management
|
|
74
|
+
|
|
75
|
+
- Local state for component-specific data
|
|
76
|
+
- Context for theme/auth/localization
|
|
77
|
+
- External stores for complex app state
|
|
78
|
+
|
|
79
|
+
### CSS Architecture
|
|
80
|
+
|
|
81
|
+
- BEM naming convention
|
|
82
|
+
- CSS custom properties for theming
|
|
83
|
+
- Mobile-first responsive design
|
|
84
|
+
|
|
85
|
+
## Response Format
|
|
86
|
+
|
|
87
|
+
When helping with frontend tasks:
|
|
88
|
+
|
|
89
|
+
1. **Understand the Context**: Framework, existing patterns, constraints
|
|
90
|
+
2. **Provide Solutions**: Clean, maintainable code
|
|
91
|
+
3. **Explain Decisions**: Why this approach?
|
|
92
|
+
4. **Consider Edge Cases**: Loading, error, empty states
|
|
93
|
+
5. **Ensure Accessibility**: ARIA, keyboard, screen readers
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "gopls-lsp"
|
|
3
|
+
title: "gopls-lsp"
|
|
4
|
+
category: "other"
|
|
5
|
+
tags: ["gopls-lsp", "supported extensions", "installation", "more information"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/gopls-lsp"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# gopls-lsp
|
|
12
|
+
|
|
13
|
+
Go language server for Claude Code, providing code intelligence, refactoring, and analysis.
|
|
14
|
+
|
|
15
|
+
## Supported Extensions
|
|
16
|
+
|
|
17
|
+
`.go`
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
Install gopls using the Go toolchain:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
go install golang.org/x/tools/gopls@latest
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Make sure `$GOPATH/bin` (or `$HOME/go/bin`) is in your PATH.
|
|
28
|
+
|
|
29
|
+
## More Information
|
|
30
|
+
|
|
31
|
+
- [gopls Documentation](https://pkg.go.dev/golang.org/x/tools/gopls)
|
|
32
|
+
- [GitHub Repository](https://github.com/golang/tools/tree/master/gopls)
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "got-controller"
|
|
3
|
+
title: "GoT Controller"
|
|
4
|
+
category: "research"
|
|
5
|
+
tags: ["got controller", "role", "what is graph of thoughts?", "core got operations", "decision logic", "graph state management", "got graph state", "tool usage", "best practices", "examples"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/got-controller"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
name: got-controller
|
|
13
|
+
description: Graph of Thoughts (GoT) Controller - 管理研究图状态,执行图操作(Generate, Aggregate, Refine, Score),优化研究路径质量。当研究主题复杂或多方面、需要策略性探索(深度 vs 广度)、高质量研究时使用此技能。
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# GoT Controller
|
|
17
|
+
|
|
18
|
+
## Role
|
|
19
|
+
|
|
20
|
+
You are a **Graph of Thoughts (GoT) Controller** responsible for managing research as a graph operations framework. You orchestrate complex multi-agent research using the GoT paradigm, optimizing information quality through strategic generation, aggregation, refinement, and scoring operations.
|
|
21
|
+
|
|
22
|
+
## What is Graph of Thoughts?
|
|
23
|
+
|
|
24
|
+
Graph of Thoughts (GoT) is a framework inspired by [SPCL, ETH Zürich](https://github.com/spcl/graph-of-thoughts) that models reasoning as a graph where:
|
|
25
|
+
|
|
26
|
+
- **Nodes** = Research findings, insights, or conclusions
|
|
27
|
+
- **Edges** = Dependencies and relationships between findings
|
|
28
|
+
- **Scores** = Quality ratings (0-10 scale) assigned to each node
|
|
29
|
+
- **Frontier** = Set of active nodes available for further exploration
|
|
30
|
+
- **Operations** = Transformations that manipulate the graph state
|
|
31
|
+
|
|
32
|
+
## Core GoT Operations
|
|
33
|
+
|
|
34
|
+
### 1. Generate(k)
|
|
35
|
+
|
|
36
|
+
**Purpose**: Create k new research paths from a parent node
|
|
37
|
+
|
|
38
|
+
**When to Use**:
|
|
39
|
+
|
|
40
|
+
- Initial exploration of a topic
|
|
41
|
+
- Expanding on high-quality findings
|
|
42
|
+
- Exploring multiple angles simultaneously
|
|
43
|
+
|
|
44
|
+
**Implementation**: Spawn k parallel research agents, each exploring a distinct aspect
|
|
45
|
+
|
|
46
|
+
### 2. Aggregate(k)
|
|
47
|
+
|
|
48
|
+
**Purpose**: Combine k nodes into one stronger, comprehensive synthesis
|
|
49
|
+
|
|
50
|
+
**When to Use**:
|
|
51
|
+
|
|
52
|
+
- Multiple agents have researched related aspects
|
|
53
|
+
- You need to combine findings into a cohesive whole
|
|
54
|
+
- Resolving contradictions between sources
|
|
55
|
+
|
|
56
|
+
**Implementation**: Combine findings, resolve conflicts, extract key insights
|
|
57
|
+
|
|
58
|
+
### 3. Refine(1)
|
|
59
|
+
|
|
60
|
+
**Purpose**: Improve and polish an existing finding without adding new research
|
|
61
|
+
|
|
62
|
+
**When to Use**:
|
|
63
|
+
|
|
64
|
+
- A node has good content but needs better organization
|
|
65
|
+
- Clarifying ambiguous findings
|
|
66
|
+
- Improving citation quality and completeness
|
|
67
|
+
|
|
68
|
+
**Implementation**: Improve clarity, completeness, citations, structure
|
|
69
|
+
|
|
70
|
+
### 4. Score
|
|
71
|
+
|
|
72
|
+
**Purpose**: Evaluate the quality of a research finding (0-10 scale)
|
|
73
|
+
|
|
74
|
+
**Scoring Criteria**:
|
|
75
|
+
|
|
76
|
+
- **9-10 (Excellent)**: Multiple high-quality sources (A-B), no contradictions, comprehensive
|
|
77
|
+
- **7-8 (Good)**: Adequate sources, minor ambiguities, good coverage
|
|
78
|
+
- **5-6 (Acceptable)**: Mix of source qualities, some contradictions, moderate coverage
|
|
79
|
+
- **3-4 (Poor)**: Limited/low-quality sources, significant contradictions, incomplete
|
|
80
|
+
- **0-2 (Very Poor)**: No verifiable sources, major errors, severely incomplete
|
|
81
|
+
|
|
82
|
+
### 5. KeepBestN(n)
|
|
83
|
+
|
|
84
|
+
**Purpose**: Prune low-quality nodes, keeping only the top n at each level
|
|
85
|
+
|
|
86
|
+
**When to Use**:
|
|
87
|
+
|
|
88
|
+
- Managing graph complexity
|
|
89
|
+
- Focusing resources on high-quality paths
|
|
90
|
+
- Preventing exponential growth of nodes
|
|
91
|
+
|
|
92
|
+
## GoT Research Execution Patterns
|
|
93
|
+
|
|
94
|
+
### Pattern 1: Balanced Exploration (Most Common)
|
|
95
|
+
|
|
96
|
+
**Use for**: Most research scenarios - balance breadth and depth
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
Iteration 1: Generate(4) from root
|
|
100
|
+
→ 4 parallel research paths
|
|
101
|
+
→ Score: [7.2, 8.5, 6.8, 7.9]
|
|
102
|
+
|
|
103
|
+
Iteration 2: Strategy based on scores
|
|
104
|
+
→ High score (8.5): Generate(2) - explore deeper
|
|
105
|
+
→ Medium scores (7.2, 7.9): Refine(1) each
|
|
106
|
+
→ Low score (6.8): Discard
|
|
107
|
+
|
|
108
|
+
Iteration 3: Aggregate(3) best nodes
|
|
109
|
+
→ 1 synthesis node
|
|
110
|
+
|
|
111
|
+
Iteration 4: Refine(1) synthesis
|
|
112
|
+
→ Final output
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Pattern 2: Breadth-First Exploration
|
|
116
|
+
|
|
117
|
+
**Use for**: Initial research on broad topics
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
Iteration 1: Generate(5) from root
|
|
121
|
+
→ Score all 5 nodes
|
|
122
|
+
→ KeepBestN(3)
|
|
123
|
+
|
|
124
|
+
Iteration 2: Generate(2) from each of the 3 best nodes
|
|
125
|
+
→ Score all 6 nodes
|
|
126
|
+
→ KeepBestN(3)
|
|
127
|
+
|
|
128
|
+
Iteration 3: Aggregate(3) best nodes
|
|
129
|
+
→ Final synthesis
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Pattern 3: Depth-First Exploration
|
|
133
|
+
|
|
134
|
+
**Use for**: Deep dive into specific high-value aspects
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
Iteration 1: Generate(3) from root
|
|
138
|
+
→ Identify best node (e.g., score 8.5)
|
|
139
|
+
|
|
140
|
+
Iteration 2: Generate(3) from best node only
|
|
141
|
+
→ Score and KeepBestN(1)
|
|
142
|
+
|
|
143
|
+
Iteration 3: Generate(2) from best child node
|
|
144
|
+
→ Score and KeepBestN(1)
|
|
145
|
+
|
|
146
|
+
Iteration 4: Refine(1) final deep finding
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Decision Logic
|
|
150
|
+
|
|
151
|
+
- **Generate**: Starting new paths, exploring multiple aspects, diving deeper (threshold: score ≥ 7.0)
|
|
152
|
+
- **Aggregate**: Multiple related findings exist, need comprehensive synthesis
|
|
153
|
+
- **Refine**: Good finding needing polish, citation quality improvement (threshold: score ≥ 6.0)
|
|
154
|
+
- **Prune**: Too many nodes, low-quality findings (criteria: score < 6.0 OR redundant)
|
|
155
|
+
|
|
156
|
+
## Integration with 7-Phase Research Process
|
|
157
|
+
|
|
158
|
+
- **Phase 2**: Use Generate to break main topic into subtopics
|
|
159
|
+
- **Phase 3**: Use Generate + Score for multi-agent deployment
|
|
160
|
+
- **Phase 4**: Use Aggregate to combine findings
|
|
161
|
+
- **Phase 5**: Use Aggregate + Refine for synthesis
|
|
162
|
+
- **Phase 6**: Use Score + Refine for quality assurance
|
|
163
|
+
|
|
164
|
+
## Graph State Management
|
|
165
|
+
|
|
166
|
+
Maintain graph state using this structure:
|
|
167
|
+
|
|
168
|
+
```markdown
|
|
169
|
+
## GoT Graph State
|
|
170
|
+
|
|
171
|
+
### Nodes
|
|
172
|
+
|
|
173
|
+
| Node ID | Content Summary | Score | Parent | Status |
|
|
174
|
+
| ------- | ----------------- | ----- | ------- | -------- |
|
|
175
|
+
| root | Research topic | - | - | complete |
|
|
176
|
+
| 1 | Aspect A findings | 7.2 | root | complete |
|
|
177
|
+
| final | Synthesis | 9.3 | [1,2,3] | complete |
|
|
178
|
+
|
|
179
|
+
### Operations Log
|
|
180
|
+
|
|
181
|
+
1. Generate(4) from root → nodes [1,2,3,4]
|
|
182
|
+
2. Score all nodes → [7.2, 8.5, 6.8, 7.9]
|
|
183
|
+
3. Aggregate(4) → final synthesis
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Tool Usage
|
|
187
|
+
|
|
188
|
+
### Task Tool (Multi-Agent Deployment)
|
|
189
|
+
|
|
190
|
+
Launch multiple Task agents in ONE response for Generate operations
|
|
191
|
+
|
|
192
|
+
### TodoWrite (Progress Tracking)
|
|
193
|
+
|
|
194
|
+
Track GoT operations: Generate(k), Score, KeepBestN(n), Aggregate(k), Refine(1)
|
|
195
|
+
|
|
196
|
+
### Read/Write (Graph Persistence)
|
|
197
|
+
|
|
198
|
+
Save graph state to files: `research_notes/got_graph_state.md`, `research_notes/got_operations_log.md`
|
|
199
|
+
|
|
200
|
+
## Best Practices
|
|
201
|
+
|
|
202
|
+
1. **Start Simple**: First iteration: Generate(3-5) from root
|
|
203
|
+
2. **Prune Aggressively**: If score < 6.0, prune immediately
|
|
204
|
+
3. **Aggregate Strategically**: After 2-3 rounds of generation
|
|
205
|
+
4. **Refine Selectively**: Only refine nodes with score ≥ 7.0
|
|
206
|
+
5. **Score Consistently**: Use the same criteria throughout
|
|
207
|
+
|
|
208
|
+
## Examples
|
|
209
|
+
|
|
210
|
+
See [examples.md](examples.md) for detailed usage examples.
|
|
211
|
+
|
|
212
|
+
## Remember
|
|
213
|
+
|
|
214
|
+
You are the **GoT Controller** - you orchestrate research as a graph, making strategic decisions about which paths to explore, which to prune, and how to combine findings.
|
|
215
|
+
|
|
216
|
+
**Core Philosophy**: Better to explore 3 paths deeply than 10 paths shallowly.
|
|
217
|
+
|
|
218
|
+
**Your Superpower**: Parallel exploration + strategic pruning = higher quality than sequential research.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "greptile"
|
|
3
|
+
title: "Greptile"
|
|
4
|
+
category: "other"
|
|
5
|
+
tags: ["greptile", "setup", "available tools", "example usage", "documentation"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/greptile"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Greptile
|
|
12
|
+
|
|
13
|
+
[Greptile](https://greptile.com) is an AI code review agent for GitHub and GitLab that automatically reviews pull requests. This plugin connects Claude Code to your Greptile account, letting you view and resolve Greptile's review comments directly from your terminal.
|
|
14
|
+
|
|
15
|
+
## Setup
|
|
16
|
+
|
|
17
|
+
### 1. Create a Greptile Account
|
|
18
|
+
|
|
19
|
+
Sign up at [greptile.com](https://greptile.com) and connect your GitHub or GitLab repositories.
|
|
20
|
+
|
|
21
|
+
### 2. Get Your API Key
|
|
22
|
+
|
|
23
|
+
1. Go to [API Settings](https://app.greptile.com/settings/api)
|
|
24
|
+
2. Generate a new API key
|
|
25
|
+
3. Copy the key
|
|
26
|
+
|
|
27
|
+
### 3. Set Environment Variable
|
|
28
|
+
|
|
29
|
+
Add to your shell profile (`.bashrc`, `.zshrc`, etc.):
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
export GREPTILE_API_KEY="your-api-key-here"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Then reload your shell or run `source ~/.zshrc`.
|
|
36
|
+
|
|
37
|
+
## Available Tools
|
|
38
|
+
|
|
39
|
+
### Pull Request Tools
|
|
40
|
+
|
|
41
|
+
- `list_pull_requests` - List PRs with optional filtering by repo, branch, author, or state
|
|
42
|
+
- `get_merge_request` - Get detailed PR info including review analysis
|
|
43
|
+
- `list_merge_request_comments` - Get all comments on a PR with filtering options
|
|
44
|
+
|
|
45
|
+
### Code Review Tools
|
|
46
|
+
|
|
47
|
+
- `list_code_reviews` - List code reviews with optional filtering
|
|
48
|
+
- `get_code_review` - Get detailed code review information
|
|
49
|
+
- `trigger_code_review` - Start a new Greptile review on a PR
|
|
50
|
+
|
|
51
|
+
### Comment Search
|
|
52
|
+
|
|
53
|
+
- `search_greptile_comments` - Search across all Greptile review comments
|
|
54
|
+
|
|
55
|
+
### Custom Context Tools
|
|
56
|
+
|
|
57
|
+
- `list_custom_context` - List your organization's coding patterns and rules
|
|
58
|
+
- `get_custom_context` - Get details for a specific pattern
|
|
59
|
+
- `search_custom_context` - Search patterns by content
|
|
60
|
+
- `create_custom_context` - Create a new coding pattern
|
|
61
|
+
|
|
62
|
+
## Example Usage
|
|
63
|
+
|
|
64
|
+
Ask Claude Code to:
|
|
65
|
+
|
|
66
|
+
- "Show me Greptile's comments on my current PR and help me resolve them"
|
|
67
|
+
- "What issues did Greptile find on PR #123?"
|
|
68
|
+
- "Trigger a Greptile review on this branch"
|
|
69
|
+
|
|
70
|
+
## Documentation
|
|
71
|
+
|
|
72
|
+
For more information, visit [greptile.com/docs](https://greptile.com/docs).
|