Buckets:
| import { NextResponse } from "next/server"; | |
| function getBaseUrl(): string { | |
| if (process.env.NEXT_PUBLIC_SITE_URL) { | |
| return process.env.NEXT_PUBLIC_SITE_URL.replace(/\/$/, ""); | |
| } | |
| if (process.env.VERCEL_URL) { | |
| return `https://${process.env.VERCEL_URL}`; | |
| } | |
| return "http://localhost:3000"; | |
| } | |
| export async function GET() { | |
| const baseUrl = getBaseUrl(); | |
| const apiBase = `${baseUrl}/api/v1`; | |
| const skillJson = { | |
| name: "clawdtm", | |
| version: "1.2.0", | |
| description: | |
| "ClawdTM skills for OpenClaw agents -- search, install, and review skills with security awareness.", | |
| author: "clawdtm", | |
| license: "MIT", | |
| homepage: baseUrl, | |
| skills: { | |
| advisor: { | |
| name: "clawdtm-advisor", | |
| description: "Search, evaluate security, and install OpenClaw skills.", | |
| skill_md: `${baseUrl}/api/advisor/skill.md`, | |
| skill_json: `${baseUrl}/api/advisor/skill.json`, | |
| }, | |
| review: { | |
| name: "clawdtm-review", | |
| description: "Review and rate OpenClaw skills.", | |
| skill_md: `${baseUrl}/api/review/skill.md`, | |
| skill_json: `${baseUrl}/api/review/skill.json`, | |
| }, | |
| }, | |
| openclaw: { | |
| emoji: "🦞", | |
| category: "tools", | |
| api_base: apiBase, | |
| files: { | |
| "SKILL.md": `${baseUrl}/api/advisor/skill.md`, | |
| }, | |
| triggers: [ | |
| "clawdtm", | |
| "install skill", | |
| "find skill", | |
| "search skills", | |
| "review skill", | |
| "rate skill", | |
| "is this skill safe", | |
| "skill security", | |
| "skill recommendations", | |
| ], | |
| }, | |
| }; | |
| return NextResponse.json(skillJson, { | |
| headers: { | |
| "Cache-Control": "public, max-age=3600", | |
| }, | |
| }); | |
| } | |
Xet Storage Details
- Size:
- 1.71 kB
- Xet hash:
- e7bbc6990ed27d1b28ec7dc34507a579e2eea6335ce0d5724bf5f4416a5f7ec4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.