nuget-manager
하는 일
이 에이전트는 .NET 프로그래밍 프로젝트의 코드 패키지를 관리하도록 돕습니다. 올바른 도구를 사용해 패키지를 안전하게 추가, 삭제, 업데이트하도록 합니다.
사용하는 경우
- ✓새 코드 패키지를 추가해야 할 때.
- ✓더 이상 쓰지 않는 패키지를 삭제해야 할 때.
- ✓패키지를 새 버전으로 업데이트해야 할 때.
스킬 링크
https://github.com/github/awesome-copilot/blob/main/skills/nuget-manager/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“'MyProject' 프로젝트에 'Newtonsoft.Json' 패키지를 추가해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
패키지를 관리하기 위해 특정 .NET 명령을 사용합니다. 프로젝트를 망가뜨릴 수 있는 직접 편집은 피합니다. 업데이트할 때는 새 버전이 있는지 확인하고, 프로젝트를 복원해 모든 것이 작동하는지 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
NuGet Manager
Overview
This skill ensures consistent and safe management of NuGet packages across .NET projects. It prioritizes using the dotnet CLI to maintain project integrity and enforces a strict verification and restoration workflow for version updates.
Prerequisites
- .NET SDK installed (typically .NET 8.0 SDK or later, or a version compatible with the target solution).
dotnetCLI available on yourPATH.jq(JSON processor) OR PowerShell (for version verification usingdotnet package search).
Core Rules
- NEVER directly edit
.csproj,.props, orDirectory.Packages.propsfiles to add or remove packages. Always usedotnet add packageanddotnet remove packagecommands. - DIRECT EDITING is ONLY permitted for changing versions of existing packages.
- VERSION UPDATES must follow the mandatory workflow:
- Verify the target version exists on NuGet.
- Determine if versions are managed per-project (
.csproj) or centrally (Directory.Packages.props). - Update the version string in the appropriate file.
- Immediately run
dotnet restoreto verify compatibility.
Workflows
Adding a Package
Use dotnet add [<PROJECT>] package <PACKAGE_NAME> [--version <VERSION>].
Example: dotnet add src/MyProject/MyProject.csproj package Newtonsoft.Json
Removing a Package
Use dotnet remove [<PROJECT>] package <PACKAGE_NAME>.
Example: dotnet remove src/MyProject/MyProject.csproj package Newtonsoft.Json
Updating Package Versions
When updating a version, follow these steps:
Verify Version Existence: Check if the version exists using the
dotnet package searchcommand with exact match and JSON formatting. Usingjq:dotnet package search <PACKAGE_NAME> --exact-match --format json | jq -e '.searchResult[].packages[] | select(.version == "<VERSION>")'Using PowerShell:(dotnet package search <PACKAGE_NAME> --exact-match --format json | ConvertFrom-Json).searchResult.packages | Where-Object { $_.version -eq "<VERSION>" }Determine Version Management:
- Search for
Directory.Packages.propsin the solution root. If present, versions should be managed there via<PackageVersion Include="Package.Name" Version="1.2.3" />. - If absent, check individual
.csprojfiles for<PackageReference Include="Package.Name" Version="1.2.3" />.
- Search for
Apply Changes: Modify the identified file with the new version string.
Verify Stability: Run
dotnet restoreon the project or solution. If errors occur, revert the change and investigate.
Examples
User: "Add Serilog to the WebApi project"
Action: Execute dotnet add src/WebApi/WebApi.csproj package Serilog.
User: "Update Newtonsoft.Json to 13.0.3 in the whole solution"
Action:
- Verify 13.0.3 exists:
dotnet package search Newtonsoft.Json --exact-match --format json(and parse output to confirm "13.0.3" is present). - Find where it's defined (e.g.,
Directory.Packages.props). - Edit the file to update the version.
- Run
dotnet restore.
자주 묻는 질문
패키지를 추가하거나 삭제하려고 프로젝트 파일을 직접 편집할 수 있나요?
아니요. 패키지를 추가하거나 삭제할 때는 항상 `dotnet add package`와 `dotnet remove package` 명령을 사용해야 합니다. 직접 편집은 버전을 업데이트할 때만 허용됩니다.
업데이트 후 오류가 생기면 어떻게 되나요?
업데이트 후 오류가 생기면 에이전트가 변경을 되돌립니다. 그다음 원인을 직접 조사해야 합니다.
패키지 버전을 어디에서 업데이트해야 하는지 어떻게 아나요?
버전이 중앙 파일(`Directory.Packages.props`)에서 관리되는지, 아니면 개별 프로젝트 파일(`.csproj`)에서 관리되는지 확인하고, 올바른 위치에 업데이트를 적용합니다.
상세 정보
작성자의 원본 설명
Manage NuGet packages in .NET projects/solutions. Use this skill when adding, removing, or updating NuGet package versions. It enforces using `dotnet` CLI for package management and provides strict procedures for direct file edits only when updating versions.
repo: github/awesome-copilot
인기도
- GitHub 스타
- 40k
- 순위
- #7310
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
acquire-codebase-knowledge
40k에이전트가 기존 코드 프로젝트를 이해하고 문서화하도록 돕습니다. 새 구성원을 맞이하거나 아키텍처를 개괄적으로 파악할 때 유용합니다.
acreadiness-assess
40k에이전트가 프로젝트의 AI 준비 상태를 평가하고 보고서를 만들도록 합니다. 프로젝트가 AI 도구를 쓸 준비가 얼마나 되어 있는지 이해하는 데 유용합니다.
acreadiness-generate-instructions
40k에이전트가 평가 결과를 바탕으로 AI 도구를 위한 지침을 만들도록 돕습니다. AI가 코드와 상호작용하는 방식을 개선하고 확인된 공백을 메울 때 유용합니다.
acreadiness-policy
40k에이전트가 AI 프로젝트 평가를 위한 정책을 정의하거나 적용하도록 돕습니다. 프로젝트 평가 방식을 표준화하고 규정 준수를 보장할 때 유용합니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.