一键导入
apastra-baseline
Establish and manage evaluation baselines for regression detection. A baseline is a known-good scorecard that future runs are compared against.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Establish and manage evaluation baselines for regression detection. A baseline is a known-good scorecard that future runs are compared against.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
PromptOps skills for versioning, evaluating, tracing, and shipping AI prompts as disciplined software assets. Agent-as-harness — your IDE agent runs evals, compares baselines, surfaces trace evidence, and gates quality.
Upgrade from local-first evaluation to automated GitHub Actions CI. Installs workflows for PR gating, release promotion, and auto-merge.
Quick setup guide for apastra PromptOps. Create your first prompt spec, dataset, evaluator, and suite in 5 minutes.
Run prompt evaluations using your IDE agent as the harness. Load suites, execute test cases, score results, and compare against baselines.
Generate new prompt specs, datasets, evaluators, and suites from templates. Creates correctly-formatted files that pass schema validation.
Inspect agent traces, hook events, tool-call transcripts, and run artifacts; turn them into PromptOps evidence, eval cases, and artifact references.
基于 SOC 职业分类
| name | apastra-baseline |
| description | Establish and manage evaluation baselines for regression detection. A baseline is a known-good scorecard that future runs are compared against. |
Establish baselines from evaluation runs. A baseline is a snapshot of a scorecard that represents "known good" — future evaluations compare against it to detect regressions.
Use this skill when you want to:
When asked to establish a baseline (e.g., "set the current results as the baseline for summarize-smoke"):
Find the most recent run for the target suite in promptops/runs/. Look for the latest directory matching <suite-id>-* and read its scorecard.json.
If no recent run exists, tell the user to run the eval skill first.
Before establishing a baseline, verify the scorecard passes the suite's thresholds. Read the suite from promptops/suites/<suite-id>.yaml and check that every metric meets its threshold. Never baseline a failing scorecard.
python .agent/scripts/apastra/runtime/digest.py promptops/runs/<run-id>/scorecard.json
Include this digest in the baseline for integrity verification.
Write to derived-index/baselines/<suite-id>.json:
{
"suite_id": "summarize-smoke",
"established_at": "2026-03-11T12:00:00Z",
"source_run": "summarize-smoke-2026-03-11-120000",
"scorecard_digest": "sha256:abc123...",
"scorecard": {
"normalized_metrics": {
"keyword_recall": 0.85
},
"metric_definitions": {
"keyword_recall": {
"description": "Fraction of expected keywords found in output",
"version": "1.0",
"direction": "higher_is_better"
}
}
}
}
Baseline established ✅
Suite: summarize-smoke
Source run: summarize-smoke-2026-03-11-120000
Digest: sha256:abc123...
Metrics:
keyword_recall: 0.85
Saved to: derived-index/baselines/summarize-smoke.json
Baselines follow an append-friendly model. When updating:
<suite-id>-<timestamp>.json as an archivederived-index/baselines/<suite-id>.jsonRestore a prior baseline by copying an archived file back to <suite-id>.json.
To compare multiple models before choosing a baseline, use:
python .agent/scripts/apastra/runs/compare.py <suite-id> [model1 model2 ...]
This produces a comparison scorecard with cost/quality/latency tradeoffs across models.
<suite-id>.json