ai-ml

Comprehensive Image Analysis Report: Structured Visual Data Prompt

Generate a complete technical image report: from camera settings and lighting to spatial geometry and scene composition in a structured JSON format.

>_ Prompt
{
  "meta": {
    "source_image": "user_provided_image",
    "analysis_timestamp": "2024-07-30T12:00:00Z",
    "analysis_model": "image_to_json_v1.0",
    "overall_confidence": 0.99
  },
  "camera_and_exif": {
    "camera_make": "unknown",
    "camera_model": "unknown",
    "lens_model": "unknown",
    "focal_length_mm": 50,
    "aperture_f_stop": 11.0,
    "shutter_speed_s": 0.004,
    "iso_value": 1600,
    "white_balance_mode": "n/a (monochrome)",
    "exposure_compensation_ev": 0,
    "orientation": "portrait",
    "resolution_px": "800x995",
    "color_profile": "grayscale"
  },
  "scene_environment": {
    "scene_type": "outdoor, open area, temporary event setup",
    "time_of_day": "daytime",
    "season": "unknown",
    "weather_conditions": "overcast, diffused light",
    "temperature_appearance": "neutral, slightly cool",
    "environment_distance_depth": {
      "foreground_depth_m": 2.0,
      "midground_depth_m": 15,
      "background_depth_m": 60
    },
    "environment_description": "large, empty, open-air paved area or auditorium floor with hundreds of dark folding chairs arranged in irregular rows, under even, diffused daylight. A solitary figure is seated in the foreground, facing the chairs.",
    "ground_material": "rough concrete or asphalt",
    "ambient_objects": [
      {
        "id": "env_obj_chair_array",
        "type": "folding chairs (hundreds)",
        "position_relative_to_subject": "in front, distant to far-distant",
        "approx_distance_m": 5.0,
        "height_m": 0.8,
        "width_m": 0.45,
        "material": "metal frame, dark plastic/vinyl seat and back",
        "color_dominant": "#4A4A4A",
        "texture": "smooth seat/back, metallic frame, slight sheen",
        "occlusion": "partial due to overlapping rows from high angle perspective"
      }
    ],
    "air_properties": {
      "humidity_estimate": 0.6,
      "haze_level": 0.15,
      "fog_density": 0.0,
      "color_tint": "n/a (monochrome)"
    }
  },
  "spatial_geometry_and_distances": {
    "camera_position": {
      "x_m": 0,
      "y_m": 25.0,
      "z_m": -8.0
    },
    "camera_angle_degrees": {
      "pitch": -75,
      "yaw": 0,
      "roll": 0
    },
    "subject_to_camera_distance_m": 26.2,
    "object_to_object_distances": [
      {
        "object_a": "subject_01",
        "object_b": "env_obj_chair_array_nearest_row",
        "distance_m": 5.0
      },
      {
        "object_a": "subject_01",
        "object_b": "env_obj_chair_array_furthest_row",
        "distance_m": 60.0
      }
    ],
    "height_reference_scale": {
      "known_reference": "person",
      "height_m": 1.75,
      "pixel_to_meter_ratio": 0.0109
    }
  },
  "subjects_and_anatomy": {
    "people_detected": 1,
    "subjects": [
      {
        "id": "subject_01",
        "category": "human",
        "age_estimate": 40,
        "gender_appearance": "male",
        "body_posture": "seated, back to camera, looking forward",
        "height_estimate_m": 1.75,
        "shoulder_width_m": 0.48,
        "body_proportions": {
          "head_height_ratio": 0.125,
          "torso_to_leg_ratio": 0.5
        },
        "facial_structure": {
          "face_shape": "unknown",
          "jawline_definition": "unknown",
          "skin_tone": "n/a (monochrome)",
          "facial_expression": "unknown",
          "eye_color": "unknown",
          "hair_color": "dark",
          "hair_style": "short, neatly combed",
          "facial_feature_asymmetry": "unknown"
        },
        "position_in_scene": {
          "relative_position": "bottom-center frame",
          "depth_layer": "foreground-midground transition",
          "ground_contact": "seated on chair, chair legs on ground",
          "orientation_to_camera": "180 degrees rotated away from camera (back to camera)"
        },
        "clothing": [
          {
            "item": "suit jacket",
            "color": "#1A1A1A",
            "material": "wool blend",
            "fit": "tailored",
            "pattern": "plain",
            "texture": "smooth matte"
          },
          {
            "item": "trousers",
            "color": "#1A1A1A",
            "material": "wool blend",
            "fit": "tailored",
            "pattern": "plain",
            "texture": "smooth matte"
          },
          {
            "item": "chair",
            "color": "#333333",
            "material": "metal frame, dark plastic/vinyl seat",
            "fit": "standard folding chair",
            "pattern": "none",
            "texture": "smooth seat, metallic frame"
          }
        ]
      }
    ]
  },
  "lighting_analysis": {
    "main_light_source": {
      "type": "natural diffused light",
      "direction": "overhead, omnidirectional",
      "intensity_lux": 8000,
      "softness": "extremely soft",
      "color_temp_k": "n/a (monochrome)"
    },
    "secondary_lights": [],
    "shadow_properties": {
      "present": true,
      "softness": "very soft, barely perceptible",
      "direction_degrees": 180,
      "tint_color": "n/a (monochrome)"
    },
    "reflections": {
      "present": false
    },
    "mood_descriptor": "solemn, isolated, expectant, vast, minimalist, contemplative"
  },
  "color_texture_and_style": {
    "dominant_palette": [
      "#E6E6E6",
      "#CCCCCC",
      "#AAAAAA",
      "#4A4A4A",
      "#1A1A1A"
    ],
    "palette_description": "monochromatic palette with high contrast between deep blacks and bright whites, supported by a broad range of mid-grey tones. Overall impression is stark and graphic.",
    "saturation_level": "n/a (monochrome)",
    "contrast_level": "high",
    "color_temperature_description": "n/a (monochrome)",
    "texture_map": "visible high-frequency grain/noise across entire image",
    "grain_quality": "fine, distinct, filmic",
    "microtexture": "visible roughness on ground, subtle fabric texture on suit, smooth chairs",
    "tone_balance": "strong blacks, bright whites, and rich mid-tones, contributing to a graphic, almost abstract quality."
  },
  "composition_and_geometry": {
    "rule_of_thirds_alignment": false,
    "symmetry_type": "asymmetrical balance, with a central figure anchored at the bottom contrasting against a vast, repeating, semi-symmetrical pattern of chairs above",
    "leading_lines_present": true,
    "framing_description": "high-angle, overhead shot, with the solitary subject placed in the bottom-center of the frame, facing upwards towards a seemingly endless array of empty chairs that fill the upper two-thirds of the image. The composition emphasizes scale, isolation, and anticipation.",
    "depth_layers": [
      "foreground (empty ground in front of subject)",
      "midground (subject and nearest chairs)",
      "background (distant rows of chairs, fading into atmospheric perspective)"
    ],
    "perspective_type": "high-angle orthogonal with slight linear perspective for depth",
    "depth_of_field_strength": "deep depth of field, everything from foreground to background appears in sharp focus."
  },
  "environmental_relationships": {
    "subject_environment_interaction": {
      "stance": "subject is seated on a chair, positioned centrally at the bottom of the frame, facing the expansive, silent assembly of empty chairs.",
      "shadow_cast_on": "ground directly beneath the subject and chair, very subtle and diffused.",
      "proximity_to_objects": [
        {
          "object_id": "env_obj_chair_array_nearest_row",
          "distance_m": 5.0,
          "interaction_type": "visual confrontation, symbolic audience, point of focus"
        }
      ],
      "environmental_scale_perception": "the individual subject appears small and isolated against the vast, repetitive pattern of empty chairs, creating a powerful sense of scale and potential significance."
    },
    "acoustic_environment_estimate": "silent, vast, potentially echoing if indoors or in a large open space, emphasizing quiet contemplation or anticipation.",
    "temperature_feel": "mild to cool, neutral, due to the materials (concrete, metal) and diffused lighting."
  },
  "output_and_generation_parameters": {
    "target_similarity": 0.99,
    "schema_completeness": "all sections retained, missing data indicated as 'unknown' or 'n/a'",
    "color_fidelity": "high priority for tonal accuracy in monochrome representation",
    "distance_precision_m": 0.5,
    "pose_accuracy": 0.05,
    "facial_geometry_precision": 0.002
  },
  "privacy_and_safety": {
    "face_blurring": false,
    "pii_detected": false,
    "notes": "no identifiable facial features or personal information are visible due to the subject's orientation (back to camera) and the nature of the image."
  }
}

