Skip to content

Add GitHub Copilot Agent Skills for DKNet Framework packages#276

Merged
baoduy merged 3 commits intodevfrom
copilot/add-dknet-skills-package
Feb 17, 2026
Merged

Add GitHub Copilot Agent Skills for DKNet Framework packages#276
baoduy merged 3 commits intodevfrom
copilot/add-dknet-skills-package

Conversation

Copy link
Contributor

Copilot AI commented Feb 16, 2026

Provides AI-powered code generation guidance for teams consuming DKNet NuGet packages. Each skill encodes framework patterns, anti-patterns, and best practices to improve code quality and development velocity.

Skills Created

Core

  • dknet-overview - Architecture, DDD patterns, Onion structure
  • fw-extensions - String/type/collection utilities, validation helpers

EF Core

  • efcore-abstractions - Base entities, audit trails, soft delete, domain events
  • efcore-specifications - Specification pattern, dynamic predicates, LinqKit composition
  • efcore-repos - Repository pattern, CQRS separation, Mapster projections

ASP.NET Core

  • aspcore-idempotency - Idempotent operations, SQL Server storage, conflict handling

Messaging

  • slimbus-messaging - Event-driven architecture, publish/subscribe patterns

Structure

Skills/
├── README.md                    # Installation options, learning path
└── {skill-name}/
    └── SKILL.md                 # YAML frontmatter + patterns + examples

Each skill (400-600 lines):

  • 5+ usage patterns with complete examples
  • Critical rules (e.g., .AsExpandable() required for LinqKit)
  • Common mistakes with ❌/✅ comparisons
  • Cross-references for navigation

Usage Example

// Copilot now suggests DKNet patterns automatically:

// Comment: Create a specification for active products with dynamic filters
public class ProductSearchSpec : Specification<Product>
{
    public ProductSearchSpec(string? searchTerm = null, decimal? minPrice = null)
    {
        var predicate = PredicateBuilder.New<Product>(p => !p.IsDeleted);
        
        if (!string.IsNullOrWhiteSpace(searchTerm))
        {
            predicate = predicate.DynamicAnd(builder => builder
                .With("Name", Ops.Contains, searchTerm));
        }
        
        WithFilter(predicate);
        AddOrderBy(p => p.Name);
    }
}

Installation

Repository-level: Automatic in DKNet repo
Global: cp -r Skills/* ~/.copilot/skills/
Per-project: Copy to .github/skills/

Coverage

  • Total: 3,503 lines across 7 skills + master index
  • Format: GitHub Copilot Agent Skill (YAML frontmatter + Markdown)
  • Packages: All major DKNet packages (Core, EF Core, ASP.NET Core, Messaging)
Original prompt

Skills for copilot.

As I'm sharing this framework for my team to use my nuget packages for their applications development.

To improve the performance and quality of the code could you developers a set of DKNet skills and place them into Skills folder.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 16, 2026 03:17
Co-authored-by: baoduy <166953+baoduy@users.noreply.github.com>
Co-authored-by: baoduy <166953+baoduy@users.noreply.github.com>
Copilot AI changed the title [WIP] Add DKNet skills framework for team use Add GitHub Copilot Agent Skills for DKNet Framework packages Feb 16, 2026
Copilot AI requested a review from baoduy February 16, 2026 03:21
@baoduy baoduy marked this pull request as ready for review February 16, 2026 14:54
@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.74%. Comparing base (0e6458b) to head (f50e7d6).
⚠️ Report is 4 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #276      +/-   ##
==========================================
+ Coverage   84.68%   84.74%   +0.05%     
==========================================
  Files         158      158              
  Lines        3585     3585              
  Branches      568      568              
==========================================
+ Hits         3036     3038       +2     
+ Misses        393      392       -1     
+ Partials      156      155       -1     
Flag Coverage Δ
unittests 84.74% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

📊 Code Coverage Report

| Metric | Coverage |
|--------|----------|
| **Line Coverage** | 87.9% |
| **Branch Coverage** | 82.4% |
| **Method Coverage** | 86.3% |

**Lines:** 3153/undefined covered
**Branches:** 1228/undefined covered

📈 [View Full Coverage Report](https://github.com/baoduy/DKNet/actions/runs/22048949187)

@sonarqubecloud
Copy link

@baoduy baoduy merged commit f7f7fa8 into dev Feb 17, 2026
5 checks passed
@baoduy baoduy deleted the copilot/add-dknet-skills-package branch February 17, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants