用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/wisam79/dental --skill analyze-evidence命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | analyze_evidence |
| description | Analyze dental X-ray images to detect teeth, pathologies, and estimate age/gender. |
Use this skill to perform forensic analysis on dental X-ray images. This involves detecting teeth (FDI notation), identifying pathologies, and estimating biological profile (age/gender).
DentalID.Core.Interfaces.IAiPipelineService (The AI Engine)DentalID.Application.Services.ForensicAnalysisService (High-level orchestration)DentalID.Core.DTOs.AnalysisResult (The output format)Validate Input:
.png, .jpg, .bmp, .dcm).FileStream (Read-only) and pass the Stream. This ensures file locks and prevents race conditions.Run Analysis:
IAiPipelineService.AnalyzeImageAsync(stream).Interpret Results:
AnalysisResult.Teeth.AnalysisResult.Pathologies.EstimatedAge and EstimatedGender.Advanced: Batch Processing:
Task.WhenAll to maximize CPU/GPU usage.Error Recovery:
Teeth.Count < 5, the image might be blurry.
Histogram Equalization (using OpenCV/Skia) and retry.11 is found at the bottom of the image.
using DentalID.Core.Interfaces;
using DentalID.Core.DTOs;
public async Task<AnalysisResult> PerformForensicAnalysis(string imagePath, IAiPipelineService aiService)
{
// 1. Secure Open
using var stream = File.OpenRead(imagePath);
// 2. Analyze with Retry Logic
try
{
return await aiService.AnalyzeImageAsync(stream);
}
catch (Exception ex)
{
Console.WriteLine($"[Error] First pass failed: {ex.Message}. Retrying with enhancement...");
// TODO: call ImagePreprocessor.Enhance(stream)
return await aiService.AnalyzeImageAsync(stream); // Retry
}
}
DentalID.Core.Utilities.ImagePreprocessor.EnhanceContrast.models/ directory contains teeth_detect.onnx and pathology_detect.onnx.