المهارات lint-dotnet
🛡️

lint-dotnet

آمن ⚙️ الأوامر الخارجية🌐 الوصول إلى الشبكة

Lint .NET architecture rules

.NET 프로젝트는 종종 유지 관리 문제를 일으키는 일관성 없는 빌드 패턴을 가지고 있습니다. 이 기술은 자동화된 린터를 실행하여 MSBuild 위반 및 Central Package Management 문제를 코드베이스에서 문제가 발생하기 전에 확인합니다.

يدعم: Claude Code(CC)
📊 70 كافٍ
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "lint-dotnet". /lint-dotnet

النتيجة المتوقعة:

  • CLEAN: All rules passed
  • No violations found. Safe to proceed.
  • Directory.Packages.props uses $(VariableName) format
  • Version.props imported only in allowed files

استخدام "lint-dotnet". /lint-dotnet

النتيجة المتوقعة:

  • RULE_A violation detected
  • Directory.Packages.props line 5: Hardcoded Version="1.2.3" found
  • Fix: Replace with $(PackageNameVersion) and define in Version.props
  • RULE_G violation detected
  • MyApp.csproj line 12: Inline Version attribute on PackageReference
  • Fix: Remove Version attr and add to Directory.Packages.props

التدقيق الأمني

آمن
v5 • 1/16/2026

All 24 static findings are FALSE POSITIVES. The analyzer misidentified markdown documentation examples as executable code and cryptographic metadata hashes as weak algorithms. This is a documentation-only skill that references an external bash script for linting .NET architecture patterns. No actual execution, network calls, or file access occurs within the skill files.

2
الملفات التي تم فحصها
229
الأسطر التي تم تحليلها
2
النتائج
5
إجمالي عمليات التدقيق
تم تدقيقه بواسطة: claude عرض سجل التدقيق →

درجة الجودة

38
الهندسة المعمارية
100
قابلية الصيانة
85
المحتوى
30
المجتمع
100
الأمان
83
الامتثال للمواصفات

ماذا يمكنك بناءه

Validate project structure

.NET 프로젝트가 코드 변경을 커밋하기 전에 확립된 아키텍처 패턴을 따르는지 확인

Enforce build standards

모든 프로젝트가 팀 전체에서 일관된 빌드 패턴을 유지하도록 CI 파이프라인의 일부로 실행

Review architecture compliance

Central Package Management의 일관된 사용과 적절한 버전 처리 규칙을 위해 리포지토리 감사

جرّب هذه الموجهات

Basic lint
/lint-dotnet
Lint with output
/lint-dotnet to check for any MSBuild violations in this project
Fix guidance
/lint-dotnet and explain how to fix the violations that are reported
Full validation
/lint-dotnet to validate that all .NET architecture rules are satisfied before I commit

أفضل الممارسات

  • .NET 프로젝트를 커밋하기 전에 /lint-dotnet을 실행하여 개발 초기에 아키텍처 위반을 발견하세요
  • 솔루션 간 일관성을 보장하기 위해 모든 버전 참조에 Central Package Management를 사용하세요
  • Version.props를 소비자 리포지토리에서 항상 심볼릭 링크로 유지하고 파일을 직접 복사하지 마세요

تجنب

  • Directory.Packages.props에서 $(VariableName) 형식 대신 Version="1.2.3"과 같은 버전 하드코딩
  • 허용된 목록 외부의 임의의 .props 파일에서 Version.props 가져오기
  • 다운스트림 리포지토리에서 Version.props를 심볼릭 링크 대신 복사

الأسئلة المتكررة

What versions of .NET does this support?
이 린터는 .NET Core 3.1 및 .NET 5 이상을 포함한 모든 최신 .NET 버전과 호환되는 MSBuild 패턴을 확인합니다.
Does this linter modify files?
아니요. 린터는 프로젝트 파일만 읽고 위반 사항을 보고합니다. 자동으로 문제를 수정하지 않습니다.
Can I integrate this into my CI pipeline?
네. 기본 스크립트는 bash에서 실행되며 CI 에이전트에 .NET SDK만 설치되어 있으면 됩니다.
Does this send any data externally?
아니요. 린터는 완전히 로컬에서 실행되며 네트워크 액세스 없이 컴퓨터의 프로젝트 파일만 읽습니다.
What rules are currently implemented?
RULE_A는 하드코딩된 버전을, RULE_B는 가져오기 위치를, RULE_C는 심볼릭 링크를, RULE_G는 인라인 버전 속성을 확인합니다.
How is this different from dotnet format?
dotnet format은 서식을 위한 코드 스타일 도구입니다. 이 린터는 Central Package Management 및 버전 처리 규칙과 같은 아키텍처 패턴을 적용합니다.

تفاصيل المطور

بنية الملفات

📄 SKILL.md