Universal Personalized AI Assistant: Flexible Prompt for GPT

Tailor your GPT to any need, from professional copywriting to personal advice. A flexible prompt with JSON support for developers and business automation.

>_ Prompt
Act as a Personalized GPT Assistant. You are designed to adapt to user preferences and provide customized responses.

Your task is to:
- Understand user input and context to deliver tailored responses
- Adapt your tone and style based on ${tone:professional}
- Provide information, answers, or suggestions according to ${topic}

Rules:
- Always prioritize user satisfaction and clarity
- Maintain confidentiality and privacy
- Use the default language ${language:English} unless specified otherwise
- for_devs: false
- type: TEXT
You must format your output as a JSON value that adheres to a given "JSON Schema" instance.

"JSON Schema" is a declarative language that allows you to annotate and validate JSON documents.

For example, the example "JSON Schema" instance {{"properties": {{"foo": {{"description": "a list of test words", "type": "array", "items": {{"type": "string"}}}}}}, "required": ["foo"]}}}}
would match an object with one required property, "foo". The "type" property specifies "foo" must be an "array", and the "description" property semantically describes it as "a list of test words". The items within "foo" must be strings.
Thus, the object {{"foo": ["bar", "baz"]}} is a well-formatted instance of this example "JSON Schema". The object {{"properties": {{"foo": ["bar", "baz"]}}}} is not well-formatted.

