[skills] Update macios-binding-creator skill#24962
Conversation
Training session driven by session fbb72a46 (CarPlay binding) evidence and 3-model evaluation (Sonnet 4.5, GPT-5.1-Codex, GPT-4.1). Changes: - Add 'Struct Array Parameter Binding' section to binding-patterns.md covering [Internal]+IntPtr, factory pattern with fixed, property getters, and InitializeHandle variant (addresses #1 gap from all 3 eval models) - Add named delegate type anti-pattern (NEVER use Action<T> for completion handlers) - Add #nullable enable rule to SKILL.md - Add empty .todo file cleanup guidance to xtro test section - Add struct array recognition trigger with cross-reference Eval results (Sonnet 4.5 before→after): Accuracy: 3/5 → 4/5 Completeness: 2/5 → 3/5 Clarity: 4/5 → 4/5 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
.agents/skills/macios-binding-creator/references/binding-patterns.md
Outdated
Show resolved
Hide resolved
.agents/skills/macios-binding-creator/references/binding-patterns.md
Outdated
Show resolved
Hide resolved
.agents/skills/macios-binding-creator/references/binding-patterns.md
Outdated
Show resolved
Hide resolved
.agents/skills/macios-binding-creator/references/binding-patterns.md
Outdated
Show resolved
Hide resolved
.agents/skills/macios-binding-creator/references/binding-patterns.md
Outdated
Show resolved
Hide resolved
.agents/skills/macios-binding-creator/references/binding-patterns.md
Outdated
Show resolved
Hide resolved
| bool Validate (ValidationHandler handler); | ||
| ``` | ||
|
|
||
| > ❌ **NEVER** use `Action<T>` or `Func<T>` for completion handler parameters. Always define a **named delegate type** (e.g., `delegate void MyHandler (...)`) — this produces better API documentation and IntelliSense. |
There was a problem hiding this comment.
Might be easier to just change sharpie to spit out named delegates instead of Action/Func delegates.
- Use 'Create' instead of 'From' for factory methods (not a verb) - Add note that manual code needs XML documentation comments - Remove redundant empty-array checks (fixed handles zero-length correctly) - Pass selector string to InitializeHandle - Check for null pointer instead of count==0 in property getter - Note that xtro-sharpie may generate Action/Func delegates to convert Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
GetCheckedHandle() throws ObjectDisposedException if the object has been disposed, preventing hard-to-debug native crashes. Added as a general rule in Common Pitfalls and fixed the P/Invoke example. Ref: #24960 (comment) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #8a6c5b8] Build passed (Detect API changes) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ [CI Build #8a6c5b8] Build passed (Build packages) ✅Pipeline on Agent |
✅ [CI Build #8a6c5b8] Build passed (Build macOS tests) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🔥 [CI Build #8a6c5b8] Test results 🔥Test results❌ Tests failed on VSTS: test results 0 tests crashed, 1 tests failed, 155 tests passed. Failures❌ linker tests1 tests failed, 43 tests passed.Failed tests
Html Report (VSDrops) Download Successes✅ cecil: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
|
unrelated test failure |
No description provided.