agentleFS
MicrosoftKnown publishermicrosoft/Sico/frontend/packages/shared/CLAUDE.md

Sico / shared

CLAUDE.md273 starsChanged 6 months agoMITView on GitHub

Cross-app code that's not pure UI — hooks, atoms, services, schemas, composer components, and full feature implementations. DWP (superset app) consumes features from here directly. npm run dev (Storybook :6007) / lint / test / build-storybook. Depends on: @sico/config (dev), @sico/ui · Depended on by: @sico/app.

The file

Files
CLAUDE.md

@sico/shared — CLAUDE.md

Cross-app code that's not pure UI — hooks, atoms, services, schemas, composer components, and full feature implementations. DWP (superset app) consumes features from here directly.

Commands

npm run dev (Storybook :6007) / lint / test / build-storybook.

Structure

packages/shared/
├── src/
│   ├── features/                 Business features — one dir per feature; mirrors the top-level by-kind layout below (`components/ hooks/ atoms/ services/ schemas/ utils/ constants/`) + an `index.ts` barrel as the only public entry
│   ├── components/
│   │   ├── auth/                 auth-gate
│   │   ├── error-boundary/       error-fallback (+chrome, inner, outer)
│   │   └── shell/                app-shell, login-layout
│   ├── atoms/                    Jotai atoms (auth, …)
│   ├── hooks/                    React hooks
│   ├── services/                 axios, query-client, synthesize-error
│   ├── schemas/                  zod schemas (api, auth)
│   ├── utils/                    pure helpers (logger, local-storage, …)
│   ├── constants/                shared constants
│   ├── testing/                  test helpers (consumed by app + shared tests)
│   └── index.ts                  Package entry (barrel)
├── stories/                      Composer stories (visible UI only)
├── test/                         Mirrors src/ structure
├── vite.config.ts                Storybook + Vitest only (no build)
├── vitest.config.ts              Extends `@sico/config/vitest.config.base.ts`
├── tsconfig.json                 Extends `@sico/config/tsconfig.react.json`
└── eslint.config.cjs             Extends base (minimal)

Conventions

  • Not pure UI. UI primitives live in @sico/ui; this package is for composers and business logic that touch app state/services.
  • Storybook is optional. Composers that ship visible UI (e.g. <ErrorFallback>, <MessageState>) must ship a .stories.tsx so reviewers can audit states without booting the app. Pure logic modules (atoms, hooks, services, utils, schemas) do not need stories.
  • Promotion rule. A feature-local module inside features/{name}/ that picks up a 2nd consumer moves to the matching top-level by-kind dir (cross-feature primitive) + gets re-exported from src/index.ts.

Dependencies

Depends on: @sico/config (dev), @sico/ui · Depended on by: @sico/app.

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.