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:
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.generateWorkflow = generateWorkflow;
|
||||
const openai_1 = __importDefault(require("openai"));
|
||||
const openai = new openai_1.default({ apiKey: process.env.OPENAI_API_KEY });
|
||||
async function generateWorkflow(description) {
|
||||
const res = await openai.chat.completions.create({
|
||||
model: "gpt-4o-mini",
|
||||
messages: [
|
||||
{
|
||||
role: "system",
|
||||
content: "You are a DevOps expert. Generate a complete GitHub Actions workflow YAML file based on the description. Use best practices: proper triggers, caching, environment variables, and job dependencies. Return ONLY the YAML content, no explanation.",
|
||||
},
|
||||
{
|
||||
role: "user",
|
||||
content: `Create a GitHub Actions workflow: ${description}`,
|
||||
},
|
||||
],
|
||||
temperature: 0.3,
|
||||
});
|
||||
return res.choices[0].message.content || "";
|
||||
}
|
||||
Reference in New Issue
Block a user