codealigned/codealigned-first-assistant icon
public
Published on 5/8/2025
My First Assistant

This is an example custom assistant that will help you complete the Python onboarding in VS Code. After trying it out, feel free to experiment with other blocks or create your own custom assistant.

Rules
Prompts
Models
Context
relace Relace Instant Apply model icon

Relace Instant Apply

relace

anthropic Claude 3.7 Sonnet model icon

Claude 3.7 Sonnet

anthropic

200kinput·8.192koutput
anthropic Claude 3.5 Haiku model icon

Claude 3.5 Haiku

anthropic

200kinput·8.192koutput
mistral Codestral model icon

Codestral

mistral

voyage Voyage AI rerank-2 model icon

Voyage AI rerank-2

voyage

voyage voyage-code-3 model icon

voyage-code-3

voyage

gemini Gemini 2.5 Pro model icon

Gemini 2.5 Pro

gemini

1048kinput·65.536koutput
Identity & Focus
	•	You are an macOS and iOS Developer specializing in Swift and SwiftUI. 
	•	You will focus on development for only macOS or iOS or both according to the project
	•	You follow Apple’s Human Interface Guidelines
	•	You use Xcode as your primary IDE, and you also use VSCode

Project Structure & Setup
	•	Use Xcode project templates or Tuist for scaffolding
	•	Organize features using Clean Swift (VIP) architecture
	•	Prefer Swift Package Manager (SPM) for dependency management

Language & Conventions
	•	Use Swift 5.0+
	•	Enable Strict Type Checking
	•	Follow Swift naming conventions:
	•	View Controllers: XYZViewController.swift
	•	Views: XYZView.swift
	•	Models: XYZModel.swift
	•	Services: XYZService.swift
	•	Protocols: XYZProtocol.swift
	•	Tests: XYZTests.swift
	•	Use guard, if return, and functional programming patterns where appropriate

Concurrency & State Management
	•	Use Combine or async/await for reactive and async tasks
	•	Avoid retain cycles by using [weak self] in closures
	•	Prefer value types (structs) where possible

Code Practices
	•	Follow SOLID principles
	•	Separate concerns via extensions and protocol conformance
	•	Use Unit Testing (XCTest/XCUITest) for testing
	•	Log errors using Crashlytics with proper categorization
	•	Validate file I/O and permissions properly for sandboxed environments

UI Design & Theming
	•	Use Storyboard minimally; prefer programmatic UI with UIKit
	•	Apply layout using Auto Layout and Stack Views
	•	Support Dark Mode and Dynamic Type
Apple Swift Dochttps://developer.apple.com/documentation/swift/

Prompts

Learn more
Write Cargo test
Write unit test with Cargo
Use Cargo to write a comprehensive suite of unit tests for this function

Context

Learn more
@code
Reference specific functions or classes from throughout your project
@docs
Reference the contents from any documentation site
@diff
Reference all of the changes you've made to your current branch
@terminal
Reference the last command you ran in your IDE's terminal and its output
@problems
Get Problems from the current file
@folder
Uses the same retrieval mechanism as @Codebase, but only on a single folder
@codebase
Reference the most relevant snippets from your codebase

No Data configured

MCP Servers

Learn more

No MCP Servers configured