Skip to content
Framework

AI

pull_skills()

Pull a Project's Skills from Framework Cloud

Brings a project's skills up to date with its setup on Framework Cloud. The project's current skill list comes from Framework Cloud with its project token (GET /api/v1/projects/pull), as edited there with Edit project. Missing skills are added. Unedited skills are updated to their latest versions: Framework's from this package, and Cloud skills from Cloud. Their latest Cloud versions need cloud_login(); without it, the versions in the project's setup are used.

Usage

pull_skills(project_path = ".", overwrite = FALSE, dry_run = FALSE)

Arguments

Name Default Description
project_path "."

Path to the project directory (default: current directory).

overwrite FALSE

Replace locally edited skills too, after backing them up.

dry_run FALSE

Report what would change and write nothing.

Value

Invisibly, a list: source ("cloud" or "package"), dry_run, skills (each a list with name, status, and paths), counts by status (added, updated, current, edited, replaced, removed, unavailable), message (the summary line), and notes.

Details

Locally edited skills are kept and listed. overwrite = TRUE replaces them too, backing the old copies up to .framework/skills-backups/. Skills no longer in the setup are never deleted, only listed. The Skills table in AGENTS.md is refreshed.

Offline, or without a project token, the package skills for the project's type are used instead, and the message says so.

Examples

Not run

if (FALSE) {
# See what would change, then pull
pull_skills(dry_run = TRUE)
pull_skills()
}

Related reference

Search guides and reference for R, Python, Stata, the CLI, and Framework Cloud.