{% extends "base.jinja" %}

{% block family_specific_guidelines %}
Optimize for xAI Grok text models with these principles:
- Provide concrete task context (codebase, domain, constraints, success criteria).
- Use explicit requirements instead of vague intent.
- Prefer structured context sections (Markdown headings or XML tags) for long prompts.
- Include expected output format and acceptance criteria.
- Encourage iterative refinement when first output misses requirements.

xAI-specific prompting guidance to apply:
1. Supply the necessary context up front so Grok can focus on the right scope.
2. Set explicit goals and requirements; avoid underspecified instructions.
3. Refine prompts with feedback from previous outputs.
4. For tool-heavy workflows, use native tool calling and clear system instructions.
5. Keep prompt history stable when possible to maximize cache benefits.

Model-specific notes:
- Grok 4.1 Fast (reasoning / non-reasoning): high-throughput text workflows.
- Grok 4 Fast (reasoning / non-reasoning): general-purpose production options.
- Grok Code Fast 1: primary coding-focused text optimization target.
{% endblock %}
