Skip to content

Add path-scoped AI rules for Claude Code - #15

Merged
warrickbayman merged 1 commit into
mainfrom
feature/ai-rules
Oct 3, 2026
Merged

warrickbayman merged 1 commit into
mainfrom
feature/ai-rules

Conversation

@warrickbayman

Copy link
Copy Markdown
Member

Adds .claude/rules/: conventions for Claude Code, taken from the codebase, that CLAUDE.md doesn't already spell out. Each file except workflow.md loads only when Claude works on files matching its paths:.

  • workflow.md (always): back up config before manual testing, finish with a lint-clean build and passing tests, commit and PR style.
  • swift-style.md: Swift 6 / macOS 14 availability, lint limits, comment style, logging (URLs always respect logsURLs).
  • core-logic.md: keep routing logic Foundation-only with small AppKit adapter files, pass in system access, test routing changes.
  • persistence.md: decodeIfPresent for new fields, stable coding keys, strict import, never overwrite an unreadable config.
  • ui.md: environment wiring, config.update bindings, AppKit-hosted windows, picker panel constraints, copy style, -Debug… launch arguments.
  • tests.md: Swift Testing conventions, temporary file URLs, no app delegate objects.
  • project-and-release.md: project.yml is the source for plist and entitlements, don't touch Sparkle or signing unless asked, the changelog is generated, docs have no build step.

Other agents don't read .claude/rules/. Moving the rules to AGENTS.md can be done separately if needed.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@warrickbayman
warrickbayman merged commit 35abe88 into main Oct 3, 2026
1 check passed
@warrickbayman
warrickbayman deleted the feature/ai-rules branch October 3, 2026 12: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