From 89e81f0eb0185c72f0aaf6532f05443225564ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20T=C3=A4kker?= Date: Fri, 9 Oct 2026 00:11:03 +0200 Subject: [PATCH] Document reusable view workflow --- Music/AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Music/AGENTS.md b/Music/AGENTS.md index 1fb761a..49e3540 100644 --- a/Music/AGENTS.md +++ b/Music/AGENTS.md @@ -42,6 +42,7 @@ Use large, custom page headings near the top of the content on the Home, Library - Before creating or updating a UI, inspect the corresponding screen and shared layout in `~/music-v2`. Mirror its structure and information hierarchy in native SwiftUI, using liquid glass only where it suits the screen and supports clarity. - Use Apple's standard red accent (`.red`) and otherwise prefer SwiftUI's semantic system colors and materials. Avoid custom color values unless the user asks for them. - Always add a SwiftUI preview for every UI view you create or update. +- Before implementing or changing a view, search the codebase for existing components and practically similar UI in other screens. Reuse or extend an existing component when it fits; when the same view is needed in two or more places, extract a reusable SwiftUI component with configuration for meaningful differences instead of duplicating the implementation. In the completion report, identify any reusable component created or changed and the screens that use it. - Use XcodeBuildMCP's compile-only `build_sim` action to build this Xcode project when build verification is needed; do not run `xcodebuild` from the shell when XcodeBuildMCP is available. Do not use a build-and-run action or launch a simulator without the user's explicit confirmation. - Before completing code changes, run available linting and type checking or a build for the affected code. Fix errors introduced by the change, and clearly report any unrelated baseline or environment failures that prevent a clean check. - Do not boot, open, or launch an iOS simulator without the user's explicit confirmation. This includes XcodeBuildMCP actions such as `build_run_sim` that automatically open the simulator. Prefer compile-only simulator builds when validation is needed.