Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.15 KB

File metadata and controls

39 lines (29 loc) · 1.15 KB

CLAUDE.md

Claude-specific extensions to AGENTS.md. Read AGENTS.md first — this file only adds Claude-specific behaviour on top of it.


Memory Tools

When working in Cowork mode or Claude Code, use the todo list tool to track multi-step tasks within a session. Use local .ai/progress.md only for personal continuity when needed (it is gitignored in this repo).

Scope of This File

  • AGENTS.md is the canonical, cross-agent policy source.
  • CLAUDE.md should contain only Claude-specific behavior extensions.

When Providing Code

Always include:

  • Necessary imports (Foundation, SwiftUI, etc.)
  • Complete, compilable examples — not pseudocode or stubs unless explicitly asked
  • Error handling, not just the happy path
  • @MainActor annotations wherever UI state is updated
  • A brief comment explaining any non-obvious Swift behaviour
  • After writing or editing code, briefly summarise what changed and why
import Foundation
import SwiftUI

@Observable
@MainActor
final class ExampleViewModel {
    var formulae: [Formula] = []

    func loadFormulae() async throws {
        formulae = try await repository.fetchInstalled()
    }
}