AI

ai_generate_context

Generate AI Context File

Generates a complete AI context file (CLAUDE.md, AGENTS.md, etc.) from scratch for a new project. The content is tailored to the project type and configuration.


Usage

ai_generate_context(
  project_path = ".",
  project_name = NULL,
  project_type = NULL,
  config = NULL
)

Arguments

Argument Description
project_path

Path to the project directory (default: current directory)

project_name

Name of the project (for header)

project_type

Project type: "project", "project_sensitive", "course", "presentation"

config

Project configuration (if NULL, reads from settings.yml)

Returns

Character string with the complete AI context content

Examples

# Generate AI context for current project
content <- ai_generate_context()

# Generate for a specific project type
content <- ai_generate_context(project_type = "project_sensitive")

Source: R/ai_context.R