Add Regression Test
Write a failing-first JUnit regression test that pins a bug fix or security finding in CimPal. Use when fixing a bug, closing a security finding (TEST-2), or…
от griddigit-ci★ 19 звёзд на GitHub
Установить Add Regression Test в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Add a regression test
Target: $ARGUMENTS
- Pin down the behaviour. Identify the class and method that carry the fix or control. For a
security finding, read its entry in
SECURITY-SELF-ATTESTATION.md§4 and name the input that used to be accepted and must now be refused (or the reverse). - Follow
.claude/rules/testing.md: JUnit Jupiter, no network,@TempDir, minimal synthetic fixtures undersrc/test/resources/fixtures/<feature>/, deterministic assertions. - Place the test in the module and package of the class under test:
<module>/src/test/java/<same package>/<Class>Test.java. Extend the existing test class if there is one. Name the method after the behaviour, e.g.refusesImportFromHostOutsideAllowlist, and add a one-line comment linking the finding or issue (e.g.// Attestation Finding 2 (SSRF via owl:imports)). - Prove it bites. Temporarily revert or disable the fix (or reason concretely about why the test
would fail without it), run
mvn -B -pl <module> -am test -Dtest=<Class>Test, confirm it fails for the right reason, then restore the fix and confirm it passes. Never commit the reverted state. - Security controls fail closed. Assert the error or refusal (exception type, exit code, row error), not only the absence of a result.
- Report: the test file and method, what it guards, and the red/green evidence from step 4.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Add Regression Test?
Write a failing-first JUnit regression test that pins a bug fix or security finding in CimPal. Use when fixing a bug, closing a security finding (TEST-2), or changing security-sensitive code.
Как установить скилл Add Regression Test?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Add Regression Test запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…