BookStore Cheat Sheet

VerifiedSafe

Quick reference for BookStore code conventions and patterns. Use it to quickly look up standard practices for generating UUIDv7 IDs, UTC timestamps, event naming, logging with LoggerMessage, caching with HybridCache, and multi-tenancy. Not intended for step-by-step workflows – those are covered by dedicated scaffold skills.

Sby Skills Guide Bot
DevelopmentBeginner
6/2/2026
Claude Code
#cheat-sheet#bookstore#csharp#guidelines#quick-reference

Recommended for

Automated summary

This skill provides a quick reference cheat sheet for BookStore coding conventions including IDs, timestamps, events, commands, caching, and multi-tenancy.

Strengths

  • Fast lookup of common patterns
  • Enforces consistency across the codebase
  • Reduces errors by centralizing conventions
  • Covers key areas like caching and event patterns

Limitations

  • Only covers BookStore-specific conventions
  • Not a full tutorial or guide
  • May become outdated as the codebase evolves
When to use it

Use this skill when you need a quick reminder of BookStore coding patterns or conventions.

When not to use it

Do not use it when you need a step-by-step guide for complex workflows; use the relevant scaffold skill instead.

Security analysis

Safe
Quality score90/100

The skill is purely a reference cheat sheet of code patterns and conventions. It does not instruct or execute any actions, and there are no declared tools that could perform risky operations. No destructive, exfiltrating, or obfuscated content is present.

No concerns found

How this analysis is made

Examples

ID generation pattern
How should I generate a new ID in BookStore?
Event definition pattern
What is the pattern for defining an event in BookStore?
HybridCache query pattern
Show me the HybridCache query pattern for BookStore.

name: meta__cheat_sheet description: 'Quick reference for BookStore code rules and patterns. Use this when you need a fast lookup of conventions for IDs (Guid.CreateVersion7), timestamps (DateTimeOffset.UtcNow), event naming, logging (LoggerMessage), caching, or multi-tenancy. DO NOT USE FOR: step-by-step workflows — use the relevant scaffold skill instead.'

BookStore Cheat Sheet

IDs & Timestamps

var id = Guid.CreateVersion7();           // ✅ UUIDv7
var now = DateTimeOffset.UtcNow;          // ✅ UTC timestamp

Event (past tense, record)

public record BookAdded(Guid Id, string Title, decimal Price);

Command (record)

public record AddBookCommand(string Title, decimal Price);

Aggregate Apply Method

public void Apply(BookAdded @event)
{
    Id = @event.Id;
    Title = @event.Title;
}

Handler (static, Wolverine)

public static class AddBookHandler
{
    public static BookAdded Handle(AddBookCommand cmd) =>
        new(Guid.CreateVersion7(), cmd.Title, cmd.Price);
}

HybridCache Query

var result = await cache.GetOrCreateAsync(
    $"books:{culture}",
    async ct => await session.Query<BookProjection>().ToListAsync(ct),
    tags: [CacheTags.BookList],
    cancellationToken: ct);

Cache Invalidation

await cache.RemoveByTagAsync(CacheTags.BookList, ct);

SSE Notification

public record BookUpdatedNotification(Guid Id) : IDomainEventNotification;

TUnit Test

[Test]
public async Task Should_Create_Book()
{
    var result = await client.CreateBookAsync(request);
    await Assert.That(result.Id).IsNotNull();
}

Namespace

namespace BookStore.ApiService.Handlers;  // ✅ File-scoped

Related Skills

  • /wolverine__guide - All Wolverine write operations (create, update, delete)
  • /marten__guide - Aggregates, projections, and query endpoints

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/bookstore-cheat-sheet-mmlj2nln/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/bookstore-cheat-sheet-mmlj2nln' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/bookstore-cheat-sheet-mmlj2nln/download' --output '.skill-downloads/bookstore-cheat-sheet-mmlj2nln/SKILL.md.part' && mv '.skill-downloads/bookstore-cheat-sheet-mmlj2nln/SKILL.md.part' '.skill-downloads/bookstore-cheat-sheet-mmlj2nln/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/bookstore-cheat-sheet-mmlj2nln/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills