Skip to content

Integrate automated skill effectiveness testing (agent-skill-bench) #1504

Open
1 of 5 issues completed
Open

Description

Summary

Integrate an automated effectiveness testing framework for skills, agents, and instructions into hve-core. This directly implements the Q4 2026 roadmap item "Build automated testing for agent and instruction effectiveness" with a proven multi-agent orchestration system that has already demonstrated measurable results against hve-core artifacts.

Motivation

hve-core currently has zero quality gates beyond structural validation (validate:skills). There is no mechanism to verify that a skill actually improves agent output quality. An external prototype (agent-skill-bench) has been evaluated against hve-core artifacts and demonstrates that automated effectiveness testing is both feasible and high-impact.

Key Benchmark Analysis: What the Data Reveals About HVE Core

An hve-artifact-authoring skill was benchmarked using blind A/B comparison (with-skill vs baseline) across 8 evaluations containing 34 expectations:

Metric With Skill Baseline Delta
Mean pass rate 96% 43% +53%
Min pass rate 67% 0% —
Max pass rate 100% 100% —

Critical Findings for hve-core

  1. Skills are essential for custom conventions, not general patterns. Three evals (collection manifest authoring, orchestrator agent creation, delegation model design) show 0% baseline → 100% with-skill. These test HVE-specific patterns that an LLM cannot infer from general knowledge alone.

  2. Some patterns are already learnable without skills. One eval (add-skill-with-scripts) scored 100% in both conditions, meaning the patterns it tests are redundant with information already in copilot-instructions.md.

  3. The discriminating ratio (53%) identifies where skill investment matters. Of 34 expectations, 18 uniquely measure skill value. The remaining 15 pass in both conditions (redundant) or fail in both (undocumented design decisions). This metric enables lean eval suites.

  4. One undocumented architectural decision was surfaced. A "parallel CI jobs" expectation fails in both conditions, revealing a design-fork that should become an ADR or instruction rather than a skill expectation.

  5. Skills dramatically outperform baseline on frontmatter contracts and packaging conventions — exactly the areas where hve-core has custom conventions that deviate from defaults.

Strategic Implications

  • Three patterns urgently need skills: collection manifest authoring, orchestrator handoffs/delegation, and the agents: frontmatter contract. All scored 0% baseline.
  • The +53% delta validates hve-core's skill model. The investment in artifact packaging and distribution is justified by measurable quality improvement.
  • Eval results can drive the authoring feedback loop. Bench results could feed into the existing Prompt Builder → Prompt Evaluator → Prompt Updater cycle.

Proposed Approach

Integrate the bench framework as a new collection (initially at experimental maturity) following a phased contribution:

  1. Phase 0: Fix critical functional blockers and frontmatter compliance
  2. Phase 1: Core eval framework — agents, SKILL.md, and collection manifest
  3. Phase 2: Integration with Prompt Builder workflow and npm scripts
  4. Phase 3: Run bench against existing hve-core skills to establish baselines

The bench uses a 5-mode lifecycle (CREATE → EVAL → IMPROVE → COMPARE → ASSESS) with a parent orchestrator dispatching specialized subagents, following the same architectural patterns already used throughout hve-core.

Architectural Alignment

Dimension Agent-Skill-Bench HVE Core Compatible?
Execution model Local-only, VS Code Copilot Chat Local-only, no backend ✅
Agent structure Parent orchestrator + subagents Same pattern ✅
File format .agent.md, SKILL.md, .prompt.md Same types ✅
State persistence JSON in workspace .copilot-tracking/ ✅ (path alignment needed)
Cross-platform Unix-only currently Both PowerShell and bash required ⚠️ Gap
CI integration Not yet implemented npm scripts + GitHub Actions ⚠️ Gap

Known Gaps (from analysis)

A 27-finding quality review identified prerequisites before integration:

  • 3 Critical: Missing subagent file, workspace naming mismatch, missing agents: frontmatter
  • 12 Major: SKILL.md over 500-line limit, missing name: frontmatter, Unix-only commands, non-standard section headers
  • 12 Minor: Style and documentation issues

All criticals are fixable in 1-2 days. Total conformance effort estimated at 3-4 weeks.

Quick Win (Independent of Framework Integration)

The hve-artifact-authoring skill itself could land in the coding-standards collection immediately with minimal integration friction. It demonstrates 96% pass rate and follows standard skill structure.

