一键导入
jetbrains-inspection-workflow
Use for JetBrains Inspection API plugin, MCP server, HTTP API, test, smoke, release, or docs work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use for JetBrains Inspection API plugin, MCP server, HTTP API, test, smoke, release, or docs work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | jetbrains-inspection-workflow |
| description | Use for JetBrains Inspection API plugin, MCP server, HTTP API, test, smoke, release, or docs work. |
| metadata | {"short-description":"Develop and validate inspection API work"} |
| policy | {"allow_implicit_invocation":true} |
Use this skill for development and validation work in the JetBrains Inspection
API repo. Keep factual API/setup details in README.md, testing details in
TESTING.md and TESTING_INSTRUCTIONS.md, and use this skill as the task
workflow router.
git status --short before edits and preserve unrelated changes.inspection-core,
mcp-server-jvm, scripts, docs, or release metadata.JAVA_HOME=$(/usr/libexec/java_home -v 21); if that fails, check
JAVA_HOME_21..github/github.json when validation gates, workflow names, cleanup
policy, docs routing, or GitHub signal assumptions matter.JAVA_HOME=$(/usr/libexec/java_home -v 21) ./gradlew buildPlugin./scripts/test-all.shJAVA_HOME=$(/usr/libexec/java_home -v 21) ./gradlew test./gradlew :inspection-core:test./gradlew :mcp-server-jvm:test./gradlew :mcp-server-jvm:mcpServerJar./scripts/commit-gate.shUse focused validation first, then broaden based on risk and user-facing impact.
Keep exact command matrices, environment setup, and troubleshooting in
TESTING.md; keep manual IDE endpoint recipes in TESTING_INSTRUCTIONS.md.
TESTING_INSTRUCTIONS.md for the exact manual sequence../scripts/dogfood-smoke-matrix.sh) when local IDEs are
available; it exercises preexisting and helper-opened readiness inspection
paths and records cleanup evidence../scripts/dogfood-red-lane-smoke.sh --product intellij|pycharm|webstorm
with the matching local IDE and the current plugin installed; it copies the
maintained known-bad fixture and requires structured JSON with RED,
total_problems > 0, and cleanup closed.
For 2026.2 EAP release gates, pass --ide-channel eap --ide-version 2026.2
and use --timeout-ms 300000 --prepare-timeout-ms 300000; this matches the
plugin wait cap and avoids treating a slow EAP inspection as release evidence../scripts/test-all.sh or the commit gate before
build/release commands, and confirm CI status when GitHub state matters.README.md
before changing request/response semantics.project_key, project_path, MCP process working directory, then unique
project name. Blank or omitted selectors fall back to the focused/active
open project only when unambiguous.session_id drift handling: stale
sessions must return a fresh-trigger requirement instead of silently using
old cached state.capture_incomplete, stale results, timeouts, indexing, session drift,
route ambiguity, wrong-worktree routes, and cleanup failures../scripts/dogfood-red-lane-smoke.sh with
the relevant --product and require current actionable findings in the helper
response, such as total_problems > 0; a paginated current page may have an
empty problems list even when matching findings exist.
capture_incomplete, non_empty_unmapped_tree, or a non-clean zero-problem
response proves only that clean was not confirmed.GREEN means
inspection worked and found no actionable findings for the selected
scope/filter, RED means inspection worked and found actionable current
problems, and UNKNOWN means the IDE/plugin/helper did not prove either
state and the next action must be reported. Prefer the helper's compact
agent_result envelope: verdict, bucket, scope, one-line finding summary
with file/line when available, retry policy, and next action. Raw diagnostic
fields such as capture_diagnostic belong in helper debugging only. On
UNKNOWN, retry at most once and only when retry_policy.retry=true.Use smoke tests when behavior depends on a live JetBrains IDE rather than only unit tests.
AGENTS.local.template.md if local IDE paths, ports, or test project
settings are needed.TESTING_INSTRUCTIONS.md for manual endpoint smoke tests.current_file, files, directory, or
changed_files when full-project inspection is unnecessary./api/inspection/route first and pass
the returned project_key and session_id through trigger, wait, status,
and problems calls../scripts/dogfood-smoke-matrix.sh and inspect its JSON artifact for
cleanup closed/not_needed, IDE identity, plugin version, and failure
buckets.WebStorm, PyCharm, and
IntelliJ IDEA should resolve to the latest installed stable/non-EAP app and
matching config dir. Use exact selectors such as --ide-channel eap,
--ide-version 2026.2, or --ide-app only when the test intentionally
targets an EAP or exact IDE version. Never infer EAP from a discovered EAP
install; EAP must be explicitly requested through repo metadata, CLI flags,
exact app/version selection, or task text.ide_selection_required,
ide_config_ambiguous, or ide_config_missing, treat that as repo metadata
work: add preferred IDE metadata to .github/github.json or explicitly pass
the exact IDE for a one-off smoke run.For release preparation, read the README.md Releases section for publishing
details and use this checklist:
./scripts/release.sh --patch|--minor|--major; it
creates a release task branch and PR rather than writing to the protected
default branch../scripts/test-all.sh, ./scripts/commit-gate.sh, and
./scripts/release-compatibility-gate.sh when validating release changes.JAVA_HOME=$(/usr/libexec/java_home -v 21) ./gradlew buildPlugin.main exactly matches remote main,
use ./scripts/release.sh tag vX.Y.Z to validate and push the tag.Tag pushes run .github/workflows/release.yml, which validates tag and plugin
versions, proves the tag points at the current default-branch commit, runs the
CI commit gate plus plugin structure/compatibility checks, creates the GitHub
Release, and then publishes to JetBrains Marketplace.
AGENTS.md as short always-on guidance.README.md.TESTING.md.TESTING_INSTRUCTIONS.md.