Skip to content

Add an agent skill for using the package (closes #69) - #91

Merged
correspondMerchant merged 1 commit into
mainfrom
feature/agent-skill
Aug 18, 2026
Merged

Add an agent skill for using the package (closes #69)#91
correspondMerchant merged 1 commit into
mainfrom
feature/agent-skill

Conversation

@correspondMerchant

Copy link
Copy Markdown
Owner

What this changes

Adds an agent skill for using the package, resolving #69 (modeled on AWS's
agent-toolkit skills).

  • skills/lagotrials/SKILL.md — an agent skill in the AWS format
    (name/description/version frontmatter + a structured body) that teaches
    AI coding agents how to use LAGOtrials: the core lago_optimization()
    workflow, goal modes (outcome/power/both), the cost_list_of_vectors format
    and visualize_cost(), outcome-model options (family/link, fixed effects,
    covariates, interactions), confidence sets, the critical link/NA/rank-deficiency
    behaviors, troubleshooting, and the result object.
  • skills/README.md — explains the format and how to install a skill into an
    agent (e.g. .claude/skills/).
  • skills/ is excluded from the R build via .Rbuildignore, so nothing ships
    to CRAN.

Closes #69.

Related issue

Closes #69

Checklist

  • Tests added or updated under tests/testthat/ — n/a, documentation/skill only, no package code
  • devtools::document() — n/a, no roxygen changes
  • devtools::check() passes locally — n/a for skills/ (build-ignored); confirmed excluded from the tarball
  • NEWS.md updated — n/a, not a shipped-package change (agent tooling, build-ignored)

Adds skills/lagotrials/SKILL.md, an agent skill in the AWS agent-toolkit format
(name/description/version frontmatter plus a structured body) that teaches AI
coding agents how to use LAGOtrials: the core lago_optimization() workflow, goal
modes, cost-function format and visualize_cost(), outcome-model options,
confidence sets, the critical link/NA/rank-deficiency behaviors, troubleshooting,
and the result object. skills/README.md explains the format and how to install a
skill into an agent (e.g. .claude/skills/). skills/ is excluded from the R build
via .Rbuildignore, so nothing ships to CRAN.

Every claim was verified against the package source: the recommended
intervention's interval is documented as est_outcome_ci (not rec_int_ci, which
is only a get_confidence_set() field), and the all-NA up-front refusal is
scoped to intervention components and additional covariates.
@correspondMerchant
correspondMerchant merged commit 3e5eef6 into main Aug 18, 2026
5 of 7 checks passed
@correspondMerchant
correspondMerchant deleted the feature/agent-skill branch August 18, 2026 16:27
@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add agent skill for using this package

1 participant