fix: address code review feedback
- Fix incorrect API endpoint paths (removed /api prefix) - Improve TypeScript strict typing with explicit metadata interfaces - Update SKILL.md with clear trigger phrases and examples - Fix README installation path reference - Add clarification about API URL format (no /api suffix needed) - Export new metadata type interfaces
This commit is contained in:
@@ -14,14 +14,14 @@ Clawdbot skill for querying and analyzing project timelines, task dependencies,
|
||||
|
||||
1. **Copy skill to Clawdbot plugins directory:**
|
||||
```bash
|
||||
cp -r ~/src/mosaic-skills/gantt ~/.claude/plugins/mosaic-plugin-gantt
|
||||
cp -r ~/src/mosaic-stack-worktrees/feature-26-gantt-skill/packages/skills/gantt ~/.claude/plugins/mosaic-plugin-gantt
|
||||
```
|
||||
|
||||
2. **Set up environment variables:**
|
||||
|
||||
Add to your `.env` or shell profile:
|
||||
```bash
|
||||
export MOSAIC_API_URL="http://localhost:3000/api"
|
||||
export MOSAIC_API_URL="http://localhost:3000"
|
||||
export MOSAIC_WORKSPACE_ID="your-workspace-uuid"
|
||||
export MOSAIC_API_TOKEN="your-api-token"
|
||||
```
|
||||
@@ -75,9 +75,9 @@ The `gantt-api.sh` helper script can be used directly:
|
||||
|
||||
### Endpoints
|
||||
|
||||
- `GET /api/projects` - List projects (paginated)
|
||||
- `GET /api/projects/:id` - Get project with tasks
|
||||
- `GET /api/tasks` - List tasks with filters
|
||||
- `GET /projects` - List projects (paginated)
|
||||
- `GET /projects/:id` - Get project with tasks
|
||||
- `GET /tasks` - List tasks with filters
|
||||
- Query params: `projectId`, `status`, `priority`, `assigneeId`, `page`, `limit`
|
||||
|
||||
### Authentication
|
||||
|
||||
Reference in New Issue
Block a user