一键导入
tmb-likelihood-review
Review TMB likelihoods, parameter transforms, and engine plumbing before merging changes to gllvmTMB's `src/gllvmTMB.cpp` or its R wrappers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review TMB likelihoods, parameter transforms, and engine plumbing before merging changes to gllvmTMB's `src/gllvmTMB.cpp` or its R wrappers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Run Rose's narrow pre-publish consistency gate for gllvmTMB README, vignettes, pkgdown navigation, NEWS, roxygen, or Rd changes. Cross-checks claims against the validation-debt register, the README stable-core feature matrix, the AGENTS.md scope-boundary rule, and (per Phase 0C closeout 2026-05-16) the export ↔ pkgdown reference parity, the removed-article cross-reference cascade, the Preview-banner citation discipline, the REWRITE-PREP contract, and the ROADMAP slice "Done when" deliverable rule.
Audit a completed gllvmTMB task or phase before closing it. Checks implementation, equations, examples, tests, docs, pkgdown, roadmap, NEWS, known limitations, stale wording, after-task reporting, AGENTS.md Rule
Triage gllvmTMB pkgdown articles into tiers (1 = public worked example, 2 = technical reference, 3 = retire) and judge each against the 10 reader-first style rules. Use when adding, removing, or rewriting any vignette under `vignettes/` or `vignettes/articles/`.
Review and improve gllvmTMB prose in README files, vignettes, pkgdown articles, after-task reports, release notes, design docs, and manuscript-style text for clarity, concrete claims, stable terminology, citations, and reader fit.
Hard review gate for scientific R/ggplot figures before merge or release. Use to judge whether screenshots, generated plots, vignettes, or plot helper outputs are immediately publication-ready; fails default-looking ggplot output, illegible labels, misleading intervals, cramped facets, poor scales, and weak visual hierarchy.
R/ggplot2 implementation specialist for publication-quality plot helpers in R packages. Use when editing or creating plot_* functions, package themes, color scales, confidence interval geoms, facets, labels, vdiffr visual tests, export helpers, or when replacing poor default ggplot output with manuscript-ready graphics.
基于 SOC 职业分类
| name | tmb-likelihood-review |
| description | Review TMB likelihoods, parameter transforms, and engine plumbing before merging changes to gllvmTMB's `src/gllvmTMB.cpp` or its R wrappers. |
Use this skill for any change to the C++ template (src/gllvmTMB.cpp),
density branches, parameter transforms, or the R/fit-multi.R
parameter-pack-and-unpack code.
log_tau, log_kappa, log_sd_*,
theta_diag_* (where the diag is exp-transformed inside the
template).tanh / atanh or another stable bounded transform.theta_rr_*).dpois(..., log = TRUE), dbinom(..., log = TRUE), etc.sdreport() report interpretable transformed parameters
(Sigma_B, R_B, phylo_signal_h2, repeatability_R)?= 30, n_traits >= 3)? Apply the
add-simulation-testskill.
latent rank too high (engine should fail loud);phylo_latent with zero phylogenetic signal
(sigma2_phy -> 0);spatial_latent with degenerate mesh (single triangle).The engine maintains the contract
$$\Sigma_{\text{tier}} = \boldsymbol\Lambda_{\text{tier}}\boldsymbol\Lambda_{\text{tier}}^\top + \mathrm{diag}(\mathbf U_{\text{tier}})$$
at every tier where the user pairs latent + unique. Any change
that touches the unpack of theta_rr_* or theta_diag_* must
preserve this. The test suite enforces it via
test_that("extract_Sigma() composes Lambda Lambda^T + diag(s)").
When two tiers share the same grouping factor (e.g. both latent(0 + trait | site, d = K) and unique(0 + trait | site)), the engine
fits the decomposition $\Sigma_B = \boldsymbol\Lambda_B
\boldsymbol\Lambda_B^\top + \mathbf S_B$. When the user supplies only
one of the pair, identifiability collapses to the no-residual
(rotation-invariant) or the marginal/independent special case. The
parser must surface this distinction to the user with a cli_inform
explaining which mode the engine is in.