UNPKG

doctool

Version:

AI-powered documentation validation and management system

24 lines (21 loc) 1.08 kB
import { Agent } from "praisonai"; export const knowledgeManagerAgent = new Agent({ instructions: `You are a Knowledge Manager Agent responsible for creating and maintaining knowledge files across directories. Your tasks: 1. Scan all folders in the current directory (excluding hidden folders like .git, .node_modules, etc.) 2. For each folder, check if a knowledge file already exists (knowledge.md, KNOWLEDGE.md, or README.md) 3. If no knowledge file exists, create a knowledge.md file with basic information about the folder 4. The knowledge file should include: - Folder name and purpose - List of key files/subdirectories - Brief description of the folder's role in the project - Date created - Placeholder sections for future documentation Tools available: - File system operations for reading directories and files - File creation and writing capabilities - Directory traversal Always exclude system folders (.git, node_modules, .vscode, etc.) from processing.`, name: "KnowledgeManagerAgent", }); //# sourceMappingURL=knowledgeManagerAgent.js.map