mit einem Klick
API route scaffolding
npx skills add https://github.com/mgoodman60/foremanos-platform --skill apiKopieren Sie diesen Befehl und fügen Sie ihn in Claude Code ein, um den Skill zu installieren
API route scaffolding
npx skills add https://github.com/mgoodman60/foremanos-platform --skill apiKopieren Sie diesen Befehl und fügen Sie ihn in Claude Code ein, um den Skill zu installieren
| name | api |
| description | API route scaffolding |
Create a new API route with proper structure.
/api projects/budget - Create route at app/api/projects/budget/route.tsimport { NextRequest, NextResponse } from 'next/server';
import { getServerSession } from 'next-auth';
import { authOptions } from '@/lib/auth-options';
import { prisma } from '@/lib/db';
export async function GET(request: NextRequest) {
try {
const session = await getServerSession(authOptions);
if (!session?.user) {
return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
}
// Implementation
return NextResponse.json({ data });
} catch (error) {
console.error('[API] Error:', error);
return NextResponse.json(
{ error: 'Internal server error' },
{ status: 500 }
);
}
}
Auth Check → Rate Limit → Validation → Business Logic → Response
app/api/$ARGUMENTS/route.ts
List and invoke specialized agents
Create and manage agent teams for multi-agent coordination
Enhance ForemanOS construction document processing pipeline — vision extraction, RAG retrieval, material takeoffs, and cross-reference resolution for construction plans (PDF). Triggers when working on: document-processor-batch.ts (vision prompts), intelligence-orchestrator.ts (Phase A/B/C pipeline), rag.ts (scoring/retrieval), takeoff-memory-service.ts (material quantities), symbol-learner.ts (symbol recognition), or any Prisma schema changes to Document/DocumentChunk/DrawingType/SheetLegend/MaterialTakeoff. Also triggers for: new extraction modules, plan processing improvements, RAG tuning for construction queries, or material takeoff accuracy work.
Quick health check (lint, types, tests)
Smart commit with message
Daily standup summary