Ai expertise engine

From onfire7777/universal-ai-skills-library · View interactive version

Ai expertise engine is an AI agent skill from the GitHub repository onfire7777/universal-ai-skills-library. Comprehensive AI/ML expertise covering prompt engineering, LLM architecture, AI agent design, RAG systems, fine-tuning, AI safety, and cutting-edge AI research for building and leveraging AI systems.

How to use this skill

Skill file

AI Expertise Engine

Purpose

Provide world-class AI expertise across the full spectrum — from prompt engineering and LLM usage to AI system architecture, agent design, RAG pipelines, fine-tuning, safety, and cutting-edge research.

Prompt Engineering Mastery

The Prompt Engineering Hierarchy

  1. System Prompt Design: Define persona, constraints, output format, and behavioral rules
  2. Few-Shot Examples: Provide 2-5 high-quality input/output examples
  3. Chain-of-Thought: "Think step by step" / "Let's work through this systematically"
  4. Structured Output: Specify exact JSON schema, Markdown format, or template
  5. Meta-Prompting: Prompt the AI to generate better prompts

Advanced Prompt Techniques

Prompt Anti-Patterns

LLM Architecture Understanding

Transformer Architecture

Key Model Parameters

Model Selection Guide

| Use Case | Best Model Type | Why |

|----------|----------------|-----|

| Complex reasoning | Large frontier models (GPT-4.1, Claude 3.5, Gemini 2.5) | Maximum capability |

| Fast simple tasks | Small models (GPT-4.1-mini, Haiku, Flash) | Speed + cost efficiency |

| Code generation | Code-specialized models | Domain optimization |

| Embedding/search | Embedding models (text-embedding-3, voyage) | Vector representation |

| Image understanding | Multimodal models | Vision capability |

| Real-time/streaming | Models with streaming support | Low latency |

AI Agent Architecture

Agent Design Patterns

  1. ReAct Agent: Reason → Act → Observe loop with tool access
  2. Plan-and-Execute: Create full plan first, then execute steps
  3. Reflexion Agent: Execute → Reflect → Improve → Re-execute
  4. Multi-Agent Systems: Specialized agents collaborating (researcher, coder, reviewer)
  5. Hierarchical Agents: Manager agent delegates to worker agents
  6. Agentic Workflows: DAG-based task orchestration with conditional branching

Tool Use Best Practices

Agent Memory Systems

RAG (Retrieval-Augmented Generation)

RAG Pipeline Architecture

  1. Ingestion: Document loading → Chunking → Embedding → Vector store
  2. Retrieval: Query embedding → Similarity search → Re-ranking → Context assembly
  3. Generation: Retrieved context + Query → LLM → Response with citations

Chunking Strategies

Retrieval Optimization

Fine-Tuning & Training

When to Fine-Tune vs. Prompt Engineer

Fine-Tuning Best Practices

AI Safety & Alignment

Key Safety Principles

Hallucination Mitigation

  1. Ground responses in retrieved context (RAG)
  2. Ask the model to cite specific sources
  3. Use lower temperature for factual tasks
  4. Implement fact-checking pipelines
  5. Use structured output to constrain responses
  6. Chain-of-thought to make reasoning explicit and verifiable

Evaluation Metrics

Cutting-Edge AI Research Areas (2025-2026)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.