agentleFS
edrlabedrlab/thorium-reader/.agents/skills/boundaries/SKILL.md

boundaries

Skill3k starsChanged 6 days agoBSD-3-ClauseView on GitHub

Learn about application runtime boundaries and codebase structure

2 other projects use a version of this.

Trending

Less talk lately.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 2 mentionsJun 2026: 3 mentionsJul 2026: 1 mentionAug 2026: 2 mentionsSep 2026: 1 mentionOct 2026: 2 mentionsNov 2026: 1 mentionDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the edrlab/thorium-reader repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about edrlab/thorium-reader

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

See all 39

Talked about on GitHub, Hacker News and Stack Overflow (39 times).

On GitHub · 36

31 more on GitHub

On Stack Overflow · 1

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. cpuboundeng/SexSkills★ 4same name
    2. lbdremy/phax★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository11 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When changing a boundary, update the relevant Webpack config and this file together.

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Runtime boundaries and codebase scopes

Thorium is split into separate Webpack/Electron runtime bundles. Treat each bundle as an isolated runtime island. Runtime code must not import source from another runtime directly. Shared contracts, types, actions, and utilities must be moved to a common/shared area first.

Type-only imports count as imports for this rule: if two runtimes need the same type, the type belongs in common code.

Runtimes

RuntimeEntry pointOwned sourceWebpack configOutput
Electron mainsrc/main.tssrc/main.ts, src/main/**webpack.config.main.jsdist/main.js
Library renderersrc/renderer/library/index_library.tssrc/renderer/library/**webpack.config.renderer-library.jsdist/index_library.js, dist/index_library.html
Reader renderersrc/renderer/reader/index_reader.tssrc/renderer/reader/**, except PDF webview files and PDF shared files listed belowwebpack.config.renderer-reader.jsdist/index_reader.js, dist/index_reader.html
PDF webview renderersrc/renderer/reader/pdf/webview/index_pdf.ts, src/renderer/reader/pdf/webview/index_pdf_extract.tssrc/renderer/reader/pdf/webview/**webpack.config.renderer-pdf.js, webpack.config.renderer-pdf-extract.jsdist/index_pdf.js, dist/index_pdf_extract.js
Webview preloadsrc/r2-xxx-js/r2-navigator-js/electron/renderer/webview/preload.tsThe preload entrypoint only; other src/r2-xxx-js/** files are vendored/shared dependency codewebpack.config.preload.jsdist/preload.js

Standalone Tooling

projects/customization-profile-cli/src/cli.ts is a separate Node.js CLI runtime, built with projects/customization-profile-cli/build.mjs. It must not import Electron runtimes, Thorium build-time constants, or development signing keys. Its bundle includes the shared manifest schema from src/common/readium/customization/profile.schema.ts; other Thorium runtime imports and unbundled npm dependencies are rejected by the build. Signing keys are supplied explicitly as PEM files at runtime.

projects/customization-profile-editor/src/editor.ts is a separate offline browser runtime, built with projects/customization-profile-editor/build.mjs into scripts/thorium-profile-editor.html. Its build embeds a validator generated from the shared manifest schema; the browser bundle must not import Thorium runtimes, Node.js modules, or signing keys. All JavaScript and CSS must be embedded, with no external dependencies or network requests.

Common And Shared Code

New Thorium-owned code used by more than one runtime should go in one of these common areas:

  • src/common/**: runtime-neutral app contracts, models, IPC definitions, Redux action/state types, and utilities that do not depend on DOM, React, or Electron renderer APIs.
  • src/renderer/common/**: renderer-only shared React, DOM, keyboard, hook, component, and Redux glue code.
  • src/utils/**: small generic helpers that stay runtime-safe.

Existing shared/support areas:

  • src/renderer/reader/pdf/common/** are PDF-specific shared code used by the reader-side PDF host and the PDF webview.
  • src/r2-xxx-js/** and src/third_party/** are vendored/support dependency code. Do not add Thorium runtime glue there just to bypass runtime boundaries.
  • src/resources/**, src/typings/**, and asset/style imports may be shared where the relevant Webpack config allows them.

Import Rules

  • src/main.ts and src/main/** may import src/common/**, src/utils/**, and vendored/support dependencies. They must not import src/renderer/**.
  • src/renderer/library/** may import library-owned files, src/common/**, src/renderer/common/**, src/utils/**, assets/styles/resources, and vendored/support dependencies. It must not import src/renderer/reader/** or src/main/**.
  • src/renderer/reader/** may import reader-owned files, src/common/**, src/renderer/common/**, src/utils/**, assets/styles/resources, and vendored/support dependencies. It must not import src/renderer/library/**, src/main/**, or src/renderer/reader/pdf/webview/**.
  • src/renderer/reader/pdf/webview/** may import PDF webview-owned files, PDF-specific shared files, and vendored/support dependencies. Keep it independent from app renderer React components, app renderer Redux code, src/main/**, and general Thorium common modules unless the Webpack scope rules are intentionally changed.
  • src/r2-xxx-js/r2-navigator-js/electron/renderer/webview/preload.ts must stay isolated from Thorium app runtimes. It should not import src/main/**, src/renderer/library/**, reader React/Redux modules, or Thorium common/resources/typings unless the preload Webpack scope rules are intentionally changed.

Verification Notes

The current runtime separation is enforced during Webpack builds by scripts/webpack-loader-scope-checker.js:

  • webpack.config.main.js forbids src/renderer.
  • webpack.config.renderer-library.js forbids src/renderer/reader and src/main.
  • webpack.config.renderer-reader.js forbids src/renderer/library, src/main, and src/renderer/reader/pdf/webview.
  • webpack.config.renderer-pdf.js, webpack.config.renderer-pdf-extract.js, and webpack.config.preload.js apply stricter webview/preload isolation rules.

When changing a boundary, update the relevant Webpack config and this file together. After touching imports across runtime-adjacent code, run the relevant Webpack config so the scope checker can catch direct runtime-to-runtime imports.

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.