Creates a .mcpr_instructions directory if not present and generates a template
instruction markdown file with proper YAML frontmatter and guidance sections.
Provides scaffolding for users to create domain-specific instruction files.
Usage
create_instruction(filename = "instructions-template", overwrite = FALSE)
Arguments
- filename
Character string. Name for the instruction file (default: 'instructions-template').
If '.md' extension is not present, it will be added automatically.
- overwrite
Logical. Whether to overwrite existing files (default: FALSE)
Value
Character string with path to created file
Details
Create Instruction Template File
Examples
if (FALSE) { # \dontrun{
# Create default template
create_instruction()
# Create specific instruction file
create_instruction("financial_analysis")
# Force overwrite existing file
create_instruction("my_analysis", overwrite = TRUE)
} # }