CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

testland/event-sourcing-tests

Use when an event-sourced aggregate gains or changes an event type, snapshots are added, or a CQRS read model is projected from events. Tests given-events/when-command/then-events, replay determinism, upcasting, snapshot equivalence, projections and eventual-consistency windows.

Quality

88%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

Quality

Content

78%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

Well-structured content: a tight worked example, a clearly sequenced procedure, and exemplary progressive disclosure with three real, clearly signaled reference files. Weaknesses are minor — some restated background knowledge and pointer-only treatment of upcasting/snapshot/concurrency test mechanics.

Suggestions

Trim background re-explanations (the Fowler replay definition and the prose re-definition of given/when/then) to pure pointers — Claude already knows event-sourcing fundamentals.

Add a compact inline code sketch for versioned upcasters or snapshot-equivalence (e.g., a 5-10 line assert snapshot_at_n == replay_to_n test) so the skill's core claims are executable without opening references.

Add one error-recovery note per key assertion (e.g., what to check when the convergence-window or replay-determinism assertion fails) to close the feedback-loop gap in the workflow.

DimensionReasoningScore

Conciseness

The body is largely lean with a single focused worked example, but it spends tokens restating concepts Claude already knows — e.g., quoting Fowler that replay means "rebuild application state from scratch by replaying events in order" and re-defining the given/when/then pattern in prose. It is not 5 because of these minor trimmable explanations, and not 3 because padding is incidental rather than a pattern.

4 / 5

Actionability

The worked example is complete, assertion-based test code and the projection section gives concrete parameterization hints ("ProductPriceChanged → {\"sku1.price\": 120}"), but major coverage areas (upcasting, snapshot equivalence, optimistic concurrency) are pointer-only with no inline code. It is not 5 because copy-paste-ready examples do not cover the common upcasting/snapshot cases; not 3 because the inline code is real and executable, not pseudocode.

4 / 5

Workflow Clarity

The "How to use" section gives a clear 6-step sequence with explicit ordering ("it is the base every other check builds on") and concrete checkpoints ("assert new_proj.materialize() == old_proj.materialize() before switching reads"), but there are no error-recovery feedback loops for failing assertions. It is not 5 because retry/fix guidance is absent; not 4→3 because checkpoints are explicit rather than implicit.

4 / 5

Progressive Disclosure

The body is a well-organized overview with three one-level-deep references, each clearly signaled with a descriptive markdown link and summarized in a References section; all three files in references/ exist and every bundle file is referenced (no orphans, no nesting). This matches the clear-overview-with-well-signaled-references anchor.

5 / 5

Total

17

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: third-person, concise, with an explicit Use-when clause carrying three concrete trigger conditions and a comprehensive list of six named test capabilities. The only gap is a few natural trigger synonyms (e.g., "event store", plain "event sourcing").

DimensionReasoningScore

Specificity

The description lists six concrete test capabilities — "Tests given-events/when-command/then-events, replay determinism, upcasting, snapshot equivalence, projections and eventual-consistency windows" — which is comprehensive coverage for this domain. It is not 4 because the capability list has no meaningful gaps.

5 / 5

Completeness

Explicitly answers both questions: the "what" is "Tests given-events/when-command/then-events, replay determinism, upcasting, snapshot equivalence, projections and eventual-consistency windows" and the "when" is the leading "Use when an event-sourced aggregate gains or changes an event type, snapshots are added, or a CQRS read model is projected from events" with three concrete trigger conditions. This matches the 5 anchor pattern exactly.

5 / 5

Trigger Term Quality

Natural domain phrases users would say are present ("event-sourced aggregate", "snapshots are added", "CQRS read model is projected from events", "upcasting", "replay determinism"), but a few natural synonyms are missing (plain "event sourcing", "event store", "event replay"). It is not 3 because keyword coverage is strong and domain-precise rather than partial.

4 / 5

Distinctiveness Conflict Risk

The triggers are specific to event-sourced aggregate and CQRS projection testing — a clear niche with minimal overlap risk — and the skill body explicitly fences off cross-aggregate transactions to a separate saga skill. It is not 4 because no closely related skill would realistically capture these triggers.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

On this page