You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository uses [Microsoft.CodeAnalysis.PublicApiAnalyzers](https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md) to track public API surface.
@@ -258,6 +261,7 @@ This repository uses [Microsoft.CodeAnalysis.PublicApiAnalyzers](https://github.
258
261
### Workflow
259
262
260
263
1. When adding new public APIs, they automatically get flagged and should be added to `PublicAPI.Unshipped.txt`
261
-
2. When modifying existing APIs, move the old entry from `PublicAPI.Shipped.txt` to `PublicAPI.Unshipped.txt` (marked as removed) and add the new signature to `PublicAPI.Unshipped.txt`
264
+
2. When modifying existing APIs, move the old entry from `PublicAPI.Shipped.txt` to `PublicAPI.Unshipped.txt` (marked as
265
+
removed) and add the new signature to `PublicAPI.Unshipped.txt`
262
266
3. Only remove entries from `PublicAPI.Shipped.txt` when an API is being deleted
263
267
4. During release, unshipped APIs get moved to shipped via the `mark-shipped.ps1` script
description: 'Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping'
4
+
license: MIT
5
+
allowed-tools: Bash
6
+
---
7
+
8
+
# Git Commit with Conventional Commits
9
+
10
+
## Overview
11
+
12
+
Create standardized, semantic git commits using the Conventional Commits specification. Analyze the actual diff to
13
+
determine appropriate type, scope, and message.
14
+
15
+
## Conventional Commit Format
16
+
17
+
```
18
+
<type>[optional scope]: <description>
19
+
20
+
[optional body]
21
+
22
+
[optional footer(s)]
23
+
```
24
+
25
+
## Commit Types
26
+
27
+
| Type | Purpose |
28
+
|------------|--------------------------------|
29
+
|`feat`| New feature |
30
+
|`fix`| Bug fix |
31
+
|`docs`| Documentation only |
32
+
|`style`| Formatting/style (no logic) |
33
+
|`refactor`| Code refactor (no feature/fix) |
34
+
|`perf`| Performance improvement |
35
+
|`test`| Add/update tests |
36
+
|`build`| Build system/dependencies |
37
+
|`ci`| CI/config changes |
38
+
|`chore`| Maintenance/misc |
39
+
|`revert`| Revert commit |
40
+
41
+
## Breaking Changes
42
+
43
+
```
44
+
# Exclamation mark after type/scope
45
+
feat!: remove deprecated endpoint
46
+
47
+
# BREAKING CHANGE footer
48
+
feat: allow config to extend other configs
49
+
50
+
BREAKING CHANGE: `extends` key behavior changed
51
+
```
52
+
53
+
## Workflow
54
+
55
+
### 1. Analyze Diff
56
+
57
+
```bash
58
+
# If files are staged, use staged diff
59
+
git diff --staged
60
+
61
+
# If nothing staged, use working tree diff
62
+
git diff
63
+
64
+
# Also check status
65
+
git status --porcelain
66
+
```
67
+
68
+
### 2. Stage Files (if needed)
69
+
70
+
If nothing is staged, or you want to group changes differently:
Copy file name to clipboardExpand all lines: .github/skills/nuget-manager/SKILL.md
+28-17Lines changed: 28 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ description: 'Manage NuGet packages in .NET projects/solutions. Use this skill w
7
7
8
8
## Overview
9
9
10
-
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.
10
+
This skill ensures consistent and safe management of NuGet packages across .NET projects. It prioritizes using the
11
+
`dotnet` CLI to maintain project integrity and enforces a strict verification and restoration workflow for version
12
+
updates.
11
13
12
14
## Prerequisites
13
15
@@ -17,9 +19,10 @@ This skill ensures consistent and safe management of NuGet packages across .NET
17
19
18
20
## Core Rules
19
21
20
-
1.**NEVER** directly edit `.csproj`, `.props`, or `Directory.Packages.props` files to **add** or **remove** packages. Always use `dotnet add package` and `dotnet remove package` commands.
21
-
2.**DIRECT EDITING** is ONLY permitted for **changing versions** of existing packages.
22
-
3.**VERSION UPDATES** must follow the mandatory workflow:
22
+
1.**NEVER** directly edit `.csproj`, `.props`, or `Directory.Packages.props` files to **add** or **remove** packages.
23
+
Always use `dotnet add package` and `dotnet remove package` commands.
24
+
2.**DIRECT EDITING** is ONLY permitted for **changing versions** of existing packages.
25
+
3.**VERSION UPDATES** must follow the mandatory workflow:
23
26
- Verify the target version exists on NuGet.
24
27
- Determine if versions are managed per-project (`.csproj`) or centrally (`Directory.Packages.props`).
25
28
- Update the version string in the appropriate file.
@@ -28,41 +31,49 @@ This skill ensures consistent and safe management of NuGet packages across .NET
28
31
## Workflows
29
32
30
33
### Adding a Package
34
+
31
35
Use `dotnet add [<PROJECT>] package <PACKAGE_NAME> [--version <VERSION>]`.
- Search for `Directory.Packages.props` in the solution root. If present, versions should be managed there via `<PackageVersion Include="Package.Name" Version="1.2.3" />`.
54
+
2.**Determine Version Management**:
55
+
- Search for `Directory.Packages.props` in the solution root. If present, versions should be managed there via
0 commit comments