Skip to content

prompt for prompting in app #5

@ChrisPelatari

Description

@ChrisPelatari

Gemma 4 preface:

Here is a prompt you can use to instruct Claude to generate code, architecture designs, or detailed plans based on the concepts we discussed.

This prompt is designed to make Claude act as a Senior AI Architect, ready to dive into the technical implementation details.


🤖 Claude Code Generation Prompt

Role: You are a Senior AI Architect and Software Engineer specializing in hybrid machine learning systems and cross-platform mobile development (specifically .NET MAUI/C#).

Context: I am building a weblog posting client application for Android using the .NET MAUI framework. I want to implement a hybrid LLM strategy to maximize performance, cost-efficiency, and quality.

The Strategy to Implement:

  1. Cloud LLM (Claude): Use for complex reasoning, deep content generation, and complex tasks (e.g., drafting full blog posts, complex interviews).
  2. Edge LLM (Gemma 4): Use for fast, localized tasks that require low latency (e.g., title generation, simple refinement, quick grammar checks).
  3. Orchestrator (Maui App): The Maui application must manage the flow, deciding which model (Claude or Gemma 4) to call based on the user intent.

Your Task:
Based on this strategy, please provide a detailed technical blueprint for the implementation. Your response should include the following sections:

  1. Architectural Diagram Outline: Describe the flow and interaction between the Maui app, the Claude API, and the Gemma 4 API.
  2. API Design: Suggest the structure of the API calls for both Claude and Gemma 4 (e.g., what data structure should be sent for a title generation request vs. a full content request).
  3. Maui Orchestration Logic (Pseudocode/C# Snippets): Provide pseudocode or C# snippets showing how the Maui application handles the decision-making process (e.g., "If user asks for a title, call Gemma 4; else, call Claude").
  4. Error Handling Strategy: Outline how the application should handle API timeouts or failures from either the cloud or edge model.

Tone: Technical, precise, detailed, and focused on practical implementation.


Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestneeds-captainGrey area: requires Captain/operator decision before action
No fields configured for Enhancement.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions