unslop-design 1.14.0 → 1.14.2
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 +11 -0
- package/package.json +1 -1
- package/scripts/slop-scan.py +1 -1
- package/scripts/unslop-score.py +3 -0
package/README.md
CHANGED
|
@@ -175,6 +175,17 @@ How the score works, `--save`, `--baseline` and `--min`: [guide/automation.md](g
|
|
|
175
175
|
|
|
176
176
|
A review fixes the screen; these keep the next edit from undoing it.
|
|
177
177
|
|
|
178
|
+
<table>
|
|
179
|
+
<tr>
|
|
180
|
+
<td width="50%"><img src="assets/hook.gif" alt="An agent edits RevenueCard.tsx, adding a border plus a shadow and a rocket emoji. The unslop-design hook answers: 2 slop patterns, #68 ghost-card on line 3 and #33 emoji on line 4. The agent removes both, and the hook says nothing." width="100%"></td>
|
|
181
|
+
<td width="50%"><img src="assets/pr-comment.png" alt="A pull request turns a clean dashboard title into 'Welcome back, Damir!' with a waving hand, adds gradient text and a bare +12.5%. The comment reads: unslop score 82/100, minus 18 vs main, with seven rows that got worse, each with its fix number." width="100%"></td>
|
|
182
|
+
</tr>
|
|
183
|
+
<tr>
|
|
184
|
+
<td align="center"><b>While the agent writes</b> · real hook output</td>
|
|
185
|
+
<td align="center"><b>On the pull request</b> · real <code>--baseline</code> output</td>
|
|
186
|
+
</tr>
|
|
187
|
+
</table>
|
|
188
|
+
|
|
178
189
|
- **While the agent writes.** After every edit to a UI file, a hook tells the
|
|
179
190
|
agent what slop it just added, with the fix number, and says nothing when
|
|
180
191
|
the edit is clean. Built into the Claude Code plugin; one command for
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unslop-design",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "Make your app or site stop looking AI-generated: install the agent skill, scan UI code for slop and score it 0-100.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marcos Novo (https://github.com/marcosnovo)",
|
package/scripts/slop-scan.py
CHANGED
|
@@ -652,7 +652,7 @@ AT_RULE_PRELUDE = re.compile(r"@(?:media|container|supports)\b[^{]*")
|
|
|
652
652
|
DEFAULT_SCALE = "0,1,2,4,8,12,16,20,24,32,40,48,64,80,96"
|
|
653
653
|
DEFAULT_TYPE_SCALE = {11, 12, 13, 14, 15, 16, 17, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 40, 44, 48, 56, 64, 72, 80, 96}
|
|
654
654
|
# Colored shadows in CSS, any offset: "0 10px 30px rgba(255,107,107,.45)" is a glow too (#32).
|
|
655
|
-
SHADOW_DECL = re.compile(r"box-shadow\s*:\s*([^;}]+)", re.I)
|
|
655
|
+
SHADOW_DECL = re.compile(r"box-shadow\s*:\s*([^;}\"']+)", re.I) # an inline style ends at its quote
|
|
656
656
|
SHADOW_COLOR = re.compile(r"rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)(?:[\s,/]+([\d.]+%?))?\s*\)|#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})\b")
|
|
657
657
|
|
|
658
658
|
|
package/scripts/unslop-score.py
CHANGED