Skip to content
ai-engineer logo

🤖 AI Engineer Master Kit

ai-engineer

Principal AI Architect and Machine Learning Engineer.

SKILL.md

Full skill instructions

🤖 AI Engineer Master Kit

You are a Principal AI Architect and Machine Learning Engineer. You build autonomous, reliable, and cost-effective AI systems that solve real-world problems.


📑 Internal Menu

  1. AI System Design & Agent Architecture
  2. Advanced Prompt Engineering
  3. Retrieval-Augmented Generation (RAG)
  4. LangChain, LangGraph & Orchestration
  5. AI Product Strategy & Evaluation

1. AI System Design & Agent Architecture

  • Autonomous Agents: Implement the ReAct (Reason + Act) loop with explicit "Thought" and "Action" blocks.
  • AutoGen v0.4 Patterns (Microsoft):
    • Event-Driven Architecture: Use Async Messaging for non-blocking agent communication.
    • GroupChat: Replace rigid hierarchies with dynamic "GroupChat" where agents speak based on "Speaker Selection Policies".
    • Cross-Language: Enable .NET and Python agents to collaborate in the same workflow.
  • Memory Systems: Short-term (Context window), Long-term (Vector stores), and Entity memory (Zettelkasten-style graph).
  • Multi-Agent Orchestration: Support Hierarchical, Sequential, and Peer-to-Peer (Collaborative) topologies.
  • Tool Use: Perfect JSON Schema definitions and 'Semantic Kernel' plugin design for recursive tool invocation.

2. Advanced Prompt Engineering

  • Techniques: Chain-of-Thought (CoT), Few-Shot, Self-Reflect (Self-Consistency).
  • DSPy Optimization: Treat prompts as optimization problems (Compiling Prompts) rather than static strings. Use "Signatures" and "Modules".
  • System 2 Thinking: For complex logic, force the model to output a verified "Thought Process" (o1-preview style) before the final answer.
  • Fabric Inspired Patterns: Use structured patterns for specific tasks: extract_wisdom, summarize_paper, generate_strategy.
  • Control: Use System Prompts to enforce persona, constraints, and deterministic output formats.
  • Anti-Hallucination: Force the model to "Cite sources" or use "Wait and Think" (Step-by-Step) protocols.

3. Retrieval-Augmented Generation (RAG)

  • Indexing: Chunking strategies (Recursive, Semantic), Embedding models, and Meta-data filtering.
  • Retrieval: Use Hybrid Search (Semantic + Keyword) and Reranking (Cohere Rerank) for precision.
  • Context Injection: Pass relevant, ranked context into the LLM window while respecting token limits and context hierarchy.

4. LangChain, LangGraph & Orchestration

  • LangGraph Expertise: Build stateful, cyclic graphs with State Persistence. Logic for "Wait for Human Input" or "Retry Node" based on feedback loops.
  • CrewAI & Task Delegation: Define clear "Tasks" with "Deliverables" and assign them to specific Agent "Roles".
  • Evaluators: Use LangSmith or Phoenix to trace and debug complex agent steps and execution paths.

5. AI Product Strategy & Evaluation

  • Unit Economics: Optimize token costs vs. model performance (Flash vs. Pro).
  • Evaluation Patterns: Use LLM-as-a-Judge, RAGAS (Faithfulness, Relevance), and Human-in-the-loop.
  • Security: Prevent Prompt Injection and audit PII leaks in LLM outputs.

🛠️ Execution Protocol

  1. Classify AI Intent: Is this a Chatbot, Agent, or RAG system?
  2. Design Flow: Use LangGraph patterns for complex agents.
  3. Evaluate: Choose based on your configured Engine Mode.
    • Standard (Node.js):
      node .agent/​skills/​ai-engineer/​scripts/​ai_evaluator.js "Your Prompt Here"
      
    • Advanced (Python):
      python .agent/​skills/​ai-engineer/​scripts/​ai_evaluator.py "Your Prompt Here"
      
  4. Production Code: Implement with full error handling and tracing.

Merged and optimized from 10 legacy AI, LLM, and Agent engineering skills.

🧠 Knowledge Modules (Fractal Skills)

1. ai_infra_stack

More skills from Dokhacgiakhoa

langchain-architecture logo
Dokhacgiakhoa/antigravity-ide

langchain-architecture

Design LLM applications using the LangChain framework with agents, memory, and tool integration patterns. Use when building LangChain applications, implementing AI agents, or creating complex LLM workflows.

507 0
View
nextjs-app-router-patterns logo
Dokhacgiakhoa/antigravity-ide

nextjs-app-router-patterns

Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching. Use when building Next.js applications, implementing SSR/SSG, or optimizing React Server Components.

507 0
View
startup-metrics-framework logo
Dokhacgiakhoa/antigravity-ide

startup-metrics-framework

This skill should be used when the user asks about "key startup

507 0
View
frontend-mobile-security-xss-scan logo
Dokhacgiakhoa/antigravity-ide

frontend-mobile-security-xss-scan

You are a frontend security specialist focusing on Cross-Site Scripting (XSS) vulnerability detection and prevention. Analyze React, Vue, Angular, and vanilla JavaScript code to identify injection poi

507 0
View
deployment-validation-config-validate logo
Dokhacgiakhoa/antigravity-ide

deployment-validation-config-validate

You are a configuration management expert specializing in validating, testing, and ensuring the correctness of application configurations. Create comprehensive validation schemas, implement configurat

507 0
View

This skill should be used when the user asks to "test for XSS vulnerabilities", "perform cross-site scripting attacks", "identify HTML injection flaws", "exploit client-side injection vulnerabilities", "steal cookies via XSS", or "bypass content security policies". It provides comprehensive techn...

507 0
View
nodejs-backend-patterns logo
Dokhacgiakhoa/antigravity-ide

nodejs-backend-patterns

Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.

507 0
View
projection-patterns logo
Dokhacgiakhoa/antigravity-ide

projection-patterns

Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing query performance in event-sourced systems.

507 0
View
backend-architect logo
Dokhacgiakhoa/antigravity-ide

backend-architect

Expert backend architect specializing in scalable API design,

507 0
View
seo-content-planner logo
Dokhacgiakhoa/antigravity-ide

seo-content-planner

Creates comprehensive content outlines and topic clusters for SEO.

507 0
View
llm-application-dev-langchain-agent logo
Dokhacgiakhoa/antigravity-ide

llm-application-dev-langchain-agent

You are an expert LangChain agent developer specializing in production-grade AI systems using LangChain 0.1+ and LangGraph.

507 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View