Discussion Points for Maintainers

  • Should the bench land as its own collection (skill-bench) or be distributed across existing collections?
  • What maturity level at launch: experimental or preview?
  • Should benchmark results gate PR merges for skill changes?
  • How should the bench interact with the existing Prompt Builder / Evaluator / Updater cycle?
  • Preferred CI output format: JUnit XML, TAP, or custom JSON matching existing logs/ patterns?

References

  • Q4 2026 Roadmap: "Build automated testing for agent and instruction effectiveness"
  • Source repository: gim-home/agent-skill-bench (EMU-protected)
  • Related: Prompt Builder agent workflow, validate:skills npm script

Sub-issues

Sub-issues

1 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. added
    needs-triage
    testing
    feature
    skills
    on May 1, 2026
  2. added
    agents
    and removed
    needs-triage
    on May 1, 2026
  3. github-actions commented on May 1, 2026

    @github-actions
    Contributor

    This is a well-researched and thorough proposal — the benchmark analysis and architectural alignment table are particularly helpful for evaluating scope. Thank you for putting this together!

    Given the estimated 3–4 week effort across four distinct phases, this issue has been decomposed into five independently deliverable sub-issues:

    Sub-issue Scope
    #1506 Quick win (independent): Add hve-artifact-authoring skill to coding-standards collection — can land immediately
    #1509 Phase 0: Fix critical blockers and frontmatter compliance (3 critical + 12 major findings)
    #1508 Phase 1: Create core skill-bench collection with orchestrator agent and SKILL.md
    #1507 Phase 2: Integrate skill-bench with Prompt Builder workflow and npm scripts
    #1505 Phase 3: Run bench against existing hve-core skills to establish effectiveness baselines

    The quick-win sub-issue (#1506) is independent and can proceed in parallel with the bench framework phases. Phases 0–3 are sequential. This issue serves as the epic tracker.

    The open design questions (collection structure, maturity level, CI output format, bench/evaluator integration) should be resolved during Phase 1 planning before that work begins.

    Note

    🔒 Integrity filter blocked 2 items

    The following items were blocked because they don't meet the GitHub integrity level.

    To allow these resources, lower min-integrity in your GitHub frontmatter:

    tools:
      github:
        min-integrity: approved  # merged | approved | unapproved | none

    Generated by Issue Triage for issue #1504 · ● 859.8K · ◷

  4. chaosdinosaur commented on May 1, 2026

    @chaosdinosaur
    CollaboratorAuthor
  5. dmavroeid commented on Aug 31, 2026

    @dmavroeid
    Contributor

    Since #1504 was opened, HVE Core has integrated Vally and established several
    evaluation workflows. This provides a strong foundation for a narrower and more
    useful contribution than the original five-mode skill-bench framework.

    The missing question is not whether a skill is structurally valid or whether an
    agent follows its instructions. It is:

    Does adding a specific skill package help the same agent perform a fixed
    task better than a fair no-skill baseline?

    A skill can pass conformance checks while adding little value over what the
    agent already knows. Conversely, it may improve a particular outcome or make
    delivery more reliable without changing every measured behavior. HVE Core
    supports artifact validation, behavioral conformance, and baseline equivalence,
    but it does not yet have a dedicated workflow for measuring this value.

    Proposed Direction

    I propose replacing the original skill-bench integration plan with a focused
    skill-effectiveness workflow delivered in two PRs:

    1. An existing-skill effectiveness MVP.
    2. A repository-to-skill extension after the core methodology is accepted.

    These PRs answer related but materially different questions.

    PR 1 asks:

    Does this existing skill package add value over a fair no-skill baseline?

    PR 2 asks:

    Can reusable knowledge from a repository be packaged as a candidate skill
    and shown to add measurable value over a fair no-skill baseline?

    Separating them keeps the initial contribution focused. The repository path adds
    knowledge extraction, candidate selection, and transfer questions that are not
    needed when evaluating an existing skill.

    PR 1: Existing-Skill Effectiveness MVP

    The first PR would add a skill-effectiveness skill that drives the complete
    workflow:

    1. Define what improvement the skill is expected to cause and what evidence
      would count against that expectation.
    2. Design and generate a controlled native Vally skill-versus-no-skill
      experiment. This includes selecting a suitable task and target, keeping both
      environments identical, and adding a frozen copy of the complete skill
      package and its required dependencies only to treatment.
    3. Present the experiment design, checks, and interpretation rules for human
      review, record accepted changes, and require approval before paid execution.
    4. Preflight, execute, and report the matched comparison.

    The generated experiment is specific to the skill, task, and target. It contains
    the fixtures, validators, calibration material, native Vally configuration,
    review record, and result analysis required to run and understand the
    comparison.

    Generated evaluations would initially remain on-demand and locally curated. The
    MVP would not establish a permanent HVE eval suite or CI lane. After the pilot,
    maintainers could decide whether selected evaluations should be promoted into
    HVE Core's maintained eval infrastructure.

    Why Vally

    This proposal builds on HVE Core's existing Vally integration instead of adding
    another execution framework.

    Vally can execute and record matched baseline and treatment trials while making
    skill availability the only configured difference. The proposed skill adds the
    opinionated methodology around that execution:

    • what improvement should be tested;
    • whether the selected task and target can reveal it;
    • what constitutes a fair baseline;
    • which evidence can be checked objectively and which requires review;
    • when results support adoption, improvement, no detected effect, or an
      inconclusive conclusion.

    Vally remains responsible for experiment execution, workspaces, graders,
    trajectories, and raw result persistence.

    Initial HVE Pilot

    The first PR would exercise the workflow against three current HVE skills:

    Skill Reason for inclusion
    ds-catalog Contract-heavy HVE behavior with strong executable validation opportunities
    ds-analysis-authoring Judgment-heavy guidance about analysis structure, scale, visualization, and interpretation
    c4-architecture Cross-file architecture inference and grounding

    The C4 case should use a non-trivial target requiring reconciliation of source
    code, configuration, dependencies, and deployment information. Its architecture
    should not already be summarized in a README.

    The pilot should also include small, reviewed controls demonstrating that the
    evaluation responds to useful non-obvious guidance without reporting unexplained
    improvement on an unrelated task. Their exact design should be reviewed during
    implementation rather than fixed in this comment.

    The pilot report should include:

    • matched skill and no-skill results;
    • completed, failed, and incomplete trials;
    • objective and qualitative evidence reported separately;
    • ceiling, contamination, and evidence-quality limitations;
    • time, available cost information, and manual curation effort;
    • what the evidence supports and what it does not support.

    This will tell us both whether the selected HVE skills add measurable value and
    whether the skill-effectiveness workflow makes that evaluation work more
    reliable and manageable.

    PR 2: Repository-to-Skill Extension

    After the existing-skill workflow is accepted, a second PR would extend the same
    skill to use a repository as the starting point.

    The workflow would:

    1. Decide whether the repository contains reusable, non-obvious knowledge worth
      packaging, with no skill warranted as a valid result.
    2. Extract that knowledge into a candidate skill and document what it is
      expected to add beyond the agent's existing knowledge.
    3. Design a fair skill-versus-no-skill experiment using a representative
      held-out task that requires applying the extracted knowledge rather than
      reproducing repository examples.
    4. Review the candidate skill, task, checks, and comparison design, then freeze
      them before paid execution.
    5. Run the controlled comparison with the candidate skill as the only treatment
      difference.
    6. Report whether the repository-to-skill process produced measurable value,
      including rejected candidates, manual effort, and limitations.

    The pilot should preferably test the candidate skill on another repository. If
    it instead uses a held-out task on the source repository, the result must be
    labelled as same-repository evidence and must not support a broad transfer
    claim.

    This separation lets reviewers assess the core skill-versus-no-skill method
    before adding repository analysis, candidate creation, and transfer evaluation.

    Delivery

    PR 1

    • The existing-skill skill-effectiveness workflow.
    • Generic plan and experiment templates.
    • Evidence-validation and matched-result analysis helpers.
    • Deterministic tests for those helpers.
    • Documentation of the reviewed and curated workflow.
    • A bounded report from the initial HVE pilot.

    PR 2

    • Support for using a repository as the source of a candidate skill.
    • A decision point that can stop with no skill warranted.
    • A recorded repository-to-candidate-skill workflow.
    • Held-out task and transfer-evidence rules.
    • One curated repository-to-skill pilot and bounded report.

    Raw generated run directories would not be committed. Permanent eval
    registration, CI execution, nightly scheduling, and portfolio-scale testing
    would remain follow-up decisions.

    I expect PR 1 and its initial evidence collection to fit within several working
    days to approximately one week. PR 2 would follow after review of the core MVP.

    Related Issues

    I propose updating the existing issue structure as follows:

    Does this two-PR direction and revised issue mapping fit how maintainers would
    like #1504 to proceed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agentsfeatureskillstesting

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions