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
fix: Update hook formats and improve plugin skills (#59) (#60)
- Claude Code: Replace deprecated {"decision":"allow"} with hookSpecificOutput format
- Cursor: Switch from beforeShellExecution to preToolUse for command rewriting support
- Cursor: Use updated_input instead of updatedCommand per Cursor docs
- All skills: Expand description for better triggering, add missing flags, troubleshooting
- Bump plugin version to 1.0.3
Copy file name to clipboardExpand all lines: Sources/Install/Templates/SharedTemplates.swift
+66-42Lines changed: 66 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -7,95 +7,119 @@ enum SharedTemplates {
7
7
staticletskillMarkdown="""
8
8
---
9
9
name: xcsift
10
-
description: Use xcsift for Swift and Xcode build output. Activate when running swift build, swift test, or xcodebuild commands. Pipe output through xcsift for structured TOON format optimized for LLM consumption.
10
+
description: Use xcsift for all Swift and Xcode build commands. Pipe xcodebuild build, xcodebuild test, swift build, swift test through xcsift for structured TOON output with compile errors, warnings, test failures, code coverage, slow tests, and build timing. Essential for parsing Xcode build output, diagnosing compile errors, analyzing test results, and measuring code coverage in any Swift or Xcode project.
11
11
---
12
12
13
13
# xcsift - Xcode Build Output Formatter
14
14
15
-
xcsift is a Swift command-line tool that parses and formats xcodebuild/SPM output for coding agents. It transforms verbose Xcode build output into token-efficient TOON format optimized for machine readability.
15
+
xcsift parses and formats xcodebuild/SPM output into token-efficient TOON format optimized for LLM consumption. It extracts compile errors, warnings, test failures, code coverage, and build timing from verbose Xcode output.
16
16
17
17
## When to Use
18
18
19
-
Use xcsift when running Swift or Xcode build commands:
20
-
- `xcodebuild build`
21
-
- `xcodebuild test`
22
-
- `swift build`
23
-
- `swift test`
19
+
**Always** pipe through xcsift when running:
20
+
- `xcodebuild build` / `xcodebuild test`
21
+
- `swift build` / `swift test`
22
+
- Any command that produces Xcode/SPM build output
24
23
25
24
## Usage Pattern
26
25
27
-
Always pipe build output through xcsift with stderr redirected:
26
+
Always redirect stderr and use TOON format:
28
27
29
28
```bash
30
-
# Basic usage
29
+
# Build
31
30
xcodebuild build 2>&1 | xcsift -f toon
32
31
swift build 2>&1 | xcsift -f toon
33
32
33
+
# Test
34
+
swift test 2>&1 | xcsift -f toon
35
+
xcodebuild test 2>&1 | xcsift -f toon
36
+
34
37
# With warnings
35
38
xcodebuild build 2>&1 | xcsift -f toon -w
36
39
37
40
# With code coverage
38
41
swift test --enable-code-coverage 2>&1 | xcsift -f toon -c
39
42
xcodebuild test -enableCodeCoverage YES 2>&1 | xcsift -f toon -c
40
43
44
+
# With detailed per-file coverage
45
+
swift test --enable-code-coverage 2>&1 | xcsift -f toon -c --coverage-details
46
+
41
47
# With executable targets
42
48
xcodebuild build 2>&1 | xcsift -f toon -e
43
49
44
-
# Strict CI mode (fail on warnings)
50
+
# Strict CI mode (fail on warnings or errors)
45
51
xcodebuild build 2>&1 | xcsift -f toon -W -E
52
+
53
+
# Slow test detection
54
+
swift test 2>&1 | xcsift -f toon --slow-threshold 1.0
55
+
56
+
# Build info (per-target phases, timing, dependencies)
0 commit comments