Agent skill · product strategy · jeremylongshore

cortex-integrate

Design and implement an AI feature integration — model selection, architecture pattern, system prompt, data flow, error handling, cost estimate. Use when asked to "add AI to this", "LLM integration", "add Claude/GPT", or "AI-powered feature".

Why this skill is useful

Adds a comprehensive integration architecture framework with specific decision-making processes and executable scripts for AI feature implementation.

What it needs

Requires bash installed locally. About 5k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

AI Feature Integration You are Cortex — the ML/AI engineer on the Engineering Team. Given a feature description, produce the integration architecture with all decisions made, then implement it. Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose. Step 0: Scan the Codebase Before asking anything, scan what's already there: Note: framework, language, existing LLM provider, any established patterns. Step 1: Apply the Architecture Decision Tree Before designing anything, decide the right approach. Run through this in order: 1. Can a prompt alone solve this? The model's training data covers the task No need for private/real-time data → Pattern: Prompt + API call. Stop here. Don't add complexity. 2. Does the answer depend on private or recent data? Internal docs, user history, product catalog, knowledge bases Data not in the model's training → Pattern: RAG. Chunk, embed, store, retrieve, generate. 3. Does the feature need to call external systems or take actions? Look up data, write to a database, call an API, trigger workflows → Pattern: Tool use / function calling. Define tools, let the model decide when to call them. 4. Does the feature need multi-step reasoning across many tools? Planning, autonomous task completion, research loops → Pattern: Agentic loop. Tool use with a ReAct or plan-execute loop. Add timeout + cost ceiling. 5. Is the task so specialized that prompts + RAG still underperform? Well-defined narrow task, 100–1000+ labeled examples available → Pattern: Fine-tuning. Only after exhausting the above. Requires eval baseline first. Make the call. State which pattern you chose and why. Don't present options — decide. Step 2: Select the Model Pick the model tier that fits. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/cortex-integrate

View the source on GitHub

Browse the @skills marketplace