@ethlete/agent-rules 0.1.0-next.11 → 0.1.0-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +27 -25
  3. package/content/hooks/context-warning.py +25 -6
  4. package/content/rules/lint-and-format.md +5 -4
  5. package/content/rules/reactive-state.md +1 -1
  6. package/content/rules/styling.md +8 -6
  7. package/content/skills/angular-patterns/SKILL.md +6 -6
  8. package/content/skills/api-source/SKILL.md +33 -21
  9. package/content/skills/figma-export/SKILL.md +16 -18
  10. package/content/skills/git-flow/SKILL.md +2 -2
  11. package/content/skills/handoff/SKILL.md +4 -4
  12. package/content/skills/query/SKILL.md +23 -12
  13. package/content/skills/rxjs-signals/SKILL.md +9 -3
  14. package/content/skills/sdk-docs/SKILL.md +6 -5
  15. package/content/skills/sdk-local-build/SKILL.md +26 -8
  16. package/content/skills/sdk-local-build/sdk-local-baseline.mjs +64 -0
  17. package/content/skills/sdk-source/SKILL.md +36 -33
  18. package/content/skills/story-styling/SKILL.md +3 -2
  19. package/content/skills/styleguide/SKILL.md +11 -6
  20. package/content/skills/styleguide/assets.md +54 -0
  21. package/content/skills/styleguide/changesets.md +17 -0
  22. package/content/skills/styleguide/file-structure.md +73 -0
  23. package/content/skills/styleguide/lint-rule-lookup.md +50 -0
  24. package/content/skills/styleguide/storybook-structure.md +25 -0
  25. package/content/skills/theming/SKILL.md +11 -11
  26. package/content/skills/timetrack/SKILL.md +1 -1
  27. package/package.json +1 -1
  28. package/src/lib/config.d.ts +13 -7
  29. package/src/lib/config.js +14 -9
  30. package/src/lib/config.js.map +1 -1
  31. package/src/lib/plan.d.ts +6 -5
  32. package/src/lib/plan.js +66 -59
  33. package/src/lib/plan.js.map +1 -1
  34. package/src/lib/sync.js +1 -4
  35. package/src/lib/sync.js.map +1 -1
  36. package/src/lib/targets/agents-skills.js +1 -1
  37. package/src/lib/targets/agents-skills.js.map +1 -1
  38. package/src/lib/targets/claude.js +0 -1
  39. package/src/lib/targets/claude.js.map +1 -1
  40. package/src/lib/targets/codex.js +2 -2
  41. package/src/lib/targets/codex.js.map +1 -1
  42. package/src/lib/targets/copilot.js +1 -1
  43. package/src/lib/targets/copilot.js.map +1 -1
  44. package/src/lib/targets/cursor.js +1 -1
  45. package/src/lib/targets/cursor.js.map +1 -1
  46. package/src/lib/targets/shared.d.ts +1 -8
  47. package/src/lib/targets/shared.js +2 -7
  48. package/src/lib/targets/shared.js.map +1 -1
  49. package/content/skills/styleguide/STYLEGUIDE.md +0 -520
@@ -0,0 +1,64 @@
1
+ import { copyFileSync, existsSync, mkdirSync, readFileSync } from 'node:fs';
2
+ import { fileURLToPath } from 'node:url';
3
+ import { join, resolve } from 'node:path';
4
+
5
+ const baselinePaths = (baselineDir) => ({
6
+ manifest: join(baselineDir, 'package.json.baseline'),
7
+ lockfile: join(baselineDir, 'yarn.lock.baseline'),
8
+ });
9
+
10
+ export const captureBaseline = (manifestPath, lockfilePath, baselineDir) => {
11
+ const baseline = baselinePaths(baselineDir);
12
+
13
+ mkdirSync(baselineDir, { recursive: true });
14
+
15
+ if (existsSync(baseline.manifest) || existsSync(baseline.lockfile)) {
16
+ throw new Error(`Baseline already exists in ${baselineDir}.`);
17
+ }
18
+
19
+ copyFileSync(manifestPath, baseline.manifest);
20
+ copyFileSync(lockfilePath, baseline.lockfile);
21
+ };
22
+
23
+ export const restoreBaseline = (manifestPath, lockfilePath, baselineDir) => {
24
+ const baseline = baselinePaths(baselineDir);
25
+
26
+ copyFileSync(baseline.manifest, manifestPath);
27
+ copyFileSync(baseline.lockfile, lockfilePath);
28
+ };
29
+
30
+ export const verifyBaseline = (manifestPath, lockfilePath, baselineDir) => {
31
+ const baseline = baselinePaths(baselineDir);
32
+
33
+ for (const [current, recorded] of [
34
+ [manifestPath, baseline.manifest],
35
+ [lockfilePath, baseline.lockfile],
36
+ ]) {
37
+ if (!readFileSync(current).equals(readFileSync(recorded))) {
38
+ throw new Error(`${current} does not match its recorded baseline.`);
39
+ }
40
+ }
41
+ };
42
+
43
+ const run = () => {
44
+ const [mode, manifestPath, lockfilePath, baselineDir] = process.argv.slice(2);
45
+
46
+ if (!mode || !manifestPath || !lockfilePath || !baselineDir) {
47
+ throw new Error('Usage: sdk-local-baseline.mjs <capture|restore|verify> <manifest> <lockfile> <baseline-dir>');
48
+ }
49
+
50
+ const actions = {
51
+ capture: captureBaseline,
52
+ restore: restoreBaseline,
53
+ verify: verifyBaseline,
54
+ };
55
+ const action = actions[mode];
56
+
57
+ if (!action) throw new Error(`Unknown mode "${mode}".`);
58
+
59
+ action(manifestPath, lockfilePath, baselineDir);
60
+ };
61
+
62
+ if (process.argv[1] && fileURLToPath(import.meta.url) === resolve(process.argv[1])) {
63
+ run();
64
+ }
@@ -21,7 +21,7 @@ first. Reach for the source when the docs genuinely cannot answer the question:
21
21
 
