[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CX3086H3TA8RE2GBAJABVS":3,"skill-same:01M7CX3086H3TA8RE2GBAJABVS":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CX3086H3TA8RE2GBAJABVS","agentworks-evals",null,"How to write and run behavior-eval cases for a skill or agent in this AgentWorks project: the evals\u002F*.yaml format, text, tool-call, and activation assertions, trigger cases, rubrics and a judge, runner protocols (text and json), repeated runs, and agentworks eval. Use when asked to test, evaluate, or regression-check how a skill or agent responds, or whether its description makes a model choose it.","mtfuller\u002Fagentworks","mtfuller","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8827772?v=4","01M7CX14Y5SM1380QNFB135MSH","Thomas Fuller","01M7CX14YTMWAKKZ743XPPP1RJ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-evals\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agentworks-evals\ndescription: >\n  How to write and run behavior-eval cases for a skill or agent in this AgentWorks project:\n  the evals\u002F*.yaml format, text, tool-call, and activation assertions, trigger cases,\n  rubrics and a judge, runner protocols (text and json), repeated runs, and agentworks eval.\n  Use when asked to test, evaluate, or regression-check how a skill or agent responds, or\n  whether its description makes a model choose it.\n---\n\n# Behavior evals\n\n`agentworks test` runs unit tests. `agentworks eval` checks how an artifact **responds**:\neach case sends a prompt to a runner command and asserts on what comes back. AgentWorks never\ncalls a model itself; the runner and the judge are commands you supply.\n\n## Case files\n\nPut one or more `*.yaml` \u002F `*.yml` files directly in `\u003Cartifact>\u002Fevals\u002F` (no subfolders).\nScaffolded skills and agents start with `evals\u002Fexample.yaml`; replace its placeholder.\n\n```yaml\ncases:\n  - name: summarizes a csv           # unique across the artifact's files\n    prompt: \"Profile the attached sales.csv and report row count.\"\n    assert:\n      contains: [\"rows\", \"columns\"]        # case-insensitive substrings, all required\n      not_contains: [\"as an AI\"]           # none may appear\n      matches: \"\\\\d+ rows\"                 # Go regex that must match\n      not_matches: \"(?i)error\"             # Go regex that must not match\n      min_length: 40\n      max_length: 800\n```\n\nEvery assertion set on a case must pass. Files are parsed **strictly**: an unknown key (a typo such\nas `contians:`), a case that asserts nothing, or a duplicate name is an error, not a case that\npasses for any response. Assert on facts, keywords, and format, not exact prose. Cover the happy\npath, a should-refuse or should-not-trigger case, and one edge input.\n\n## Trace assertions (need `eval_protocol: json`)\n\n```yaml\n    assert:\n      tool_called: [search]\n      tool_not_called: [delete]\n      tool_args:                     # some call to the tool must satisfy every condition\n        - tool: search\n          equals: {limit: 10}        # exact value\n          matches: {query: \"^unit\"}  # Go regex on the argument's string form\n      activated: [csv-analyzer]      # skills that must \u002F must not have been activated\n      not_activated: [other-skill]\n```\n\n## Trigger cases: does the description work?\n\n```yaml\n  - name: chosen for a csv request\n    prompt: \"Can you analyze this sales csv?\"\n    should_trigger: true\n  - name: not chosen for arithmetic\n    prompt: \"What is 2 + 2?\"\n    should_trigger: false\n```\n\nA model decides whether to use a skill from its description alone, so this is how you test it. A\nfailure says whether the description is too narrow (missed a trigger) or too broad (a false one).\nWrite a pair for each skill: phrasings it should catch and near-misses it should not.\n\n## Rubrics\n\n`rubric: \"Cites at least one source.\"` is graded by a judge: a command (`judge_runner` in\nfrontmatter, or `eval.judge_runner`) that reads `{\"subject\",\"prompt\",\"response\",\"rubric\"}` as JSON\non stdin and prints `{\"pass\": true|false, \"reason\": \"...\"}`. No judge, or a judge whose output can't\nbe read, fails the case rather than passing it unchecked.\n\n## Runner\n\nThe runner is a shell command that reads the prompt on **stdin**. Set it per artifact in\nfrontmatter, or once in `agentworks.yaml` (an artifact's own value wins):\n\n```yaml\neval_runner: python3 examples\u002Feval-runners\u002Fclaude_code.py\neval_protocol: json          # or \"text\" (the default)\njudge_runner: python3 examples\u002Feval-runners\u002Fclaude_judge.py\n```\n\n```yaml\n# agentworks.yaml\neval:\n  default_runner: claude -p\n  protocol: text\n  judge_runner: ...\n  runs: 1                    # default repetitions per case\n  timeout: 120               # seconds per runner\u002Fjudge call\n```\n\n**text protocol:** stdout is the response. **json protocol:** stdout is exactly one JSON object\n`{\"text\": \"...\", \"tool_calls\": [{\"name\": \"...\", \"arguments\": {}}], \"activated\": [\"skill\"],\n\"usage\": {\"input_tokens\": 0, \"output_tokens\": 0}}` (logs go to stderr). Only `text` is required, but\na case that asserts on `tool_calls` or `activated` fails if the runner did not report them; an empty\nlist means \"none\", a missing key means \"not reported\".\n\nThe runner and judge run in the artifact's directory with `AGENTWORKS_ARTIFACT_NAME`, `_KIND`,\n`_DIR`, `AGENTWORKS_EVAL_CASE`, `_PROTOCOL`, and `_ROLE` set. With no runner configured, artifacts\nwith cases are skipped with a warning, not failed. A runner that errors (including an\nauthentication failure) must exit non-zero, so a broken setup is never scored as an answer.\n\n## Nondeterminism and time\n\n```yaml\n    runs: 5               # repeat the case\n    pass_threshold: 0.8   # the fraction of runs that must pass (default: all)\n    timeout: 60           # seconds per run; a runner that hangs is killed with its children\n```\n\n## Run\n\n```bash\nagentworks eval                  # every artifact with an evals\u002F directory\nagentworks eval skills\u002F\u003Cname>    # one artifact\nagentworks eval --case \"\u003Cname>\"  # one case by exact name\nagentworks eval --junit eval.xml # also write a JUnit report for CI\nagentworks eval --json           # machine-readable report on stdout\n```\n\n`agentworks validate` also parses eval files, so malformed YAML and typos are caught early.\n`agentworks doctor` verifies the runner's and judge's binaries are on PATH.\n","# Behavior evals\n\n`agentworks test` runs unit tests. `agentworks eval` checks how an artifact **responds**:\neach case sends a prompt to a runner command and asserts on what comes back. AgentWorks never\ncalls a model itself; the runner and the judge are commands you supply.\n\n## Case files\n\nPut one or more `*.yaml` \u002F `*.yml` files directly in `\u003Cartifact>\u002Fevals\u002F` (no subfolders).\nScaffolded skills and agents start with `evals\u002Fexample.yaml`; replace its placeholder.\n\n```yaml\ncases:\n  - name: summarizes a csv           # unique across the artifact's files\n    prompt: \"Profile the attached sales.csv and report row count.\"\n    assert:\n      contains: [\"rows\", \"columns\"]        # case-insensitive substrings, all required\n      not_contains: [\"as an AI\"]           # none may appear\n      matches: \"\\\\d+ rows\"                 # Go regex that must match\n      not_matches: \"(?i)error\"             # Go regex that must not match\n      min_length: 40\n      max_length: 800\n```\n\nEvery assertion set on a case must pass. Files are parsed **strictly**: an unknown key (a typo such\nas `contians:`), a case that asserts nothing, or a duplicate name is an error, not a case that\npasses for any response. Assert on facts, keywords, and format, not exact prose. Cover the happy\npath, a should-refuse or should-not-trigger case, and one edge input.\n\n## Trace assertions (need `eval_protocol: json`)\n\n```yaml\n    assert:\n      tool_called: [search]\n      tool_not_called: [delete]\n      tool_args:                     # some call to the tool must satisfy every condition\n        - tool: search\n          equals: {limit: 10}        # exact value\n          matches: {query: \"^unit\"}  # Go regex on the argument's string form\n      activated: [csv-analyzer]      # skills that must \u002F must not have been activated\n      not_activated: [other-skill]\n```\n\n## Trigger cases: does the description work?\n\n```yaml\n  - name: chosen for a csv request\n    prompt: \"Can you analyze this sales csv?\"\n    should_trigger: true\n  - name: not chosen for arithmetic\n    prompt: \"What is 2 + 2?\"\n    should_trigger: false\n```\n\nA model decides whether to use a skill from its description alone, so this is how you test it. A\nfailure says whether the description is too narrow (missed a trigger) or too broad (a false one).\nWrite a pair for each skill: phrasings it should catch and near-misses it should not.\n\n## Rubrics\n\n`rubric: \"Cites at least one source.\"` is graded by a judge: a command (`judge_runner` in\nfrontmatter, or `eval.judge_runner`) that reads `{\"subject\",\"prompt\",\"response\",\"rubric\"}` as JSON\non stdin and prints `{\"pass\": true|false, \"reason\": \"...\"}`. No judge, or a judge whose output can't\nbe read, fails the case rather than passing it unchecked.\n\n## Runner\n\nThe runner is a shell command that reads the prompt on **stdin**. Set it per artifact in\nfrontmatter, or once in `agentworks.yaml` (an artifact's own value wins):\n\n```yaml\neval_runner: python3 examples\u002Feval-runners\u002Fclaude_code.py\neval_protocol: json          # or \"text\" (the default)\njudge_runner: python3 examples\u002Feval-runners\u002Fclaude_judge.py\n```\n\n```yaml\n# agentworks.yaml\neval:\n  default_runner: claude -p\n  protocol: text\n  judge_runner: ...\n  runs: 1                    # default repetitions per case\n  timeout: 120               # seconds per runner\u002Fjudge call\n```\n\n**text protocol:** stdout is the response. **json protocol:** stdout is exactly one JSON object\n`{\"text\": \"...\", \"tool_calls\": [{\"name\": \"...\", \"arguments\": {}}], \"activated\": [\"skill\"],\n\"usage\": {\"input_tokens\": 0, \"output_tokens\": 0}}` (logs go to stderr). Only `text` is required, but\na case that asserts on `tool_calls` or `activated` fails if the runner did not report them; an empty\nlist means \"none\", a missing key means \"not reported\".\n\nThe runner and judge run in the artifact's directory with `AGENTWORKS_ARTIFACT_NAME`, `_KIND`,\n`_DIR`, `AGENTWORKS_EVAL_CASE`, `_PROTOCOL`, and `_ROLE` set. With no runner configured, artifacts\nwith cases are skipped with a warning, not failed. A runner that errors (including an\nauthentication failure) must exit non-zero, so a broken setup is never scored as an answer.\n\n## Nondeterminism and time\n\n```yaml\n    runs: 5               # repeat the case\n    pass_threshold: 0.8   # the fraction of runs that must pass (default: all)\n    timeout: 60           # seconds per run; a runner that hangs is killed with its children\n```\n\n## Run\n\n```bash\nagentworks eval                  # every artifact with an evals\u002F directory\nagentworks eval skills\u002F\u003Cname>    # one artifact\nagentworks eval --case \"\u003Cname>\"  # one case by exact name\nagentworks eval --junit eval.xml # also write a JUnit report for CI\nagentworks eval --json           # machine-readable report on stdout\n```\n\n`agentworks validate` also parses eval files, so malformed YAML and typos are caught early.\n`agentworks doctor` verifies the runner's and judge's binaries are on PATH.\n",{"name":5,"description":7},"main","03ffb239e6bb33e8070459c735e3dcdf9c4ed7a3","internal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-evals","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks","https:\u002F\u002Fgithub.com\u002Fmtfuller","https:\u002F\u002Fthomasfuller.codes","Software Developer • Interested in FinTech, Cloud, and Cryptography • Mandolin Novice • Follower of Christ","2026-10-07 02:40:35",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add mtfuller\u002Fagentworks --skill agentworks-evals",{"tool":38,"command":39},"bunx","bunx skills add mtfuller\u002Fagentworks --skill agentworks-evals",{"tool":41,"command":42},"pnpm","pnpm dlx skills add mtfuller\u002Fagentworks --skill agentworks-evals","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-evals\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7CX2VJVECW2YVR25G6ZNK71","agentworks-cli","How to scaffold, validate, build, test, run, export, import, and publish this project's agents, skills, MCP servers, and hooks with the agentworks CLI. Use whenever asked to add, change, check, ship, or import an artifact in this project.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-cli\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CX2Q2N4MXXYDGZGPJXDS2F","agentworks-author-skill","How to write or edit a skill in this AgentWorks project: skill.md frontmatter, the description that decides when it triggers, entrypoint\u002Fscripts\u002Ftests layout, and build\u002Ftest commands. Use when creating or changing anything under skills\u002F.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-author-skill\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CX2JEP9SFCS2XFYD3596NN","agentworks-author-mcp","How to write or edit an MCP server in this AgentWorks project: mcp.md frontmatter, local (stdio) versus remote (http\u002Fsse) servers, command, args, env and auth, source and tests layout, and the build, test, doctor, and run loop. Use when creating or changing anything under mcp\u002F.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-author-mcp\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CX2EVMY1M34F4RXAR03639","agentworks-author-hook","How to write or edit a lifecycle hook in this AgentWorks project: hook.md frontmatter, choosing vendor-specific event names, matchers and timeouts, the command it runs, and safety review. Use when creating or changing anything under hooks\u002F.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-author-hook\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CX2C1E06Y85KAYX6X7HD1Z","agentworks-author-agent","How to write or edit an agent (subagent) in this AgentWorks project: agent.md frontmatter, portable tools and model settings, writing the instructions, and resources. Use when creating or changing anything under agents\u002F.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-author-agent\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CX2A0NZY6KZMB3VZDVJ0CF","csv-analyzer","Analyze a CSV file and flag rows that stand out.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Fexamples\u002Fstarter-project\u002Fskills\u002Fcsv-analyzer\u002Fskill.md",[],[]]