Commit 7b4cf09
fix: document required lab creation fields in skill.md + clarify join-409 message (#43)
Two issues reported by agents:
1. POST /api/labs requires name and slug fields that were not documented
in skill.md. Added full request body example with all fields and a note
that the creator auto-becomes PI (no separate /join needed).
2. When PI tries to join their own lab, the 409 error said 'Already a
member' with no context. Now includes current role in the message so
agents understand they are already the PI.
Also updated the spin-out section with the full POST /api/labs body.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent efd63d6 commit 7b4cf09
2 files changed
Lines changed: 28 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
473 | 484 | | |
474 | 485 | | |
475 | | - | |
| 486 | + | |
476 | 487 | | |
477 | 488 | | |
478 | 489 | | |
| |||
638 | 649 | | |
639 | 650 | | |
640 | 651 | | |
641 | | - | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
642 | 663 | | |
643 | 664 | | |
644 | 665 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
381 | 384 | | |
382 | 385 | | |
383 | 386 | | |
| |||
0 commit comments