agentleFS
weg-9000weg-9000/Lime-design/skills/ds-tenant/SKILL.md

ds-tenant

Skill0 starsChanged 5 months agoMITView on GitHub

Provision or update a tenant brand override (methodology P5) — tenants override primitive leaves only, inherit semantic structure and a11y discipline, and are provisioned fail-closed (a BLOCK means no CSS is generated).

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Ask which primitives the tenant re-brands (typically the primary chain and fonts) and add ONLY those primitive leaves — never semantic …

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Multi-brand theming on one shared base. A tenant override swaps brand primitives (colors, fonts); because the semantic layer references primitives by name, one swapped primitive re-brands the whole theme through the reference chain — and the merged result is re-audited, so a tenant can never inherit its way past an accessibility failure.

Windows note: always python -X utf8 ….

Workflow

1 — Scaffold (new tenant)

Create tenants/{id}/design/override.tokens.json:

{
  "$meta": { "name": "{id}", "version": "0.1.0" },
  "primitive": {}
}

Ask which primitives the tenant re-brands (typically the primary chain and fonts) and add ONLY those primitive leaves — never semantic entries, never new token names (renames break the reference chain).

2 — Audit the merged result (mandatory, fail-closed)

python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_design.py --base DESIGN/design-tokens.json --tokens tenants/{id}/design/override.tokens.json --profile design.profile.yml --out reports --format both
  • Exit 2 (BLOCK): stop — do not generate CSS. Report the failing pairs with the engine's contrast numbers and propose nearest accessible shades.
  • Exit 0/1: proceed (list FIX findings if any).

3 — Generate tenant CSS

python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/gen_tokens.py --base DESIGN/design-tokens.json --src tenants/{id}/design/override.tokens.json --out tenants/{id}/design/tokens.css --profile design.profile.yml

4 — Report

Tenant id, overridden primitives, audit verdict, output path. Note that consumer apps load the tenant CSS in place of the base tokens.css.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.