Skip to content

feat: add -OutputPath parameter to Validate-SkillStructure.ps1#1225

Merged
WilliamBerryiii merged 7 commits intomicrosoft:mainfrom
sweanan:feat/issues-1005-outputpath
Apr 6, 2026
Merged

feat: add -OutputPath parameter to Validate-SkillStructure.ps1#1225
WilliamBerryiii merged 7 commits intomicrosoft:mainfrom
sweanan:feat/issues-1005-outputpath

Conversation

@sweanan
Copy link
Copy Markdown
Contributor

@sweanan sweanan commented Mar 27, 2026

Pull Request

Description

Add output path parameter to the Validate-SkillsStructure.ps1 to allow callers to redirect results without modifying the script.

  • Add -OutputPath parameter with default value logs/skill-validation-results.json
  • Replace hardcoded path with parameter reference
  • Add Pester tests for the new parameter

Related Issue(s)

Closes 1005

Type of Change

Select all that apply:

Code & Documentation:

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to change)
  • Documentation update

Infrastructure & Configuration:

  • [] GitHub Actions workflow
  • Linting configuration (markdown, PowerShell, etc.)
  • Security configuration
  • DevContainer configuration
  • Dependency update

AI Artifacts:

  • Reviewed contribution with prompt-builder agent and addressed all feedback
  • Copilot instructions (.github/instructions/*.instructions.md)
  • Copilot prompt (.github/prompts/*.prompt.md)
  • Copilot agent (.github/agents/*.agent.md)
  • Copilot skill (.github/skills/*/SKILL.md)

Note for AI Artifact Contributors:

  • Agents: Research, indexing/referencing other project (using standard VS Code GitHub Copilot/MCP tools), planning, and general implementation agents likely already exist. Review .github/agents/ before creating new ones.
  • Skills: Must include both bash and PowerShell scripts. See Skills.
  • Model Versions: Only contributions targeting the latest Anthropic and OpenAI models will be accepted. Older model versions (e.g., GPT-3.5, Claude 3) will be rejected.
  • See Agents Not Accepted and Model Version Requirements.

Other:

  • Script/automation (.ps1, .sh, .py)
  • Other (please describe):

Sample Prompts (for AI Artifact Contributions)

User Request:

Execution Flow:

Output Artifacts:

Success Indicators:

For detailed contribution requirements, see:

Testing

npm run lint:ps ✅
Pester tests ✅
Manual testing with default and custom paths ✅

Checklist

Required Checks

  • Documentation is updated (if applicable)
  • Files follow existing naming conventions
  • Changes are backwards compatible (if applicable)
  • Tests added for new functionality (if applicable)

AI Artifact Contributions

  • Used /prompt-analyze to review contribution
  • Addressed all feedback from prompt-builder review
  • Verified contribution follows common standards and type-specific requirements

Required Automated Checks

The following validation commands must pass before merging:

  • Markdown linting: npm run lint:md
  • Spell checking: npm run spell-check
  • Frontmatter validation: npm run lint:frontmatter
  • Skill structure validation: npm run validate:skills
  • Link validation: npm run lint:md-links
  • [ x] PowerShell analysis: npm run lint:ps
  • Plugin freshness: npm run plugin:generate

Security Considerations

  • This PR does not contain any sensitive or NDA information
  • Any new dependencies have been reviewed for security issues
  • Security-related scripts follow the principle of least privilege

Additional Notes

@sweanan sweanan requested a review from a team as a code owner March 27, 2026 18:08
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.71%. Comparing base (8319d10) to head (0dcaa7f).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1225      +/-   ##
==========================================
- Coverage   87.72%   87.71%   -0.02%     
==========================================
  Files          61       61              
  Lines        9320     9320              
==========================================
- Hits         8176     8175       -1     
- Misses       1144     1145       +1     
Flag Coverage Δ
pester 85.31% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
scripts/linting/Validate-SkillStructure.ps1 94.46% <100.00%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sweanan sweanan changed the title commit the changes to add output feat: add -OutputPath parameter to Validate-SkillStructure.ps1 Mar 27, 2026
@sweanan sweanan self-assigned this Apr 3, 2026
@sweanan sweanan requested a review from katriendg April 3, 2026 12:47
Copy link
Copy Markdown
Contributor

@katriendg katriendg left a comment

Choose a reason for hiding this comment

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

Thanks for these changes, looks good.

Nit: you removed a trailing line from the Validate-SkillStructure.Tests.ps1 file, this can be added back.

@WilliamBerryiii WilliamBerryiii merged commit d1e0b35 into microsoft:main Apr 6, 2026
40 checks passed
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.

Add -OutputPath parameter to Validate-SkillStructure.ps1

4 participants