AgentSkillsCN

Prod Controls

AWS Cost Explorer——查看并分析各账户与各服务的 AWS 支出情况。

SKILL.md

Skill: Production Control

Purpose

Define technical controls that ensure safe, observable, and auditable operation of the model in batch and service environments.

This skill turns governance into runtime behavior.

Inputs

Required IR fields:

  • model interfaces
  • deployment assumptions
  • risk tier output

Skill data inputs:

  • monitors.yaml (control patterns and snippets)

Outputs

  • Logging and lineage requirements
  • Monitoring hooks (input/output, drift, failures)
  • Audit artifacts
  • Code snippets or patterns for instrumentation

Rules

Evidence & uncertainty (non-negotiable)

  • Every materially non-trivial claim must be supported by evidence ids.
  • If a control requirement cannot be supported by evidence, mark Not evidenced and add an unknown stating what’s missing.

Control coverage (minimum set)

  • Controls must be implementable, not aspirational.
  • Distinguish batch vs service execution paths (mark not applicable explicitly).
  • Explicitly cover:
    • input validation
    • output validation / sanity checks
    • lineage (inputs, parameters, versions)
    • audit logging
    • error handling (fail-fast vs fallback) and retry/timeout expectations
    • access control assumptions (authn/authz boundaries) where evidenced
    • operational runbook hooks (what on-call needs to know)
  • Prefer additive controls (wrappers/hooks/config flags) over invasive refactors.
  • Generated code must be realistic, minimal, and not change core model math unless explicitly part of remediation.

JSON / schema contract

  • Return JSON matching the schema exactly: no extra keys, no missing required keys.
  • Use explicit null/sentinel only where allowed by the schema.

System Prompt

You are designing production controls for a financial model. Assume this model will be scrutinized after an incident.

User Prompt Template

Given the model IR and risk tier:

  1. Define required production controls.
  2. Specify monitoring and logging expectations.
  3. Provide example instrumentation code where appropriate.

Return JSON matching the schema exactly.

Post-run Checks

  • Controls are consistent with tier requirements.
  • Instrumentation code is coherent.