creatrip-agent-rules-builder
Version:
Unified converter for AI coding agent rules across Cursor, Windsurf, and Claude
14 lines (11 loc) • 354 B
text/typescript
import * as fs from "fs";
import * as path from "path";
import { ParsedContent } from "../types";
export function generateWindsurfRules(
parsedContent: ParsedContent,
baseDir: string = process.cwd()
): void {
const { rules } = parsedContent;
const filePath = path.join(baseDir, ".windsurfrules");
fs.writeFileSync(filePath, rules, "utf8");
}