Skip to content

feat: add GEN-003 ADR for tool invocation via package scripts#149

Merged
rhuanbarreto merged 1 commit into
mainfrom
feat/gen-003-tool-invocation-scripts
Mar 23, 2026
Merged

feat: add GEN-003 ADR for tool invocation via package scripts#149
rhuanbarreto merged 1 commit into
mainfrom
feat/gen-003-tool-invocation-scripts

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Adds GEN-003 ADR requiring all linting/formatting to go through package.json scripts (bun run format, bun run lint, bun run validate)
  • Forbids direct invocation of tool binaries (bunx prettier, bunx oxfmt, npx eslint)
  • Mirror of the same ADR added to archgate/plugins — applies ecosystem-wide

Motivation

The plugins repo uses Prettier, this repo uses oxfmt. An agent running bunx prettier --write in this repo reformats files with the wrong tool, causing CI failures. This happened during the VS Code diagnostics feature work and required multiple fix cycles.

Test plan

  • archgate adr list shows GEN-003
  • archgate adr show GEN-003 renders correctly
  • CI passes (ADR is a markdown file, no code changes)

🤖 Generated with Claude Code

Forbids direct invocation of formatters and linters (bunx prettier,
bunx oxfmt, npx eslint). All linting and formatting must go through
package.json scripts (bun run format, bun run lint, bun run validate).

This prevents CI failures from using the wrong tool when working
across repos with different formatters (Prettier vs oxfmt).

Mirror of archgate/plugins GEN-003 — same ADR applies ecosystem-wide.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rhuanbarreto rhuanbarreto merged commit 58eb611 into main Mar 23, 2026
5 of 8 checks passed
@rhuanbarreto rhuanbarreto deleted the feat/gen-003-tool-invocation-scripts branch March 23, 2026 13:39
@github-actions github-actions Bot mentioned this pull request Mar 23, 2026
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