mirror of
https://github.com/addyosmani/agent-skills.git
synced 2026-08-12 18:07:26 +02:00
Per review from @federicobartoli and @nucliweb on #342: Tier 3 (behavioral): - Grade the execution trace, not the final output: executor runs with --output-format stream-json --verbose so the grader judges tool calls and file edits rather than the model's self-reporting. - Run each eval in a throwaway workspace; files[] fixtures materialize from evals/fixtures/ so evals can operate on real code. - Node-level timeouts on executor and grader calls; grader output parsed and shape-validated before writing (raw saved on failure); the trace is fenced as untrusted data in the grader prompt. - All 24 behavioral evals flagged trust_level: "provisional" until they gain fixtures; the runner surfaces this and exits nonzero on failed expectations. Tier 2 (deterministic): - Negative triggers accept an "owner" skill that must outrank this one, turning them into pairwise routing tests that cannot pass vacuously; 37 of 48 negatives now declare owners (the rest are tracked in #351). - Warn when a case file is below the documented minimums (3 positive / 2 negative / 1 behavioral); promotion to error tracked in #352. - Stemmer: cluster trailing y/i ("simplify"/"simplifies"). Baseline holds: 120 checks, 0 errors, 85% trigger rank-1 rate.
43 lines
1.3 KiB
JSON
43 lines
1.3 KiB
JSON
{
|
|
"skill_name": "documentation-and-adrs",
|
|
"trigger": {
|
|
"positive": [
|
|
{
|
|
"prompt": "Write an ADR for choosing Postgres over MongoDB",
|
|
"top_k": 3
|
|
},
|
|
{
|
|
"prompt": "Document the architecture decision behind the queue design",
|
|
"top_k": 3
|
|
},
|
|
{
|
|
"prompt": "Update the documentation for the new setup flow and record why it changed",
|
|
"top_k": 3
|
|
}
|
|
],
|
|
"negative": [
|
|
{
|
|
"prompt": "Find the root cause of the memory leak in the worker",
|
|
"owner": "debugging-and-error-recovery"
|
|
},
|
|
{
|
|
"prompt": "Harden the login endpoint against brute force attacks",
|
|
"owner": "security-and-hardening"
|
|
}
|
|
]
|
|
},
|
|
"evals": [
|
|
{
|
|
"id": 1,
|
|
"prompt": "Record the decision to adopt event sourcing for the orders service as an ADR.",
|
|
"expected_output": "An ADR capturing context, decision, alternatives considered, and consequences",
|
|
"expectations": [
|
|
"The ADR states context, decision, alternatives, and consequences distinctly",
|
|
"Trade-offs and rejected options are recorded, not just the winning choice",
|
|
"The document is written in timeless language describing current state"
|
|
],
|
|
"trust_level": "provisional"
|
|
}
|
|
]
|
|
}
|