flowjet 2.0.0__py3-none-any.whl
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.
Potentially problematic release.
This version of flowjet might be problematic. Click here for more details.
- flowjet/__init__.py +19 -0
- flowjet/__main__.py +7 -0
- flowjet/builtin_skills/README.md +10 -0
- flowjet/builtin_skills/gws-drive/SKILL.md +138 -0
- flowjet/builtin_skills/gws-drive-upload/SKILL.md +53 -0
- flowjet/builtin_skills/logo-generator-skill/.env.example +11 -0
- flowjet/builtin_skills/logo-generator-skill/README.md +439 -0
- flowjet/builtin_skills/logo-generator-skill/SKILL.md +196 -0
- flowjet/builtin_skills/logo-generator-skill/assets/background_library.html +724 -0
- flowjet/builtin_skills/logo-generator-skill/assets/showcase_template.html +198 -0
- flowjet/builtin_skills/logo-generator-skill/references/background_styles.md +262 -0
- flowjet/builtin_skills/logo-generator-skill/references/design_patterns.md +722 -0
- flowjet/builtin_skills/logo-generator-skill/references/webgl_backgrounds.md +127 -0
- flowjet/builtin_skills/logo-generator-skill/requirements.txt +4 -0
- flowjet/builtin_skills/logo-generator-skill/scripts/generate_showcase.py +296 -0
- flowjet/builtin_skills/logo-generator-skill/scripts/svg_to_png.py +69 -0
- flowjet/builtin_skills/platonic-coding/SKILL.md +145 -0
- flowjet/builtin_skills/platonic-coding/assets/brainstorming/spec-document-reviewer-prompt.md +49 -0
- flowjet/builtin_skills/platonic-coding/assets/implementation/coding-plan-template.md +82 -0
- flowjet/builtin_skills/platonic-coding/assets/implementation/impl-guide-template.md +262 -0
- flowjet/builtin_skills/platonic-coding/assets/review/pr-review-template.md +168 -0
- flowjet/builtin_skills/platonic-coding/assets/review/review-checklist.md +179 -0
- flowjet/builtin_skills/platonic-coding/assets/specs/rfc-template.md +94 -0
- flowjet/builtin_skills/platonic-coding/assets/specs/template-architecture-design.md +139 -0
- flowjet/builtin_skills/platonic-coding/assets/specs/template-conceptual-design.md +102 -0
- flowjet/builtin_skills/platonic-coding/assets/specs/template-impl-interface-design.md +137 -0
- flowjet/builtin_skills/platonic-coding/assets/templates/template-drafts-readme.md +48 -0
- flowjet/builtin_skills/platonic-coding/assets/templates/template-impl-readme.md +61 -0
- flowjet/builtin_skills/platonic-coding/assets/templates/template-platonic.yml +22 -0
- flowjet/builtin_skills/platonic-coding/assets/templates/template-rfc-history.md +36 -0
- flowjet/builtin_skills/platonic-coding/assets/templates/template-rfc-index.md +57 -0
- flowjet/builtin_skills/platonic-coding/assets/templates/template-rfc-namings.md +36 -0
- flowjet/builtin_skills/platonic-coding/assets/templates/template-rfc-standard.md +577 -0
- flowjet/builtin_skills/platonic-coding/references/BRAINSTORM/brainstorm.md +160 -0
- flowjet/builtin_skills/platonic-coding/references/IMPL/impl-code.md +106 -0
- flowjet/builtin_skills/platonic-coding/references/IMPL/impl-create-guide.md +156 -0
- flowjet/builtin_skills/platonic-coding/references/IMPL/impl-full.md +51 -0
- flowjet/builtin_skills/platonic-coding/references/IMPL/impl-update-guide.md +155 -0
- flowjet/builtin_skills/platonic-coding/references/IMPL/impl-validate-guide.md +147 -0
- flowjet/builtin_skills/platonic-coding/references/INIT/init-plan-modular-specs.md +160 -0
- flowjet/builtin_skills/platonic-coding/references/INIT/init-recover-architecture.md +149 -0
- flowjet/builtin_skills/platonic-coding/references/INIT/init-recover-conceptual.md +126 -0
- flowjet/builtin_skills/platonic-coding/references/INIT/init-recover-impl-interface.md +134 -0
- flowjet/builtin_skills/platonic-coding/references/INIT/init-scaffold.md +119 -0
- flowjet/builtin_skills/platonic-coding/references/INIT/init-scan.md +55 -0
- flowjet/builtin_skills/platonic-coding/references/REFERENCE.md +180 -0
- flowjet/builtin_skills/platonic-coding/references/REVIEW/review-spec-compliance.md +63 -0
- flowjet/builtin_skills/platonic-coding/references/SPECS/specs-check-compliance.md +160 -0
- flowjet/builtin_skills/platonic-coding/references/SPECS/specs-check-taxonomy.md +106 -0
- flowjet/builtin_skills/platonic-coding/references/SPECS/specs-generate-history.md +95 -0
- flowjet/builtin_skills/platonic-coding/references/SPECS/specs-generate-index.md +119 -0
- flowjet/builtin_skills/platonic-coding/references/SPECS/specs-generate-namings.md +129 -0
- flowjet/builtin_skills/platonic-coding/references/SPECS/specs-refine.md +84 -0
- flowjet/builtin_skills/platonic-coding/references/SPECS/specs-validate-consistency.md +116 -0
- flowjet/builtin_skills/platonic-coding/references/WORKFLOW/workflow-overview.md +78 -0
- flowjet/builtin_skills/platonic-coding/references/WORKFLOW/workflow-phase-1.md +25 -0
- flowjet/builtin_skills/platonic-coding/references/WORKFLOW/workflow-phase-2.md +34 -0
- flowjet/builtin_skills/platonic-coding/references/WORKFLOW/workflow-phase-3.md +40 -0
- flowjet/builtin_skills/research-bootstrap/SKILL.md +109 -0
- flowjet/builtin_skills/research-bootstrap/patterns/evidence-deep.json +41 -0
- flowjet/builtin_skills/research-bootstrap/patterns/evidence-first.json +36 -0
- flowjet/builtin_skills/research-bootstrap/patterns/idea-first.json +40 -0
- flowjet/builtin_skills/research-bootstrap/patterns/loop.json +44 -0
- flowjet/builtin_skills/research-bootstrap/patterns/paper-pipeline.json +38 -0
- flowjet/builtin_skills/research-bootstrap/patterns/rapid.json +30 -0
- flowjet/builtin_skills/research-bootstrap/patterns/rigor-first.json +42 -0
- flowjet/builtin_skills/research-bootstrap/patterns/stance-first.json +39 -0
- flowjet/builtin_skills/research-bootstrap/patterns/systematic-review.json +47 -0
- flowjet/builtin_skills/research-bootstrap/patterns/verify-loop.json +42 -0
- flowjet/builtin_skills/research-bootstrap/references/backends.md +72 -0
- flowjet/builtin_skills/research-bootstrap/references/handoff-ars-omr.md +44 -0
- flowjet/builtin_skills/research-bootstrap/references/handoff-omr-ars.md +51 -0
- flowjet/builtin_skills/research-bootstrap/references/routing.md +51 -0
- flowjet/builtin_skills/research-bootstrap/scripts/csljson_to_omr.py +136 -0
- flowjet/builtin_skills/research-bootstrap/scripts/papers_index_to_csljson.py +199 -0
- flowjet/cli/__init__.py +7 -0
- flowjet/cli/__main__.py +7 -0
- flowjet/cli/agent.py +178 -0
- flowjet/cli/cli.py +607 -0
- flowjet/cli/completion/__init__.py +7 -0
- flowjet/cli/completion/context.py +250 -0
- flowjet/cli/completion/engine.py +497 -0
- flowjet/cli/doctor_cmd.py +507 -0
- flowjet/cli/doctor_fix_cmd.py +383 -0
- flowjet/cli/progress.py +875 -0
- flowjet/cli/serve_cmd.py +55 -0
- flowjet/cli/setup_cmd.py +531 -0
- flowjet/cli/shell/__init__.py +0 -0
- flowjet/cli/shell/_fj.zsh +77 -0
- flowjet/cli/shell/fj.bash +69 -0
- flowjet/cli/stream.py +416 -0
- flowjet/cli/threads.py +384 -0
- flowjet/cli/tool_stream.py +20 -0
- flowjet/core/__init__.py +53 -0
- flowjet/core/backends/__init__.py +12 -0
- flowjet/core/backends/direct.py +59 -0
- flowjet/core/backends/fake.py +57 -0
- flowjet/core/backends/isolation/__init__.py +24 -0
- flowjet/core/backends/isolation/adapter.py +74 -0
- flowjet/core/backends/isolation/admission.py +37 -0
- flowjet/core/backends/isolation/backend.py +98 -0
- flowjet/core/backends/isolation/errors.py +12 -0
- flowjet/core/backends/isolation/mode_gate.py +36 -0
- flowjet/core/backends/isolation/pool.py +634 -0
- flowjet/core/backends/isolation/request.py +24 -0
- flowjet/core/backends/isolation/workspace.py +47 -0
- flowjet/core/bootstrap.py +183 -0
- flowjet/core/bridges/nano/__init__.py +6 -0
- flowjet/core/bridges/nano/adapter.py +119 -0
- flowjet/core/bridges/nano/backend.py +86 -0
- flowjet/core/bridges/nano/mapping.py +213 -0
- flowjet/core/events.py +113 -0
- flowjet/core/modes.py +117 -0
- flowjet/core/protocol.py +20 -0
- flowjet/core/tool_results.py +70 -0
- flowjet/core/tool_stream.py +246 -0
- flowjet/server/__init__.py +11 -0
- flowjet/server/__main__.py +66 -0
- flowjet/server/acp/__init__.py +11 -0
- flowjet/server/acp/agent.py +313 -0
- flowjet/server/acp/routes.py +47 -0
- flowjet/server/config.py +60 -0
- flowjet/server/http/__init__.py +5 -0
- flowjet/server/http/app.py +119 -0
- flowjet/server/http/auth.py +36 -0
- flowjet/server/openai_compat/__init__.py +14 -0
- flowjet/server/openai_compat/errors.py +34 -0
- flowjet/server/openai_compat/projection.py +321 -0
- flowjet/server/openai_compat/routes.py +77 -0
- flowjet/server/openai_compat/schemas.py +120 -0
- flowjet/server/openai_compat/service.py +299 -0
- flowjet/server/openai_compat/store.py +29 -0
- flowjet-2.0.0.dist-info/METADATA +288 -0
- flowjet-2.0.0.dist-info/RECORD +137 -0
- flowjet-2.0.0.dist-info/WHEEL +4 -0
- flowjet-2.0.0.dist-info/entry_points.txt +5 -0
- flowjet-2.0.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
# Logo Generator / Logo 生成器
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
[English](#english) | [中文](#中文)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## English
|
|
10
|
+
|
|
11
|
+
Professional SVG logo generator with high-end showcase presentations. Generate 6+ design variants based on product characteristics, then create stunning showcase images with 12 professional background styles.
|
|
12
|
+
|
|
13
|
+
### About
|
|
14
|
+
|
|
15
|
+
This skill was created to solve a common problem: generating professional logos quickly without sacrificing quality. Traditional logo design requires extensive back-and-forth with designers, while AI-generated logos often lack the refinement and presentation quality needed for real products.
|
|
16
|
+
|
|
17
|
+
**Logo Generator** bridges this gap by:
|
|
18
|
+
- Applying proven design principles (extreme simplicity, generous negative space, precise proportions)
|
|
19
|
+
- Generating multiple variants to explore different directions
|
|
20
|
+
- Creating production-ready showcase images with professional backgrounds
|
|
21
|
+
- Providing both SVG (editable) and PNG (ready-to-use) formats
|
|
22
|
+
|
|
23
|
+
Perfect for:
|
|
24
|
+
- **Startups** needing a professional logo quickly
|
|
25
|
+
- **Developers** building side projects
|
|
26
|
+
- **Designers** exploring initial concepts
|
|
27
|
+
- **Product teams** iterating on brand identity
|
|
28
|
+
|
|
29
|
+
The skill leverages Gemini 3.1 Flash Image Preview (Nano Banana) to generate high-end showcase images that look like they came from a professional design studio.
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- **SVG Logo Generation**: Create geometric logos with dot matrix, line systems, and mixed compositions
|
|
34
|
+
- **Design Variety**: Generate 6+ distinct variants per request with different pattern types
|
|
35
|
+
- **Professional Showcase**: 12 curated background styles (void, frosted, fluid, spotlight, analog liquid, LED matrix, editorial, iridescent, morning, clinical, UI container, Swiss flat)
|
|
36
|
+
- **Nano Banana Integration**: High-end showcase images using Gemini 3.1 Flash Image Preview
|
|
37
|
+
- **Interactive Previews**: Beautiful HTML showcases with hover effects and smooth transitions
|
|
38
|
+
|
|
39
|
+
### Installation
|
|
40
|
+
|
|
41
|
+
#### Method 1: Automatic Installation (Recommended)
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npx skills add https://github.com/op7418/logo-generator-skill.git
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
This will automatically install the skill to the correct directory.
|
|
48
|
+
|
|
49
|
+
#### Method 2: Git Clone
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
git clone https://github.com/op7418/logo-generator-skill.git ~/.claude/skills/logo-generator
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
#### Method 3: Manual Installation
|
|
56
|
+
|
|
57
|
+
1. Download this repository
|
|
58
|
+
2. Copy the `logo-generator` folder to your Claude Code skills directory:
|
|
59
|
+
- **macOS/Linux**: `~/.claude/skills/`
|
|
60
|
+
- **Windows**: `%USERPROFILE%\.claude\skills\`
|
|
61
|
+
3. Ensure the folder structure contains `SKILL.md` and `README.md`
|
|
62
|
+
|
|
63
|
+
#### Post-Installation Setup
|
|
64
|
+
|
|
65
|
+
After installation, set up the required dependencies:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
cd ~/.claude/skills/logo-generator
|
|
69
|
+
pip install -r requirements.txt
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Configure your Gemini API key:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
cp .env.example .env
|
|
76
|
+
# Edit .env and add your GEMINI_API_KEY
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Restart Claude Code and verify by typing `/logo-generator` in the conversation.
|
|
80
|
+
|
|
81
|
+
### Usage
|
|
82
|
+
|
|
83
|
+
#### Basic Workflow
|
|
84
|
+
|
|
85
|
+
1. **Start a logo project**:
|
|
86
|
+
```
|
|
87
|
+
Generate a logo for my AI product called "DataFlow"
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
2. **Provide context** (the AI will ask):
|
|
91
|
+
- Industry/Category (e.g., AI, fintech, design tools)
|
|
92
|
+
- Core Concept (e.g., connection, flow, security)
|
|
93
|
+
- Design Preferences (minimal/complex, cold/warm)
|
|
94
|
+
|
|
95
|
+
3. **Review variants**: The AI generates 6+ SVG logo variants with design rationale
|
|
96
|
+
|
|
97
|
+
4. **Select and refine**: Choose your favorite, request adjustments
|
|
98
|
+
|
|
99
|
+
5. **Generate showcase**: Create professional presentation images with multiple background styles
|
|
100
|
+
|
|
101
|
+
#### Example Commands
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
Create a logo for a blockchain security platform
|
|
105
|
+
|
|
106
|
+
Generate 6 logo variants for "CloudSync" - a file sync tool
|
|
107
|
+
|
|
108
|
+
Show me the logo in different background styles
|
|
109
|
+
|
|
110
|
+
Export the logo as PNG at 2048x2048
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Workflow Phases
|
|
114
|
+
|
|
115
|
+
**Phase 1: Information Gathering**
|
|
116
|
+
Collect product name, industry, core concept, and design preferences
|
|
117
|
+
|
|
118
|
+
**Phase 2: Pattern Matching & SVG Generation**
|
|
119
|
+
- Generate 6+ distinct design variants
|
|
120
|
+
- Create interactive HTML showcase
|
|
121
|
+
- Explain design rationale for each variant
|
|
122
|
+
|
|
123
|
+
**Phase 3: Iteration & Refinement**
|
|
124
|
+
- Select favorite variants
|
|
125
|
+
- Adjust parameters (size, spacing, rotation)
|
|
126
|
+
- Combine elements from different variants
|
|
127
|
+
|
|
128
|
+
**Phase 4: High-End Showcase Generation**
|
|
129
|
+
- Export SVG to PNG (1024x1024px)
|
|
130
|
+
- Select 4 showcase styles based on product type
|
|
131
|
+
- Generate showcase images with Nano Banana
|
|
132
|
+
- Create final presentation webpage
|
|
133
|
+
|
|
134
|
+
**Phase 5: Delivery**
|
|
135
|
+
- Interactive HTML showcase page
|
|
136
|
+
- SVG files (editable vector format)
|
|
137
|
+
- PNG exports (various sizes)
|
|
138
|
+
- Showcase images (4 professional backgrounds)
|
|
139
|
+
|
|
140
|
+
### Background Styles
|
|
141
|
+
|
|
142
|
+
#### Dark Styles (6)
|
|
143
|
+
- **The Void** - Absolute black with silver micro noise (hardcore tech)
|
|
144
|
+
- **Frosted Horizon** - Titanium gray with organic texture (premium products)
|
|
145
|
+
- **Fluid Abyss** - Deep purple with fluid fusion (AI-native)
|
|
146
|
+
- **Studio Spotlight** - Carbon gray with editorial lighting (magazine quality)
|
|
147
|
+
- **Analog Liquid** - Metallic shimmer on solid color base (creative brands)
|
|
148
|
+
- **LED Matrix** - Digital retro with glowing dots (cyberpunk)
|
|
149
|
+
|
|
150
|
+
#### Light Styles (6)
|
|
151
|
+
- **Editorial Paper** - Off-white with paper texture (humanistic brands)
|
|
152
|
+
- **Iridescent Frost** - Silver-gray with holographic hints (tech hardware)
|
|
153
|
+
- **Morning Aura** - Warm ivory with pastel colors (approachable AI)
|
|
154
|
+
- **Clinical Studio** - Pure white with geometric shadows (algorithm-driven)
|
|
155
|
+
- **UI Container** - Frosted glass container effect (SaaS platforms)
|
|
156
|
+
- **Swiss Flat** - Pure solid color, zero effects (timeless authority)
|
|
157
|
+
|
|
158
|
+
### Design Principles
|
|
159
|
+
|
|
160
|
+
1. **Extreme Simplicity** - 1-2 core elements maximum
|
|
161
|
+
2. **Generous Negative Space** - At least 40-50% empty canvas
|
|
162
|
+
3. **Precise Proportions** - Line weights 2.5-4px, proper spacing
|
|
163
|
+
4. **Visual Tension** - Intentional asymmetry creates interest
|
|
164
|
+
5. **Restraint Over Decoration** - Every element must justify its existence
|
|
165
|
+
6. **Single Focal Point** - Clear visual hierarchy
|
|
166
|
+
|
|
167
|
+
### File Structure
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
logo-generator/
|
|
171
|
+
├── SKILL.md # Skill definition and workflow
|
|
172
|
+
├── README.md # This file
|
|
173
|
+
├── requirements.txt # Python dependencies
|
|
174
|
+
├── .env.example # Environment variables template
|
|
175
|
+
├── scripts/
|
|
176
|
+
│ ├── svg_to_png.py # SVG to PNG converter
|
|
177
|
+
│ └── generate_showcase.py # Showcase image generator
|
|
178
|
+
├── references/
|
|
179
|
+
│ ├── design_patterns.md # Comprehensive design guide
|
|
180
|
+
│ ├── background_styles.md # Background style specifications
|
|
181
|
+
│ └── webgl_backgrounds.md # WebGL dynamic backgrounds
|
|
182
|
+
└── assets/
|
|
183
|
+
├── showcase_template.html # HTML template for showcases
|
|
184
|
+
└── background_library.html # Interactive WebGL backgrounds
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Requirements
|
|
188
|
+
|
|
189
|
+
- Python 3.8+
|
|
190
|
+
- Dependencies: `google-genai`, `python-dotenv`, `cairosvg`, `Pillow`
|
|
191
|
+
- Gemini API key (for showcase generation)
|
|
192
|
+
|
|
193
|
+
### API Configuration
|
|
194
|
+
|
|
195
|
+
#### Official Google Gemini API
|
|
196
|
+
|
|
197
|
+
```env
|
|
198
|
+
GEMINI_API_KEY=your_api_key_here
|
|
199
|
+
GEMINI_MODEL=gemini-3.1-flash-image-preview
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
#### Third-Party API Endpoint
|
|
203
|
+
|
|
204
|
+
```env
|
|
205
|
+
GEMINI_API_KEY=your_api_key_here
|
|
206
|
+
GEMINI_API_BASE_URL=https://api.example.com/v1
|
|
207
|
+
GEMINI_MODEL=gemini-3.1-flash-image-preview
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### License
|
|
211
|
+
|
|
212
|
+
MIT License - feel free to use for personal or commercial projects
|
|
213
|
+
|
|
214
|
+
### Credits
|
|
215
|
+
|
|
216
|
+
- Design patterns inspired by modern brand identity systems
|
|
217
|
+
- Showcase styles curated from high-end design presentations
|
|
218
|
+
- Powered by Gemini 3.1 Flash Image Preview (Nano Banana)
|
|
219
|
+
|
|
220
|
+
### Contributing
|
|
221
|
+
|
|
222
|
+
Contributions welcome! Please feel free to submit issues or pull requests.
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## 中文
|
|
227
|
+
|
|
228
|
+
专业的 SVG Logo 生成器,配备高端展示效果。基于产品特性生成 6+ 个设计变体,并使用 12 种专业背景风格创建精美的展示图。
|
|
229
|
+
|
|
230
|
+
### 关于本项目
|
|
231
|
+
|
|
232
|
+
这个技能的诞生源于一个常见痛点:如何在不牺牲质量的前提下快速生成专业 Logo。传统设计流程需要与设计师反复沟通,而 AI 生成的 Logo 往往缺乏精致度和展示效果。
|
|
233
|
+
|
|
234
|
+
**Logo Generator** 通过以下方式解决这个问题:
|
|
235
|
+
- 应用经过验证的设计原则(极致简洁、慷慨留白、精准比例)
|
|
236
|
+
- 生成多个变体以探索不同方向
|
|
237
|
+
- 创建可直接使用的专业展示图
|
|
238
|
+
- 提供 SVG(可编辑)和 PNG(即用)两种格式
|
|
239
|
+
|
|
240
|
+
适用场景:
|
|
241
|
+
- **创业公司** 需要快速获得专业 Logo
|
|
242
|
+
- **开发者** 构建个人项目
|
|
243
|
+
- **设计师** 探索初期概念
|
|
244
|
+
- **产品团队** 迭代品牌形象
|
|
245
|
+
|
|
246
|
+
本技能利用 Gemini 3.1 Flash Image Preview (Nano Banana) 生成高端展示图,效果媲美专业设计工作室。
|
|
247
|
+
|
|
248
|
+
### 功能特性
|
|
249
|
+
|
|
250
|
+
- **SVG Logo 生成**:创建几何 Logo,支持点阵、线条系统和混合构图
|
|
251
|
+
- **设计多样性**:每次请求生成 6+ 个不同范式的设计变体
|
|
252
|
+
- **专业展示**:12 种精选背景风格(绝对虚空、磨砂穹顶、流体深渊、聚光灯、物理流体、LED 矩阵、编辑纸张、幻彩透砂、晨曦光晕、临床工作室、UI 容器、瑞士扁平)
|
|
253
|
+
- **Nano Banana 集成**:使用 Gemini 3.1 Flash Image Preview 生成高端展示图
|
|
254
|
+
- **交互式预览**:精美的 HTML 展示页面,带悬停效果和流畅过渡
|
|
255
|
+
|
|
256
|
+
### 安装方式
|
|
257
|
+
|
|
258
|
+
#### 方法 1:自动安装(推荐)
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
npx skills add https://github.com/op7418/logo-generator-skill.git
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
这将自动将技能安装到正确的目录。
|
|
265
|
+
|
|
266
|
+
#### 方法 2:Git 克隆
|
|
267
|
+
|
|
268
|
+
```bash
|
|
269
|
+
git clone https://github.com/op7418/logo-generator-skill.git ~/.claude/skills/logo-generator
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
#### 方法 3:手动安装
|
|
273
|
+
|
|
274
|
+
1. 下载本仓库
|
|
275
|
+
2. 将 `logo-generator` 文件夹复制到 Claude Code 技能目录:
|
|
276
|
+
- **macOS/Linux**:`~/.claude/skills/`
|
|
277
|
+
- **Windows**:`%USERPROFILE%\.claude\skills\`
|
|
278
|
+
3. 确保文件夹结构包含 `SKILL.md` 和 `README.md`
|
|
279
|
+
|
|
280
|
+
#### 安装后配置
|
|
281
|
+
|
|
282
|
+
安装完成后,设置所需的依赖:
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
cd ~/.claude/skills/logo-generator
|
|
286
|
+
pip install -r requirements.txt
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
配置 Gemini API 密钥:
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
cp .env.example .env
|
|
293
|
+
# 编辑 .env 文件并添加你的 GEMINI_API_KEY
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
重启 Claude Code 并在对话中输入 `/logo-generator` 验证安装成功。
|
|
297
|
+
|
|
298
|
+
### 使用方法
|
|
299
|
+
|
|
300
|
+
#### 基本工作流
|
|
301
|
+
|
|
302
|
+
1. **启动 Logo 项目**:
|
|
303
|
+
```
|
|
304
|
+
为我的 AI 产品 "DataFlow" 生成一个 Logo
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
2. **提供上下文**(AI 会询问):
|
|
308
|
+
- 行业/类别(如:AI、金融科技、设计工具)
|
|
309
|
+
- 核心概念(如:连接、流动、安全)
|
|
310
|
+
- 设计偏好(极简/复杂、冷色/暖色)
|
|
311
|
+
|
|
312
|
+
3. **查看变体**:AI 生成 6+ 个 SVG Logo 变体并说明设计理念
|
|
313
|
+
|
|
314
|
+
4. **选择和优化**:选择你喜欢的方案,请求调整
|
|
315
|
+
|
|
316
|
+
5. **生成展示**:创建多种背景风格的专业展示图
|
|
317
|
+
|
|
318
|
+
#### 示例命令
|
|
319
|
+
|
|
320
|
+
```
|
|
321
|
+
为区块链安全平台创建一个 Logo
|
|
322
|
+
|
|
323
|
+
为 "CloudSync" 文件同步工具生成 6 个 Logo 变体
|
|
324
|
+
|
|
325
|
+
展示不同背景风格下的 Logo 效果
|
|
326
|
+
|
|
327
|
+
导出 2048x2048 的 PNG 格式 Logo
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### 工作流程阶段
|
|
331
|
+
|
|
332
|
+
**阶段 1:信息收集**
|
|
333
|
+
收集产品名称、行业、核心概念和设计偏好
|
|
334
|
+
|
|
335
|
+
**阶段 2:范式匹配与 SVG 生成**
|
|
336
|
+
- 生成 6+ 个不同的设计变体
|
|
337
|
+
- 创建交互式 HTML 展示页面
|
|
338
|
+
- 解释每个变体的设计理念
|
|
339
|
+
|
|
340
|
+
**阶段 3:迭代与优化**
|
|
341
|
+
- 选择喜欢的变体
|
|
342
|
+
- 调整参数(大小、间距、旋转)
|
|
343
|
+
- 组合不同变体的元素
|
|
344
|
+
|
|
345
|
+
**阶段 4:高端展示图生成**
|
|
346
|
+
- 导出 SVG 为 PNG(1024x1024px)
|
|
347
|
+
- 根据产品类型选择 4 种展示风格
|
|
348
|
+
- 使用 Nano Banana 生成展示图
|
|
349
|
+
- 创建最终展示网页
|
|
350
|
+
|
|
351
|
+
**阶段 5:交付**
|
|
352
|
+
- 交互式 HTML 展示页面
|
|
353
|
+
- SVG 文件(可编辑矢量格式)
|
|
354
|
+
- PNG 导出(多种尺寸)
|
|
355
|
+
- 展示图(4 种专业背景)
|
|
356
|
+
|
|
357
|
+
### 背景风格
|
|
358
|
+
|
|
359
|
+
#### 深色风格(6 种)
|
|
360
|
+
- **绝对虚空** - 纯黑 + 银色微噪点(硬核科技)
|
|
361
|
+
- **磨砂穹顶** - 钛灰 + 有机纹理(高端产品)
|
|
362
|
+
- **流体深渊** - 深紫 + 流体融合(AI 原生)
|
|
363
|
+
- **聚光灯** - 碳灰 + 编辑光效(杂志质感)
|
|
364
|
+
- **物理流体** - 纯色底 + 金属质感(创意品牌)
|
|
365
|
+
- **LED 矩阵** - 数字复古 + 发光点阵(赛博朋克)
|
|
366
|
+
|
|
367
|
+
#### 浅色风格(6 种)
|
|
368
|
+
- **编辑纸张** - 米白 + 纸张纹理(人文品牌)
|
|
369
|
+
- **幻彩透砂** - 银灰 + 全息微光(科技硬件)
|
|
370
|
+
- **晨曦光晕** - 暖象牙 + 柔和色彩(亲和 AI)
|
|
371
|
+
- **临床工作室** - 纯白 + 几何阴影(算法驱动)
|
|
372
|
+
- **UI 容器** - 磨砂玻璃容器效果(SaaS 平台)
|
|
373
|
+
- **瑞士扁平** - 纯色无效果(永恒权威)
|
|
374
|
+
|
|
375
|
+
### 设计原则
|
|
376
|
+
|
|
377
|
+
1. **极致简洁** - 最多 1-2 个核心元素
|
|
378
|
+
2. **慷慨留白** - 至少 40-50% 空白画布
|
|
379
|
+
3. **精准比例** - 线条粗细 2.5-4px,合理间距
|
|
380
|
+
4. **视觉张力** - 有意的不对称创造趣味
|
|
381
|
+
5. **克制而非装饰** - 每个元素必须证明其存在价值
|
|
382
|
+
6. **单一焦点** - 清晰的视觉层级
|
|
383
|
+
|
|
384
|
+
### 文件结构
|
|
385
|
+
|
|
386
|
+
```
|
|
387
|
+
logo-generator/
|
|
388
|
+
├── SKILL.md # Skill 定义和工作流程
|
|
389
|
+
├── README.md # 本文件
|
|
390
|
+
├── requirements.txt # Python 依赖
|
|
391
|
+
├── .env.example # 环境变量模板
|
|
392
|
+
├── scripts/
|
|
393
|
+
│ ├── svg_to_png.py # SVG 转 PNG 工具
|
|
394
|
+
│ └── generate_showcase.py # 展示图生成器
|
|
395
|
+
├── references/
|
|
396
|
+
│ ├── design_patterns.md # 综合设计指南
|
|
397
|
+
│ ├── background_styles.md # 背景风格规范
|
|
398
|
+
│ └── webgl_backgrounds.md # WebGL 动态背景
|
|
399
|
+
└── assets/
|
|
400
|
+
├── showcase_template.html # 展示页面模板
|
|
401
|
+
└── background_library.html # 交互式 WebGL 背景库
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
### 系统要求
|
|
405
|
+
|
|
406
|
+
- Python 3.8+
|
|
407
|
+
- 依赖:`google-genai`、`python-dotenv`、`cairosvg`、`Pillow`
|
|
408
|
+
- Gemini API 密钥(用于展示图生成)
|
|
409
|
+
|
|
410
|
+
### API 配置
|
|
411
|
+
|
|
412
|
+
#### 官方 Google Gemini API
|
|
413
|
+
|
|
414
|
+
```env
|
|
415
|
+
GEMINI_API_KEY=your_api_key_here
|
|
416
|
+
GEMINI_MODEL=gemini-3.1-flash-image-preview
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
#### 第三方 API 端点
|
|
420
|
+
|
|
421
|
+
```env
|
|
422
|
+
GEMINI_API_KEY=your_api_key_here
|
|
423
|
+
GEMINI_API_BASE_URL=https://api.example.com/v1
|
|
424
|
+
GEMINI_MODEL=gemini-3.1-flash-image-preview
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### 开源协议
|
|
428
|
+
|
|
429
|
+
MIT License - 可自由用于个人或商业项目
|
|
430
|
+
|
|
431
|
+
### 致谢
|
|
432
|
+
|
|
433
|
+
- 设计范式灵感来自现代品牌识别系统
|
|
434
|
+
- 展示风格精选自高端设计展示
|
|
435
|
+
- 由 Gemini 3.1 Flash Image Preview (Nano Banana) 驱动
|
|
436
|
+
|
|
437
|
+
### 贡献
|
|
438
|
+
|
|
439
|
+
欢迎贡献!请随时提交 issue 或 pull request。
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: logo-generator
|
|
3
|
+
description: >
|
|
4
|
+
Generate professional SVG logos and high-end showcase images. Use when the user wants to: (1) Create a logo or icon for their product/brand, (2) Generate logo design concepts based on product information, (3) Create professional logo showcase presentations with multiple background styles, (4) Export logos in various formats (SVG, PNG), or (5) Iterate on logo designs with different visual styles. Supports geometric patterns, dot matrix designs, line systems, and mixed compositions. Generates showcase images using Nano Banana (Gemini image generation) with 12 professional background styles.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Logo Generator
|
|
8
|
+
|
|
9
|
+
Generate professional SVG logos and high-end showcase presentations for products and brands.
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
|
|
13
|
+
### Phase 1: Information Gathering
|
|
14
|
+
|
|
15
|
+
Collect essential information from the user:
|
|
16
|
+
|
|
17
|
+
1. **Product/Brand Name** (required)
|
|
18
|
+
2. **Industry/Category** (e.g., AI, fintech, design tools)
|
|
19
|
+
3. **Core Concept** (e.g., connection, flow, security, simplicity)
|
|
20
|
+
4. **Design Preferences**:
|
|
21
|
+
- Style: minimal/complex, geometric/organic
|
|
22
|
+
- Color preference: monochrome/specific colors
|
|
23
|
+
- Mood: cold/warm, professional/friendly
|
|
24
|
+
|
|
25
|
+
Ask concise questions to gather this information. Don't overwhelm the user with too many questions at once.
|
|
26
|
+
|
|
27
|
+
### Phase 2: Pattern Matching & SVG Generation
|
|
28
|
+
|
|
29
|
+
Based on the gathered information:
|
|
30
|
+
|
|
31
|
+
1. **Generate at least 6 design variants** based on `references/design_patterns.md`
|
|
32
|
+
- Match patterns to product characteristics
|
|
33
|
+
- Use different pattern types and combinations for diversity
|
|
34
|
+
- Include both single-pattern and mixed-pattern compositions
|
|
35
|
+
- Vary complexity levels (simple geometric to layered compositions)
|
|
36
|
+
- Each variant should feel distinctly different, not just parameter tweaks
|
|
37
|
+
- Explain the design rationale for each variant
|
|
38
|
+
|
|
39
|
+
2. **Generate SVG code** for each variant
|
|
40
|
+
- Use viewBox="0 0 100 100" for easy scaling
|
|
41
|
+
- Keep code clean and well-structured
|
|
42
|
+
- Use `currentColor` for flexible color control
|
|
43
|
+
- Add subtle animations for web display (optional)
|
|
44
|
+
|
|
45
|
+
3. **Create interactive showcase webpage**
|
|
46
|
+
- Display all 6+ logo variants in a grid layout
|
|
47
|
+
- Use the template from `assets/showcase_template.html`
|
|
48
|
+
- Include hover effects and smooth transitions
|
|
49
|
+
- Add design rationale for each variant
|
|
50
|
+
- Allow easy comparison between variants
|
|
51
|
+
|
|
52
|
+
### Phase 3: Iteration & Refinement
|
|
53
|
+
|
|
54
|
+
Allow user to provide feedback:
|
|
55
|
+
|
|
56
|
+
- Select favorite variants (narrow down from 6+ to 2-3)
|
|
57
|
+
- Adjust specific parameters (size, spacing, rotation)
|
|
58
|
+
- Combine elements from different variants
|
|
59
|
+
- Change colors or add gradients
|
|
60
|
+
- Modify animations or effects
|
|
61
|
+
- Generate additional variants exploring specific directions
|
|
62
|
+
|
|
63
|
+
Make targeted adjustments based on feedback. Don't regenerate everything unless requested.
|
|
64
|
+
|
|
65
|
+
### Phase 4: High-End Showcase Generation
|
|
66
|
+
|
|
67
|
+
Once the user selects a preferred logo direction:
|
|
68
|
+
|
|
69
|
+
1. **Export SVG to PNG**
|
|
70
|
+
- Use `scripts/svg_to_png.py` to convert SVG to PNG
|
|
71
|
+
- Default size: 1024x1024px
|
|
72
|
+
- Ensure transparent background
|
|
73
|
+
|
|
74
|
+
2. **Select showcase styles**
|
|
75
|
+
- Review `references/background_styles.md`
|
|
76
|
+
- Recommend 4 styles based on product type and mood
|
|
77
|
+
- Explain why each style fits
|
|
78
|
+
|
|
79
|
+
3. **Generate showcase images**
|
|
80
|
+
- Set up environment (copy `.env.example` to `.env`, add API key)
|
|
81
|
+
- Use `scripts/generate_showcase.py` with `--all-styles` flag
|
|
82
|
+
- Or generate specific styles individually
|
|
83
|
+
- Each image uses the PNG as reference with Nano Banana API
|
|
84
|
+
|
|
85
|
+
4. **Create final presentation webpage**
|
|
86
|
+
- Combine SVG variants and showcase images
|
|
87
|
+
- Use professional layout with micro-typography
|
|
88
|
+
- Include download links for all assets
|
|
89
|
+
|
|
90
|
+
### Phase 5: Delivery
|
|
91
|
+
|
|
92
|
+
Provide the user with:
|
|
93
|
+
|
|
94
|
+
- Interactive HTML showcase page
|
|
95
|
+
- SVG files (editable vector format)
|
|
96
|
+
- PNG exports (various sizes if requested)
|
|
97
|
+
- Showcase images (4 professional backgrounds)
|
|
98
|
+
|
|
99
|
+
## Key Design Principles
|
|
100
|
+
|
|
101
|
+
1. **Provide Variety**: Generate at least 6 distinct variants to give users real choices
|
|
102
|
+
2. **Start Simple**: Begin with basic patterns, add complexity only when needed
|
|
103
|
+
3. **Meaningful Design**: Connect visual elements to product concepts
|
|
104
|
+
4. **Scalability**: Ensure logos work at all sizes
|
|
105
|
+
5. **Professional Quality**: Match high-end brand identity standards
|
|
106
|
+
6. **Flexibility**: Provide multiple variants for different use cases
|
|
107
|
+
|
|
108
|
+
## Technical Notes
|
|
109
|
+
|
|
110
|
+
### SVG Best Practices
|
|
111
|
+
|
|
112
|
+
- Keep viewBox at `0 0 100 100` for consistency
|
|
113
|
+
- Use semantic grouping with `<g>` tags
|
|
114
|
+
- Leverage `<defs>` for reusable elements
|
|
115
|
+
- Use `<clipPath>` for masking effects
|
|
116
|
+
- Prefer geometric primitives over complex paths when possible
|
|
117
|
+
|
|
118
|
+
### Showcase Image Generation
|
|
119
|
+
|
|
120
|
+
The `generate_showcase.py` script requires:
|
|
121
|
+
- Python 3.8+
|
|
122
|
+
- Dependencies: `pip install -r requirements.txt`
|
|
123
|
+
- Environment variables in `.env` file
|
|
124
|
+
- Reference PNG image (exported from SVG)
|
|
125
|
+
|
|
126
|
+
Supports both official Google Gemini API and third-party endpoints via `GEMINI_API_BASE_URL`.
|
|
127
|
+
|
|
128
|
+
### Available Background Styles
|
|
129
|
+
|
|
130
|
+
From `references/background_styles.md`:
|
|
131
|
+
|
|
132
|
+
**12 Professional Styles Available**:
|
|
133
|
+
|
|
134
|
+
**Dark Styles** (6):
|
|
135
|
+
- void (绝对虚空) - Absolute minimalism, hardcore tech
|
|
136
|
+
- frosted (磨砂穹顶) - Modern breathing space, premium products
|
|
137
|
+
- fluid (流体深渊) - AI-native fluidity, dynamic systems
|
|
138
|
+
- spotlight (物理影棚) - Studio lighting, editorial quality
|
|
139
|
+
- analog_liquid (物理流体) - Metallic shimmer on solid color base, creative brands
|
|
140
|
+
- led_matrix (数字硬件) - Digital retro, cyberpunk aesthetics
|
|
141
|
+
|
|
142
|
+
**Light Styles** (6):
|
|
143
|
+
- editorial (纸本编辑) - Specialty paper, humanistic brands
|
|
144
|
+
- iridescent (幻彩透砂) - Optical materials, tech hardware
|
|
145
|
+
- morning (晨雾光域) - AI softness, approachable products
|
|
146
|
+
- clinical (无菌影棚) - Spatial order, algorithm-driven brands
|
|
147
|
+
- ui_container (容器化界面) - Digital product native, SaaS platforms
|
|
148
|
+
- swiss_flat (瑞士扁平) - Absolute flatness, timeless authority
|
|
149
|
+
|
|
150
|
+
Each style has specific visual characteristics and suitable use cases. Consult the reference document for details.
|
|
151
|
+
|
|
152
|
+
## Common Patterns
|
|
153
|
+
|
|
154
|
+
### Pattern: Concentric Circle Dots
|
|
155
|
+
```svg
|
|
156
|
+
<svg viewBox="0 0 100 100">
|
|
157
|
+
<g>
|
|
158
|
+
<!-- Inner ring: 6 dots -->
|
|
159
|
+
<circle cx="50" cy="38" r="3" fill="currentColor"/>
|
|
160
|
+
<!-- Add more dots in circular arrangement -->
|
|
161
|
+
</g>
|
|
162
|
+
</svg>
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Pattern: Geometric Shape with Line Accent
|
|
166
|
+
```svg
|
|
167
|
+
<svg viewBox="0 0 100 100">
|
|
168
|
+
<polygon points="50,30 70,60 30,60" fill="none" stroke="currentColor" stroke-width="2"/>
|
|
169
|
+
<circle cx="50" cy="30" r="4" fill="currentColor"/>
|
|
170
|
+
</svg>
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Pattern: Node Network
|
|
174
|
+
```svg
|
|
175
|
+
<svg viewBox="0 0 100 100">
|
|
176
|
+
<path d="M 30 70 Q 50 70, 50 50 T 70 30" stroke="currentColor" stroke-width="2" fill="none"/>
|
|
177
|
+
<circle cx="30" cy="70" r="4" fill="currentColor"/>
|
|
178
|
+
<circle cx="50" cy="50" r="5" fill="currentColor"/>
|
|
179
|
+
<circle cx="70" cy="30" r="4" fill="currentColor"/>
|
|
180
|
+
</svg>
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
For more patterns and combinations, see `references/design_patterns.md`.
|
|
184
|
+
|
|
185
|
+
## Troubleshooting
|
|
186
|
+
|
|
187
|
+
**SVG not displaying correctly**: Check viewBox and ensure all paths are closed
|
|
188
|
+
|
|
189
|
+
**PNG export fails**: Verify cairosvg is installed (`pip install cairosvg`)
|
|
190
|
+
|
|
191
|
+
**Showcase generation fails**:
|
|
192
|
+
- Check `.env` file has valid `GEMINI_API_KEY`
|
|
193
|
+
- Verify reference PNG exists and is readable
|
|
194
|
+
- Check API quota/rate limits
|
|
195
|
+
|
|
196
|
+
**Third-party API not working**: Ensure `GEMINI_API_BASE_URL` is correctly formatted (e.g., `https://api.example.com/v1`)
|