frontend: optimize Claude context files and add legacy import linter warnings#2227
Merged
frontend: optimize Claude context files and add legacy import linter warnings#2227
Conversation
…nings Trim AGENTS.md, split oversized SKILL.md files into focused entrypoints with reference files, and delete/merge redundant rules. - AGENTS.md: 86 → 47 lines (remove discoverable patterns, add verify cmd) - e2e-tester SKILL.md: 725 → 80 lines (split into 3 reference files) - form-refactorer SKILL.md: 252 → 77 lines - Delete 15 rules (basic JS, linter-enforced, merged overlaps) - Fix factual errors (wrong utility names, Next.js assumptions) - Remove inert `globs` from skill rules (not supported there) - Add .claude/rules/test-unit-vs-integration.md (paths auto-loading) - Add noRestrictedImports warnings to biome.jsonc for legacy packages
898ce10 to
62b71c3
Compare
malinskibeniamin
approved these changes
Feb 17, 2026
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.
Motivation
Two recent papers show that bloated context files hurt agent performance:
Key takeaway: every line in a context file should pass the test "would removing this cause Claude to make mistakes?" — if not, cut it. And never send an LLM to do a linter's job.
Changes
noRestrictedImportswarnings in biome.jsonc.claude/rules/test-unit-vs-integration.mdwithpathsfrontmatterglobs: skill rules don't support glob-based auto-loading, removed from all 18 filesNet: -880 lines, 37 files changed.