Skip to content

chore: remove ai-rules, replaced by engineering-practices - #951

Merged
therockstorm merged 1 commit into
mainfrom
chore/remove-ai-rules
Oct 9, 2026
Merged

therockstorm merged 1 commit into
mainfrom
chore/remove-ai-rules

Conversation

@therockstorm

@therockstorm therockstorm commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Summary

@clipboard-health/ai-rules is replaced by @clipboard-health/engineering-practices (ClipboardHealth/cbh-core, packages/engineering-practices). This PR retires the old source in this repo.

  • Delete packages/ai-rules.
  • Remove references: .github/CODEOWNERS (the file only covered this package, so it is deleted), .knip.jsonc ignore, root README.md package list, tsconfig.base.json and tsconfig.lint.json paths, tsconfig.json project reference, and package-lock.json (workspace link and package entries).
  • Point no-cross-contract-imports/README.md at rules/backend/restApiDesign.md in @clipboard-health/engineering-practices.
  • Nx release needs no change: it uses the packages/* glob.
  • The sync-ai-rules script name stays. It already runs engineering-practices-sync.

Why

The rules now ship from cbh-core. Keeping a second copy here invites drift and releases a package nobody should install.

Evidence

Ran with Node from .nvmrc:

  • npm install regenerates a lockfile that only drops the two ai-rules entries, and postinstall prints ✅ @clipboard-health/engineering-practices synced common (18 rules).
  • format:check, knip, markdown:lint, syncpack:lint, architecture:check, embed:check, and lint pass.
  • nx build eslint-plugin passes. Full typecheck is left to CI.
  • git grep ai-rules finds only the sync-ai-rules script name and CHANGELOGs.

Merge Danger

Low. Published @clipboard-health/ai-rules versions stay on npm (no deprecate or unpublish), so consumers that still pin a version keep installing. job-hunt-buddy and slate still pin one and are being switched separately. The next release run will not publish ai-rules again.

🤖 Generated with Claude Code

@clipboard-health/engineering-practices in ClipboardHealth/cbh-core
(packages/engineering-practices) replaces @clipboard-health/ai-rules.
Delete packages/ai-rules and every reference to it: CODEOWNERS (the
file only covered this package), knip ignore, root README package list,
tsconfig paths and references, and package-lock.json. Point the
no-cross-contract-imports README at engineering-practices. Published
ai-rules versions stay on npm for consumers that still pin them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@therockstorm
therockstorm requested a review from a team as a code owner October 9, 2026 20:13
@therockstorm therockstorm self-assigned this Oct 9, 2026
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 3b17ff5a-d4d4-4293-a8eb-b9e70bf72dd5

📥 Commits

Reviewing files that changed from the base of the PR and between 34d36ce and 2de7d9e.


⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json

📒 Files selected for processing (63)
  • .github/CODEOWNERS
  • .knip.jsonc
  • README.md
  • packages/ai-rules/.gitignore
  • packages/ai-rules/README.md
  • packages/ai-rules/package.json
  • packages/ai-rules/project.json
  • packages/ai-rules/rules/backend/architecture.md
  • packages/ai-rules/rules/backend/asyncMessaging.md
  • packages/ai-rules/rules/backend/infrastructure.md
  • packages/ai-rules/rules/backend/mongodb.md
  • packages/ai-rules/rules/backend/notifications.md
  • packages/ai-rules/rules/backend/postgres.md
  • packages/ai-rules/rules/backend/restApiDesign.md
  • packages/ai-rules/rules/backend/serviceTests.md
  • packages/ai-rules/rules/common/aiRules.md
  • packages/ai-rules/rules/common/ciRunners.md
  • packages/ai-rules/rules/common/commentsAndCopy.md
  • packages/ai-rules/rules/common/configuration.md
  • packages/ai-rules/rules/common/containerRegistry.md
  • packages/ai-rules/rules/common/coreLibraries.md
  • packages/ai-rules/rules/common/dateTime.md
  • packages/ai-rules/rules/common/errorHandling.md
  • packages/ai-rules/rules/common/featureFlags.md
  • packages/ai-rules/rules/common/gitWorkflow.md
  • packages/ai-rules/rules/common/groundtruth.md
  • packages/ai-rules/rules/common/libraryAuthoring.md
  • packages/ai-rules/rules/common/localChecks.md
  • packages/ai-rules/rules/common/loggingObservability.md
  • packages/ai-rules/rules/common/rulesEngine.md
  • packages/ai-rules/rules/common/testing.md
  • packages/ai-rules/rules/common/typeScript.md
  • packages/ai-rules/rules/datamodeling/analytics.md
  • packages/ai-rules/rules/datamodeling/castingDbtStagingModels.md
  • packages/ai-rules/rules/datamodeling/dbtModelDevelopment.md
  • packages/ai-rules/rules/datamodeling/dbtYamlDocumentation.md
  • packages/ai-rules/rules/frontend/architecture.md
  • packages/ai-rules/rules/frontend/customHooks.md
  • packages/ai-rules/rules/frontend/dataFetching.md
  • packages/ai-rules/rules/frontend/designSystem.md
  • packages/ai-rules/rules/frontend/e2eTesting.md
  • packages/ai-rules/rules/frontend/reactComponents.md
  • packages/ai-rules/rules/frontend/renderScope.md
  • packages/ai-rules/rules/frontend/styling.md
  • packages/ai-rules/rules/frontend/testing.md
  • packages/ai-rules/scripts/build.ts
  • packages/ai-rules/scripts/constants.ts
  • packages/ai-rules/scripts/execAndLog.ts
  • packages/ai-rules/scripts/populateReadme.ts
  • packages/ai-rules/scripts/rules.ts
  • packages/ai-rules/scripts/sync.ts
  • packages/ai-rules/scripts/toErrorMessage.ts
  • packages/ai-rules/test/rules.test.ts
  • packages/ai-rules/test/sync.test.ts
  • packages/ai-rules/tsconfig.json
  • packages/ai-rules/tsconfig.lib.json
  • packages/ai-rules/tsconfig.lint.json
  • packages/ai-rules/tsconfig.spec.json
  • packages/ai-rules/vitest.config.ts
  • packages/eslint-plugin/src/lib/rules/no-cross-contract-imports/README.md
  • tsconfig.base.json
  • tsconfig.json
  • tsconfig.lint.json

🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:


💤 Files with no reviewable changes (62)
  • README.md
  • packages/ai-rules/.gitignore
  • packages/ai-rules/rules/backend/postgres.md
  • packages/ai-rules/tsconfig.lib.json
  • packages/ai-rules/tsconfig.spec.json
  • packages/ai-rules/rules/common/groundtruth.md
  • packages/ai-rules/rules/common/aiRules.md
  • packages/ai-rules/rules/frontend/reactComponents.md
  • packages/ai-rules/scripts/populateReadme.ts
  • packages/ai-rules/README.md
  • packages/ai-rules/project.json
  • packages/ai-rules/rules/common/localChecks.md
  • packages/ai-rules/rules/frontend/architecture.md
  • packages/ai-rules/rules/common/rulesEngine.md
  • packages/ai-rules/rules/datamodeling/analytics.md
  • packages/ai-rules/test/sync.test.ts
  • packages/ai-rules/vitest.config.ts
  • packages/ai-rules/rules/common/loggingObservability.md
  • packages/ai-rules/rules/common/commentsAndCopy.md
  • packages/ai-rules/rules/frontend/designSystem.md
  • packages/ai-rules/tsconfig.lint.json
  • packages/ai-rules/rules/common/coreLibraries.md
  • packages/ai-rules/rules/common/gitWorkflow.md
  • tsconfig.json
  • packages/ai-rules/rules/frontend/e2eTesting.md
  • packages/ai-rules/scripts/toErrorMessage.ts
  • packages/ai-rules/scripts/constants.ts
  • packages/ai-rules/rules/common/configuration.md
  • packages/ai-rules/scripts/sync.ts
  • packages/ai-rules/rules/frontend/customHooks.md
  • packages/ai-rules/rules/common/errorHandling.md
  • packages/ai-rules/rules/common/testing.md
  • packages/ai-rules/rules/frontend/testing.md
  • packages/ai-rules/rules/datamodeling/dbtModelDevelopment.md
  • .github/CODEOWNERS
  • tsconfig.base.json
  • packages/ai-rules/rules/common/dateTime.md
  • packages/ai-rules/tsconfig.json
  • tsconfig.lint.json
  • packages/ai-rules/rules/common/ciRunners.md
  • packages/ai-rules/rules/backend/infrastructure.md
  • packages/ai-rules/rules/backend/notifications.md
  • packages/ai-rules/rules/common/featureFlags.md
  • packages/ai-rules/rules/frontend/dataFetching.md
  • .knip.jsonc
  • packages/ai-rules/rules/backend/asyncMessaging.md
  • packages/ai-rules/rules/frontend/renderScope.md
  • packages/ai-rules/rules/backend/serviceTests.md
  • packages/ai-rules/scripts/execAndLog.ts
  • packages/ai-rules/rules/datamodeling/dbtYamlDocumentation.md
  • packages/ai-rules/rules/backend/mongodb.md
  • packages/ai-rules/rules/backend/restApiDesign.md
  • packages/ai-rules/package.json
  • packages/ai-rules/rules/frontend/styling.md
  • packages/ai-rules/test/rules.test.ts
  • packages/ai-rules/rules/datamodeling/castingDbtStagingModels.md
  • packages/ai-rules/scripts/build.ts
  • packages/ai-rules/rules/backend/architecture.md
  • packages/ai-rules/rules/common/containerRegistry.md
  • packages/ai-rules/rules/common/libraryAuthoring.md
  • packages/ai-rules/rules/common/typeScript.md
  • packages/ai-rules/scripts/rules.ts

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.



📝 Walkthrough

Walkthrough

The PR removes the @clipboard-health/ai-rules package, including its rule files, scripts, tests, and configuration. It also removes repository references to the package and updates an ESLint-plugin guidance link to @clipboard-health/engineering-practices.

Changes

ai-rules package removal

Layer / File(s) Summary
Remove rule files
packages/ai-rules/rules/{backend,common,datamodeling,frontend}/*
The backend, common, data-modeling, and frontend guidance files are deleted.
Remove rule build and sync tooling
packages/ai-rules/scripts/*, packages/ai-rules/test/*
The package's build and sync scripts, rule-processing utilities, and tests are deleted.
Remove package configuration and references
packages/ai-rules/{README.md,.gitignore,package.json,project.json,tsconfig*.json,vitest.config.ts}, .github/CODEOWNERS, .knip.jsonc, README.md, packages/eslint-plugin/src/lib/rules/no-cross-contract-imports/README.md, tsconfig*.json
Package metadata and configuration are deleted. Repository listings and TypeScript references are removed, and the ESLint-plugin guidance link is updated.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Suggested reviewers: felipephilippcbh


Merge Risk: ⚪ Minimal · up to 2de7d

Removing the local package does not change this repository’s setup command, which already synced the replacement guidance. The updated REST API link resolves, and no actionable merge risk remains.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly states that the ai-rules package is being removed because engineering-practices replaces it.
Description check Passed The description directly explains the package retirement, reference cleanup, replacement package, validation evidence, and release impact.


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@nx-cloud

nx-cloud Bot commented Oct 9, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 2de7d9e

Command Status Duration Result
nx run-many --configuration ci --parallel 8 --t... ✅ Succeeded 25s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-10-09 20:15:52 UTC

@therockstorm
therockstorm merged commit dfdb5fe into main Oct 9, 2026
5 checks passed
@therockstorm
therockstorm deleted the chore/remove-ai-rules branch October 9, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant