AGENT SKILL

minipower-backend-healthcheck-dotnet-http

Đăng ký HTTP endpoint readiness bằng custom IHealthCheck (IHttpClientFactory, GET). Dùng khi project .NET cần probe API/dịch vụ HTTP ngoài trên /health/ready.

License 许可
MIT
最近更新
2026-11-09
Stars
★ 7
Forks
0

01 前言 Front Matter

name
minipower-backend-healthcheck-dotnet-http
description
Đăng ký HTTP endpoint readiness bằng custom IHealthCheck (IHttpClientFactory, GET). Dùng khi project .NET cần probe API/dịch vụ HTTP ngoài trên /health/ready.
dependencies
[ "System.Net.Http" ]

03 SKILL.md 正文

HTTP endpoint (custom IHealthCheck)

"HealthChecks": {
  "Readiness": {
    "ServiceEndpoint": "Services:Sample:Endpoint"
  }
}
public async Task<HealthCheckResult> CheckHealthAsync(
    HealthCheckContext context,
    CancellationToken cancellationToken = default)
{
    try
    {
        var endpoint = _options.Endpoint;

        using var response = await _httpClient.GetAsync(endpoint, cancellationToken);

        return response.IsSuccessStatusCode
            ? HealthCheckResult.Healthy()
            : HealthCheckResult.Unhealthy($"Endpoint returned {response.StatusCode}");
    }
    catch (Exception ex)
    {
        return HealthCheckResult.Unhealthy("Endpoint unreachable", ex);
    }
}

04 同仓库更多 Skills

hoangnh2412
hoangnh2412/minipower

minipower-vcs-gitlab

Tra GitLab (search, issue, pipeline, MR), soạn MR/comment, tạo MR và commit/push sau L2. Dùng khi merge request, GitLab MCP, code_provider gitlab — không scaffold .NET, không force-push.

★ 7
hoangnh2412
hoangnh2412/minipower

minipower-toolbox-skill-author

Viết và soát skill lá-rời Minipower (minipower-{module}-{capability}) — chọn module bằng 3 câu hỏi ADR-022, dựng cây SKILL.md/README.md/workflows/providers, đặt description kích hoạt được, cập nhật hub và test canh. Hỏi người xác nhận trước mọi quyết định, không tự chốt. Dùng khi tạo skill mới, thêm provider/pattern/workflow, mở module mới, hoặc soát skill có sẵn lệch chuẩn.

★ 7
hoangnh2412
hoangnh2412/minipower

minipower-tasks-lark

Đọc, lọc, tìm, soạn nháp và ghi task Lark (tasklist / task) theo L1–L3. Dùng khi việc trên Lark, sprint, tasklist, "tìm task", "tạo task", tasks_provider lark — không dùng cho tin nhắn nhóm hay wiki.

★ 7
hoangnh2412
hoangnh2412/minipower

minipower-support-registry

Rà registry DOC theo project_mode, nhắc owner thiếu ID hoặc chỗ lưu sai. Dùng khi doc-registry, thiếu DOC, rà soát tiêu chuẩn — không tự sửa FR, không init.

★ 7
hoangnh2412
hoangnh2412/minipower

minipower-support-publish

暂无简介

★ 7
hoangnh2412
hoangnh2412/minipower

minipower-router

Phân loại intent Minipower rồi gợi ý đúng một pack nghề hoặc kênh. Dùng khi làm gì tiếp, chọn skill, dispatcher, không biết mở pack nào — không tự gọi MCP L3, không spawn agent.

★ 7