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,208 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "tiktok-research"
|
|
3
|
+
title: "TikTok Research"
|
|
4
|
+
category: "other"
|
|
5
|
+
tags: ["tiktok research", "prerequisites", "workflow", "tiktok research report", "top performing hooks", "content structure patterns", "cta strategies", "all outliers", "trending topics", "actionable takeaways"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/tiktok-research"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
name: tiktok-research
|
|
13
|
+
description: |
|
|
14
|
+
Research high-performing TikTok videos from tracked accounts using Apify's TikTok Scraper.
|
|
15
|
+
Identifies outlier content, analyzes top 5 videos with AI, and generates reports with actionable hook formulas.
|
|
16
|
+
|
|
17
|
+
Use when asked to:
|
|
18
|
+
- Find trending TikTok content in a niche
|
|
19
|
+
- Research what's performing on TikTok
|
|
20
|
+
- Identify high-performing video patterns
|
|
21
|
+
- Analyze competitors' TikTok content
|
|
22
|
+
- Generate content ideas from TikTok trends
|
|
23
|
+
- Run TikTok research
|
|
24
|
+
- Find viral TikToks
|
|
25
|
+
- Analyze hooks and content structure
|
|
26
|
+
|
|
27
|
+
Triggers: "tiktok research", "tt research", "find trending tiktoks", "analyze tiktok accounts",
|
|
28
|
+
"what's working on tiktok", "content research tiktok", "tiktok analysis", "tiktok trends"
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# TikTok Research
|
|
32
|
+
|
|
33
|
+
Research high-performing TikTok videos, identify outliers, and analyze top video content for hooks and structure.
|
|
34
|
+
|
|
35
|
+
## Prerequisites
|
|
36
|
+
|
|
37
|
+
- `APIFY_TOKEN` environment variable or in `.env`
|
|
38
|
+
- `GEMINI_API_KEY` environment variable or in `.env`
|
|
39
|
+
- `apify-client` and `google-genai` Python packages
|
|
40
|
+
- Accounts configured in `.claude/context/tiktok-accounts.md`
|
|
41
|
+
|
|
42
|
+
Verify setup:
|
|
43
|
+
```bash
|
|
44
|
+
python3 -c "
|
|
45
|
+
import os
|
|
46
|
+
try:
|
|
47
|
+
from dotenv import load_dotenv
|
|
48
|
+
load_dotenv()
|
|
49
|
+
except ImportError:
|
|
50
|
+
pass
|
|
51
|
+
from apify_client import ApifyClient
|
|
52
|
+
from google import genai
|
|
53
|
+
assert os.environ.get('APIFY_TOKEN'), 'APIFY_TOKEN not set'
|
|
54
|
+
assert os.environ.get('GEMINI_API_KEY'), 'GEMINI_API_KEY not set'
|
|
55
|
+
" && echo "Prerequisites OK"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Workflow
|
|
59
|
+
|
|
60
|
+
### 1. Create Run Folder
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
RUN_FOLDER="tiktok-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && echo "$RUN_FOLDER"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### 2. Fetch Content
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
python3 .claude/skills/tiktok-research/scripts/fetch_tiktok.py \
|
|
70
|
+
--days 30 \
|
|
71
|
+
--limit 50 \
|
|
72
|
+
--sorting latest \
|
|
73
|
+
--output {RUN_FOLDER}/raw.json
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Parameters:
|
|
77
|
+
- `--days`: Days back to search (default: 30)
|
|
78
|
+
- `--limit`: Max videos per account (default: 50)
|
|
79
|
+
- `--sorting`: "latest", "popular", or "oldest" (default: latest)
|
|
80
|
+
- `--usernames`: Override accounts file with specific usernames
|
|
81
|
+
|
|
82
|
+
### 3. Identify Outliers
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
python3 .claude/skills/tiktok-research/scripts/analyze_posts.py \
|
|
86
|
+
--input {RUN_FOLDER}/raw.json \
|
|
87
|
+
--output {RUN_FOLDER}/outliers.json \
|
|
88
|
+
--threshold 2.0
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Output JSON contains:
|
|
92
|
+
- `total_videos`: Number of videos analyzed
|
|
93
|
+
- `outlier_count`: Number of outliers found
|
|
94
|
+
- `topics`: Top hashtags, sounds, and keywords
|
|
95
|
+
- `accounts`: List of accounts analyzed
|
|
96
|
+
- `outliers`: Array of outlier videos with engagement metrics
|
|
97
|
+
|
|
98
|
+
### 4. Analyze Top Videos with AI
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py \
|
|
102
|
+
--input {RUN_FOLDER}/outliers.json \
|
|
103
|
+
--output {RUN_FOLDER}/video-analysis.json \
|
|
104
|
+
--platform tiktok \
|
|
105
|
+
--max-videos 5
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Extracts from each video:
|
|
109
|
+
- Hook technique and replicable formula
|
|
110
|
+
- Content structure and sections
|
|
111
|
+
- Retention techniques
|
|
112
|
+
- CTA strategy
|
|
113
|
+
|
|
114
|
+
See the `video-content-analyzer` skill for full output schema and hook/format types.
|
|
115
|
+
|
|
116
|
+
### 5. Generate Report
|
|
117
|
+
|
|
118
|
+
Read `{RUN_FOLDER}/outliers.json` and `{RUN_FOLDER}/video-analysis.json`, then generate `{RUN_FOLDER}/report.md`.
|
|
119
|
+
|
|
120
|
+
**Report Structure:**
|
|
121
|
+
|
|
122
|
+
```markdown
|
|
123
|
+
# TikTok Research Report
|
|
124
|
+
|
|
125
|
+
Generated: {date}
|
|
126
|
+
|
|
127
|
+
## Top Performing Hooks
|
|
128
|
+
|
|
129
|
+
Ranked by engagement. Use these formulas for your content.
|
|
130
|
+
|
|
131
|
+
### Hook 1: {technique} - @{username}
|
|
132
|
+
- **Opening**: "{opening_line}"
|
|
133
|
+
- **Why it works**: {attention_grab}
|
|
134
|
+
- **Replicable Formula**: {replicable_formula}
|
|
135
|
+
- **Engagement**: {diggCount} likes, {commentCount} comments, {playCount} views
|
|
136
|
+
- [Watch Video]({webVideoUrl})
|
|
137
|
+
|
|
138
|
+
[Repeat for each analyzed video]
|
|
139
|
+
|
|
140
|
+
## Content Structure Patterns
|
|
141
|
+
|
|
142
|
+
| Video | Format | Pacing | Key Retention Techniques |
|
|
143
|
+
|-------|--------|--------|--------------------------|
|
|
144
|
+
| @username | {format} | {pacing} | {techniques} |
|
|
145
|
+
|
|
146
|
+
## CTA Strategies
|
|
147
|
+
|
|
148
|
+
| Video | CTA Type | CTA Text | Placement |
|
|
149
|
+
|-------|----------|----------|-----------|
|
|
150
|
+
| @username | {type} | "{cta_text}" | {placement} |
|
|
151
|
+
|
|
152
|
+
## All Outliers
|
|
153
|
+
|
|
154
|
+
| Rank | Username | Likes | Comments | Shares | Views | Engagement Rate |
|
|
155
|
+
|------|----------|-------|----------|--------|-------|-----------------|
|
|
156
|
+
[List all outliers with metrics and links]
|
|
157
|
+
|
|
158
|
+
## Trending Topics
|
|
159
|
+
|
|
160
|
+
### Top Hashtags
|
|
161
|
+
[From outliers.json topics.hashtags]
|
|
162
|
+
|
|
163
|
+
### Top Sounds
|
|
164
|
+
[From outliers.json topics.sounds]
|
|
165
|
+
|
|
166
|
+
### Top Keywords
|
|
167
|
+
[From outliers.json topics.keywords]
|
|
168
|
+
|
|
169
|
+
## Actionable Takeaways
|
|
170
|
+
|
|
171
|
+
[Synthesize patterns into 4-6 specific recommendations]
|
|
172
|
+
|
|
173
|
+
## Accounts Analyzed
|
|
174
|
+
[List accounts]
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Focus on actionable insights. The "Top Performing Hooks" section with replicable formulas should be prominent.
|
|
178
|
+
|
|
179
|
+
## Quick Reference
|
|
180
|
+
|
|
181
|
+
Full pipeline:
|
|
182
|
+
```bash
|
|
183
|
+
RUN_FOLDER="tiktok-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && \
|
|
184
|
+
python3 .claude/skills/tiktok-research/scripts/fetch_tiktok.py -o "$RUN_FOLDER/raw.json" && \
|
|
185
|
+
python3 .claude/skills/tiktok-research/scripts/analyze_posts.py -i "$RUN_FOLDER/raw.json" -o "$RUN_FOLDER/outliers.json" && \
|
|
186
|
+
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py -i "$RUN_FOLDER/outliers.json" -o "$RUN_FOLDER/video-analysis.json" -p tiktok
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Then read both JSON files and generate the report.
|
|
190
|
+
|
|
191
|
+
## Engagement Metrics
|
|
192
|
+
|
|
193
|
+
**Engagement Score**: `likes + (3 x comments) + (2 x shares) + (2 x saves) + (0.05 x views)`
|
|
194
|
+
|
|
195
|
+
**Outlier Detection**: Videos with engagement rate > mean + (threshold x std_dev)
|
|
196
|
+
|
|
197
|
+
**Engagement Rate**: (score / followers) x 100
|
|
198
|
+
|
|
199
|
+
## TikTok-Specific Fields
|
|
200
|
+
|
|
201
|
+
- `diggCount`: Likes/hearts
|
|
202
|
+
- `shareCount`: Shares
|
|
203
|
+
- `playCount`: Video views
|
|
204
|
+
- `commentCount`: Comments
|
|
205
|
+
- `collectCount`: Saves/bookmarks
|
|
206
|
+
- `authorFollowers`: Creator's follower count
|
|
207
|
+
- `musicName`: Sound used in video
|
|
208
|
+
- `musicOriginal`: Whether sound is original
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "typescript-lsp"
|
|
3
|
+
title: "typescript-lsp"
|
|
4
|
+
category: "other"
|
|
5
|
+
tags: ["typescript-lsp", "supported extensions", "installation", "more information"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/typescript-lsp"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# typescript-lsp
|
|
12
|
+
|
|
13
|
+
TypeScript/JavaScript language server for Claude Code, providing code intelligence features like go-to-definition, find references, and error checking.
|
|
14
|
+
|
|
15
|
+
## Supported Extensions
|
|
16
|
+
|
|
17
|
+
`.ts`, `.tsx`, `.js`, `.jsx`, `.mts`, `.cts`, `.mjs`, `.cjs`
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
Install the TypeScript language server globally via npm:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install -g typescript-language-server typescript
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Or with yarn:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
yarn global add typescript-language-server typescript
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## More Information
|
|
34
|
+
|
|
35
|
+
- [typescript-language-server on npm](https://www.npmjs.com/package/typescript-language-server)
|
|
36
|
+
- [GitHub Repository](https://github.com/typescript-language-server/typescript-language-server)
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "ui-ux-pro-max"
|
|
3
|
+
title: "UI/UX Pro Max - Design Intelligence"
|
|
4
|
+
category: "design"
|
|
5
|
+
tags: ["prerequisites", "how to use this skill", "search reference", "example workflow", "1. search product type", "3. search typography", "4. search color palette", "6. search ux guidelines", "tips for better results", "pre-delivery checklist"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/ui-ux-pro-max"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
name: ui-ux-pro-max
|
|
13
|
+
description: 'UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.'
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# UI/UX Pro Max - Design Intelligence
|
|
17
|
+
|
|
18
|
+
Searchable database of UI styles, color palettes, font pairings, chart types, product recommendations, UX guidelines, and stack-specific best practices.
|
|
19
|
+
|
|
20
|
+
## Prerequisites
|
|
21
|
+
|
|
22
|
+
Check if Python is installed:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
python3 --version || python --version
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
If Python is not installed, install it based on user's OS:
|
|
29
|
+
|
|
30
|
+
**macOS:**
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
brew install python3
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Ubuntu/Debian:**
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
sudo apt update && sudo apt install python3
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Windows:**
|
|
43
|
+
|
|
44
|
+
```powershell
|
|
45
|
+
winget install Python.Python.3.12
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## How to Use This Skill
|
|
51
|
+
|
|
52
|
+
When user requests UI/UX work (design, build, create, implement, review, fix, improve), follow this workflow:
|
|
53
|
+
|
|
54
|
+
### Step 1: Analyze User Requirements
|
|
55
|
+
|
|
56
|
+
Extract key information from user request:
|
|
57
|
+
|
|
58
|
+
- **Product type**: SaaS, e-commerce, portfolio, dashboard, landing page, etc.
|
|
59
|
+
- **Style keywords**: minimal, playful, professional, elegant, dark mode, etc.
|
|
60
|
+
- **Industry**: healthcare, fintech, gaming, education, etc.
|
|
61
|
+
- **Stack**: React, Vue, Next.js, or default to `html-tailwind`
|
|
62
|
+
|
|
63
|
+
### Step 2: Search Relevant Domains
|
|
64
|
+
|
|
65
|
+
Use `search.py` multiple times to gather comprehensive information. Search until you have enough context.
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Recommended search order:**
|
|
72
|
+
|
|
73
|
+
1. **Product** - Get style recommendations for product type
|
|
74
|
+
2. **Style** - Get detailed style guide (colors, effects, frameworks)
|
|
75
|
+
3. **Typography** - Get font pairings with Google Fonts imports
|
|
76
|
+
4. **Color** - Get color palette (Primary, Secondary, CTA, Background, Text, Border)
|
|
77
|
+
5. **Landing** - Get page structure (if landing page)
|
|
78
|
+
6. **Chart** - Get chart recommendations (if dashboard/analytics)
|
|
79
|
+
7. **UX** - Get best practices and anti-patterns
|
|
80
|
+
8. **Stack** - Get stack-specific guidelines (default: html-tailwind)
|
|
81
|
+
|
|
82
|
+
### Step 3: Stack Guidelines (Default: html-tailwind)
|
|
83
|
+
|
|
84
|
+
If user doesn't specify a stack, **default to `html-tailwind`**.
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`, `react-native`, `flutter`
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Search Reference
|
|
95
|
+
|
|
96
|
+
### Available Domains
|
|
97
|
+
|
|
98
|
+
| Domain | Use For | Example Keywords |
|
|
99
|
+
| ------------ | ------------------------------------ | -------------------------------------------------------- |
|
|
100
|
+
| `product` | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty, service |
|
|
101
|
+
| `style` | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism |
|
|
102
|
+
| `typography` | Font pairings, Google Fonts | elegant, playful, professional, modern |
|
|
103
|
+
| `color` | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech, service |
|
|
104
|
+
| `landing` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
|
|
105
|
+
| `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
|
|
106
|
+
| `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
|
|
107
|
+
| `prompt` | AI prompts, CSS keywords | (style name) |
|
|
108
|
+
|
|
109
|
+
### Available Stacks
|
|
110
|
+
|
|
111
|
+
| Stack | Focus |
|
|
112
|
+
| --------------- | ---------------------------------------------- |
|
|
113
|
+
| `html-tailwind` | Tailwind utilities, responsive, a11y (DEFAULT) |
|
|
114
|
+
| `react` | State, hooks, performance, patterns |
|
|
115
|
+
| `nextjs` | SSR, routing, images, API routes |
|
|
116
|
+
| `vue` | Composition API, Pinia, Vue Router |
|
|
117
|
+
| `svelte` | Runes, stores, SvelteKit |
|
|
118
|
+
| `swiftui` | Views, State, Navigation, Animation |
|
|
119
|
+
| `react-native` | Components, Navigation, Lists |
|
|
120
|
+
| `flutter` | Widgets, State, Layout, Theming |
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Example Workflow
|
|
125
|
+
|
|
126
|
+
**User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
|
|
127
|
+
|
|
128
|
+
**AI should:**
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
# 1. Search product type
|
|
132
|
+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --domain product
|
|
133
|
+
|
|
134
|
+
# 2. Search style (based on industry: beauty, elegant)
|
|
135
|
+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "elegant minimal soft" --domain style
|
|
136
|
+
|
|
137
|
+
# 3. Search typography
|
|
138
|
+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "elegant luxury" --domain typography
|
|
139
|
+
|
|
140
|
+
# 4. Search color palette
|
|
141
|
+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness" --domain color
|
|
142
|
+
|
|
143
|
+
# 5. Search landing page structure
|
|
144
|
+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "hero-centric social-proof" --domain landing
|
|
145
|
+
|
|
146
|
+
# 6. Search UX guidelines
|
|
147
|
+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "animation" --domain ux
|
|
148
|
+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "accessibility" --domain ux
|
|
149
|
+
|
|
150
|
+
# 7. Search stack guidelines (default: html-tailwind)
|
|
151
|
+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "layout responsive" --stack html-tailwind
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**Then:** Synthesize all search results and implement the design.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Tips for Better Results
|
|
159
|
+
|
|
160
|
+
1. **Be specific with keywords** - "healthcare SaaS dashboard" > "app"
|
|
161
|
+
2. **Search multiple times** - Different keywords reveal different insights
|
|
162
|
+
3. **Combine domains** - Style + Typography + Color = Complete design system
|
|
163
|
+
4. **Always check UX** - Search "animation", "z-index", "accessibility" for common issues
|
|
164
|
+
5. **Use stack flag** - Get implementation-specific best practices
|
|
165
|
+
6. **Iterate** - If first search doesn't match, try different keywords
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Common Rules for Professional UI
|
|
170
|
+
|
|
171
|
+
These are frequently overlooked issues that make UI look unprofessional:
|
|
172
|
+
|
|
173
|
+
### Icons & Visual Elements
|
|
174
|
+
|
|
175
|
+
| Rule | Do | Don't |
|
|
176
|
+
| -------------------------- | ----------------------------------------------- | -------------------------------------- |
|
|
177
|
+
| **No emoji icons** | Use SVG icons (Heroicons, Lucide, Simple Icons) | Use emojis like 🎨 🚀 ⚙️ as UI icons |
|
|
178
|
+
| **Stable hover states** | Use color/opacity transitions on hover | Use scale transforms that shift layout |
|
|
179
|
+
| **Correct brand logos** | Research official SVG from Simple Icons | Guess or use incorrect logo paths |
|
|
180
|
+
| **Consistent icon sizing** | Use fixed viewBox (24x24) with w-6 h-6 | Mix different icon sizes randomly |
|
|
181
|
+
|
|
182
|
+
### Interaction & Cursor
|
|
183
|
+
|
|
184
|
+
| Rule | Do | Don't |
|
|
185
|
+
| ---------------------- | ----------------------------------------------------- | -------------------------------------------- |
|
|
186
|
+
| **Cursor pointer** | Add `cursor-pointer` to all clickable/hoverable cards | Leave default cursor on interactive elements |
|
|
187
|
+
| **Hover feedback** | Provide visual feedback (color, shadow, border) | No indication element is interactive |
|
|
188
|
+
| **Smooth transitions** | Use `transition-colors duration-200` | Instant state changes or too slow (>500ms) |
|
|
189
|
+
|
|
190
|
+
### Light/Dark Mode Contrast
|
|
191
|
+
|
|
192
|
+
| Rule | Do | Don't |
|
|
193
|
+
| ------------------------- | ----------------------------------- | --------------------------------------- |
|
|
194
|
+
| **Glass card light mode** | Use `bg-white/80` or higher opacity | Use `bg-white/10` (too transparent) |
|
|
195
|
+
| **Text contrast light** | Use `#0F172A` (slate-900) for text | Use `#94A3B8` (slate-400) for body text |
|
|
196
|
+
| **Muted text light** | Use `#475569` (slate-600) minimum | Use gray-400 or lighter |
|
|
197
|
+
| **Border visibility** | Use `border-gray-200` in light mode | Use `border-white/10` (invisible) |
|
|
198
|
+
|
|
199
|
+
### Layout & Spacing
|
|
200
|
+
|
|
201
|
+
| Rule | Do | Don't |
|
|
202
|
+
| ------------------------ | ----------------------------------- | -------------------------------------- |
|
|
203
|
+
| **Floating navbar** | Add `top-4 left-4 right-4` spacing | Stick navbar to `top-0 left-0 right-0` |
|
|
204
|
+
| **Content padding** | Account for fixed navbar height | Let content hide behind fixed elements |
|
|
205
|
+
| **Consistent max-width** | Use same `max-w-6xl` or `max-w-7xl` | Mix different container widths |
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Pre-Delivery Checklist
|
|
210
|
+
|
|
211
|
+
Before delivering UI code, verify these items:
|
|
212
|
+
|
|
213
|
+
### Visual Quality
|
|
214
|
+
|
|
215
|
+
- [ ] No emojis used as icons (use SVG instead)
|
|
216
|
+
- [ ] All icons from consistent icon set (Heroicons/Lucide)
|
|
217
|
+
- [ ] Brand logos are correct (verified from Simple Icons)
|
|
218
|
+
- [ ] Hover states don't cause layout shift
|
|
219
|
+
- [ ] Use theme colors directly (bg-primary) not var() wrapper
|
|
220
|
+
|
|
221
|
+
### Interaction
|
|
222
|
+
|
|
223
|
+
- [ ] All clickable elements have `cursor-pointer`
|
|
224
|
+
- [ ] Hover states provide clear visual feedback
|
|
225
|
+
- [ ] Transitions are smooth (150-300ms)
|
|
226
|
+
- [ ] Focus states visible for keyboard navigation
|
|
227
|
+
|
|
228
|
+
### Light/Dark Mode
|
|
229
|
+
|
|
230
|
+
- [ ] Light mode text has sufficient contrast (4.5:1 minimum)
|
|
231
|
+
- [ ] Glass/transparent elements visible in light mode
|
|
232
|
+
- [ ] Borders visible in both modes
|
|
233
|
+
- [ ] Test both modes before delivery
|
|
234
|
+
|
|
235
|
+
### Layout
|
|
236
|
+
|
|
237
|
+
- [ ] Floating elements have proper spacing from edges
|
|
238
|
+
- [ ] No content hidden behind fixed navbars
|
|
239
|
+
- [ ] Responsive at 320px, 768px, 1024px, 1440px
|
|
240
|
+
- [ ] No horizontal scroll on mobile
|
|
241
|
+
|
|
242
|
+
### Accessibility
|
|
243
|
+
|
|
244
|
+
- [ ] All images have alt text
|
|
245
|
+
- [ ] Form inputs have labels
|
|
246
|
+
- [ ] Color is not the only indicator
|
|
247
|
+
- [ ] `prefers-reduced-motion` respected
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "visual-prompt-engineer"
|
|
3
|
+
title: "Role"
|
|
4
|
+
category: "media"
|
|
5
|
+
tags: ["role", "workflow", "1. analyze intent (分析意图)", "2. execute strategy (执行策略)", "3. output format (输出格式)", "examples", "user input", "ai response"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/visual-prompt-engineer"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
name: visual-prompt-engineer
|
|
13
|
+
description: 全能视觉提示词专家。支持 Midjourney/Gemini(Nano Banana) 生图,以及 Sora/Vidu/Veo 视频生成。
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Role
|
|
17
|
+
|
|
18
|
+
你是一位精通多模态 AI 的提示词工程师。你深谙各类视觉模型的底层逻辑和最佳实践。
|
|
19
|
+
|
|
20
|
+
# Workflow
|
|
21
|
+
|
|
22
|
+
## 1. Analyze Intent (分析意图)
|
|
23
|
+
|
|
24
|
+
- **Task Type:** Is the user asking for an **[IMAGE]** or a **[VIDEO]**?
|
|
25
|
+
- **Target Model:** Did the user specify a model? (e.g., "Veo", "Sora", "Gemini", "Nano Banana"). If not, use the **Default** strategy for that type.
|
|
26
|
+
|
|
27
|
+
## 2. Execute Strategy (执行策略)
|
|
28
|
+
|
|
29
|
+
### branch: IF [IMAGE]
|
|
30
|
+
|
|
31
|
+
- **Strategy A: Midjourney / Flux (Default)**
|
|
32
|
+
- _Focus:_ Artistic style, lighting, composition, parameters.
|
|
33
|
+
- _Syntax:_ Tag-heavy or descriptive.
|
|
34
|
+
- _Mandatory:_ Always include aspect ratio (e.g., `--ar 16:9`).
|
|
35
|
+
- _Reference:_ `templates/midjourney.md`
|
|
36
|
+
|
|
37
|
+
- **Strategy B: Nano Banana (Google Gemini/Imagen)**
|
|
38
|
+
- _Focus:_ Natural language understanding, **Text Rendering**, complex spatial logic.
|
|
39
|
+
- _Syntax:_ Long, fluent English sentences. NO tag soup.
|
|
40
|
+
- _Text:_ If user implies text, specify: "with the text '...' written on it".
|
|
41
|
+
- _Reference:_ `templates/nano_banana2.md`
|
|
42
|
+
|
|
43
|
+
### branch: IF [VIDEO]
|
|
44
|
+
|
|
45
|
+
- **Strategy A: Sora (Default)**
|
|
46
|
+
- _Focus:_ World simulation, physics interactions, fluid dynamics.
|
|
47
|
+
- _Syntax:_ Highly descriptive narrative.
|
|
48
|
+
- _Reference:_ `templates/sora.md`
|
|
49
|
+
|
|
50
|
+
- **Strategy B: Veo (Google Veo)**
|
|
51
|
+
- _Focus:_ **Cinematic Camera Control**. Use professional terms: "Pan", "Tilt", "Truck", "Dolly", "Aerial".
|
|
52
|
+
- _Style:_ Screenplay direction style.
|
|
53
|
+
- _Reference:_ `templates/veo3.1.md`
|
|
54
|
+
|
|
55
|
+
- **Strategy C: Vidu**
|
|
56
|
+
- _Focus:_ Character consistency, anime/stylized motion, high responsiveness.
|
|
57
|
+
- _Reference:_ `templates/vidu.md`
|
|
58
|
+
|
|
59
|
+
## 3. Output Format (输出格式)
|
|
60
|
+
|
|
61
|
+
**Target Model:** [Model Name]
|
|
62
|
+
**Type:** [IMAGE] / [VIDEO]
|
|
63
|
+
|
|
64
|
+
**Optimized Prompt:**
|
|
65
|
+
(The English prompt tailored to the specific model's syntax)
|
|
66
|
+
|
|
67
|
+
**Design Rationale:**
|
|
68
|
+
(简短中文解释:为什么针对该模型使用了这些特定的词汇或参数?例如:"使用了 Truck Left 运镜指令以适配 Veo 的电影感特性"。)
|
|
69
|
+
|
|
70
|
+
# Examples
|
|
71
|
+
|
|
72
|
+
## User Input
|
|
73
|
+
|
|
74
|
+
"Veo, 拍摄一段赛博朋克城市的空镜头"
|
|
75
|
+
|
|
76
|
+
## AI Response
|
|
77
|
+
|
|
78
|
+
**Target Model:** Veo
|
|
79
|
+
**Type:** [VIDEO]
|
|
80
|
+
|
|
81
|
+
**Optimized Prompt:**
|
|
82
|
+
Aerial drone shot establishing a futuristic cyberpunk city at night. The camera flies forward and slowly tilts down (Tilt Down) to reveal neon-lit skyscrapers and flying vehicles weaving through the fog. Cinematic lighting, HDR, 4k resolution, smooth motion.
|
|
83
|
+
|
|
84
|
+
**Design Rationale:**
|
|
85
|
+
识别为 Veo 模型,因此使用了 "Aerial drone shot" 和明确的运镜指令 "Tilt Down" 来发挥其镜头控制优势。
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## User Input
|
|
90
|
+
|
|
91
|
+
"Nano Banana, 一个写着'OpenAI'的霓虹灯牌子"
|
|
92
|
+
|
|
93
|
+
## AI Response
|
|
94
|
+
|
|
95
|
+
**Target Model:** Nano Banana (Gemini)
|
|
96
|
+
**Type:** [IMAGE]
|
|
97
|
+
|
|
98
|
+
**Optimized Prompt:**
|
|
99
|
+
A cinematic photo of a glowing neon sign mounted on a brick wall in a dim alleyway. The sign clearly spells out the word "OpenAI" in bright blue cursive letters. Rain puddles on the ground reflect the light. Photorealistic, 8k.
|
|
100
|
+
|
|
101
|
+
**Design Rationale:**
|
|
102
|
+
识别为 Nano Banana (Gemini),因此使用了自然语言全句描述,并特别强调了文字渲染指令 "clearly spells out..."。
|