Conversation
r0b1n
reviewed
Feb 16, 2026
|
|
||
| # Run lint from the package directory using the project's lint setup | ||
| if [[ -n "$PACKAGE_DIR" ]]; then | ||
| LINT_OUTPUT=$(cd "$PACKAGE_DIR" && npm run lint 2>&1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request type
Refactoring (e.g. file rename, variable rename, etc.)
New feature (non-breaking change which adds functionality)
Description
Another step to make it easier for AI coding agents (Claude Code, GitHub Copilot) to work correctly in this monorepo with minimal manual intervention.
Post-edit hooks (auto-format + lint)
Added .claude/hooks/post-edit.sh — a
PostToolUsehook that runs automatically after every file edit:eslint.config.mjsand runsnpm run lintfrom that packageThe same script is registered for GitHub Copilot's coding agent via
.github/hooks/hooks.json. The two agents usedifferent JSON schemas for the hook payload, the script detects and normalizes both:
{ "tool_input": { "file_path": "..." } }{ "toolArgs": "{\"path\": \"...\"}" }Removal of rui-agent-rules
The rui-agent-rules.ts
postinstallscript generated symlinks fromdocs/requirements/*.mdinto .cursor/rules/and.windsurf/rules/.This approach is replaced by direct, curated per-agent instruction files,
CLAUDE.mdfor ClaudeCode,
.github/copilot-instructions.mdfor Copilot, and docs/requirements/ linked fromAGENTS.mdforCursor/Windsurf. The symlink automation is removed along with its postinstall turbo task.
CLAUDE.md added
A new CLAUDE.md at the repo root gives Claude Code structured project context: commands, package structure,
conventions, and pointers to docs/requirements/ for deeper reference. This is Claude Code's native mechanism for
persistent project instructions.
AGENTS.md refined
Trimmed from 94 lines to 35. The previous version duplicated content from docs/requirements/. The new version is a
concise routing document: commands table, conventions summary, and a section pointing each agent type to its
canonical instruction file.
Note:
.claude/settings.local.jsonis added to.gitignore— this file holds machine-local Claude Code settings andshould not be committed.
What should be covered while testing?
You can test the auto-linting behavior with your agent, ask it to test its
PostToolUsehook deliberately to test the linting.