context-engineering

Configures agent context files and loading strategies for .NET and C# projects.

7|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/peterblazejewicz/claude-plugins --skill context-engineering-peterblazejewicz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-engineering
Source: https://github.com/peterblazejewicz/claude-plugins/tree/main/plugins/dotnet-skills/skills/context-engineering
Command: npx skills add https://github.com/peterblazejewicz/claude-plugins --skill context-engineering-peterblazejewicz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI coding agents produce wrong patterns, hallucinated APIs, and convention violations when they lack the right project context. This Skill structures what the agent sees — CLAUDE.md rules files, specs, source files, error output, and conversation history — so .NET/C# projects get consistent, convention-following output. ## Core Features & Use Cases - Five-level context hierarchy: Organizes context from persistent rules files (CLAUDE.md, .editorconfig) down to transient conversation history, with .NET-specific templates covering solution layout, dotnet CLI commands, and naming conventions. - Context packing strategies: Provides brain-dump, selective-include, and hierarchical-summary templates for loading only task-relevant files, plus MCP server integrations (Context7, Microsoft Learn, PostgreSQL/SQL Server). - Confusion management: Supplies explicit patterns for surfacing spec conflicts, missing requirements, and inline plans instead of silently guessing. - Use Case: When starting a new Avalonia/ASP.NET Core session, generate a CLAUDE.md covering tech stack, solution layout, build/test commands, and boundaries so the agent stops inventing APIs and follows project conventions. ## Quick Start Set up a CLAUDE.md and context strategy for my .NET 8 Avalonia project so the agent follows our conventions.

Frequently Asked Questions about context-engineering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up CLAUDE.md for a .NET project?

Create a CLAUDE.md covering tech stack (.NET 8, C# 12, frameworks), solution layout, dotnet CLI commands for build and test, code conventions like nullable reference types and naming, and boundaries such as never committing secrets. Pair it with an .editorconfig so analyzers enforce the same rules.

How to fix AI agent hallucinating APIs in C# code?

Hallucinated APIs indicate context starvation. Load the relevant source files, type definitions, and one existing pattern example before each task, and check Directory.Packages.props for actual package versions. A rules file documenting conventions prevents the agent from inventing utilities.

Does more context always improve AI coding agent output?

No. Context flooding degrades focus; the guidance recommends under 2,000 lines of focused, task-relevant context rather than loading entire specs or large file sets. Context window size does not equal attention budget.

What MCP servers help with .NET development context?

Useful MCP servers include Context7 for library documentation (EF Core, Avalonia, xUnit), Microsoft Learn for official .NET docs, PostgreSQL or SQL Server for schema access, and Chrome DevTools for Blazor WebAssembly debugging.

When should I start a fresh agent session instead of continuing?

Start fresh when switching between major features or when conversation history grows long and stale, since accumulated context causes the agent to reference outdated patterns. Summarize progress before compacting or resetting.