skillflair 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +166 -2
- package/bin/skillflair.mjs +38 -0
- package/cli/install.mjs +17 -0
- package/cli/scan.mjs +45 -0
- package/data/patterns.json +930 -0
- package/data/schema.json +137 -0
- package/package.json +43 -4
- package/skills/skillflair/SKILL.md +21 -0
- package/skills/skillflair/patterns.json +930 -0
- package/skills/skillflair-audit/SKILL.md +18 -0
- package/skills/skillflair-directions/SKILL.md +17 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Easwar Namboothiri
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,167 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/lockup-dark.png">
|
|
5
|
+
<img src="assets/lockup.png" alt="Skillflair" height="64">
|
|
6
|
+
</picture>
|
|
7
|
+
|
|
8
|
+
**Your coding agent, minus today's design slop.**
|
|
9
|
+
|
|
10
|
+
A live feed of the design clichés AI keeps producing, in interfaces, slide decks, posters, documents and graphics, with fresh alternatives to use instead.
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
[The problem](#the-problem) · [What it covers](#what-it-covers) · [How it works](#how-it-works) · [Install](#install) · [Contributing](#contributing)
|
|
17
|
+
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## The problem
|
|
23
|
+
|
|
24
|
+
Ask an AI to design anything and you get the same result back: the same gradients, the same glowing edges, the same layout, the same slide. New slop shows up every day, and by the time a style guide lists one, the next has taken its place.
|
|
25
|
+
|
|
26
|
+
Static rule lists cannot keep up. A ban list that never changes becomes the next thing everyone copies.
|
|
27
|
+
|
|
28
|
+
## What Skillflair does
|
|
29
|
+
|
|
30
|
+
- **Keeps watch** on the patterns AI tools overuse, as new ones emerge.
|
|
31
|
+
- **Names** each one, with a rule your agent can use to detect it.
|
|
32
|
+
- **Replaces** it with fresh directions, so your agent has something better to reach for.
|
|
33
|
+
- **Stays current.** Your agent reads a live feed, not a file that went stale last month.
|
|
34
|
+
|
|
35
|
+
## What it covers
|
|
36
|
+
|
|
37
|
+
Slop is not limited to web interfaces. Skillflair tracks it wherever AI makes visual work.
|
|
38
|
+
|
|
39
|
+
| Format | Examples of what it catches |
|
|
40
|
+
| --- | --- |
|
|
41
|
+
| Web and app interfaces | Glow effects, default gradients, templated layouts |
|
|
42
|
+
| Presentations and decks | Stock structures, repeated slide compositions |
|
|
43
|
+
| Posters and print | Familiar layouts and color treatments |
|
|
44
|
+
| Documents and PDFs | Boilerplate formatting and styling habits |
|
|
45
|
+
| Images and graphics | Recurring visual tropes |
|
|
46
|
+
|
|
47
|
+
## How it works
|
|
48
|
+
|
|
49
|
+
1. **Detect.** Standard prompts run across the major AI agents. A detector scans the outputs and measures which patterns keep repeating.
|
|
50
|
+
2. **Review.** Our team checks every candidate before it is published, so the feed stays small and trustworthy.
|
|
51
|
+
3. **Deliver.** Your agent pulls the current list through the Skillflair skill or the MCP connector, and designs around it.
|
|
52
|
+
|
|
53
|
+
Each pattern carries a status that shows where it is in its life.
|
|
54
|
+
|
|
55
|
+
| Status | Meaning |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| Candidate | Spotted, not yet confirmed |
|
|
58
|
+
| Confirmed | Verified across agents and prompts |
|
|
59
|
+
| Rising | Appearing more often each week |
|
|
60
|
+
| Peak | Everywhere right now, so avoid it |
|
|
61
|
+
| Fading | Past its peak, acceptable in moderation |
|
|
62
|
+
|
|
63
|
+
## What a pattern looks like
|
|
64
|
+
|
|
65
|
+
An illustrative entry. The final schema will live in `data/`.
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"id": "neon-line-behind-border",
|
|
70
|
+
"name": "Neon line behind borders",
|
|
71
|
+
"format": "ui",
|
|
72
|
+
"status": "confirmed",
|
|
73
|
+
"description": "A glowing line sits behind a card or container edge.",
|
|
74
|
+
"detect": "Gradient or blurred line positioned behind a bordered element.",
|
|
75
|
+
"instead": "Use a solid hairline border and let spacing and type carry the design.",
|
|
76
|
+
"first_seen": "YYYY-MM-DD"
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Find the fix by problem
|
|
81
|
+
|
|
82
|
+
| What you are seeing | Use |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| Every page the agent builds has the same purple gradient and three icon cards | `skillflair`, which checks the feed before it designs |
|
|
85
|
+
| You already have a design and want to know what looks generic | `skillflair-audit` |
|
|
86
|
+
| You have a brief and want fresh options, not the default one | `skillflair-directions` |
|
|
87
|
+
| You want a quick check on code before it ships | `skillflair scan` |
|
|
88
|
+
|
|
89
|
+
## What's inside
|
|
90
|
+
|
|
91
|
+
| Part | What it does |
|
|
92
|
+
| --- | --- |
|
|
93
|
+
| `skills/skillflair` | Checks the current feed before your agent designs anything |
|
|
94
|
+
| `skills/skillflair-audit` | Reviews existing work against the feed and lists what to fix |
|
|
95
|
+
| `skills/skillflair-directions` | Proposes three fresh directions for a brief |
|
|
96
|
+
| `bin/skillflair.mjs` | `install` copies the skills into your agent, `scan` checks code against the patterns that have a rule |
|
|
97
|
+
| `spec/` and `template/` | How to write a pattern or a skill, with starting files |
|
|
98
|
+
|
|
99
|
+
## Install
|
|
100
|
+
|
|
101
|
+
### 1. Connect the live list
|
|
102
|
+
|
|
103
|
+
This works today. The connector gives your agent the current list of patterns, with how to spot each one and what to do instead. No sign-in is needed.
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
https://skillflair.easwars.com/api/mcp
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
- **Claude app:** Settings, then Connectors, then Add custom connector. Paste the address and name it Skillflair.
|
|
110
|
+
- **Claude Code:**
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
claude mcp add --transport http skillflair https://skillflair.easwars.com/api/mcp
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
- **Cursor:** add this to `mcp.json`.
|
|
117
|
+
|
|
118
|
+
```json
|
|
119
|
+
{"mcpServers":{"skillflair":{"url":"https://skillflair.easwars.com/api/mcp"}}}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
- **Any other agent:** add a remote MCP server with the address above. The tool is `get_current_slop`, with an optional `format` and `status`.
|
|
123
|
+
|
|
124
|
+
### 2. Add the skills
|
|
125
|
+
|
|
126
|
+
Not released yet. Once it is, one command will do it:
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
npx skillflair install
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
It copies the skills into your agent's skills folder. Use `--agent generic` or `--dir <path>` for other agents. Without the connector, the skills use the snapshot that ships with them.
|
|
133
|
+
|
|
134
|
+
### 3. Scan your code
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
npx skillflair scan ./src
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Checks a folder for the patterns that have a machine rule. Add `--strict` to exit with an error when something is found.
|
|
141
|
+
|
|
142
|
+
## Open by design
|
|
143
|
+
|
|
144
|
+
The skill, the schema, the detection rules and a snapshot of confirmed patterns are open. The live feed and the hosted service run separately, which keeps what you install small.
|
|
145
|
+
|
|
146
|
+
- Code: [MIT](./LICENSE)
|
|
147
|
+
- Pattern data: CC BY 4.0, so you can reuse it with credit.
|
|
148
|
+
|
|
149
|
+
## Contributing
|
|
150
|
+
|
|
151
|
+
Spotted a new slop? Open an issue with a screenshot and the prompt that produced it. Reports are reviewed continuously.
|
|
152
|
+
|
|
153
|
+
## Support
|
|
154
|
+
|
|
155
|
+
Questions or feedback: eas@easwars.com
|
|
156
|
+
|
|
157
|
+
## Contributors
|
|
158
|
+
|
|
159
|
+
Built by [eawar-jpg](https://github.com/eawar-jpg) and [yourbaconog](https://github.com/yourbaconog), with Claude.
|
|
160
|
+
|
|
161
|
+
## Built with
|
|
162
|
+
|
|
163
|
+
TypeScript. Pattern data is JSON and the skill is Markdown.
|
|
164
|
+
|
|
165
|
+
## License
|
|
166
|
+
|
|
167
|
+
MIT. See [LICENSE](./LICENSE).
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
import { dirname, join, resolve } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { scan } from "../cli/scan.mjs";
|
|
6
|
+
import { install } from "../cli/install.mjs";
|
|
7
|
+
|
|
8
|
+
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
9
|
+
const [cmd, ...args] = process.argv.slice(2);
|
|
10
|
+
const flag = (n) => { const i = args.indexOf(n); return i >= 0 ? args[i + 1] : undefined; };
|
|
11
|
+
const has = (n) => args.includes(n);
|
|
12
|
+
|
|
13
|
+
const HELP = `skillflair
|
|
14
|
+
|
|
15
|
+
skillflair install [--agent claude|generic] [--dir <path>] [--global]
|
|
16
|
+
Copy the skills into your agent's skills folder.
|
|
17
|
+
skillflair scan [path] [--strict] [--patterns <file>]
|
|
18
|
+
Check code for patterns that have a rule. --strict exits 1 on findings.
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
try {
|
|
22
|
+
if (cmd === "install") {
|
|
23
|
+
const { dest, names } = install(root, { agent: flag("--agent"), dir: flag("--dir"), global: has("--global") });
|
|
24
|
+
console.log(`Installed ${names.length} skills into ${dest}`);
|
|
25
|
+
} else if (cmd === "scan") {
|
|
26
|
+
const target = args.find((a, i) => !a.startsWith("--") && args[i - 1] !== "--patterns") ?? ".";
|
|
27
|
+
const file = flag("--patterns") ?? join(root, "skills/skillflair/patterns.json");
|
|
28
|
+
const findings = scan(resolve(target), JSON.parse(readFileSync(file, "utf8")).patterns);
|
|
29
|
+
for (const f of findings) console.log(`${f.file}:${f.line} ${f.name} [${f.status}]\n instead: ${f.instead}`);
|
|
30
|
+
console.log(findings.length ? `\n${findings.length} finding(s).` : "No findings.");
|
|
31
|
+
if (findings.length && has("--strict")) process.exit(1);
|
|
32
|
+
} else {
|
|
33
|
+
console.log(HELP);
|
|
34
|
+
}
|
|
35
|
+
} catch (e) {
|
|
36
|
+
console.error(e.message);
|
|
37
|
+
process.exit(1);
|
|
38
|
+
}
|
package/cli/install.mjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { cpSync, existsSync, mkdirSync, readdirSync } from "node:fs";
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
|
|
5
|
+
const TARGETS = { claude: ".claude/skills", generic: ".agents/skills" };
|
|
6
|
+
|
|
7
|
+
/** Copy every bundled skill into an agent's skills folder. Returns the destination. */
|
|
8
|
+
export function install(packageRoot, { agent = "claude", dir, global = false } = {}) {
|
|
9
|
+
const sub = TARGETS[agent];
|
|
10
|
+
if (!dir && !sub) throw new Error(`Unknown agent "${agent}". Use claude, generic or --dir.`);
|
|
11
|
+
const dest = dir ?? join(global ? homedir() : process.cwd(), sub);
|
|
12
|
+
mkdirSync(dest, { recursive: true });
|
|
13
|
+
const src = join(packageRoot, "skills");
|
|
14
|
+
const names = readdirSync(src).filter((n) => existsSync(join(src, n, "SKILL.md")));
|
|
15
|
+
for (const n of names) cpSync(join(src, n), join(dest, n), { recursive: true });
|
|
16
|
+
return { dest, names };
|
|
17
|
+
}
|
package/cli/scan.mjs
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { readFileSync, readdirSync, statSync } from "node:fs";
|
|
2
|
+
import { extname, join, relative } from "node:path";
|
|
3
|
+
|
|
4
|
+
const SKIP = new Set(["node_modules", ".git", "dist", "build", ".next", "coverage"]);
|
|
5
|
+
|
|
6
|
+
function walk(dir, out = []) {
|
|
7
|
+
for (const name of readdirSync(dir)) {
|
|
8
|
+
if (SKIP.has(name)) continue;
|
|
9
|
+
const full = join(dir, name);
|
|
10
|
+
const st = statSync(full);
|
|
11
|
+
if (st.isDirectory()) walk(full, out);
|
|
12
|
+
else out.push(full);
|
|
13
|
+
}
|
|
14
|
+
return out;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** Scan a folder with every pattern that carries a rule. Returns a list of findings. */
|
|
18
|
+
export function scan(root, patterns) {
|
|
19
|
+
const rules = patterns
|
|
20
|
+
.filter((p) => p.rule && p.rule.kind === "regex")
|
|
21
|
+
.map((p) => ({ p, re: new RegExp(p.rule.pattern, p.rule.flags ?? "") }));
|
|
22
|
+
const findings = [];
|
|
23
|
+
const files = statSync(root).isDirectory() ? walk(root) : [root];
|
|
24
|
+
for (const file of files) {
|
|
25
|
+
const ext = extname(file).slice(1).toLowerCase();
|
|
26
|
+
const applicable = rules.filter((r) => r.p.rule.files.includes(ext));
|
|
27
|
+
if (!applicable.length) continue;
|
|
28
|
+
const lines = readFileSync(file, "utf8").split("\n");
|
|
29
|
+
lines.forEach((line, i) => {
|
|
30
|
+
for (const { p, re } of applicable) {
|
|
31
|
+
if (re.test(line)) {
|
|
32
|
+
findings.push({
|
|
33
|
+
file: relative(process.cwd(), file),
|
|
34
|
+
line: i + 1,
|
|
35
|
+
id: p.id,
|
|
36
|
+
name: p.name,
|
|
37
|
+
status: p.status,
|
|
38
|
+
instead: p.instead,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
return findings;
|
|
45
|
+
}
|