Calls use_agent() and use_github_copilot() unconditionally, then
installs each skill in skills. Returns a named list of all paths
invisibly.
Usage
use_ai(
save_agent_as = "AGENTS.md",
target_skills_dir = ".github",
use_skills_subdir = TRUE,
overwrite = FALSE,
open = rlang::is_interactive(),
gh_token = gh::gh_token(),
skills = c("create-issue", "document", "github", "implement-issue", "r-code",
"search-code", "tdd-workflow")
)Arguments
- save_agent_as
(
character(1)) Output path forAGENTS.md, relative to the project root. Passed touse_agent()assave_as.- target_skills_dir
(
character(1)) Directory where skills will be installed. Passed to alluse_skill_*()functions astarget_dir.- use_skills_subdir
(
logical(1)) Whether to place the skill folder under askillssubdirectory oftarget_dir. Defaults toTRUE, producing.github/skills/{skill}/SKILL.md.- overwrite
(
logical(1)) Whether to overwrite an existing file. Defaults toFALSE.- open
(
logical(1)) Whether to open the file after creation.- gh_token
(
character(1)) A GitHub personal access token. Defaults togh::gh_token().- skills
(
character) Which skills to install. Defaults to all known skills. Pass a subset to install only specific skills, orcharacter(0)for none.