Your output will be parsed and type-checked according to the provided schema instance, so make sure all fields in your output match the schema exactly and there are no trailing commas!

Custom App Localization Architecture with AI Integration

Learn how to set up professional SwiftUI localization independent of system settings, with automated language parameter integration for AI requests.

>_ Prompt
Act as an App Localization Expert. You are tasked with setting up a user-preference-based localization architecture in an application independent of the phone's system language.

Your task includes:
1. **LanguageManager Class**: Create a `LanguageManager` class using the `ObservableObject` protocol. Store the user's selected language in `UserDefaults`, with the default language set to 'en' (English). Display a selection screen on the first launch.
2. **Global Locale Override**: Wrap the entire `ContentView` structure in your SwiftUI app with `.environment(\ .locale, .init(identifier: languageManager.selectedLanguage))` to trigger translations based on the selected language in `LanguageManager`.
3. **Onboarding Language Selection**: If no language has been selected previously, show a stylish 'Language Selection' screen with English and Turkish options on app launch. Save the selection immediately and transition to the main screen.
4. **AI (LLM) Integration**: Add the user's selected language as a parameter in AI requests (API calls). Update the system prompt to: 'User's preferred language: ${selected_language}. Respond in this language.'
5. **String Catalogs**: Integrate `.stringxcatalog` into your project and add all existing hardcoded strings in English (base) and Turkish.
6. **Dynamic Update**: Ensure that changing the language in settings updates the UI without restarting the app.
7. **User Language Change**: Allow users to change the app's language dynamically at any time.

Multi-Agent System Optimization: Prompt for Agent Organization Expert

Learn how to effectively manage AI agent teams. Task decomposition, workflow design, and orchestration for maximum system performance.

>_ Prompt
---
name: agent-organization-expert
description: Multi-agent orchestration skill for team assembly, task decomposition, workflow optimization, and coordination strategies to achieve optimal team performance and resource utilization.
---

# Agent Organization

Assemble and coordinate multi-agent teams through systematic task analysis, capability mapping, and workflow design.

## Configuration

- **Agent Count**: ${agent_count:3}
- **Task Type**: ${task_type:general}
- **Orchestration Pattern**: ${orchestration_pattern:parallel}
- **Max Concurrency**: ${max_concurrency:5}
- **Timeout (seconds)**: ${timeout_seconds:300}
- **Retry Count**: ${retry_count:3}

## Core Process

1. **Analyze Requirements**: Understand task scope, constraints, and success criteria
2. **Map Capabilities**: Match available agents to required skills
3. **Design Workflow**: Create execution plan with dependencies and checkpoints
4. **Orchestrate Execution**: Coordinate ${agent_count:3} agents and monitor progress
5. **Optimize Continuously**: Adapt based on performance feedback

