Skip to content

chore(claude): add project skills and rules#1610

Merged
olexii4 merged 1 commit into
mainfrom
add_skills
Jun 24, 2026
Merged

chore(claude): add project skills and rules#1610
olexii4 merged 1 commit into
mainfrom
add_skills

Conversation

@olexii4

@olexii4 olexii4 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds eight Claude Code skills for recurring che-dashboard workflows.

  1. fix-cve-dep — upgrade a vulnerable npm dep: check ClearlyDefined for license indexing, pin in resolutions when needed, reinstall, regenerate .deps files, commit with CVE reference.

  2. rebase-to-main — rebase a branch onto latest main, resolve the recurring .deps/ conflict patterns (take-theirs then regenerate), run license check, force-push.

  3. fix-pr-feedback — fetch inline and general PR review comments via gh api, triage fixed vs open, apply outstanding fixes, push.

  4. check-coverage — run coverage for changed packages only, identify uncovered code, write missing tests. Enforces thresholds (common 99%/100%, frontend 92/88/85, backend 86/80/86) before a PR is opened.

  5. pr-description — generate a PR description from branch context, save to openspec/docs/. Requires check-coverage to pass first.

  6. pr-test-section — write the "Is it tested? How?" section using the right template (deploy + verify, unit tests, dep upgrade, N/A) based on change type. Derived from analysis of 25+ closed PRs.

  7. commit-message — write a human-style commit message: subject line, optional body, trailers. Includes anti-pattern table drawn from the actual commit history.

  8. manage-resolutions — audit resolutions in package.json, identify orphans and stale pins, safely remove them one at a time with yarn install diff verification.

Screenshot/screencast of this PR

N/A — tooling/config changes only.

What issues does this PR fix or reference?

fixes eclipse-che/che#23852

Is it tested? How?

Skills are SKILL.md prose files — no executable code changed.

Release Notes

N/A

Docs PR

N/A

@openshift-ci

openshift-ci Bot commented Jun 22, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@che-bot

che-bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Click here to review and test in web IDE: Contribute

@olexii4 olexii4 changed the title [wip]chore(claude): add project skills and generalize dev-conventions rules [wip]chore(claude): add project skills and rules Jun 22, 2026
@olexii4 olexii4 changed the title [wip]chore(claude): add project skills and rules chore(claude): add project skills and rules Jun 22, 2026
@tolusha

tolusha commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Hi! I'm che-ai-assistant — I help with your pull requests.

Available commands:

  • /che-ai-assistant generate-che-doc — Generate a documentation PR based on this PR's changes
  • /che-ai-assistant ok-pr-review — Run a comprehensive PR review (summary, code review, deep review, impact analysis)
  • /che-ai-assistant help — Show this help message

@tolusha

tolusha commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

⚠️ Warning: IDE/tool configuration files detected

This PR contains changes to files in directories that are typically not intended to be committed:

  • .claude/CLAUDE.md
  • .claude/rules/che-dashboard-dev.mdc
  • .claude/skills/check-coverage/SKILL.md
  • .claude/skills/commit-message/SKILL.md
  • .claude/skills/fix-cve-dep/SKILL.md
  • .claude/skills/fix-pr-feedback/SKILL.md
  • .claude/skills/manage-resolutions/SKILL.md
  • .claude/skills/pr-description/SKILL.md
  • .claude/skills/pr-test-section/SKILL.md
  • .claude/skills/rebase-to-main/SKILL.md

Please verify these changes are intentional.

@github-actions

Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1610 (linux/amd64, linux/arm64, linux/s390x)

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1610", name: che-dashboard}]}}]"

@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.36%. Comparing base (c5a69aa) to head (5fb2013).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1610   +/-   ##
=======================================
  Coverage   92.36%   92.36%           
=======================================
  Files         587      587           
  Lines       60484    60484           
  Branches     4688     4688           
=======================================
  Hits        55869    55869           
  Misses       4556     4556           
  Partials       59       59           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@olexii4 olexii4 force-pushed the add_skills branch 2 times, most recently from 783cd2a to 23e9a80 Compare June 24, 2026 14:32
@olexii4 olexii4 marked this pull request as ready for review June 24, 2026 14:36
@olexii4 olexii4 force-pushed the add_skills branch 2 times, most recently from 5508148 to 9f828fd Compare June 24, 2026 14:46
@github-actions

Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1610 (linux/amd64, linux/arm64, linux/s390x)

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1610", name: che-dashboard}]}}]"

1 similar comment
@github-actions

Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1610 (linux/amd64, linux/arm64, linux/s390x)

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1610", name: che-dashboard}]}}]"

Add five Claude Code skills distilled from recurring che-dashboard
development workflows:

- fix-cve-dep: upgrade a vulnerable npm dep, check ClearlyDefined,
  pin in resolutions, regenerate .deps files, commit and push
- rebase-to-main: rebase a branch onto main, resolve .deps conflicts
  (take-theirs + regenerate), run license check, force-push
- fix-pr-feedback: fetch and triage GitHub PR review comments,
  fix open items, commit and push
- check-coverage: run coverage for changed packages, find uncovered
  code, write missing tests; enforces thresholds (common 99/100,
  frontend 92/88/85, backend 86/80/86) before PR is opened
- pr-description: generate a PR description from branch context
  and save to openspec/docs/ following project template
  (check-coverage must pass first)

Update CLAUDE.md to reference the new rules file and list all skills.
Update AGENTS.md to reference .claude/rules/ and document all skills.

Simplify .claude/rules/che-dashboard-dev.mdc (292 → 173 lines):
- Remove §2 pre-push trailer cleanup (Cursor IDE defense)
- Remove §7 building local images (human how-to, not an AI rule)
- Remove §8 PR descriptions (superseded by pr-description skill)
- Fix §3: split pre-commit (fast) vs pre-push (full suite)
- Fix §4 dep format example to match actual .deps/prod.md format
- Remove duplicate --updateSnapshot and tooltip CSS sub-section

Remove personal identity data from all rules and skill files:
  - Signed-off-by uses {AUTHOR_NAME} <{AUTHOR_EMAIL}> placeholder
  - quay.io/oorel/ replaced with quay.io/{YOUR_QUAY_USERNAME}/

Assisted-by: Claude Sonnet 4.6
Signed-off-by: Oleksii Orel <oorel@redhat.com>
@github-actions

Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1610 (linux/amd64, linux/arm64, linux/s390x)

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1610", name: che-dashboard}]}}]"

2 similar comments
@github-actions

Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1610 (linux/amd64, linux/arm64, linux/s390x)

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1610", name: che-dashboard}]}}]"

@github-actions

Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1610 (linux/amd64, linux/arm64, linux/s390x)

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1610", name: che-dashboard}]}}]"

@olexii4 olexii4 requested a review from svor June 24, 2026 15:16
@openshift-ci

openshift-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: olexii4, svor

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@olexii4 olexii4 merged commit 00bd55a into main Jun 24, 2026
17 of 18 checks passed
@olexii4 olexii4 deleted the add_skills branch June 24, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dashboard] AgentReady Assessment Improvements

4 participants