Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .agents/skills/groovy-developer/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ def length = text?.length() ?: 0
def firstTitle = books?.first()?.title ?: "No books"
```

### Ternary Operator
```groovy
// Use ternary operators only for simple conditions.
// Split long ternary expressions into multiple lines.
// Align `?` and `:` branches for readability.
String message = condition
? "Value when true"
: "Value when false"
```

### Spread Operator
```groovy
// Spread operator for collections
Expand Down