Skip to content

CC-39779: Add static validation skill for Spryker changes - #26

Merged
vitaliiivanovspryker merged 3 commits into
masterfrom
feature/cc-39779-static-validation-diff-engine
Jul 24, 2026
Merged

CC-39779: Add static validation skill for Spryker changes#26
vitaliiivanovspryker merged 3 commits into
masterfrom
feature/cc-39779-static-validation-diff-engine

Conversation

@vitaliiivanovspryker

Copy link
Copy Markdown
Contributor

https://spryker.atlassian.net/browse/CC-39779

PR Description

Add a meaningful description here that will let us know what you want to fix with this PR or what functionality you want to add.

Steps before you submit a PR

  • Please add tests for the code you add if it's possible.
  • Please check out our contribution guide: https://docs.spryker.com/docs/dg/dev/code-contribution-guide.html
  • Add a contribution-license-agreement.txt file with the following content:
    I hereby agree to Spryker's Contribution License Agreement in https://github.com/spryker/incremental-installer/blob/HASH_OF_COMMIT_YOU_ARE_BASING_YOUR_BRANCH_FROM_MASTER_BRANCH/CONTRIBUTING.md.

This is a mandatory step to make sure you are aware of the license agreement and agree to it. HASH_OF_COMMIT_YOU_ARE_BASING_YOUR_BRANCH_FROM_MASTER_BRANCH is a hash of the commit you are basing your branch from the master branch. You can take it from commits list of master branch before you submit a PR.

Checklist

  • I agree with the Code Contribution License Agreement in CONTRIBUTING.md

## Features

- **Flexible base branch.** `--base <ref>` for any branch (`master`, `main`, `master-demo`,
`develop`, a release branch, …). Auto-detects when omitted (`master-demo` → `master` → `main` →

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we need to mention master-demo here - it is only specific for our development cycle.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

correct, I will remove it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done — removed master-demo from the README (base-branch examples + auto-detect chain) and from SKILL.md and the script's auto-detect. Auto-detect is now master → main → remote default.

Automatic reply by AI.


```bash
# Preview what would be checked (no tools run):
bash ${CLAUDE_PLUGIN_ROOT}/skills/static-validation/scripts/static-check-diff.sh --dry-run

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you test it when skills are installed via the ai-dev SDK setup command? Does it have any issues with the script path location?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

${CLAUDE_PLUGIN_ROOT} is clear for both plugin and project skill providing

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, if it is confirmed that it works with both installations, feel free to resolve the thread.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Update: dropped ${CLAUDE_PLUGIN_ROOT} entirely to keep the skill tool-agnostic. All command examples now use the relative bash scripts/static-check-diff.sh (run from the skill directory), so there is no dependency on an install-path variable either way.

Automatic reply by AI.

Comment on lines +25 to +26
It replaces the fixed `.claude/bash-local/validation.sh` / `validation-master.sh` scripts with a
single flexible engine:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Were there any scripts already installed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

you are correct
I will remove it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done — removed the reference to the project-local .claude/bash-local/validation.sh / validation-master.sh scripts; the intro now says it replaces "fixed, single-base validation scripts".

Automatic reply by AI.

@vitaliiivanovspryker
vitaliiivanovspryker merged commit 29ba481 into master Jul 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants