dynamo-mapper

Use this skill when you need to write or explain DynamoMapper mappings for DynamoDB `AttributeValue` items in C#. It covers how to declare mapper classes, how `DynamoMapper`, `DynamoField`, `DynamoIgnore`, and `DynamoMapperConstructor` behave, what types and nested shapes are supported, how custom conversion really works, and how to troubleshoot DynamoMapper diagnostics and common gotchas without relying on stale docs.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "dynamo-mapper" with this command: npx skills add layeredcraft/dynamo-mapper/layeredcraft-dynamo-mapper-dynamo-mapper

DynamoMapper

Use this skill when generating or explaining DynamoMapper code.

Core truths

  • DynamoMapper is a C# incremental source generator for T <-> Dictionary<string, AttributeValue>.
  • Configure mapping on a static partial mapper class marked with [DynamoMapper].
  • The generator recognizes unimplemented partial methods whose names start with To or From and use the expected model/dictionary signatures.
  • One-way mappers are valid: To* only or From* only.
  • Domain models usually stay clean except for optional [DynamoMapperConstructor] on a constructor.
  • Nested object mapping is implemented and tested.
  • Some public docs are stale; use references/gotchas.md when behavior seems surprising.

Choose a path

  • Read references/core-usage.md for mapper shape, attribute behavior, defaults, constructor rules, and common implementation patterns.
  • Read references/type-matrix.md for supported types, collection rules, nested shapes, and hard limits.
  • Read references/diagnostics.md for generator diagnostics and the most likely fixes.
  • Read references/gotchas.md for stale-doc traps and the non-obvious rules most likely to cause bad guidance.

Default workflow

  1. Identify whether the task is mapper authoring, supported-type lookup, or diagnostics.
  2. Read the matching reference file before making assumptions.
  3. If the task touches nested mapping, converters, or hooks, check references/gotchas.md before answering.
  4. Keep answers concrete and code-oriented.

High-risk misunderstandings

  • Do not tell the user to decorate every POCO property; configuration belongs on the mapper class.
  • Do not assume methods must be named exactly ToItem and FromItem; the To/From prefix matters, but the generator also expects the recognized model/dictionary signatures.
  • Check references/gotchas.md before teaching hooks or custom converter signatures.
  • Do not assume every unsupported converter setup becomes a DynamoMapper diagnostic; some become normal C# compile errors.

Reference map

  • references/core-usage.md
  • references/type-matrix.md
  • references/diagnostics.md
  • references/gotchas.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

test_skill

import json import tkinter as tk from tkinter import messagebox, simpledialog

Archived SourceRecently Updated
General

neo

Browse websites, read web pages, interact with web apps, call website APIs, and automate web tasks. Use Neo when: user asks to check a website, read a web page, post on social media (Twitter/X), interact with any web app, look up information on a specific site, scrape data from websites, automate browser tasks, or when you need to call any website's API. Keywords: website, web page, browse, URL, http, API, twitter, tweet, post, scrape, web app, open site, check site, read page, social media, online service.

Archived SourceRecently Updated
General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated
General

explainer

Create explainer videos with narration and AI-generated visuals. Triggers on: "解说视频", "explainer video", "explain this as a video", "tutorial video", "introduce X (video)", "解释一下XX(视频形式)".

Archived SourceRecently Updated