Crap Analyzer
swingerman/engineer
A skill your agent uses to produce a risk-based refactor + test plan for recently-changed code on a diff/branch/PR by computing CRAP (complexity × untested) on changed methods.
Writes new tests for Axelix source code (Java, Kotlin, TypeScript, JavaScript) that follow the project's testing standards — public-API contract coverage, test isolation, given/when/then structure…
$ npx skills add axelixlabs/axelix --skill test-writer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install axelixlabs/axelix test-writer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/axelixlabs/axelix.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agent_skills/test-writer .claude/skills/test-writer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "test-writer" agent skill from https://github.com/axelixlabs/axelix/tree/master/.agent_skills/test-writer into .claude/skills/test-writer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-writer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/axelixlabs/axelix/tree/master/.agent_skills/test-writerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add axelixlabs/axelix --skill test-writer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install axelixlabs/axelix test-writer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/axelixlabs/axelix.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agent_skills/test-writer .agents/skills/test-writer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "test-writer" agent skill from https://github.com/axelixlabs/axelix/tree/master/.agent_skills/test-writer into .agents/skills/test-writer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-writer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add axelixlabs/axelix --skill test-writer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install axelixlabs/axelix test-writer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/axelixlabs/axelix.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agent_skills/test-writer .cursor/skills/test-writer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "test-writer" agent skill from https://github.com/axelixlabs/axelix/tree/master/.agent_skills/test-writer into .cursor/skills/test-writer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-writer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/axelixlabs/axelix.git --path .agent_skills/test-writer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add axelixlabs/axelix --skill test-writer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install axelixlabs/axelix test-writer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/axelixlabs/axelix.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agent_skills/test-writer .gemini/skills/test-writer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "test-writer" agent skill from https://github.com/axelixlabs/axelix/tree/master/.agent_skills/test-writer into .gemini/skills/test-writer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-writer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install axelixlabs/axelix test-writerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add axelixlabs/axelix --skill test-writer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/axelixlabs/axelix.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agent_skills/test-writer .github/skills/test-writer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "test-writer" agent skill from https://github.com/axelixlabs/axelix/tree/master/.agent_skills/test-writer into .github/skills/test-writer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-writer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add axelixlabs/axelix --skill test-writer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install axelixlabs/axelix test-writer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/axelixlabs/axelix.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agent_skills/test-writer .opencode/skills/test-writer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "test-writer" agent skill from https://github.com/axelixlabs/axelix/tree/master/.agent_skills/test-writer into .opencode/skills/test-writer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-writer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
test-writerWrites new tests for Axelix source code (Java, Kotlin, TypeScript, JavaScript) that follow the project's testing standards — public-API contract coverage, test isolation, given/when/then structure…
Test Writer is an agent skill from axelixlabs/axelix. Writes new tests for Axelix source code (Java, Kotlin, TypeScript, JavaScript) that follow the project's testing standards — public-API contract coverage, test isolation, given/when/then structure, parameterization, positive + negative cases, and exception-type-only assertions. Use whenever the user asks to write, add, or generate tests for a class/method/module/endpoint, to cover a new feature or bug fix with tests, to "test this", to increase coverage for a specific unit, or when a task involves producing test…
Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Mobile, covering Android development, Test generation and Debugging. It works with Java, Kotlin, JavaScript and TypeScript. The repository describes itself as: The source code of Axelix - a Delta Force for your Spring Boot ecosystem. The licence is LGPL-3.0.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit c0f35c5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are java).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Test Writer loads about 2.2k tokens when it runs. Until then it costs about 159 tokens; SKILL.md has 904 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from axelixlabs/axelix at commit c0f35c5, republished under its LGPL-3.0 licence (© axelixlabs). 904 words, ~2,219 tokens.
.claude/skills/test-writer/SKILL.md (or your agent's skills folder).Guide for AI agents writing new tests for the Axelix monorepo (master/, sbs/, common/, front-end/).
These standards come from how Axelix reviews tests (see the companion test-reviewer skill). Writing to them the first time avoids the review churn. The whole point of a test is to pin down the contract of a unit — what it promises callers — so that a future change that breaks the promise fails loudly. Everything below serves that goal.
public methods, ideally declared on an interface with Javadoc. Read the Javadoc — it is the spec.null, blank, zero, first/last),<SourceName>Test in the same Gradle/npm module as the source, mirroring the source package. Match the surrounding tests' style, imports, and assertion library — read a neighbor first.Test the contract, never the internals. Assert observable outcomes — return values, thrown exceptions, interactions with collaborators — not private fields or private methods.
@VisibleForTesting to reach into internals.CachingAuthorityResolver caches results), test that guarantee through the public API — e.g. inject a mock delegate and assert it is called only once for a repeated key.Every documented behavior needs a test, both success and failure. Derive them from the contract. For example, given:
/**
* Parses the given JWT token and converts it into a {@link User}.
*
* @throws ExpiredJwtTokenException if the JWT token has expired
* @throws InvalidJwtTokenException if the JWT token is invalid or tampered with
* @throws JwtParsingException if the token cannot be parsed or contains insufficient data
*/
PasswordlessUser decodeTokenToUser(String token) throws ...;Write the happy path and one test per documented exception (expired, invalid, unparseable). Same idea for IAM (authenticated success + unauthenticated + unauthorized) and for data access (record found + not found + backing store unavailable).
Structure every test as a single Arrange → Act → Assert pass, marked with the Axelix comment convention (note the trailing periods):
@Test
void decodesUserFromValidToken() {
// given.
String token = validTokenFor(user);
// when.
PasswordlessUser decoded = jwtDecoderService.decodeTokenToUser(token);
// then.
assertThat(decoded.getUsername()).isEqualTo(user.getUsername());
}A when → then → when → then sequence (multiple act/assert cycles) means you have more than one scenario — split it into separate tests. Each test verifies exactly one thing.
The exception type is part of the contract; its human-readable message is not. Assert the type only:
// then.
assertThatThrownBy(() -> jwtDecoderService.decodeTokenToUser(expiredToken))
.isInstanceOf(ExpiredJwtTokenException.class);Do not use hasMessage, hasMessageContaining, message snapshots, or expectErrorMessage. The one exception: a stable, machine-readable errorCode that the contract explicitly documents may be asserted — descriptive prose never.
When the same behavior holds across a set of inputs, use a parameterized test instead of copy-pasted methods. Classic candidate: a method that returns null/throws for empty, null, and blank strings.
@ParameterizedTest // GH-1234
@ValueSource(strings = {"", " "})
@NullSource
void returnsEmptyForBlankInput(String input) {
// given / when.
Optional<Authority> result = resolver.resolve(input, HttpMethod.GET);
// then.
assertThat(result).isEmpty();
}Each parameterized invocation is still a single given/when/then scenario. Reference the driving issue with a // GH-NNNN comment when there is one, as the codebase does.
Test A must never depend on data or state left by test B, and order must not matter. Whatever a test mutates, it must reset:
@AfterEach cleanup, or per-test containers. Do not reach for @DirtiesContext as a crutch.@BeforeEach/@AfterEach; prefer fresh mocks per test.@Order, no implicit reliance on execution sequence, no reusing an ID/token another test created.Do not add assertions that merely check a value is non-null when the real assertion already implies it, or when null was never plausible. They add noise and verify almost nothing. Assert the meaningful property instead (assertThat(user.getUsername()).isEqualTo(...) already proves user is non-null).
@NestedWhen a unit has several distinct scenario groups (e.g. "enabled" vs "disabled", "found" vs "not found"), group them in @Nested static inner classes with descriptive names, as the codebase does:
class ActuatorPrometheusEndpointTest {
@Nested
class WhenEnabled { /* tests */ }
@Nested
class WhenDisabled { /* tests */ }
}Do not introduce a single @Nested class holding only one category — nesting earns its keep only when it separates groups.
import static org.assertj.core.api.Assertions.assertThat;) and assertThatThrownBy. Match whatever the neighboring tests use.// given. / // when. / // then. with trailing periods.decodesUserFromValidToken) or the shouldX_whenY form — follow the file you're adding to.var when the type isn't obvious from the right-hand side.@Nested when there are multiple scenario groups.- [ ] Every documented behavior (success + each exception/edge) has a test
- [ ] Only public/exported API is exercised; no reflection into internals
- [ ] Each test is a single given → when → then; no act/assert/act/assert
- [ ] Exceptions asserted by type only; no message-text assertions
- [ ] Repetitive input sets are parameterized, not copy-pasted
- [ ] Each test cleans up its own DB/shared/context state; order-independent
- [ ] No noise-only non-null assertions
- [ ] Related scenario groups organized with @Nested
- [ ] Tests actually run and pass© axelixlabs, LGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agent_skills/test-writer of axelixlabs/axelix.
Open the folder on GitHubat commit c0f35c5
Test Writer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Test Writer this skillaxelixlabs/axelix | 148 | — | ~2.2k | Automated safety check: Pass | LGPL-3.0 | |
| Crap Analyzerswingerman/engineer | 154 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Hexagonal Architectureyamcodes/arkenv | 145 | 4 repos | ~2.9k | Automated safety check: Pass | MIT | |
| Corvus Java Evaluatorcorvus-dotnet/Corvus.JsonSchema | 199 | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Build Teaql Appteaql/teaql-agent-kit | 2.8k | — | ~4.6k | Automated safety check: Pass | MIT | |
| Build Nitro Modulesmargelo/react-native-skills | 175 | — | ~9.9k | Automated safety check: Pass | MIT |
swingerman/engineer
A skill your agent uses to produce a risk-based refactor + test plan for recently-changed code on a diff/branch/PR by computing CRAP (complexity × untested) on changed methods.
yamcodes/arkenv
Design, implement, and refactor Ports & Adapters systems with clear domain boundaries, dependency inversion, and testable use-case orchestration across TypeScript, Java, Kotlin, and Go services.
corvus-dotnet/Corvus.JsonSchema
Work on the Java port of the V5 standalone schema evaluator (src-java/corvus-json-schema, Maven artifact io.github.corvus-dotnet:corvus-json-schema): loader, compiler, the ASM bytecode generator…
teaql/teaql-agent-kit
Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries.
margelo/react-native-skills
Builds and designs React Native Nitro Modules with Nitrogen, HybridObject TypeScript specs, Nitro View components, generated native implementations, zero-copy and native-state APIs, Swift/Kotlin/C++…
dotnet/skills
Audits existing tests in any language using formal, research-backed test smell names and the testsmells.org 19-smell academic taxonomy.
axelixlabs/axelix
Review configuration property changes in the Axelix project for breaking changes and migration-policy compliance.
axelixlabs/axelix
Refine and triage GitHub backlog by finding open issues that are stale, obsolete, or resolved by another path.
axelixlabs/axelix
Pick open GitHub issues in the Axelix monorepo that are suitable for unpaid volunteer contributors working in their spare time.
axelixlabs/axelix
Prepare an Axelix minor lockstep release — the pre-release housekeeping changes, a hand-editable release-notes draft, and the post-release bump to the next -SNAPSHOT.
axelixlabs/axelix
Create batched Dependabot-style pull requests for GitHub security findings in axelixlabs/axelix, grouped by dependency surface such as master/front-end, master/build.gradle.kts, or starter Gradle…
axelixlabs/axelix
Reviews changes in sbs/starter-domain for technology-agnostic domain logic, forbidden production dependencies, and Java 11+ compatibility.
Categories
Writes new tests for Axelix source code (Java, Kotlin, TypeScript, JavaScript) that follow the project's testing standards — public-API contract coverage, test isolation, given/when/then structure…. Test Writer is an agent skill from axelixlabs/axelix. Writes new tests for Axelix source code (Java, Kotlin, TypeScript, JavaScript) that follow the project's testing standards — public-API contract coverage, test isolation, given/when/then structure, parameterization, positive + negative cases, and exception-type-only assertions.
Test Writer fits situations like: the user asks to write; generate tests for a class/method/module/endpoint; cover a new feature; bug fix with tests.
Run `npx skills add axelixlabs/axelix --skill test-writer -a claude-code`. Or copy the skill folder (.agent_skills/test-writer in axelixlabs/axelix) into .claude/skills/test-writer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add axelixlabs/axelix --skill test-writer -a codex`. Or copy the skill folder (.agent_skills/test-writer in axelixlabs/axelix) into .agents/skills/test-writer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add axelixlabs/axelix --skill test-writer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-writer, .gemini/skills/test-writer, .github/skills/test-writer and .opencode/skills/test-writer in your project.
SKILL.md names no scripts, command-line tools or credentials: Test Writer is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Test Writer is published under the LGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Test Writer: Crap Analyzer (swingerman/engineer, 154 stars), Hexagonal Architecture (yamcodes/arkenv, 145 stars), Corvus Java Evaluator (corvus-dotnet/Corvus.JsonSchema, 199 stars) and Build Teaql App (teaql/teaql-agent-kit, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
axelixlabs (a GitHub organization) maintains it in axelixlabs/axelix, which has 148 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 8, 2026.
Source: axelixlabs/axelix on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.