| ai_generate_context | R Documentation |
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.
ai_generate_context(
project_path = ".",
project_name = NULL,
project_type = NULL,
config = NULL
)
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) |
Character string with the complete AI context content
if (FALSE) {
# Generate AI context for current project
content <- ai_generate_context()
# Generate for a specific project type
content <- ai_generate_context(project_type = "project_sensitive")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.