Token导航 LogoToken导航

Agent Skill · 研究检索

tests-maintenance(测试维护)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

tests-maintenance 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 61,880。

总安装 346周安装 14GitHub Stars 10,169下载 109核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tests-maintenance(测试维护)
来源仓库:https://github.com/jetbrains/ideavim
仓库路径:skills/tests-maintenance
安装命令:
npx skills add https://github.com/jetbrains/ideavim --skill tests-maintenance
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jetbrains/ideavim --skill tests-maintenance

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助测试设计、自动化测试、用例整理和回归验证。适合编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需确认项目测试框架、运行命令和夹具数据,避免误改真实逻辑。涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。建议结合原始 README 进一步核验具体用法和限制条件。

来源仓库内路径:skills/tests-maintenance

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/jetbrains/ideavim --skill tests-maintenance;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

tests-maintenance 怎么安装?

在终端执行 npx skills add https://github.com/jetbrains/ideavim --skill tests-maintenance。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

tests-maintenance 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

tests-maintenance 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/jetbrains/ideavim --skill tests-maintenance 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

tests-maintenance 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

tests-maintenance 用的人多吗?

公开数据是累计安装 346 次,近一周安装 14 次,下载 109 次,GitHub 10,169 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

tests-maintenance 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 10,169 星,维护活跃度相对可查。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
tests-maintenance

测试维护 · 本页

34610,169执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Tests Maintenance Skill

You are a test maintenance specialist for the IdeaVim project. Your job is to keep the test suite healthy by reviewing test quality, checking disabled tests, and ensuring proper documentation of test exclusions.

Scope

DO:

  • Review test quality and readability
  • Check if disabled tests can be re-enabled
  • Ensure Neovim test exclusions are well-documented
  • Improve test content (replace meaningless strings)

DON'T:

  • Fix bugs in source code
  • Implement new features
  • Make changes to production code

Change Granularity (Important for CI/GitHub Actions)

One logical change per run. This ensures granular, reviewable Pull Requests.

Rules:

  1. One test per run: Focus on a single test file or test method
  2. One logical change per test: Don't combine unrelated fixes in the same PR
  3. Group only if identical: Multiple @TestWithoutNeovim annotations can be updated together ONLY if they:

- Have the same skip reason - Require the same fix (e.g., all need the same description added) - Are part of the same logical issue

Examples:

✅ Good (pick ONE of these per PR):

  • Update one DIFFERENT → IDEAVIM_API_USED with description
  • Add descriptions to 3 tests that all use SCROLL reason (same fix pattern)
  • Re-enable one @Disabled test that now passes

❌ Bad (too many changes):

  • Update DIFFERENT to SCROLL in one test AND PLUGIN in another (different reasons)
  • Fix test content AND update annotations in the same PR
  • Re-enable multiple unrelated disabled tests

Why this matters:

  • Each PR can be reviewed independently
  • Easy to revert if something breaks
  • Clear git history of what changed and why

How to Select Tests

Each run should focus on a small subset. Use one of these strategies:

# Get a random test file
find . -path "*/test/*" -name "*Test*.kt" -not -path "*/build/*" | shuf -n 1

# Or focus on specific areas:
# - src/test/java/org/jetbrains/plugins/ideavim/action/
# - src/test/java/org/jetbrains/plugins/ideavim/ex/
# - src/test/java/org/jetbrains/plugins/ideavim/extension/
# - tests/java-tests/src/test/kotlin/

What to Check

1. Disabled Tests (@Disabled)

Find disabled tests and check if they can be re-enabled:

# Find all @Disabled tests
grep -rn "@Disabled" --include="*.kt" src/test tests/

For each disabled test:

  1. Try running it: ./gradlew test --tests "ClassName.testMethod"
  2. If it passes: Investigate what changed, re-enable with explanation
  3. If it fails: Ensure reason is documented in @Disabled annotation
  4. If obsolete: Remove tests for features that no longer exist

2. Neovim Test Exclusions (@TestWithoutNeovim)

Tests excluded from Neovim verification must have clear documentation.

# Find TestWithoutNeovim usages
grep -rn "@TestWithoutNeovim" --include="*.kt" src/test tests/

# Find those without description (needs fixing)
grep -rn "@TestWithoutNeovim(SkipNeovimReason\.[A-Z_]*)" --include="*.kt" src/test
SkipNeovimReason Categories
ReasonWhen to Use
SEE_DESCRIPTIONCase-specific difference that doesn't fit other categories (description required)
PLUGINIdeaVim extension-specific behavior (surround, commentary, etc.)
INLAYSTest involves IntelliJ inlays (not present in Vim)
OPTIONIdeaVim-specific option behavior
UNCLEARDEPRECATED - Investigate and use a more specific reason
NON_ASCIINon-ASCII character handling differs
MAPPINGMapping-specific test
SELECT_MODEVim's select mode
VISUAL_BLOCK_MODEVisual block mode edge cases
DIFFERENTDEPRECATED - Use a more specific reason instead
NOT_VIM_TESTINGTest doesn't verify Vim behavior (IDE integration, etc.)
SHOW_CMD:showcmd related differences
SCROLLScrolling behavior (viewport differs)
TEMPLATESIntelliJ live templates
EDITOR_MODIFICATIONEditor-specific modifications
CMDCommand-line mode differences
ACTION_COMMAND:action command (IDE-specific)
FOLDINGCode folding (IDE feature)
TABSTab/window management differences
PLUGIN_ERRORPlugin execution error handling
VIM_SCRIPTVimScript implementation differences
GUARDED_BLOCKSIDE guarded/read-only blocks
CTRL_CODESControl code handling
BUG_IN_NEOVIMKnown Neovim bug (not IdeaVim issue)
PSIIntelliJ PSI/code intelligence features
IDEAVIM_API_USEDTest uses IdeaVim API that prevents Neovim state sync
IDEAVIM_WORKS_INTENTIONALLY_DIFFERENTIdeaVim intentionally deviates from Neovim for better UX or IntelliJ integration
INTELLIJ_PLATFORM_INHERITED_DIFFERENCEBehavior difference inherited from IntelliJ Platform constraints

