mirror of
https://github.com/rohitg00/skillkit.git
synced 2026-11-19 02:13:58 +00:00
chore: bump to 1.23.0, rewrite README, drop dead LLM SDK deps, add branded tags
Version bump ------------ 1.22.1 -> 1.23.0 across all workspace packages. Minor bump covers the slim-install dependency layout, safer first-time agent picker, and the corresponding doc + branding changes. Prune dead optional deps in @skillkit/core ------------------------------------------ @anthropic-ai/sdk, @google/genai, ollama, and openai were listed as optionalDependencies but never imported. They were pulled through @skillkit/cli transitively on every default install, adding ~57 packages and one deprecation warning (node-domexception via the SDKs' own formdata-node / node-fetch transitives). Grep of packages/core/src confirms no SDK import; providers in src/ai/providers use direct fetch() against the provider HTTP APIs. Drop them. better-sqlite3, sqlite-vec, and node-llama-cpp stay because they are actually dynamic-imported by the vector store and embedding pipeline. Measured on a fresh npm cache (overrides-pinned file: tarballs): before: 475 pkgs / 18s / 3 deprecation warnings 1.23.0: 418 pkgs / 18s / 2 deprecation warnings slim: 118 pkgs / 9s / 0 deprecation warnings The two remaining warnings are upstream: - prebuild-install@7.1.3 from better-sqlite3 (must stay) - glob@9.3.5 from @opentui/solid -> babel-plugin-module-resolver README rewrite -------------- Punchier top fold. Palette-consistent SVG tag badges under assets/tags/ replace most shields.io badges (still keep npm/CI/etc on shields since they need live data). Collapsible detail blocks for every feature instead of the linear wall. Same nav anchors the site uses. No em dashes. No AI filler words. Writing style pulls from the ai-engineering-from-scratch and awesome-claude-design READMEs the user already runs. Branded SVG tags ---------------- scripts/gen-tags.mjs generates 20 SVG pills under assets/tags/ in the SkillKit palette (#09090b base, #fafafa text, #3f3f46 border, accent per tag). Two variants: single pill with left accent bar (new, slim-install, v1.23.0, etc.) and split badge (agents | 45, packages | 118, install | 9s). Matches the aesthetic used on awesome-claude-design, tailored to SkillKit's monochrome brand. The tags directory is fork-and-remix friendly; README points to it.
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
#!/usr/bin/env node
|
||||
import { writeFileSync, mkdirSync } from 'node:fs';
|
||||
import { resolve, dirname } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
const root = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
||||
const outDir = resolve(root, 'assets/tags');
|
||||
mkdirSync(outDir, { recursive: true });
|
||||
|
||||
const FONT = 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';
|
||||
const PAD_X = 14;
|
||||
const H = 28;
|
||||
const R = 4;
|
||||
|
||||
const CHAR_W = 7.2;
|
||||
const BADGE_CHAR_W = 7.0;
|
||||
|
||||
function pill({ text, fg = '#fafafa', bg = '#09090b', stroke = '#3f3f46', accent }) {
|
||||
const w = Math.round(text.length * CHAR_W + PAD_X * 2);
|
||||
const accentBar = accent
|
||||
? `<rect x="0" y="0" width="4" height="${H}" fill="${accent}"/>`
|
||||
: '';
|
||||
return `<svg xmlns="http://www.w3.org/2000/svg" width="${w}" height="${H}" viewBox="0 0 ${w} ${H}" role="img">
|
||||
<rect x="0.5" y="0.5" width="${w - 1}" height="${H - 1}" rx="${R}" ry="${R}" fill="${bg}" stroke="${stroke}"/>
|
||||
${accentBar}
|
||||
<text x="${accent ? PAD_X + 4 : w / 2}" y="18" text-anchor="${accent ? 'start' : 'middle'}" font-family="${FONT}" font-size="12" font-weight="600" fill="${fg}" letter-spacing="0.3">${text}</text>
|
||||
</svg>`;
|
||||
}
|
||||
|
||||
function splitPill({ label, value, labelBg = '#18181b', valueBg = '#09090b', labelFg = '#a1a1aa', valueFg = '#fafafa', stroke = '#3f3f46' }) {
|
||||
const lw = Math.round(label.length * BADGE_CHAR_W + PAD_X);
|
||||
const vw = Math.round(value.length * BADGE_CHAR_W + PAD_X);
|
||||
const w = lw + vw;
|
||||
return `<svg xmlns="http://www.w3.org/2000/svg" width="${w}" height="${H}" viewBox="0 0 ${w} ${H}" role="img">
|
||||
<clipPath id="c"><rect width="${w}" height="${H}" rx="${R}" ry="${R}"/></clipPath>
|
||||
<g clip-path="url(#c)">
|
||||
<rect width="${lw}" height="${H}" fill="${labelBg}"/>
|
||||
<rect x="${lw}" width="${vw}" height="${H}" fill="${valueBg}"/>
|
||||
<rect x="0.5" y="0.5" width="${w - 1}" height="${H - 1}" fill="none" stroke="${stroke}" rx="${R}" ry="${R}"/>
|
||||
<text x="${lw / 2}" y="18" text-anchor="middle" font-family="${FONT}" font-size="12" font-weight="500" fill="${labelFg}" letter-spacing="0.3">${label}</text>
|
||||
<text x="${lw + vw / 2}" y="18" text-anchor="middle" font-family="${FONT}" font-size="12" font-weight="700" fill="${valueFg}" letter-spacing="0.3">${value}</text>
|
||||
</g>
|
||||
</svg>`;
|
||||
}
|
||||
|
||||
const tags = [
|
||||
{ name: 'slim-install.svg', svg: pill({ text: 'slim install', accent: '#3b82f6' }) },
|
||||
{ name: 'new.svg', svg: pill({ text: 'new', accent: '#22c55e' }) },
|
||||
{ name: 'v1.23.0.svg', svg: pill({ text: 'v1.23.0', accent: '#3b82f6' }) },
|
||||
{ name: 'official.svg', svg: pill({ text: 'official', accent: '#f59e0b' }) },
|
||||
{ name: 'community.svg', svg: pill({ text: 'community', accent: '#a78bfa' }) },
|
||||
{ name: 'curated.svg', svg: pill({ text: 'curated', accent: '#06b6d4' }) },
|
||||
{ name: 'open-source.svg', svg: pill({ text: 'open source', accent: '#f472b6' }) },
|
||||
{ name: 'prs-welcome.svg', svg: pill({ text: 'PRs welcome', accent: '#22c55e' }) },
|
||||
{ name: 'one-skill.svg', svg: pill({ text: 'one skill', accent: '#3b82f6' }) },
|
||||
{ name: 'every-agent.svg', svg: pill({ text: 'every agent', accent: '#3b82f6' }) },
|
||||
|
||||
{ name: 'agents.svg', svg: splitPill({ label: 'agents', value: '45' }) },
|
||||
{ name: 'skills.svg', svg: splitPill({ label: 'skills', value: '400K+' }) },
|
||||
{ name: 'sources.svg', svg: splitPill({ label: 'sources', value: '31' }) },
|
||||
{ name: 'tests.svg', svg: splitPill({ label: 'tests', value: '757' }) },
|
||||
{ name: 'install.svg', svg: splitPill({ label: 'install', value: '9s', valueBg: '#22c55e', valueFg: '#000' }) },
|
||||
{ name: 'packages.svg', svg: splitPill({ label: 'packages', value: '118', valueBg: '#3b82f6', valueFg: '#fff' }) },
|
||||
{ name: 'deprecations.svg', svg: splitPill({ label: 'deprecations', value: '0', valueBg: '#22c55e', valueFg: '#000' }) },
|
||||
{ name: 'vulns.svg', svg: splitPill({ label: 'vulns', value: '0', valueBg: '#22c55e', valueFg: '#000' }) },
|
||||
{ name: 'license.svg', svg: splitPill({ label: 'license', value: 'Apache-2.0' }) },
|
||||
{ name: 'node.svg', svg: splitPill({ label: 'node', value: '>=18' }) },
|
||||
];
|
||||
|
||||
for (const { name, svg } of tags) {
|
||||
writeFileSync(resolve(outDir, name), svg);
|
||||
console.log(`wrote assets/tags/${name}`);
|
||||
}
|
||||
Reference in New Issue
Block a user