dotnet-testing-autofixture-bogus-integration

dotnet-testing-autofixture-bogus-integration is a skill for Claude Code, Codex from kevintsengtw/dotnet-testing-agent-skills. It costs 153 tokens per session (2,594 once invoked), scanned A, original, MIT.

A guide for combining AutoFixture and Bogus to create test objects with both automatically filled fields and realistic values such as names, email addresses, and phone numbers. AutoFixture creates anonymous test data, while Bogus generates realistic-looking sample data.

In plain words
What is it for?
Use it to configure realistic test data for .NET unit or integration tests, including property- or type-specific generators, custom factories, and xUnit data attributes.
Why use it?
Default generated values can be structurally valid but unrealistic, making some tests harder to understand. The combination keeps automatic object construction while improving the meaning of selected data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure realistic test data for .NET unit or integration tests, including property- or type-specific generators, custom factories, and xUnit data attributes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing-autofixture-bogus-integration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-autofixture-bogus-integration
Clone the repo
git clone --depth 1 https://github.com/kevintsengtw/dotnet-testing-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dotnet-testing-autofixture-bogus-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing-autofixture-bogus-integration/github.svg)](https://agentmods.dev/skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing-autofixture-bogus-integration)
Your own site
<a href="https://agentmods.dev/skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing-autofixture-bogus-integration"><img src="https://agentmods.dev/badge/skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing-autofixture-bogus-integration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dotnet-testing-autofixture-bogus-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing-autofixture-bogus-integration"><img src="https://agentmods.dev/badge/skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing-autofixture-bogus-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,594 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00153 $0.02594
Opus 5.5 $0.00061 $0.01038
Sonnet 5.5 $0.00031 $0.00519
Haiku 4.5 $0.00015 $0.00259

Measured 2mo ago against content hash 577471c79601, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dotnet-testing-autofixture-bogus-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dotnet-testing-autofixture-bogus-integration/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AutoFixture 與 Bogus 整合應用指南

核心概念

為什麼需要整合?

面向 AutoFixture Bogus 整合方案
資料真實感 低(GUID 格式字串) 高(真實 Email/Phone) 高
物件關聯處理 自動 手動 自動
循環參考處理 內建 無 整合
設定複雜度 低 中 中
適用場景 單元測試 整合測試/原型 兩者皆可

整合效果: user.Email 從 "Email1a2b3c4d" 變為 "[email protected]",其他屬性仍由 AutoFixture 自動填充。

套件安裝

<PackageReference Include="AutoFixture" Version="4.18.1" />
<PackageReference Include="AutoFixture.Xunit2" Version="4.18.1" />
<PackageReference Include="Bogus" Version="35.6.5" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="AwesomeAssertions" Version="9.4.0" />

整合方式總覽

整合方式 適用場景 複雜度
屬性層級 SpecimenBuilder 特定屬性使用 Bogus 低
類型層級 SpecimenBuilder 整個類型使用 Bogus 中
混合產生器 (HybridGenerator) 統一 API 整合 中
整合工廠 (IntegratedFactory) 完整測試場景建構 高
自訂 AutoData 屬性 xUnit 整合 低

核心整合技術

ISpecimenBuilder 整合

透過 ISpecimenBuilder 介面實現屬性層級與類型層級的整合:

  • 屬性層級:根據屬性名稱判斷(如 Email、Phone、FirstName),使用 Bogus 產生對應的真實感資料
  • 類型層級:為整個類型(如 User、Address)註冊 Bogus Faker 產生器

常用 SpecimenBuilder

SpecimenBuilder 產生資料類型 Bogus API
EmailSpecimenBuilder Email 地址 f.Internet.Email()
PhoneSpecimenBuilder 電話號碼 f.Phone.PhoneNumber()
NameSpecimenBuilder 人名 f.Name.FirstName()
AddressSpecimenBuilder 地址 f.Address.FullAddress()

Read the full file on GitHub · 216 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +5 lines · -43 tokens per session 577471c79601
  2. 3mo ago First seen · 211 lines · 196 tokens per session scan A d4b90436eefa

Subscribe to this mod's changes

dotnet-testing-autofixture-bogus-integration is a skill published in the GitHub repository kevintsengtw/dotnet-testing-agent-skills (30 stars, last pushed 1mo ago), licensed MIT. It adds 153 tokens to every session and 2,594 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

dotnet-testing-autofixture-bogus-integration compared with skills from other repositories

dotnet-testing-autofixture-bogus-integration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotnet-testing-autofixture-bogus-integrationkevintsengtw/dotnet-testing-agent-skillsSkill301mo agoMITA153Claude Code, Codex
author-testAzure/azure-sdk-for-netSkill6.1kyesterdayMITA68Claude Code, Codex
migrate-xunit-to-xunit-v3managedcode/dotnet-skillsSkill52716d agoMITA149Claude Code, Codex
clean-architecture-dotnetSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A50Claude Code, Codex
creating-dotnet-mcp-serversSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A43Claude Code, Codex
csharp-xunitPracticalSwan/agent-skillsSkill2514d agoMITA25Codex
cratis-specifications-isolate-behaviorCratis/AISkill4todayMITA46Claude Code, Codex