AGENT SKILL

ai-engineer

Org role guidance for an AI engineer: ship LLM features into production apps with explicit cost, latency and quality trade-offs and safe fallbacks. Covers output validation, RAG, prompt versioning, shadow deploys and per-call metrics.

License 许可
Apache-2.0
所属仓库
monoes/monomind
最近更新
2026-11-14
Stars
★ 23
Forks
2

01 前言 Front Matter

name
ai-engineer
tags
[ "ai-ml", "engineering", "llm" ]
tools
[ "monograph_query", "monograph_context", "monograph_impact" ]
source
https://github.com/monoes/monomind
license
Apache-2.0
description
Org role guidance for an AI engineer: ship LLM features into production apps with explicit cost, latency and quality trade-offs and safe fallbacks. Covers output validation, RAG, prompt versioning, shadow deploys and per-call metrics.

03 SKILL.md 正文

AI Engineer — Best Practices

Focus

Builds and ships AI-powered features and integrations into production applications — wiring models, APIs, and data pipelines into real systems with attention to latency, cost, and reliability.

Best practices

  • Start from the production integration pattern (real-time, batch, streaming, edge) before choosing a model — the deployment shape constrains what's viable.
  • Treat prompt/model choice as a cost-latency-quality trade-off explicit to the use case, not a default to the biggest available model.
  • Version prompts, model versions, and configs together — a "silent" model or prompt change is a production incident waiting to happen.
  • Build fallback paths (cached response, smaller model, static default) for when the AI call fails, times out, or returns low-confidence output.
  • Validate and sanitize model output before it reaches downstream systems — never trust generated content/structure blindly, especially for tool calls or structured data.
  • Instrument every AI call with latency, cost, and success/failure metrics from day one, not after the first production incident.
  • Test across realistic input distributions, including edge cases and adversarial inputs, not just the happy-path demo prompts.
  • Keep a human-in-the-loop or review gate for any AI output with real-world consequences (financial, medical, irreversible actions).

Common pitfalls

  • Wiring an LLM call directly into a critical path with no timeout, retry, or fallback — a slow provider becomes an app-wide outage.
  • Treating a demo/prototype prompt as production-ready without testing on the actual distribution of real user inputs.
  • No cost tracking per call — token usage silently balloons until the bill is a surprise.
  • Trusting structured output (JSON, function calls) from a model without schema validation before use.
  • Ignoring bias/fairness checks on user-facing AI features until after a public failure surfaces the gap.

Tools & techniques

  • RAG (retrieval-augmented generation) with a vector store (Pinecone/Weaviate/Chroma/FAISS/Qdrant) when grounding responses in proprietary data.
  • Structured-output validation (JSON schema, Pydantic/Zod) on every model response consumed programmatically.
  • A/B testing or shadow deployment to compare a new model/prompt against the current production one before full rollout.
  • Prompt/config versioning alongside code, so behavior changes are traceable and revertible like any other deploy.
  • Latency/cost/success dashboards per AI integration point, with alerting on drift from baseline.

04 同仓库更多 Skills

monoes
monoes/monomind

isms-audit-expert

Use when planning or running an ISO 27001 ISMS audit: risk-based audit schedules, Annex A control assessment, Statement of Applicability and nonconformities. Auditor-side procedures, versus compliance-auditor, which is org role guidance across SOC 2, HIPAA and PCI-DSS.

★ 23
monoes
monoes/monomind

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full ASM JSON, flattened CSV for easy import, and exportable Python code for data engineers. Common triggers include converting instrument files, standardizing lab data, preparing data for upload to LIMS/ELN systems, or generating parser code for production pipelines.

★ 23
monoes
monoes/monomind

experiment-designer

Use when planning a product A/B or multivariate test: If/Then/Because hypotheses, primary and guardrail metrics, sample size and MDE, ICE prioritization. For logging and reproducing ML runs use experiment-tracker; for scientific study design use experimental-design.

★ 23
monoes
monoes/monomind

digest

Generate a daily or weekly digest of activity across all connected sources. Use when catching up after time away, starting the day and wanting a summary of mentions and action items, or reviewing a week's decisions and document updates grouped by project.

★ 23
monoes
monoes/monomind

design-critique

Get structured design feedback on usability, hierarchy, and consistency. Trigger with "review this design", "critique this mockup", "what do you think of this screen?", or when sharing a Figma link or screenshot for feedback at any stage from exploration to final polish.

★ 23
monoes
monoes/monomind

deployment-pipeline-design

Use when architecting a multi-stage CI/CD pipeline with approval gates, SAST and DAST scans, environment promotion, canary rollout and automated rollback. Design-level; for concrete Dockerfile and health check patterns use deployment-patterns.

★ 23