Skip to content

Refine parameter description in generate-benchmark-data.ps1 and add s…#110

Merged
ViktorHofer merged 2 commits into
mainfrom
FollowupNits
Feb 24, 2026
Merged

Refine parameter description in generate-benchmark-data.ps1 and add s…#110
ViktorHofer merged 2 commits into
mainfrom
FollowupNits

Conversation

@ViktorHofer
Copy link
Copy Markdown
Member

@ViktorHofer ViktorHofer commented Feb 24, 2026

…afeDirName function to sanitize skill names in reporter.ts

Addressing valid follow-up feedback from Copilot in #108

…afeDirName function to sanitize skill names in reporter.ts
Copilot AI review requested due to automatic review settings February 24, 2026 11:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens filesystem safety in skill-validator by preventing skill names from being used for path traversal when creating per-skill report directories, and updates PowerShell help text for the dashboard benchmark generator.

Changes:

  • Add safeDirName() to validate skill names before using them as a directory segment in reporter.ts.
  • Use safeDirName(verdict.skillName) when writing per-skill markdown and JSON outputs.
  • Simplify the .PARAMETER ResultsFile description in generate-benchmark-data.ps1.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
eng/skill-validator/src/reporter.ts Adds directory-segment validation for skillName and applies it to per-skill output directories.
eng/dashboard/generate-benchmark-data.ps1 Refines comment-based help for ResultsFile.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread eng/skill-validator/src/reporter.ts Outdated
Comment thread eng/skill-validator/src/reporter.ts Outdated
Comment thread eng/skill-validator/src/reporter.ts Outdated
…idator

- Slugify skill names for directory use instead of hard-failing on
  unexpected characters from SKILL.md frontmatter display names.
- Use path.basename() for robust single-segment check instead of
  string.includes('..') which false-positives on names like 'foo..bar'.
- Throw on genuinely invalid names (empty, '.', '..', or all-special-chars).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ViktorHofer ViktorHofer requested a review from Copilot February 24, 2026 11:53
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 24, 2026

Skill Validation Results

Skill Scenario Baseline With Skill Δ Skills Loaded Verdict
csharp-scripts Test a C# language feature with a script 2.0/5 5.0/5 +3.0 ✅ csharp-scripts; tools: skill, create, edit
dotnet-pinvoke Generate LibraryImport declaration from C header (.NET 8+) 4.0/5 5.0/5 +1.0 ✅ dotnet-pinvoke; tools: skill
dotnet-pinvoke Generate LibraryImport declaration from C header (.NET Framework) 3.0/5 5.0/5 +2.0 ✅ dotnet-pinvoke; tools: skill
build-parallelism Analyze build parallelism bottlenecks 1.0/5 1.0/5 0.0 ✅ build-parallelism; binlog-generation; binlog-failure-analysis; tools: skill, glob, task
build-perf-diagnostics Analyze analyzer performance impact on builds 5.0/5 4.0/5 -1.0 ✅ binlog-generation; build-perf-diagnostics; tools: skill, glob, edit
check-bin-obj-clash Diagnose bin/obj output path clashes 3.0/5 4.0/5 +1.0 ✅ check-bin-obj-clash; binlog-generation; tools: skill
common-build-errors Diagnose C# compiler errors 4.0/5 3.0/5 -1.0 ✅ binlog-generation; tools: skill
eval-performance Analyze MSBuild evaluation performance issues 4.0/5 5.0/5 +1.0 ✅ eval-performance; tools: skill
including-generated-files Diagnose generated file inclusion failure 3.0/5 5.0/5 +2.0 ✅ binlog-generation; including-generated-files; tools: skill
incremental-build Analyze incremental build issues 3.0/5 4.0/5 +1.0 ✅ incremental-build; tools: skill, bash
msbuild-antipatterns Review MSBuild files for anti-patterns and style issues 4.0/5 5.0/5 +1.0 ✅ msbuild-antipatterns; tools: skill
msbuild-modernization Modernize legacy project to SDK-style 5.0/5 5.0/5 0.0 ✅ msbuild-modernization; tools: skill
multitarget-tfm-issues Diagnose multi-targeting build failure 4.0/5 4.0/5 0.0 ✅ binlog-generation; multitarget-tfm-issues; tools: skill
nuget-restore-failures Diagnose NuGet restore failures 5.0/5 5.0/5 0.0 ✅ nuget-restore-failures; tools: skill
sdk-workload-resolution Diagnose SDK resolution failures 5.0/5 5.0/5 0.0 ✅ sdk-workload-resolution; tools: skill

Model: claude-opus-4.6 | Judge: claude-opus-4.6

Full results

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ViktorHofer ViktorHofer merged commit e4ea5b6 into main Feb 24, 2026
11 checks passed
@ViktorHofer ViktorHofer deleted the FollowupNits branch February 24, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants