feat: add skills and workspace files

- Add complete skill set including feishu, github, ci-gen, etc.
- Add workspace documentation (AGENTS.md, SOUL.md, etc.)
- Add memory system and project context
This commit is contained in:
OpenClaw Agent
2026-02-06 19:14:24 +08:00
parent f26d4d8f7f
commit 7e0acef4f9
118 changed files with 12293 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import OpenAI from "openai";
const openai = new OpenAI();
export async function generateWebhook(eventDescription: string, framework: string = "express"): Promise<string> {
const response = await openai.chat.completions.create({
model: "gpt-4o-mini",
messages: [
{
role: "system",
content: `You generate production-ready webhook handler code.
Rules:
- Include signature verification
- Add exponential backoff retry logic
- Handle idempotency (dedup by event ID)
- Proper error handling and logging
- Type-safe where possible
- Framework: ${framework}
- Include both the handler and a retry utility
- Return ONLY the code, no explanations`
},
{ role: "user", content: `Generate a webhook handler for: ${eventDescription}` }
],
temperature: 0.3,
});
const result = response.choices[0].message.content?.trim() || "";
return result.replace(/^```[\w]*\n?/, "").replace(/\n?```$/, "");
}