@maccesar/aiskills 1.9.3 → 1.10.0
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/README.md +4 -0
- package/package.json +1 -1
- package/skills/stitch-showcase/SKILL.md +15 -11
package/README.md
CHANGED
|
@@ -114,6 +114,10 @@ Confirmations:
|
|
|
114
114
|
- `proceed` / `sí` / `commitea` → release on current branch only.
|
|
115
115
|
- `merge` → release + fast-forward merge to main + push main, and leaves you on `main`. Aborts cleanly if main has diverged.
|
|
116
116
|
- `PR` → release + open pull request to main via `gh`.
|
|
117
|
+
- `con tag` / `with tag` (modifier, combinable with any of the above) → on a private repo, force-create the git tag (the GitHub release stays skipped). No effect on public/internal repos.
|
|
118
|
+
|
|
119
|
+
Private-repo behavior:
|
|
120
|
+
- When `gh repo view` reports the repo as `PRIVATE`, the workflow skips both the git tag and the GitHub release by default — tags/releases are distribution artifacts that aren't usually needed for private projects. The version bump in `package.json` / `tiapp.xml` / etc. plus the `CHANGELOG.md` entry remain. Add `con tag` / `with tag` to your confirmation if you want the tag anyway.
|
|
117
121
|
|
|
118
122
|
Language policy (two independent axes):
|
|
119
123
|
- **Axis 1 — Interaction with you** — always in your language. The command detects the language from your messages and locks it before printing anything; if you switch, it switches with you.
|
package/package.json
CHANGED
|
@@ -13,6 +13,10 @@ Converts Google Stitch exports (zips with `code.html` + `screen.png`) into a nav
|
|
|
13
13
|
|
|
14
14
|
Scripts require Python 3.8+. No external dependencies (stdlib only).
|
|
15
15
|
|
|
16
|
+
## Script paths
|
|
17
|
+
|
|
18
|
+
All commands below use `<SKILL_DIR>/scripts/...` as a placeholder. Replace `<SKILL_DIR>` with the absolute "Base directory for this skill" shown in the system message when this skill loads (e.g. `~/.claude/plugins/cache/<plugin>/<version>/skills/stitch-showcase` for plugin installs, or `~/.claude/skills/stitch-showcase` for standalone installs). Do not assume `~/.claude/skills/...` — the path differs by install type.
|
|
19
|
+
|
|
16
20
|
## Workflow: Four Modes
|
|
17
21
|
|
|
18
22
|
```dot
|
|
@@ -47,7 +51,7 @@ Steps:
|
|
|
47
51
|
1. Identify the source path from the user's message
|
|
48
52
|
2. Run the build script — **nothing else**:
|
|
49
53
|
```bash
|
|
50
|
-
python
|
|
54
|
+
python <SKILL_DIR>/scripts/build_showcase.py /path/to/source
|
|
51
55
|
```
|
|
52
56
|
3. Parse the script output to get the `showcase/` path
|
|
53
57
|
4. Open the showcase in the default browser:
|
|
@@ -61,8 +65,8 @@ Steps:
|
|
|
61
65
|
Only ask `--type` or `--name` if the **script fails** or the **user explicitly wants to override**:
|
|
62
66
|
```bash
|
|
63
67
|
# Only if script fails to detect type or user requests it
|
|
64
|
-
python
|
|
65
|
-
python
|
|
68
|
+
python <SKILL_DIR>/scripts/build_showcase.py /path/to/source --type mobile
|
|
69
|
+
python <SKILL_DIR>/scripts/build_showcase.py /path/to/source --name "My App" --type mobile
|
|
66
70
|
```
|
|
67
71
|
|
|
68
72
|
## Mode 2: Enrich (on-demand — user asks)
|
|
@@ -75,7 +79,7 @@ Steps:
|
|
|
75
79
|
1. Find the source folder (from the user's message or the project's `showcase.json`)
|
|
76
80
|
2. Run `--extract-text` to get screen summaries:
|
|
77
81
|
```bash
|
|
78
|
-
python
|
|
82
|
+
python <SKILL_DIR>/scripts/build_showcase.py /path/to/source --extract-text
|
|
79
83
|
```
|
|
80
84
|
This generates `screen_summaries.txt` — a compact text file with visible text from all screen HTMLs.
|
|
81
85
|
3. Read the existing `DESIGN.md` (in the source folder) + `screen_summaries.txt`
|
|
@@ -87,7 +91,7 @@ Steps:
|
|
|
87
91
|
6. **Verify colors/fonts**: Scan the screen HTMLs for hex colors in CSS variables and font families. Update `## Colors` and `## Typography` sections if they're missing or incomplete.
|
|
88
92
|
7. Re-run the build to regenerate HTMLs with enriched data:
|
|
89
93
|
```bash
|
|
90
|
-
python
|
|
94
|
+
python <SKILL_DIR>/scripts/build_showcase.py /path/to/source
|
|
91
95
|
```
|
|
92
96
|
8. Done — tell the user the showcase has been updated with improved descriptions
|
|
93
97
|
|
|
@@ -136,13 +140,13 @@ Steps:
|
|
|
136
140
|
|
|
137
141
|
```bash
|
|
138
142
|
# Structural components (navbar, footer, sidebar, tabbar)
|
|
139
|
-
python
|
|
143
|
+
python <SKILL_DIR>/scripts/apply_canonical.py /path/to/showcase/assets/ navbar home_screen
|
|
140
144
|
|
|
141
145
|
# Atomic components (button, input, heading, etc.)
|
|
142
|
-
python
|
|
146
|
+
python <SKILL_DIR>/scripts/apply_canonical.py /path/to/showcase/assets/ button home_screen
|
|
143
147
|
|
|
144
148
|
# Target specific screens only
|
|
145
|
-
python
|
|
149
|
+
python <SKILL_DIR>/scripts/apply_canonical.py /path/to/showcase/assets/ navbar home_screen --targets login settings profile
|
|
146
150
|
```
|
|
147
151
|
|
|
148
152
|
4. Rebuild the showcase: `build_showcase.py /path/to/source`
|
|
@@ -177,13 +181,13 @@ The catalog is generated automatically as part of every build. Open `catalog.htm
|
|
|
177
181
|
|
|
178
182
|
```bash
|
|
179
183
|
# Point to the project root — the script discovers the source automatically
|
|
180
|
-
python
|
|
184
|
+
python <SKILL_DIR>/scripts/build_showcase.py /path/to/project
|
|
181
185
|
|
|
182
186
|
# Or point directly to the folder with zips/screens
|
|
183
|
-
python
|
|
187
|
+
python <SKILL_DIR>/scripts/build_showcase.py /path/to/project/stitch
|
|
184
188
|
|
|
185
189
|
# Single mega-zip (zip containing all screens as subfolders)
|
|
186
|
-
python
|
|
190
|
+
python <SKILL_DIR>/scripts/build_showcase.py /path/to/export.zip
|
|
187
191
|
```
|
|
188
192
|
|
|
189
193
|
### Flags
|