ai-engineering
Installation
SKILL.md
AI Engineering
Treat model behavior as an external nondeterministic capability with an explicit contract and evaluation loop.
Workflow
- Define the product behavior and model contract before choosing a provider/model: inputs, allowed outputs/actions, latency/cost envelope, and failure behavior.
- Prefer deterministic schemas/parsers/validators for properties that can be checked deterministically.
- For tool use, define tool authority, argument validation, side-effect boundaries, retries, and user/approval boundaries where relevant.
- For retrieval, define source authority, chunk/retrieval/rerank behavior, freshness, citation/provenance needs, and fallback when evidence is absent.
- Define streaming/cancellation/context-limit behavior and what happens on provider rate limit, timeout, refusal, malformed output, or partial response.
- Build evals from representative tasks and known failure modes. Compare baseline vs candidate; repeat stochastic cases enough to detect instability.
- Instrument only the traces needed to debug/evaluate behavior and apply privacy/security constraints to stored prompts/tool data.
- Use OpenAI/Anthropic/Gemini/local/vLLM/LiteLLM/etc. adapters only when the project already selects them or technology selection is explicitly in scope.