You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds automated contract verification for PowerSkills engineering and tool-specific skills, helping ensure that documented workflows remain consistent with the repository structure and available PowerMCP tools.
Adds regression tests for the expected tool and engineering skill catalogs.
Checks that skills define their required workflow, escalation, and delivery sections.
Verifies that documented local assets and script paths exist.
Checks escalation targets against the bundled engineering skills.
Adds a validation CLI for skill frontmatter, workflow requirements, and referenced assets.
Adds a GitHub Actions workflow to run contract checks on Python 3.11 and 3.12.
Supports optional verification against a local PowerMCP checkout.
Testing
The PR adds automated checks intended to run in CI. These checks do not require proprietary engineering software or claim to execute vendor simulations.
CI status: Pending verification. Please confirm that both Python-version jobs and all required repository checks pass before merging.
Scope
This contribution is limited to skill-contract validation and CI coverage, keeping it separate from the existing UTF-8 and N-1 changes.
Review of 005870c: two validation bugs should be fixed before merging.
--root validates the script’s checkout instead of the requested directory. In skill-creator/scripts/contract_validate.py:54–64, validate(root) iterates module-global SKILL_ROOTS, which were built from ROOT. Reproduction: python skill-creator/scripts/contract_validate.py --root <empty-existing-directory> exits 0 with “Skill contract validation passed.” If an issue is found, relative_to(root) can instead raise ValueError. Build the skill roots from the supplied root, and add regression coverage showing that an empty or invalid target fails and a separate valid target is actually inspected.
The optional PowerMCP check does not verify the collected tools. In tests/test_skill_contracts.py:158–175, signatures is collected but never used; the assertion only requires at least one command name to also appear in README. All eight contract tests still pass with POWER_MCP_REPO pointing at an empty directory, so the extra checkout in CI currently provides no conformance check. Compare the intended MCP tool calls against the registered tools, fail for an explicitly supplied checkout with no discoverable tools, and cover a missing/renamed tool. The extractor also needs a test for @mcp.tool() on function declarations, since that form currently does not add the decorated function name.
The current contract tests and CLI pass on the repository itself, but the reproductions above show that those passing results do not cover these advertised behaviors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds automated contract verification for PowerSkills engineering and tool-specific skills, helping ensure that documented workflows remain consistent with the repository structure and available PowerMCP tools.
Adds regression tests for the expected tool and engineering skill catalogs.
Checks that skills define their required workflow, escalation, and delivery sections.
Verifies that documented local assets and script paths exist.
Checks escalation targets against the bundled engineering skills.
Adds a validation CLI for skill frontmatter, workflow requirements, and referenced assets.
Adds a GitHub Actions workflow to run contract checks on Python 3.11 and 3.12.
Supports optional verification against a local PowerMCP checkout.
Testing
The PR adds automated checks intended to run in CI. These checks do not require proprietary engineering software or claim to execute vendor simulations.
CI status: Pending verification. Please confirm that both Python-version jobs and all required repository checks pass before merging.
Scope
This contribution is limited to skill-contract validation and CI coverage, keeping it separate from the existing UTF-8 and N-1 changes.