agentleFS
genspark-aigenspark-ai/genoffice/CLAUDE.md

genoffice

CLAUDE.md8.6k starsChanged 4 months agoApache-2.0View on GitHub

Guidance for AI agents and human contributors working in this repo. The suite supports light / dark / system UI themes. The switching mechanism is a data-theme attribute on <html> plus CSS custom properties defined once in packages/ui/src/tokens.css (light defaults in :root, overrides in [data-theme='dark'], and a prefers-color-scheme media-query fallback for system mode). 1. UI chrome colors must use semantic tokens. Never write raw #hex / rgb() in renderer CSS rules or chrome-related inline styles — reference var(--surface), var(--text), var(--hover),…

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 3 mentionsSep 2026: 15 mentionsOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the genspark-ai/genoffice repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about genspark-ai/genoffice

The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 21

Talked about on GitHub, Hacker News and Bluesky (21 times).

On GitHub · 17

12 more on GitHub
  • In this repositoryOne other file it gives its agents.

The file

We split this CLAUDE.md 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:

    UI chrome colors must use semantic tokens: Never write raw #hex / rgb() in renderer CSS rules or chrome-related inline styles — reference …

    line 13

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md

CLAUDE.md

Guidance for AI agents and human contributors working in this repo.

Theming rules (mandatory)

The suite supports light / dark / system UI themes. The switching mechanism is a data-theme attribute on <html> plus CSS custom properties defined once in packages/ui/src/tokens.css (light defaults in :root, overrides in [data-theme='dark'], and a prefers-color-scheme media-query fallback for system mode).

  1. UI chrome colors must use semantic tokens. Never write raw #hex / rgb() in renderer CSS rules or chrome-related inline styles — reference var(--surface), var(--text), var(--hover), etc. from packages/ui/src/tokens.css. Raw values are allowed only on custom-property definition lines (--x: #...; — token, accent, or app-scoped variable definitions). CI enforces this for new/changed renderer CSS lines (tools/check-theme-colors.mjs).
  2. Every new token gets both values. Adding a token means adding it to all three blocks in tokens.css (light, dark, system-dark fallback).
  3. Accent colors stay per-app. Each app defines --accent / --accent-dark / --accent-soft (and its dark-adjusted values) in its own styles.css. Shared rules reference var(--accent) and inherit the app's brand color.
  4. Document content is never re-authored by the theme. Page surfaces, cell fills, slide content, PDF page bitmaps, export/print stylesheets, chart palettes, highlight color maps, stamps, and WordArt presets are document data: they stay hardcoded, must not reference chrome tokens, and every save/export/print path must produce identical output in both themes. A Word/Excel-style dark page (Sheets via Univer's darkMode, Docs via apps/docs/src/renderer/editor/dark-page.ts) is a display-time remap only: the authored color stays the real declaration, the remapped twin lives in a screen-only --dk-* / .page-dark layer, and print/export never see it.
  5. Canvas-drawn UI affordances go through a constants table. Konva/canvas editing chrome (selection frames, guides, handles) reads from the app's canvas color table (e.g. canvas-colors.ts) keyed by the current theme — no inline hex in draw calls.

Build gotchas

  • App main-process code (apps/*/src/main) is compiled into the shell build. After changing it, rebuild the shell or the change silently does not run.
  • In dev mode, preload changes require a rebuild — a stale preload leaves the renderer blank.
  • Workspace packages listed in an app's dependencies must also be added to the externalizeDepsPlugin exclude list, or the packaged app crashes on launch.
  • useI18n()'s t is not referentially stable; never put it in a hook dependency array. Store the key and translate at render time.

UI strings (i18n)

  • Large dictionaries are sharded per locale: i18n/strings-<domain>.ts is a thin aggregator over i18n/<domain>/<lang>.ts (one file per language, zh defines the key set). Add a new key to zh.ts and to every sibling shard; the satisfies Record<keyof typeof zh, string> on each shard turns a missing or extra key into a type error. Never grow the aggregator back into a single 19-locale object.

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.