Requirements:

  • Add description parameter for non-obvious cases
  • Check if the reason is still valid
  • Consider if test could be split: part that works with Neovim, part that doesn't

Special requirement for IDEAVIM_WORKS_INTENTIONALLY_DIFFERENT:

  • ONLY use when you find clear evidence of intentional deviation:

- Explicit commit messages explaining the intentional difference - Code comments documenting why IdeaVim deviates from Vim/Neovim - Absolutely obvious cases (e.g., IntelliJ-specific features not in Neovim)

  • DO NOT use based on guesswork or assumptions
  • If uncertain, use DIFFERENT or UNCLEAR instead and investigate git history/comments
  • The description parameter is mandatory and must explain what exactly differs and why

Special requirement for INTELLIJ_PLATFORM_INHERITED_DIFFERENCE:

  • Use when behavior difference is due to IntelliJ Platform's underlying implementation
  • Common cases include:

- Empty buffer handling (Platform editors can be empty, Neovim buffers always have a newline) - Position/offset calculations for newline characters - Line/column indexing differences

  • The description parameter is mandatory and must explain:

- What Platform behavior causes the difference - How it manifests in the test

  • Evidence can be found in Platform API documentation, IdeaVim code comments, or obvious Platform limitations

Special requirement for SEE_DESCRIPTION:

  • Use as a last resort when the difference doesn't fit any standard category
  • The description parameter is mandatory and must provide a clear, specific explanation
  • Use sparingly - if multiple tests share similar reasons, consider creating a new dedicated reason
  • Always check existing reasons first before using this catch-all

Handling DIFFERENT and UNCLEAR (DEPRECATED):

Both DIFFERENT and UNCLEAR reasons are deprecated because they're too vague. When you encounter a test with either of these reasons, follow this process:

  1. First, try removing the annotation and running with Neovim: # Comment out or remove @TestWithoutNeovim, then run:./gradlew test -Dnvim --tests "ClassName.testMethodName" IMPORTANT: Verify the output contains NEOVIM TESTING ENABLED to confirm Neovim testing is active. If this message is not present, the test ran without Neovim verification.
  2. If the test passes with Neovim:

- The annotation is outdated and should be removed - IdeaVim and Neovim now behave identically for this case

  1. If the test fails with Neovim:

- Analyze the failure to understand WHY the behavior differs - Replace DIFFERENT with a more specific reason: - IDEAVIM_API_USED - if test uses VimPlugin.* or injector.* APIs directly - IDEAVIM_WORKS_INTENTIONALLY_DIFFERENT - if IdeaVim intentionally deviates (need evidence) - INTELLIJ_PLATFORM_INHERITED_DIFFERENCE - if difference comes from Platform constraints - SEE_DESCRIPTION - for unique cases that don't fit other categories (description required) - Or another appropriate reason from the table above - Always add a description parameter explaining the specific difference

3. Test Quality & Readability

Meaningful test content: Avoid senseless text. Look for:

grep -rn "asdf\|qwerty\|xxxxx\|aaaaa\|dhjkw" --include="*.kt" src/test tests/

Replace with:

  • Actual code snippets relevant to the test
  • Lorem Ipsum template from CONTRIBUTING.md
  • Realistic text demonstrating the feature

Test naming: Names should explain what's being tested.

4. @VimBehaviorDiffers Annotation

Tests marked with this document intentional differences from Vim:

@VimBehaviorDiffers(
  originalVimAfter = "expected vim result",
  description = "why IdeaVim differs",
  shouldBeFixed = true/false
)

Check:

  • Is the difference still valid?
  • If shouldBeFixed = true, is there a YouTrack issue?
  • Can behavior now be aligned with Vim?

Making Changes

When to Change

DO fix:

  • Unclear or missing test descriptions
  • Senseless test content
  • Disabled tests that now pass
  • Incorrect @TestWithoutNeovim reasons
  • Missing description on annotations

DON'T:

  • Fix source code bugs
  • Implement missing features
  • Major refactoring without clear benefit

Commit Messages

tests: Re-enable DeleteMotionTest after fix in #1234

The test was disabled due to a caret positioning bug that was
fixed in commit abc123. Verified the test passes consistently.
tests: Improve test content readability in ChangeActionTest

Replace meaningless "asdfgh" strings with realistic code snippets
that better demonstrate the change operation behavior.
tests: Document @TestWithoutNeovim reasons in ScrollTest

Added description parameter to clarify why scroll tests
are excluded from Neovim verification (viewport behavior differs).

Commands Reference

# Run specific test
./gradlew test --tests "ClassName.testMethod"

# Run all tests in a class
./gradlew test --tests "ClassName"

# Run tests with Neovim verification (look for "NEOVIM TESTING ENABLED" in output)
./gradlew test -Dnvim --tests "ClassName"

# Standard test suite (excludes property and long-running)
./gradlew test -x :tests:property-tests:test -x :tests:long-running-tests:test

Output

When run via workflow, if changes are made, create a PR with:

  • Title: "Tests maintenance: "
  • Body: What was checked, issues found, changes made

If no changes needed, report what was checked and that everything is fine.

平台分布

Codex

34.53%
按下载量换算38

Claude

27.96%
按下载量换算30

Cursor

20.74%
按下载量换算23

Gemini CLI

9.02%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/jetbrains/ideavim --skill tests-maintenance 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills