@trawlme/skills 1.2.0 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trawlme/skills",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Claude Code skills for the Trawl CLI — teaches Claude how to manage scraps via @trawlme/cli",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,6 +8,7 @@
8
8
  },
9
9
  "files": [
10
10
  "skills/**/*.md",
11
+ "skills/**/references/**",
11
12
  "skills/**/run-local.mjs",
12
13
  "bin/install.js",
13
14
  "README.md",
@@ -33,9 +33,24 @@ curl -s "https://commons.wikimedia.org/w/api.php?action=query&titles=File:${SITE
33
33
  > /tmp/${siteName}-logo-url.txt
34
34
  ```
35
35
 
36
- If the URL is empty, try common naming variants manually:
37
- - `EBay_logo.svg` (original casing), `Google_G_logo.svg`, `Reddit_logo.svg`
38
- - PNG fallback via thumb endpoint: `https://upload.wikimedia.org/wikipedia/commons/thumb/.../1200px-....png`
36
+ The `${siteName^}_logo.svg` heuristic (capitalize first letter) fails for compound brands. Use the table below first:
37
+
38
+ | siteName | Wikimedia file |
39
+ |---|---|
40
+ | ebay | `EBay_logo.svg` |
41
+ | github | `GitHub_logo_2013.svg` (icon-only: `GitHub_Invertocat_Logo.svg`) |
42
+ | reddit | `Reddit_logo_new.svg` |
43
+ | youtube | `YouTube_Logo_2017.svg` |
44
+ | linkedin | `LinkedIn_logo_initials.png` (PNG — save as `-logo.png`, adjust `{{LOGO_PATH}}` in template) |
45
+ | twitter | `Logo_of_Twitter.svg` (X rebrand: `X_logo_2023.svg`) |
46
+ | yahoo-finance | `Yahoo!_Finance_logo_2021.svg` |
47
+ | amazon | `Amazon_logo.svg` |
48
+ | tripadvisor | `Tripadvisor_logoCMYK.svg` |
49
+ | google | `Google_2015_logo.svg` |
50
+ | tiktok | `TikTok_logo.svg` |
51
+ | booking | `Booking.com_logo.svg` |
52
+
53
+ If the brand is not in the table, try the `${siteName^}_logo.svg` heuristic, then PNG fallback via thumb endpoint: `https://upload.wikimedia.org/wikipedia/commons/thumb/.../1200px-....png`
39
54
 
40
55
  ```bash
41
56
  # Download
@@ -44,6 +59,11 @@ curl -sL -H "User-Agent: Mozilla/5.0" "$(cat /tmp/${siteName}-logo-url.txt)" -o
44
59
 
45
60
  **Always use `User-Agent: Mozilla/5.0`** — Wikimedia rejects empty UAs.
46
61
 
62
+ #### Fallback sources when Wikimedia misses
63
+
64
+ 1. **simpleicons.org CDN** — `https://cdn.simpleicons.org/{slug}` — mono-color SVG with brand color baked in. Works for LinkedIn, GitHub, Twitter. Unsuitable for multi-color logos (eBay, Google).
65
+ 2. **Brand press kit** — last resort: search `{brand}.com/press` or `{brand}.com/about/brand` for official SVG/PNG downloads.
66
+
47
67
  ### 2. Pick background gradient
48
68
 
49
69
  | Logo colors | Background |
@@ -58,7 +78,7 @@ Pastel = target brand color at 10–15% saturation. Example: eBay red `#e53238`
58
78
  Copy `references/banner-template.html` to `/tmp/${siteName}-banner.html`. Make three substitutions (all at once — no nested placeholders remain after this step):
59
79
  - `{{LOGO_PATH}}` → `file:///tmp/${siteName}-logo.svg`
60
80
  - `{{BG_GRADIENT}}` → the gradient string from step 2 (e.g. `linear-gradient(135deg, #ffeaec 0%, #e0efff 100%)`)
61
- - `{{TAGLINE_BLOCK}}` → `<div class="tagline">Comp pricing · Item watchlist</div>` — substitute the literal tagline text directly, or use an empty string if no tagline
81
+ - `{{TAGLINE_BLOCK}}` → `<div class="tagline">Comp pricing · Item watchlist</div>` — substitute the literal tagline text directly. When no tagline: replace with `""` (empty string — leave the placeholder line blank, the surrounding HTML renders cleanly)
62
82
 
63
83
  ### 4. Render via Chrome headless
64
84
 
@@ -0,0 +1,33 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <style>
6
+ html, body { margin: 0; padding: 0; }
7
+ body {
8
+ width: 1200px; height: 630px;
9
+ display: flex; flex-direction: column;
10
+ align-items: center; justify-content: center;
11
+ background: {{BG_GRADIENT}};
12
+ font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
13
+ }
14
+ .logo {
15
+ width: 360px;
16
+ height: auto;
17
+ filter: drop-shadow(0 6px 18px rgba(0,0,0,0.10));
18
+ }
19
+ .tagline {
20
+ margin-top: 36px;
21
+ font-weight: 500;
22
+ font-size: 22px;
23
+ color: #5a5a5a;
24
+ letter-spacing: 2.4px;
25
+ text-transform: uppercase;
26
+ }
27
+ </style>
28
+ </head>
29
+ <body>
30
+ <img class="logo" src="{{LOGO_PATH}}" alt="">
31
+ {{TAGLINE_BLOCK}}
32
+ </body>
33
+ </html>