22
22
  ## 1. Resolve the checkout
23
23
 
24
- The path is per machine, so it lives in the gitignored `ethlete-agents.config.local.json`
24
+ The path is per machine, so it lives in the gitignored `ethlete.config.local.json`
25
25
  at the repo root:
26
26
 
27
27
  ```json
@@ -30,6 +30,9 @@ at the repo root:
30
30
  }
31
31
  ```
32
32
 
33
+ Older checkouts still keep this key in `ethlete-agents.config.local.json`. Read that file as a
34
+ fallback when `ethlete.config.local.json` is absent.
35
+
33
36
  Read that file before searching anywhere. A relative path is resolved from the repo root.
34
37
 
35
38
  If the file or the key is missing, **do not guess a path** and do not clone the
@@ -38,48 +41,48 @@ holds the full `.d.ts` surface of exactly the version this repo runs - and to
38
41
  {%docsBaseUrl%}. Then tell the user a local checkout would help, and offer the snippet
39
42
  above (the file is gitignored, so adding it changes nothing for anyone else).
40
43
 
41
- ## 2. Check the branch before you read anything
44
+ ## 2. Match evidence to the installed package
42
45
 
43
- A checkout sits on whatever branch the developer left it on, so the first command you
44
- run against it is the one that tells you what you are looking at:
46
+ Start with this routing:
45
47
 
46
- ```bash
47
- git -C <sdkSourcePath> fetch --quiet # read-only, safe
48
- git -C <sdkSourcePath> status -sb # branch, ahead/behind, dirty files
49
- ```
48
+ - Installed `.d.ts` files are authoritative for the public type surface available to
49
+ this consumer.
50
+ - Source matching the installed build is authoritative for runtime implementation
51
+ details.
52
+ - Docs explain intended usage and defaults, but can drift from a prerelease.
53
+ - A dirty or ahead `next` checkout is not automatically source for the installed build.
50
54
 
51
- **Unless the user says otherwise, the expected state is `next`, up to date with
52
- `origin/next`.** That is the branch the SDK develops on, and the one the `-next`
53
- prereleases are cut from. Anything else and you are reading a different SDK than the
54
- one you are about to describe.
55
+ Compare the installed package version with the checkout version before attributing
56
+ runtime behavior to the checkout:
55
57
 
56
- When it is not in that state, **say so and ask** - never switch, pull, stash or reset
57
- it yourself. It is someone's working tree, and the read-only rule below applies:
58
+ ```bash
59
+ grep '"@ethlete/' package.json
60
+ grep -m1 '"version"' <sdkSourcePath>/libs/<lib>/package.json
61
+ ```
58
62
 
59
- - **On another branch** - name it and ask whether to read it as-is or whether they want
60
- `next`. A feature branch may be exactly what you were sent to look at.
61
- - **Behind `origin/next`** - report how far. The code you would quote may already be
62
- fixed upstream, so read the missing commits before calling anything a bug:
63
- `git -C <sdkSourcePath> log --oneline HEAD..origin/next`.
64
- - **Dirty** - it may contain someone's work in progress. Say so rather than quoting it
65
- as SDK behaviour.
63
+ Matching version strings are necessary but not sufficient when the checkout is ahead of
64
+ the published commit. Never write consumer code against source that the installed types
65
+ do not expose.
66
66
 
67
- ## 3. Check the checkout matches what is installed
67
+ ## 3. Check only the paths that answer the question
68
68
 
69
- Even on a clean `next`, the checkout can be months of work ahead of the installed
70
- package - or behind it:
69
+ Resolve the implementation, public barrel, specs, and docs relevant to the question.
70
+ Then inspect state for those paths:
71
71
 
72
72
  ```bash
73
- grep '"@ethlete/' package.json # what this repo runs
74
- grep -m1 '"version"' <sdkSourcePath>/libs/<lib>/package.json # what the checkout is at
73
+ git -C <sdkSourcePath> status -sb
74
+ git -C <sdkSourcePath> status --short -- <relevant-paths>
75
+ git -C <sdkSourcePath> diff -- <relevant-paths>
75
76
  ```
76
77
 
77
- Rules when they differ:
78
+ Unrelated dirty files, another branch, or unrelated ahead commits do not block a source
79
+ lookup. If relevant paths are dirty or differ in the relevant commit range, label the
80
+ worktree behavior separately from published behavior. Ask only when that distinction
81
+ changes the answer.
78
82
 
79
- - **The installed package wins** for anything about how this repo behaves today. The
80
- `.d.ts` in `node_modules` is the truth about the API you are calling.
81
- - Source that is ahead describes an **unreleased** API. Never write consumer code
82
- against it, and never assume it is available - say what release it needs.
83
+ Use existing remote refs first. `git fetch` preserves worktree files but uses the network
84
+ and mutates remote refs. Fetch only when freshness is material, and request any approval
85
+ the environment requires. Never switch, pull, stash, or reset the checkout yourself.
83
86
 
84
87
  ## 4. Where things live
85
88
 
@@ -118,8 +121,8 @@ implementation does.
118
121
 
119
122
  It is a different repository with its own branch, lint, docs and changeset workflow.
120
123
  Never edit it while working on a task in this repo - that covers its git state too, so
121
- no `checkout`, `pull`, `stash` or `reset` without the user asking for it (`fetch` is
122
- fine). Never copy its internals into consumer code either - a private helper is not a
124
+ no `checkout`, `pull`, `stash` or `reset` without the user asking for it. Never copy its
125
+ internals into consumer code either - a private helper is not a
123
126
  supported API and disappears without a major version (the same goes for anything under
124
127
  a `subtle` namespace).
125
128
 
@@ -62,7 +62,7 @@ paints must come from those tokens - the same rule as component CSS
62
62
 
63
63
  - A tinted panel: put `etAutoSurface` on it (next elevation up) and read the token:
64
64
  `style="background: var(--et-surface-background-solid)"`.
65
- - An accent: scope it with `[etProvideColor]="'brand'"` and read
65
+ - An accent: scope it with `[etProvideColor]="storyAccentTheme"` and read
66
66
  `--et-theme-color-primary-solid` / `--et-theme-color-ink-solid`. Theme names are
67
67
  whatever **your app** registers - fine to name in a story, never in library code.
68
68
  - Better still: don't hand-paint. Compose the component that already does it
@@ -80,4 +80,5 @@ paints must come from those tokens - the same rule as component CSS
80
80
  - Text sizes from your theme's scale, not Tailwind's default `text-sm`/`text-xs`.
81
81
  - No `dark:` variants.
82
82
  - Width/height that matters is px, not the rem container scale.
83
- - Then verify it actually renders - {%skill:verify-in-storybook%}.
83
+ - Then verify it actually renders with the repository's installed Storybook verification
84
+ workflow, or inspect the story directly when no such guide was emitted.
@@ -18,14 +18,19 @@ ship auto-fixers, so most violations are corrected for you:
18
18
  {%lintCommand%} # then re-run to see what needs a manual fix
19
19
  ```
20
20
 
21
- Full prose reference, including the rule → lint-rule table and the worked
22
- file-structure example: {%resource:STYLEGUIDE.md%}.
21
+ Load only the reference needed for the current question:
23
22
 
24
- ## Focused guides
23
+ - {%resource:lint-rule-lookup.md%} when a lint fix or diagnostic needs explanation.
24
+ - {%resource:file-structure.md%} when placing routes, views, reusable components,
25
+ providers, or local utilities.
26
+ - {%resource:assets.md%} when deciding where build, serve, shared, or Storybook assets
27
+ belong.
28
+ - {%resource:storybook-structure.md%} when placing a story file or its private helpers.
29
+ - {%resource:changesets.md%} when deciding whether an application or library change
30
+ needs a release note and no repository-specific release skill exists.
25
31
 
26
- - {%skill:rxjs-signals%} - synchronous state vs async, subscriptions, effects.
27
- - {%skill:angular-patterns%} - components, directives, services, pipes, templates,
28
- lifecycle.
32
+ For reactive state or Angular building blocks, load the corresponding focused repository
33
+ guide if one was emitted. This entry point does not duplicate those guides.
29
34
 
30
35
  The rest of this guide is the cross-cutting judgment that doesn't belong to one
31
36
  of those.
@@ -0,0 +1,54 @@
1
+ # Assets
2
+
3
+ Read this file when deciding whether an asset belongs to production, local serve, a
4
+ specific app, Storybook, or shared output.
5
+
6
+ Keep assets in the workspace assets library and separate them by consumer and purpose:
7
+
8
+ ```plaintext
9
+ assets/
10
+ ├── my-app/
11
+ │ ├── build/
12
+ │ ├── serve/
13
+ │ └── storybook/
14
+ ├── other-app/
15
+ │ ├── build/
16
+ │ ├── serve/
17
+ │ └── storybook/
18
+ └── shared/
19
+ ├── build/
20
+ ├── serve/
21
+ └── storybook/
22
+ ```
23
+
24
+ - `build/` contains production assets.
25
+ - `serve/` contains development-only placeholders or fixtures.
26
+ - `storybook/` contains assets used only by stories.
27
+ - `shared/` contains assets genuinely used by more than one app.
28
+ - Preserve the intended public URL through the project's `assets` configuration. Do not
29
+ expose a `build` directory segment in the final URL.
30
+
31
+ ```json
32
+ {
33
+ "assets": [
34
+ {
35
+ "input": "libs/assets/src/my-app/build",
36
+ "glob": "**/*",
37
+ "output": "assets"
38
+ },
39
+ {
40
+ "input": "libs/assets/src/my-app/serve",
41
+ "glob": "**/*",
42
+ "output": "assets/serve"
43
+ },
44
+ {
45
+ "input": "libs/assets/src/shared/build",
46
+ "glob": "**/*",
47
+ "output": "assets/shared"
48
+ }
49
+ ]
50
+ }
51
+ ```
52
+
53
+ Add only build assets to a production configuration. Add serve and Storybook assets
54
+ only to the configurations that need them.
@@ -0,0 +1,17 @@
1
+ # Changesets
2
+
3
+ Read this fallback only when the repository has no more specific release workflow.
4
+
5
+ - Add a changeset for a consumer-visible change to a published package.
6
+ - Do not add one for formatting, comments, tests, or an internal refactor with no
7
+ consumer-visible effect.
8
+ - Use `patch` for fixes, `minor` for backward-compatible API additions, and `major` for
9
+ breaking API or behavior changes.
10
+ - Keep one logical release note focused. Split unrelated changes.
11
+ - Write the note for the package consumer: state what they now get, not how the change
12
+ was implemented.
13
+ - Keep the note to one sentence, two at most, under 40 words.
14
+ - Do not run an interactive changeset command in a non-interactive agent environment;
15
+ write the repository's changeset file format directly.
16
+
17
+ When a repository supplies its own release skill or policy, that local guidance wins.
@@ -0,0 +1,73 @@
1
+ # File structure
2
+
3
+ Read this file when placing routes, views, components, providers, or local utilities.
4
+
5
+ Mirror the route tree in folders and suffix routing components with `-view`:
6
+
7
+ ```ts
8
+ import { Routes } from '@angular/router';
9
+
10
+ export const SHOP_ROUTES: Routes = [
11
+ {
12
+ path: 'items',
13
+ loadComponent: () =>
14
+ import('./items-list-view/items-list-view.component').then((module) => module.ItemsListViewComponent),
15
+ },
16
+ {
17
+ path: 'items/:id',
18
+ loadComponent: () =>
19
+ import('./item-detail-host-view/item-detail-host-view.component').then(
20
+ (module) => module.ItemDetailHostViewComponent,
21
+ ),
22
+ children: [
23
+ {
24
+ path: '',
25
+ loadComponent: () =>
26
+ import('./item-detail-host-view/item-detail-view/item-detail-view.component').then(
27
+ (module) => module.ItemDetailViewComponent,
28
+ ),
29
+ },
30
+ {
31
+ path: 'reviews',
32
+ loadComponent: () =>
33
+ import('./item-detail-host-view/item-reviews-view/item-reviews-view.component').then(
34
+ (module) => module.ItemReviewsViewComponent,
35
+ ),
36
+ },
37
+ ],
38
+ },
39
+ ];
40
+ ```
41
+
42
+ Use these placement rules:
43
+
44
+ - Put reusable view-level pieces in `components/`.
45
+ - Put children used only by one parent in that parent's `partials/`.
46
+ - Put generic presentation-only pieces in `uikit/`.
47
+ - Put application-shell pieces in `shell/`.
48
+ - Keep a directive, pipe, provider, form configuration, or utility beside its narrowest
49
+ consumer. Move it upward only when more consumers appear.
50
+ - Use simple utility names such as `items-list-filter-form.ts`, not `.utils.ts`.
51
+ - Give exportable folders an `index.ts`, but import source files directly. Do not import
52
+ a parent barrel from its subdirectory.
53
+ - Keep application projects thin; move shared or domain logic into buildable libraries
54
+ with clear import paths.
55
+
56
+ ```plaintext
57
+ shop/
58
+ ├── items-list-view/
59
+ │ ├── components/
60
+ │ │ └── item-card/
61
+ │ │ ├── partials/
62
+ │ │ │ ├── item-image/
63
+ │ │ │ └── item-price/
64
+ │ │ ├── item-card.component.ts
65
+ │ │ └── item-card.component.html
66
+ │ ├── items-list-filter-form.ts
67
+ │ └── items-list-view.component.ts
68
+ └── item-detail-host-view/
69
+ ├── item-detail-view/
70
+ ├── item-reviews-view/
71
+ ├── item-detail.provider.ts
72
+ └── item-detail-host-view.component.ts
73
+ ```
@@ -0,0 +1,50 @@
1
+ # Lint rule lookup
2
+
3
+ Read this file only to explain a lint result or identify which rule owns a mechanical
4
+ convention. Run lint with `--fix`; do not hand-check this table before linting.
5
+
6
+ | Convention | Rule |
7
+ | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8
+ | No `any` / `$any()`; narrow `unknown` | `@typescript-eslint/no-explicit-any`, `@angular-eslint/template/no-any` |
9
+ | Static strings and booleans use attributes | `@angular-eslint/template/prefer-static-string-properties`, `ethlete/prefer-static-boolean-properties` |
10
+ | `type`, not `interface` | `@typescript-eslint/consistent-type-definitions` |
11
+ | No `enum` or `const enum` | `ethlete/no-enum` |
12
+ | `const` by default; one declaration per statement | `no-var`, `prefer-const`, `one-var` |
13
+ | Strict equality | `eqeqeq` |
14
+ | Maximum two positional parameters | `max-params` |
15
+ | No type-only imports | `ethlete/no-type-only-import` |
16
+ | Descriptive `T`-prefixed generic names | `@typescript-eslint/naming-convention` |
17
+ | No `async` / `await` | `ethlete/no-async-await` |
18
+ | Arrow functions standalone; methods in classes | `no-restricted-syntax` |
19
+ | Blank line before a multiline guard return | `ethlete/guard-return-newline` |
20
+ | No trivially inferable return type | `ethlete/no-trivial-return-type` |
21
+ | Member and local naming conventions | `@typescript-eslint/naming-convention`, `ethlete/no-leading-underscore-class-member`, `ethlete/no-screaming-case-local` |
22
+ | Class constants are `readonly` and upper case | `ethlete/class-constant-property` |
23
+ | No `readonly` on reactive members | `ethlete/no-readonly-signal` |
24
+ | Injected and template-visible member accessibility | `ethlete/inject-member-accessibility`, `ethlete/template-member-accessibility` |
25
+ | No inject chains, pure aliases, or trivial wrappers | `ethlete/no-inject-chain`, `ethlete/no-member-alias`, `ethlete/no-trivial-wrapper-method` |
26
+ | No unused private or protected members | `ethlete/no-unused-class-member` |
27
+ | Pure module-scope provider calls | `ethlete/no-impure-top-level-provider` |
28
+ | No redundant `@internal` | `ethlete/no-redundant-internal` |
29
+ | Observable names end in `$` | `ethlete/require-dollar-suffix` |
30
+ | No subscribe body, subscribe in pipe, or RxJS in signal derivations | `ethlete/no-subscribe-with-body`, `ethlete/no-subscribe-in-pipe`, `ethlete/no-rxjs-in-effect` |
31
+ | Effect teardown uses `onCleanup` or `DestroyRef` | `ethlete/no-effect-cleanup-return` |
32
+ | Prefer `linkedSignal` for writable derived state | `ethlete/prefer-linked-signal` |
33
+ | Global component CSS encapsulation | `ethlete/require-view-encapsulation-none` |
34
+ | Angular-version-correct change detection metadata | `ethlete/require-on-push-change-detection`, `ethlete/no-redundant-on-push-change-detection` |
35
+ | No redundant standalone flag or empty metadata arrays | `ethlete/no-standalone-flag`, `ethlete/no-empty-angular-metadata-arrays` |
36
+ | No legacy lifecycle hooks or decorators | `no-restricted-syntax`, `ethlete/no-legacy-angular-decorators` |
37
+ | No injectable services, guards, or resolvers | `no-restricted-syntax` |
38
+ | Output naming | `@angular-eslint/no-output-on-prefix`, `@angular-eslint/no-output-native`, `ethlete/prefer-present-tense-output` |
39
+ | Inputs do not collide with global HTML attributes | `ethlete/no-native-html-input-name` |
40
+ | No pipe logic | `ethlete/no-pipe-logic` |
41
+ | Class members and decorator metadata stay ordered | `ethlete/class-member-order`, `ethlete/angular-decorator-property-order` |
42
+ | Routing views use `-view` / `ViewComponent` | `ethlete/enforce-routing-view-naming` |
43
+ | No direct browser globals, DOM queries, native observers, or cookies | `no-restricted-globals`, `ethlete/no-direct-dom-manipulation`, `ethlete/no-dom-query`, `ethlete/no-native-observers`, `ethlete/no-document-cookie` |
44
+ | No barrel imports | `no-restricted-syntax` |
45
+ | Prefer the SDK wrappers for platform utilities | `ethlete/prefer-clone-equal`, `ethlete/prefer-rxjs-timer`, `ethlete/prefer-match-media`, `ethlete/prefer-viewport-size`, `ethlete/no-angular-seo-services`, `ethlete/no-locale-id`, `ethlete/no-angular-router-api` |
46
+
47
+ Judgment still belongs outside lint: name things after their behavior, use an object
48
+ parameter after two positional parameters, expose injected members directly instead of
49
+ aliasing them, and use `/** @internal */` only on technically public library API that
50
+ must be stripped from declarations.
@@ -0,0 +1,25 @@
1
+ # Storybook structure
2
+
3
+ Read this file when placing a `*.stories.ts` file or code used only to render stories.
4
+
5
+ - Keep the `*.stories.ts` file beside the component it documents.
6
+ - Put private host components, dummy data, and story-only helpers in `storybook/`.
7
+ - Never export Storybook-only code from the component's public barrel.
8
+ - A private `storybook/index.ts` may simplify imports into the adjacent story, but no
9
+ production source may import it.
10
+
11
+ ```plaintext
12
+ settings-form/
13
+ ├── storybook/
14
+ │ ├── settings-form-storybook.component.ts
15
+ │ ├── settings-form-storybook.component.html
16
+ │ ├── settings-form-dummy-data.ts
17
+ │ └── index.ts
18
+ ├── settings-form.component.ts
19
+ ├── settings-form.component.html
20
+ ├── settings-form.component.stories.ts
21
+ └── index.ts
22
+ ```
23
+
24
+ The story file stays at the component root; only its private support code goes into
25
+ `storybook/`.
@@ -37,16 +37,16 @@ The generated CSS defines the raw vars on `.et-surface--<name>` / `.et-color--<n
37
37
  classes (plus `:root` defaults) and derives the public tokens below on `:root` **and**
38
38
  every scope class - so the tokens are always resolvable and components just read them.
39
39
 
40
- **Theme names are yours.** `brand`, `danger`, `neutral`, `dark-elevated` are only
41
- examples. Never hardcode a theme-name union in a component type, a doc or an example.
40
+ **Theme names are yours.** Never hardcode them as an SDK-defined union or reusable API
41
+ contract. App-specific docs may name their own themes when they label them as app values.
42
42
  The portable handle is the theme **`type`**: `injectErrorTheme()` finds whichever theme
43
43
  the app registered with `type: 'error'`.
44
44
 
45
45
  ## Tokens components may consume
46
46
 
47
47
  Use these **derived** tokens - never the raw `--et-surface-background` /
48
- `--et-color-primary` channel triplets, and never a hardcoded color (a static fallback
49
- _after_ the token is fine).
48
+ `--et-color-primary` channel triplets. Never use a hardcoded color as the primary value.
49
+ A static fallback inside `var(--token, <fallback>)` is permitted, but not required.
50
50
 
51
51
  Surface (each exists as `-solid` = usable color, `-rgb` = `R G B` channels):
52
52
 
@@ -75,8 +75,8 @@ the interactive element itself, never on a wrapper.
75
75
 
76
76
  ## Providing context
77
77
 
78
- - `[etProvideSurface]="'dark-elevated'"` / `[etAutoSurface]` (auto-picks the next
79
- elevation) set the surface scope; `[etProvideColor]="'brand'"` sets the color scope.
78
+ - `[etProvideSurface]="surfaceThemeName"` / `[etAutoSurface]` (auto-picks the next
79
+ elevation) set the surface scope; `[etProvideColor]="colorThemeName"` sets the color scope.
80
80
  A component that owns a themed region usually adds `ProvideColorDirective` /
81
81
  `ProvideSurfaceDirective` as `hostDirectives`.
82
82
  - **Detached overlay panes (menu, dialog, tooltip…) do not inherit DOM context.**
@@ -106,12 +106,12 @@ the interactive element itself, never on a wrapper.
106
106
  - `--et-theme-color-primary-*` always resolves to the **nearest color scope**. A
107
107
  hardcoded semantic color in CSS can't be replaced by it unless the right theme is
108
108
  provided on that element.
109
- - Keep a static fallback (`var(--et-surface-border-solid, rgb(255 255 255 / 0.1))`) so
110
- components degrade in theme-less setups. `injectErrorTheme()` is the exception: it is
111
- a hard requirement wherever it is used.
109
+ - A static fallback (`var(--et-surface-border-solid, rgb(255 255 255 / 0.1))`) is
110
+ permitted for theme-less setups, but themes make it unnecessary. `injectErrorTheme()`
111
+ is a hard requirement wherever it is used.
112
112
  - **Cascade layers, not `:where()`, are what let a Tailwind utility override component
113
113
  CSS.** Wrap every component CSS file in `@layer components { … }`; `:where()` only
114
114
  flattens a component's own modifiers to single-class weight. See the `styling` rule.
115
115
 
116
- Styling a **story** file rather than a component? The colour rule is the same, but the
117
- Tailwind side has its own traps - {%skill:story-styling%}.
116
+ Styling a **story** file rather than a component? The colour rule is the same. Check the
117
+ repository's Storybook guidance before assuming a Tailwind utility exists.
@@ -38,7 +38,7 @@ nobody can rotate.
38
38
  | `log --issue <KEY> --minutes <n>` | The user asks to record time that nothing observed |
39
39
 
40
40
  `git-flow start` uses the same channel, so a branch is named from the real issue rather than
41
- from a key you typed - see the `git-flow` skill.
41
+ from a key you typed. Follow the repository's branch workflow when creating a branch.
42
42
 
43
43
  ## Writes
44
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/agent-rules",
3
- "version": "0.1.0-next.11",
3
+ "version": "0.1.0-next.13",
4
4
  "license": "MIT",
5
5
  "type": "commonjs",
6
6
  "exports": {
@@ -43,11 +43,9 @@ export type SyncConfig = {
43
43
  * - `disableAutoHandoffSave: true` keeps the context-warning hook's normal tiered messages (including
44
44
  * in auto mode), but at the critical tier in auto mode it falls back to just recommending
45
45
  * a handoff instead of writing the handoff file automatically.
46
- * - `sdkSourcePath` points at a local `ethlete-sdk` checkout, which the SDK source and local-build
47
- * skills read when they need the SDK's own sources instead of the published package.
48
- * - `apiRepoPaths` maps an app in this repo to the checkout of the API it talks to (`{ "hub":
49
- * "../fut-hub-backend" }`), which the api-source skill reads to answer a question about the
50
- * server instead of guessing it from the client.
46
+ *
47
+ * Where the sibling checkouts live (`sdkSourcePath`, `apiRepoPaths`, `apiRepoBranches`) is not here:
48
+ * it moved to `@ethlete/cli`'s `ethlete.config.local.json`, because `et` reads the same values.
51
49
  *
52
50
  * No secret belongs here any more. Jira is reached through the Timetrack app, which holds the token
53
51
  * in the machine's keychain — one secret per machine rather than one per checkout.
@@ -55,8 +53,6 @@ export type SyncConfig = {
55
53
  export type LocalConfig = {
56
54
  disableHooks?: boolean | string[];
57
55
  disableAutoHandoffSave?: boolean;
58
- sdkSourcePath?: string;
59
- apiRepoPaths?: Record<string, string>;
60
56
  };
61
57
  export type LocalConfigState = {
62
58
  exists: false;
@@ -68,7 +64,17 @@ export type LocalConfigState = {
68
64
  valid: true;
69
65
  config: LocalConfig;
70
66
  unknownKeys: string[];
67
+ movedKeys: string[];
71
68
  };
69
+ export declare const LOCAL_CONFIG_KEYS: (keyof LocalConfig)[];
70
+ /**
71
+ * Repo topology moved to `@ethlete/cli`'s `ethlete.config.local.json`, because `et` needs it too.
72
+ * Still recognised here so a checkout that has not moved them yet gets told where they went
73
+ * instead of an "unsupported key" warning.
74
+ */
75
+ export declare const MOVED_LOCAL_CONFIG_KEYS: string[];
76
+ /** Named only to point a migration at it. `@ethlete/cli` owns the file and validates its values. */
77
+ export declare const TOPOLOGY_CONFIG_FILE_NAME = "ethlete.config.local.json";
72
78
  export declare const readLocalConfig: (root: string) => LocalConfigState;
73
79
  /**
74
80
  * Emit for the agents a repo already uses. `codex` is always included: `AGENTS.md` is the
package/src/lib/config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.loadConfig = exports.detectTargets = exports.readLocalConfig = exports.LOCAL_CONFIG_FILE_NAME = exports.CONFIG_FILE_NAME = exports.AGENT_TARGETS = void 0;
3
+ exports.loadConfig = exports.detectTargets = exports.readLocalConfig = exports.TOPOLOGY_CONFIG_FILE_NAME = exports.MOVED_LOCAL_CONFIG_KEYS = exports.LOCAL_CONFIG_KEYS = exports.LOCAL_CONFIG_FILE_NAME = exports.CONFIG_FILE_NAME = exports.AGENT_TARGETS = void 0;
4
4
  const fs_1 = require("fs");
5
5
  const path_1 = require("path");
6
6
  const commitlint_1 = require("./commitlint");
@@ -15,12 +15,15 @@ const readRawConfig = (root) => {
15
15
  return {};
16
16
  return JSON.parse((0, fs_1.readFileSync)(path, 'utf8'));
17
17
  };
18
- const LOCAL_CONFIG_KEYS = [
19
- 'disableHooks',
20
- 'disableAutoHandoffSave',
21
- 'sdkSourcePath',
22
- 'apiRepoPaths',
23
- ];
18
+ exports.LOCAL_CONFIG_KEYS = ['disableHooks', 'disableAutoHandoffSave'];
19
+ /**
20
+ * Repo topology moved to `@ethlete/cli`'s `ethlete.config.local.json`, because `et` needs it too.
21
+ * Still recognised here so a checkout that has not moved them yet gets told where they went
22
+ * instead of an "unsupported key" warning.
23
+ */
24
+ exports.MOVED_LOCAL_CONFIG_KEYS = ['sdkSourcePath', 'apiRepoPaths', 'apiRepoBranches'];
25
+ /** Named only to point a migration at it. `@ethlete/cli` owns the file and validates its values. */
26
+ exports.TOPOLOGY_CONFIG_FILE_NAME = 'ethlete.config.local.json';
24
27
  const readLocalConfig = (root) => {
25
28
  const path = (0, path_1.join)(root, exports.LOCAL_CONFIG_FILE_NAME);
26
29
  if (!(0, fs_1.existsSync)(path))
@@ -35,8 +38,10 @@ const readLocalConfig = (root) => {
35
38
  if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed))
36
39
  return { exists: true, valid: false };
37
40
  const config = parsed;
38
- const unknownKeys = Object.keys(config).filter((key) => !LOCAL_CONFIG_KEYS.includes(key));
39
- return { exists: true, valid: true, config, unknownKeys };
41
+ const keys = Object.keys(config);
42
+ const movedKeys = keys.filter((key) => exports.MOVED_LOCAL_CONFIG_KEYS.includes(key));
43
+ const unknownKeys = keys.filter((key) => !exports.LOCAL_CONFIG_KEYS.includes(key) && !movedKeys.includes(key));
44
+ return { exists: true, valid: true, config, unknownKeys, movedKeys };
40
45
  };
41
46
  exports.readLocalConfig = readLocalConfig;
42
47
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../libs/agent-rules/src/lib/config.ts"],"names":[],"mappings":";;;AAAA,2BAA8C;AAC9C,+BAA4B;AAC5B,6CAAuE;AAEvE,yCAAmF;AACnF,iDAAiD;AAEpC,QAAA,aAAa,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AAIlE,QAAA,gBAAgB,GAAG,4BAA4B,CAAC;AAEhD,QAAA,sBAAsB,GAAG,kCAAkC,CAAC;AA6CzE,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,EAAE;IACrC,MAAM,IAAI,GAAG,IAAA,WAAI,EAAC,IAAI,EAAE,wBAAgB,CAAC,CAAC;IAE1C,IAAI,CAAC,IAAA,eAAU,EAAC,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IAEjC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAY,EAAC,IAAI,EAAE,MAAM,CAAC,CAAc,CAAC;AAC7D,CAAC,CAAC;AAiCF,MAAM,iBAAiB,GAA0B;IAC/C,cAAc;IACd,wBAAwB;IACxB,eAAe;IACf,cAAc;CACf,CAAC;AAEK,MAAM,eAAe,GAAG,CAAC,IAAY,EAAoB,EAAE;IAChE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