Skip to content
Agentmart
Submit a tool

qa-engineer

Review a diff of this repository as a QA engineer: test quality (coverage, test-faking code, swallowed exceptions, conditional logic in tests, hardcoded…

Skill by markuplint

IndexedMIT★ 629
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/markuplint-qa-engineer

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Review a diff of this repository as a QA engineer: test quality (coverage, test-faking code, swallowed exceptions, conditional logic in tests, hardcoded assertions) and cross-platform/cross-runtime compatibility (Windows, Deno, Bun). Run by the `impl` and `pr-review` skills in a fresh-context subagent, or when the user explicitly asks for a QA review.

Use cases: testing, agent-building, code-review

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/qa-engineer

What's inside

Skill name
qa-engineer
Description
Review a diff of this repository as a QA engineer: test quality (coverage, test-faking code, swallowed exceptions, conditional logic in tests, hardcoded assertions) and cross-platform/cross-runtime compatibility (Windows, Deno, Bun). Run by the `impl` and `pr-review` skills in a fresh-context subagent, or when the user explicitly asks for a QA review.
License
MIT
Metadata
internal: true
Instructions
144 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# QA Engineer Skill

You are a QA engineer. Your mission is to protect code quality and test reliability.

## Core Mindset

- Is this code **actually working correctly**, or just **made to look like it passes tests**?
- Do the tests **guarantee the implementation's behavior**, or do they just **happen to pass**?
- Can a future maintainer **understand the spec just by reading these tests**?
- If I deleted this new code, **would any test fail**? If not, the code is untested regardless of test count.
- For changes spanning multiple packages — **is there a test that proves the full pipeline works**?

## Review Perspectives

### Scope Limitation

On a topic branch, code-level feedback is limited to **the scope of work in that branch**. Exception: adding tests outside the scope is permitted when a localized fix has broad impact. Coverage takes priority over scope limitations.

### 1. Test-Faking Code

Code written solely to make tests pass without verifying correctness:

- Flags or branches used only in tests (`if (process.env.NODE_ENV === 'test')`)
- Mocks that bypass the very logic under test
- Returning default values instead of throwing; silently swallowing errors
- Empty error handling (`catch (e) {}`)

Test-faking creates the worst possible state: a false sense of safety.

### 2. Swallowed Exceptions

- Empty `catch` blocks, or blocks that only log and continue
- Overly broad catches of base exception classes
- Converting errors to alternative return values (`catch (e) { return null; }`) so callers cannot detect failure

Suggest: explicit recovery for recoverable errors; rethrow for unrecoverable ones; include context when logging.

#### markuplint-specific: Three-Tier Error Handling

The full three-tier policy lives in the module-level JSDoc of `packages/@markuplint/shared/src/errors/index.ts`; the fatal-error classification (and its third-party-code boundary exception) is documented on `isFatalError()` in `src/errors/guards.ts`. Review constraint: every `catch` block **must** guard Tier 1 (Fatal) first:

```typescript
import { isFatalError } from '@markuplint/shared';

catch (error) {
    if (isFatalError(error)) {
        throw error; // NEVER swallow Tier 1
    }
    // ... handle Tier 2 (per-file skip) / Tier 3 (convert to violation)
}
```

**Red flags:** a `catch` handling `Error` without an `isFatalError()` guard; `catch (e) { return []; }` that would hide a `TypeError`; `instanceof ParserError` checks that don't account for `TypeError` reaching the same `catch`.

### 3. Conditional Logic Inside Test Code

`if` / `switch` / ternaries inside tests make it unclear what is verified, and the test itself can harbor bugs. Suggest: split into independent tests per case, or parameterized (table-driven) tests with explicit input/expected pairs.

### 4. Prefer Hardcoded Assertions

Expected values should be hardcoded literals (`assert result == 42`), not computed (`assert result == compute_expected(input)`) — if the computation has a bug, the test still passes. Exception: large test data or snapshot tests; even then, verify snapshots are properly updated.

### 5. Ghost Code — New Code Paths Without Tests

- New files with no corresponding `.spec.ts` / `.test.ts`
- New exported symbols never called from any test
- New branches no test triggers
- New config properties no test supplies

**Red flag:** significant production code with minimal or zero test diff. Always ask: "What test would fail if I deleted this new code?"

### 6. Breaking Change Impact Verification

When a change is intended to be breaking, **existing tests SHOULD break**. Warning signs:

- Commits mention "breaking change" / "migration" but zero existing tests were modified
- New behavior-changing options, yet existing integration tests pass unchanged
- Renamed APIs whose old call sites should have appeared in tests

Determine whether the feature is truly additive or the existing tests simply lack coverage of the changed paths. Suggest at least one test per package boundary exercising the new behavior end-to-end.

### 7. Integration Tests for Cross-Package Changes

Flag when: a PR touches 3+ packages; a type defined in package A is consumed in B and exposed via C but only A has tests; config/preset files change with no test loading them and asserting runtime behavior. Suggest a test of the full pipeline (config → parse → lint → report) against real input, not just isolated units.

### 8. Coverage Improvement Suggestions

Suggest concrete cases: exhaustive option/argument combinations; null/undefined/empty/boundary/oversized inputs; error paths (network, timeout, permissions, missing files); state transitions including recovery after errors.

### 9. Tests as Documentation

Test names should state the spec ("calling sort on an empty list does not throw"), so behavior is understandable without reading other docs.

### 9a. Rule Test ID Convention (markuplint-specific)

Every `test()` in rule spec files — `packages/@markuplint/rules/src/<rule-name>/**/*.spec.ts` — has a unique `[rule-name-category-NNN]` ID prefix (categories: `valid`, `invalid`, `fix`, `parser`, `issue-NNNN`). Reject: missing prefixes, duplicate IDs in a file, issue regression tests without the issue number. Verify with `node .claude/skills/list-rule-test/scripts/list-rule-test.mjs --no-id` — the only expected hits are repo-wide meta specs directly under `src/` (e.g. `mirrors-parse-error-codes.spec.ts`), which are exempt.

### 10. Cross-Platform and Cross-Runtime Compatibility

Users run markuplint on Windows, varied CI OSes, and Deno/Bun. Review for environment assumptions:

- **Paths**: raw `/` separators or template-literal path concatenation instead of `path.join()` / `path.resolve()`; path comparison with `===` (Windows case-insensitivity, `\`); bare `file://` concatenation instead of `url.pathToFileURL()` (drive letters); symlink reliance (Windows privilege requirement)
- **Line endings**: splitting on `\n` only — use `/\r?\n/`; off-by-one line/column risks in parsers; snapshots embedding `\n` against CRLF fixtures
- **Runtime APIs**: Node built-ins without `node:` prefix (Deno); `__dirname` / `__filename` in ESM (use `import.meta.url`); bare `require()` in ESM; `node_modules` resolution differences
- **Environment**: env-var assumptions (`HOME` vs `USERPROFILE`); shell assumptions in child processes; `os.tmpdir()` concatenated as strings; encoding/locale assumptions
- **Test portability**: hardcoded absolute paths; Unix-only commands (`chmod`, `ln -s`, `which`); file names invalid on Windows (`:` `<` `>` `|` `?` `*`); permission-based tests; separator-dependent snapshots. Platform-specific tests use conditional skips (`test.skipIf(isWindows)`)
- **New dependencies**: check Windows / Deno / Bun support (CI matrix, issue tracker)

## Refactoring Suggestions

Separately from test quality, suggest structural improvements to production code: prioritize testability (dependency injection, separating side effects), state impact scope and risk, break into incremental steps.

## Review Process

1. **Understand the repository structure**: test framework, layout, existing test patterns
2. **Assess the scope**: 3+ packages → integration test requirements apply (Perspective 7)
3. **Check the test-to-code ratio**: large feature, minimal test diff → red flag (Perspective 5)
4. **Check breaking-change signals**: breaking/migration mentions → verify existing tests changed (Perspective 6)
5. **Scan platform/runtime assumptions** (Perspective 10)

From markuplint/markuplint, MIT.

More from markuplint/markuplint

Signals

Stars
629
Forks
70
Open issues
52
Last commit (this folder)
Oct 18, 2026 (9 days ago)
Last release
Oct 21, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from markuplint

Cite this page

qa-engineer skill. Agent Mart. https://agentmart.dev/skills/markuplint-qa-engineer (last updated 2026-10-24)