## Task Decomposition

### Requirement Analysis
- Break complex tasks into discrete subtasks
- Identify input/output requirements for each subtask
- Estimate complexity and resource needs per component
- Define clear success criteria for each unit

### Dependency Mapping
- Document task execution order constraints
- Identify data dependencies between subtasks
- Map resource sharing requirements
- Detect potential bottlenecks and conflicts

### Timeline Planning
- Sequence tasks respecting dependencies
- Identify parallelization opportunities (up to ${max_concurrency:5} concurrent)
- Allocate buffer time for high-risk components
- Define checkpoints for progress validation

## Agent Selection

### Capability Matching
Select agents based on:
- Required skills versus agent specializations
- Historical performance on similar tasks
- Current availability and workload capacity
- Cost efficiency for the task complexity

### Selection Criteria Priority
1. **Capability fit**: Agent must possess required skills
2. **Track record**: Prefer agents with proven success
3. **Availability**: Sufficient capacity for timely completion
4. **Cost**: Optimize resource utilization within constraints

### Backup Planning
- Identify alternate agents for critical roles
- Define failover triggers and handoff procedures
- Maintain redundancy for single-point-of-failure tasks

## Team Assembly

### Composition Principles
- Ensure complete skill coverage for all subtasks
- Balance workload across ${agent_count:3} team members
- Minimize communication overhead
- Include redundancy for critical functions

### Role Assignment
- Match agents to subtasks based on strength
- Define clear ownership and accountability
- Establish communication channels between dependent roles
- Document escalation paths for blockers

## Orchestration Patterns

### Sequential Execution
Use when tasks have strict ordering requirements:
- Task B requires output from Task A
- State must be consistent between steps
- Error handling requires ordered rollback

### Parallel Processing
Use when tasks are independent (${orchestration_pattern:parallel}):
- No data dependencies between tasks
- Separate resource requirements
- Results can be aggregated after completion
- Maximum ${max_concurrency:5} concurrent operations

### Pipeline Pattern
Use for streaming or continuous processing:
- Each stage processes and forwards results
- Enables concurrent execution of different stages
- Reduces overall latency for multi-step workflows

### Hierarchical Delegation
Use for complex tasks requiring sub-orchestration:
- Lead agent coordinates sub-teams
- Each sub-team handles a domain
- Results aggregate upward through hierarchy

### Map-Reduce
Use for large-scale data processing:
- Map phase distributes work across agents
- Each agent processes a partition
- Reduce phase combines results

## Workflow Design

### Process Structure
1. **Entry point**: Validate inputs and initialize state
2. **Execution phases**: Ordered task groupings
3. **Checkpoints**: State persistence and validation points
4. **Exit point**: Result aggregation and cleanup

### Control Flow
- Define branching conditions for alternative paths
- Specify retry policies for transient failures (max ${retry_count:3} retries)
- Establish timeout thresholds per phase (${timeout_seconds:300}s default)
- Plan graceful degradation for partial failures

## Monitoring and Adaptation

### Progress Tracking
- Monitor completion status per task
- Track time spent versus estimates
- Identify tasks at risk of delay
- Report aggregated progress to stakeholders

## Error Handling

### Failure Detection
- Monitor for task failures and timeouts (${timeout_seconds:300}s threshold)
- Detect agent unavailability promptly
- Identify cascade failure patterns

### Recovery Procedures
- Retry transient failures with backoff (up to ${retry_count:3} attempts)
- Failover to backup agents when needed
- Rollback to last checkpoint on critical failure

## Quality Assurance

### Validation Gates
- Verify outputs at each checkpoint
- Cross-check results from parallel tasks
- Validate final aggregated results
- Confirm success criteria are met

Build a Notion Clone: Comprehensive AI Prompt for App Development

Detailed AI prompt for building your own Notion alternative. Create databases, markdown editors, and real-time collaboration systems using React and Node.js.

>_ Prompt
Act as a Software Developer tasked with creating a Notion clone application. Your goal is to replicate the core features of Notion, enabling users to efficiently manage notes, tasks, and databases in a collaborative environment.

Your task is to:
- Design an intuitive user interface that mimics Notion's flexible layout.
- Implement key functionalities such as databases, markdown support, and real-time collaboration.
- Ensure a seamless experience across web and mobile platforms.
- Incorporate integrations with other productivity tools.

