Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Covers backend architecture, REST API design, database optimization, and server-side practices for Node.js, Express, and Next.js API routes.
50% 77%+27 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 11 of 22 without it.
We are implementing search functionality for prediction markets that combines vector embedding generation with relational database fetching. Write a TypeScript service class that coordinates embedding generation, vector similarity matching, and repository data fetching.
The search method computes similarity scores and sorts fetched entities by matching score.
3 of 3 safety checks passed
Backend architecture patterns and best practices for scalable server-side applications.
// ✅ Resource-based URLs
GET /api/markets # List resources
GET /api/markets/:id # Get single resource
POST /api/markets # Create resource
PUT /api/markets/:id # Replace resource
PATCH /api/markets/:id # Update resource
DELETE /api/markets/:id # Delete resource
// ✅ Query parameters for filtering, sorting, pagination
GET /api/markets?status=active&sort=volume&limit=20&offset=0
// Abstract data access logic
interface MarketRepository {
findAll(filters?: MarketFilters): Promise<Market[]>
findById(id: string): Promise<Market | null>
create(data: CreateMarketDto): Promise<Market>
update(id: string, data: UpdateMarketDto): Promise<Market>
delete(id: string): Promise<void>
}
class SupabaseMarketRepository implements MarketRepository {
async findAll(filters?: MarketFilters): Promise<Market[]> {
let query = supabase.from('markets').select('*')
if (filters?.status) {
query = query.eq('status', filters.status)
}
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.