Skip to content

Commit af35bc2

Browse files
authored
Merge pull request #122 from gHashTag/gHashTag-patch-1
feat(tri): add GitHub Board Integration to /tri diagnostic skill
2 parents bdf453a + 3f068f3 commit af35bc2

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

.claude/skills/tri/SKILL.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ MUST be rendered in the chosen language. Technical terms (binary names, commands
140140
| The ratio remembers its target. So must we | Соотношение помнит свою цель. И мы должны |
141141
| When spec and code align, the universe compiles | Когда спек и код совпадают, вселенная компилируется |
142142
| Measure first. Judge never. Iterate always | Сначала измеряй. Никогда не суди. Итерируй всегда |
143+
| GITHUB BOARD INTEGRATION | ИНТЕГРАЦИЯ С GITHUB BOARD |
144+
| CLI Commands Available | Доступные CLI команды |
145+
| command handlers | обработчиков команд |
146+
| label tracking | отслеживание меток |
147+
| Native API | Нативный API |
148+
149+
143150

144151
## Data Collection — ALL DYNAMIC
145152

@@ -294,6 +301,25 @@ grep -c '^---$' .ralph/memory/REGRESSION_PATTERNS.md 2>/dev/null || echo "PATTER
294301
grep -c '^### ' .ralph/memory/REGRESSION_PATTERNS.md 2>/dev/null || echo "PATTERN_HEADERS:0"
295302
```
296303

304+
305+
### GitHub Integration — LIVE
306+
307+
```bash
308+
# GitHub client mode detection (native HTTP vs gh CLI fallback)
309+
test -f src/tri/github_client.zig && echo "GH_CLIENT:EXISTS" || echo "GH_CLIENT:MISSING"
310+
test -f src/tri/github_commands.zig && echo "GH_COMMANDS:EXISTS" || echo "GH_COMMANDS:MISSING"
311+
312+
# Check GITHUB_TOKEN/GH_TOKEN for native HTTP mode
313+
echo "GH_TOKEN:${GITHUB_TOKEN:+SET}"
314+
echo "GH_TOKEN_ALT:${GH_TOKEN:+SET}"
315+
316+
# Count GitHub command handlers
317+
grep -c 'fn.*Command' src/tri/github_commands.zig 2>/dev/null || echo "0"
318+
319+
# Test GitHub client connectivity (dry-run)
320+
test -f zig-out/bin/tri && echo "TRI_CLI:READY" || echo "TRI_CLI:MISSING"
321+
```
322+
297323
## Output Format
298324

299325
Format ALL collected data into this report. Use REAL data — never placeholders.
@@ -430,6 +456,41 @@ After SYSTEM STATUS, render the Bridge section using data from bridge checks:
430456
- **Command Queue**: 🟢 if BRIDGE_PENDING ≥ 0 and reachable. ⚪ if unreachable.
431457
- **claude: support**: Always 🟢 (built into perplexity_bridge.zig). ⚪ if BRIDGE_CODE:MISSING.
432458

459+
460+
### GitHub Board Integration Section
461+
462+
After Bridge section, render the GitHub Board Integration status:
463+
464+
```
465+
═══════════════════════════════════════════════════
466+
🐙 GITHUB BOARD INTEGRATION — NATIVE API
467+
═══════════════════════════════════════════════════
468+
┌─────────────────────┬────────┬──────────────────────────────┐
469+
│ Component │ Status │ Details │
470+
├─────────────────────┼────────┼──────────────────────────────┤
471+
│ github_client.zig │ {S} │ {mode}: native_http/gh_cli │
472+
│ github_commands.zig │ {S} │ {N} command handlers │
473+
│ Board Sync │ {S} │ Project #6 — label tracking │
474+
│ Protocol v2 │ {S} │ issue/comment/close/decompose│
475+
└─────────────────────┴────────┴──────────────────────────────┘
476+
477+
CLI Commands Available:
478+
tri issue create <title> — Create GitHub issue
479+
tri issue comment <N> — Protocol v2 formatted comment
480+
tri issue close <N> — Close with summary
481+
tri issue decompose <N> — Create sub-issues from template
482+
tri board sync — Label-based column tracking
483+
tri protocol log — Display protocol log entries
484+
tri protocol verify — Check Protocol v2 compliance
485+
```
486+
487+
#### GitHub Integration Status Logic:
488+
489+
- **github_client.zig**: 🟢 if GH_CLIENT:EXISTS AND (GH_TOKEN:SET OR gh CLI available). ⚠️ if code exists but no token. ⬜ if GH_CLIENT:MISSING.
490+
- **github_commands.zig**: 🟢 if GH_COMMANDS:EXISTS. ⬜ if MISSING.
491+
- **Board Sync**: 🟢 if board-sync skill exists AND gh CLI works. ⚪ if untested.
492+
- **Protocol v2**: 🟢 if github_commands.zig has all 7 handlers. ⚠️ if partial.
493+
433494
### Faculty Status Section
434495

435496
After Bridge section, render the TRI University Faculty Board.

0 commit comments

Comments
 (0)