agentleFS
javierbreajavierbrea/eslint-plugin-boundaries/.agents/skills/repo-architecture/SKILL.md

repo-architecture

Skill1k starsChanged 11 days agoMITView on GitHub

Cross-cutting architecture reference for the eslint-plugin-boundaries monorepo — the dependency graph between packages and the Nx target graph. Load before designing or reviewing anything that spans more than one project.

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Run pnpm nx graph to see the live dependency graph rather than trusting this table if it's unclear whether it's stale.

    line 32
  2. Very specific:

    Only eslint-plugin and eslint-plugin-e2e make lint depend on their own build.

    line 38

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

eslint-plugin-boundaries repository architecture

This is a pnpm + Nx monorepo publishing @boundaries/elements, @boundaries/eslint-plugin, and the jsboundaries.dev documentation website. Its architecture is defined by each project's AGENTS.md plus this cross-cutting reference, not by convention alone.

Where the rules live

The map of where each kind of rule lives is in the root AGENTS.md; read the AGENTS.md of the project you touch. eslint-plugin and website lint-enforce their own layering (their eslint.config.mjs, ground truth over prose); elements' layering is described in its AGENTS.md.

Component map

DirectoryNx projectPublishesRole
packages/elementselements@boundaries/elementsElement descriptors and matchers — the classification engine eslint-plugin builds rules on
packages/eslint-plugineslint-plugin@boundaries/eslint-pluginThe ESLint plugin itself: rules, settings parsing, messages
packages/websitewebsite(deployed, not published)Docusaurus site for jsboundaries.dev; versioning in its AGENTS.md
examples/typescriptexample-typescript(not published)Minimal TypeScript project consuming the plugin, built against current source
examples/oxlint-integrationexample-oxlint-integration(not published)Demonstrates pairing the plugin with Oxlint
support/eslint-configeslint-config@boundaries/repo-eslint-configShared ESLint flat config every project's eslint.config.* composes
support/cspell-configcspell-config@boundaries/repo-cspell-configShared cspell config every project's cspell.config.* composes
test/eslint-plugin-e2eeslint-plugin-e2e(not published)Plain-Node end-to-end suite against the built plugin

Dependency graph and direction

  • elements has no in-repo dependencies. eslint-plugin depends on it for classification. eslint-plugin-e2e, both examples/* and website depend on the built eslint-plugin (via Nx's dependsOn: ["build"] / ["^build"] and a workspace: dependency, never a published version).
  • support/eslint-config and support/cspell-config are depended on by every project via implicitDependencies in each project.json, and via each project's own lint/check:spell target depending on that support package's eslint:config/cspell:config target.
  • website is downstream of eslint-plugin conceptually (it documents the plugin's current API and versions its docs alongside plugin releases) and lints its own src/ with it, so its lint builds eslint-plugin first — keep packages/website/docs/rules/ in sync with eslint-plugin changes manually.
  • Run pnpm nx graph to see the live dependency graph rather than trusting this table if it's unclear whether it's stale.

Nx target graph

The standardized target names are listed in the root AGENTS.md ("Commands"). They get common defaults from nx.json's targetDefaults and are overridden per-project in project.json only where a project's needs diverge; .agents/rules/nx-project-config.md covers that override mechanism and why it matters for caching.

Only eslint-plugin and eslint-plugin-e2e make lint depend on their own build; each project's AGENTS.md says why.

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.