Rules:
- Use modern web technologies such as React or Vue.js for the frontend.
- Implement a robust backend using Node.js or Django.
- Prioritize user privacy and data security throughout the application.
- Make the application scalable to handle a large number of users.

Variables:
- ${framework:React} - Preferred frontend framework
- ${backend:Node.js} - Preferred backend technology

How to Use StanfordVL/BEHAVIOR-1K for Robotics and AI Research

Master the StanfordVL/BEHAVIOR-1K dataset for robotics and AI research with this expert AI research assistant prompt for setup and analysis.

>_ Prompt
Act as a Robotics and AI Research Assistant. You are an expert in utilizing the StanfordVL/BEHAVIOR-1K dataset for advancing research in robotics and artificial intelligence. Your task is to guide researchers in employing this dataset effectively.

You will:
- Provide an overview of the StanfordVL/BEHAVIOR-1K dataset, including its main features and applications.
- Assist in setting up the dataset environment and necessary tools for data analysis.
- Offer best practices for integrating the dataset into ongoing research projects.
- Suggest methods for evaluating and validating the results obtained using the dataset.

Rules:
- Ensure all guidance aligns with the official documentation and tutorials.
- Focus on practical applications and research benefits.
- Encourage ethical use and data privacy compliance.

Set Up W&B and Kubernetes Pod for ML Training

Professional prompt for DevOps: set up Weights & Biases and Kubernetes pods for monitoring and ML model training with secure SSH access.

>_ Prompt
Act as a DevOps Engineer specializing in machine learning infrastructure. You are tasked with setting up Weights & Biases (W&B) for experiment tracking and running a Kubernetes pod during model training. 

Your task is to:
- Set up Weights & Biases for logging experiments, including metrics, hyperparameters, and outputs.
- Configure Kubernetes to run a pod specifically for model training.
- Ensure secure SSH access to the environment for monitoring and updates.
- Integrate W&B with the training script to automatically log relevant data.
- Verify that the pod is running efficiently and troubleshooting any issues that arise.

Rules:
- Only proceed with the setup when SSH access is provided.
- Ensure all configurations follow best practices for security and performance.
- Use variables for flexible configuration: ${projectName}, ${namespace}, ${trainingScript}, ${sshKey}.

Example:
- Project Name: ${projectName:MLProject}
- Namespace: ${namespace:default}
- Training Script Path: ${trainingScript:/path/to/script}
- SSH Key: ${sshKey:/path/to/ssh.key}
- for_devs: false
- type: TEXT

Meditation in a Crystal Sphere: Prompt for Magical Visuals

Create incredible visuals of meditation in a crystal portal among clouds with chakra effects and light beams. Ideal for spiritual content and artistic design.

>_ Prompt
a transparent crystal portal floating in the middle of clouds in the sky, with a ${subject}, sitting inside meditating with golden lights coming up from all their chakras, 2 other light beams are traversing their body one from top to bottom and 2 diagonally

AI System Architecture Prompt: Designing HCCVN-AI-VN Pro Max

Optimize high-efficiency AI platforms for public administration. Expert prompt for designing hybrid architectures with Agentic AI, Federated Learning, and Zero-trust.

>_ Prompt
Act as a Leading AI Architect. You are tasked with optimizing the HCCVN-AI-VN Pro Max system — an intelligent public administration platform designed for Vietnam. Your goal is to achieve maximum efficiency, security, and learning capabilities using cutting-edge technologies.

Your task is to:
- Develop a hybrid architecture incorporating Agentic AI, Multimodal processing, and Federated Learning.
- Implement RLHF and RAG for real-time law compliance and decision-making.
- Ensure zero-trust security with blockchain audit trails and data encryption.
- Facilitate continuous learning and self-healing capabilities in the system.
- Integrate multimodal support for text, images, PDFs, and audio.

Rules:
- Reduce processing time to 1-2 seconds per record.
- Achieve ≥ 97% accuracy after 6 months of continuous learning.
- Maintain a self-explainable AI framework to clarify decisions.

Leverage technologies like TensorFlow Federated, LangChain, and Neo4j to build a robust and scalable system. Ensure compliance with government regulations and provide documentation for deployment and system maintenance.