procedural-style
БесплатноБез исполняемых скриптовНе проверенAdd, change or tune a procedural background style (the Style choice under Background Kind "Procedural", for personal and company banners). Covers the style…
от nabondance★ 49 звёзд на GitHubОб этом скилле
Procedural Style
Every style lives in src/banner/procedural/, draws with plain Canvas 2D (no getImageData/putImageData, so it runs as-is on @napi-rs/canvas) and is seeded: the same profile always gets the same background.
Map
| File | Holds |
|---|---|
styles.js |
The list shown in both forms (id, name). No canvas imports: the client imports it |
index.js |
DRAWERS (id → draw function) and drawProceduralBackground, which sets the frame, resets the canvas state and falls back to Classic |
data.js |
ProceduralArt (what a style receives) and how it is built from Trailhead data: buildProceduralData (personal), buildCompanyProceduralData (team totals, most-held rank, team hash, limitScale from team size) |
canvas.js |
Frame (W, H), cap(), makeCalm() fade, makePlacer(), paintBase, vignette, glowDot, startStyle |
random.js / color.js |
Seeded random and simplex noise / rank palette (pal.c(hueOffset, s, l, a)), rgba, certification family colors |
<style>.js |
One file per style, with helpers only that style uses |
BANNER_SIZES (src/banner/bannerSizes.js) holds each banner type's size and fadeZones, the areas where the art fades so the logo, counters, top badge row and watermark stay readable. Company banners only pass them to Mountains (companyBanner.js): the other styles spread over the whole short canvas.
Style contract
export function drawExample(ctx, art) {
const { rng, noise, pal } = startStyle(art, 'example'); // the name keeps styles different for one profile
const calm = makeCalm(); // 1 = free space, lower = under banner content: multiply alphas by calm(x, y)
// ...draw on W × H; read only `art`, never Trailhead responses
vignette(ctx);
}
- Use
WandH, never 1584 or 396: the company banner is 1128 × 191. - Wrap every count driven by badges or superbadges in
cap(), e.g.Math.min(art.superbadges, cap(30)): limits shrink on smaller canvases and grow with team size (art.limitScale). - Certification families (
art.certs: product, count, color) are the colored highlights; keep them readable with 12+ families. - Draw in
rng()order: adding or moving anrng()call changes every later shape, so expect the samples to change. - Set your own
globalCompositeOperation/shadowBlur;vignette()resets them before darkening the edges.
Add a style
- Write
src/banner/procedural/<id>.jswithexport function draw<Name>(ctx, art) - Register it in
DRAWERS(index.js) andPROCEDURAL_STYLES(styles.js), same id - New data → add the field to
ProceduralArtand both builders indata.js; a new Trailhead query also goes insrc/utils/queryDependencyCalculator.js(proceduralStats) node scripts/agent/procedural-samples.mjsregenerates the form samples (public/assets/procedural/<id>.webp)
Check
- Render on varied profiles, not only one: low rank with few badges, a 70-certification profile, a team. With the dev server running, generate through
POST /api/banner/standardandPOST /api/banner/companywithbackgroundKind: 'procedural'andproceduralStyle: '<id>', and look at the images - Keep each render well under 200 ms on the server
- A changed style used by a gallery example →
bash scripts/agent/gallery-refresh.sh <id> bash scripts/agent/verify.sh
Установить procedural-style в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл procedural-style?
Add, change or tune a procedural background style (the Style choice under Background Kind "Procedural", for personal and company banners). Covers the style contract, the shared helpers in src/banner/procedural/, element limits, fade zones, registering a style, regenerating the form samples and checking renders on real profiles. Use when the user wants a new procedural background, or to change how an existing one looks or which Trailhead data drives it.
Как установить скилл procedural-style?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл procedural-style запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic