Skip to content

Spec 013 T024: CLAUDE.md's rule for new service code - #653

Merged
adamjohnwright merged 2 commits into
mainfrom
spec013/t024-rule
Oct 24, 2026
Merged

adamjohnwright merged 2 commits into
mainfrom
spec013/t024-rule

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Spec 013, T024.

The rules T024 waited for, both of which emerged in T023, are now in CLAUDE.md:

  • New code under tools/ is TypeScript. A plain .mjs would be loaded by the type check without being checked, so tools/load.spec.ts fails on one.
  • A new entry point is loaded under Node by tools/load.spec.ts:
    • a module in a service directory is picked up as it is;
    • a new service directory is added to SERVICES;
    • a script that does its work when loaded is added to RUN_ON_LOAD, so it is checked without being run.

From T023's final review (#652):

  • The no-plain-JavaScript check matches .js, .mjs, .cjs and .jsx in any letter case.
  • It excludes only the one generated bundle, rather than any file with that name.
  • I showed it failing on three probes: p.JS, q.jsx, and a harness.bundle.js elsewhere.
  • Three comments now name the .ts specs they point at.

🤖 Generated with Claude Code

adamjohnwright and others added 2 commits October 24, 2026 04:49
Both rules T024 waited for emerged in T023:

- New code under tools/ is TypeScript. A plain .mjs would be loaded by the
  type check unchecked, and tools/load.spec.ts fails on one.
- A new entry point is loaded under Node by tools/load.spec.ts: a module in
  a service directory as it is, a new service directory by joining
  SERVICES, and a script that does its work when loaded by joining
  RUN_ON_LOAD, so it is checked without being run.

From T023's final review: the no-plain-JavaScript check matches any case
and .jsx, and excludes only the one generated bundle rather than any file
with its name (each shown failing on a probe); three comments name the
.ts specs they point at.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y's top-level modules (from the review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 58bcf76 into main Oct 24, 2026
7 checks passed
@adamjohnwright
adamjohnwright deleted the spec013/t024-rule branch October 24, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant