section-statistics
生成统计分析方法类教程 (.rmd/.qmd),确保理论背景、模型假设、完整分析流程与结果解释并重。
Profile →npx skills add majiayu000/claude-skill-registry --skill section-statistics --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
--- name: section-statistics description: Generate comprehensive R statistical method tutorials (regression, survival analysis, causal inference, Bayesian stats) with theory + practice workflow. Use when: (1) User requests statistical method tutorials, (2) File names match 10xx-*.rmd pattern, (3) Keywords: PSM, Cox, Meta-analysis, RCS, multilevel models, SEM, PCA, LCA. --- ## 核心任务 生成统计分析方法类教程 (.rmd/.qmd),确保理论背景、模型假设、完整分析流程与结果解释并重。 ## 快速启动 (Quick Start) 1. **确定方法**: 如 "泊松回归 (Poisson Regression)"。 2. **加载模板**: 阅读 [content-structure.md](references/content-structure.md) 获取 YAML 和标题结构。 3. **生成内容**: 遵循 "通俗解释 -> 理论 -> 代码 -> 解读" 流程。 4. **视觉设计**: 参考 [visual-templates.md](references/visual-templates.md) 生成封面图和原理示意图。 5. **质量检查**: 使用 [quality-checklist.md](references/quality-checklist.md) 验证导航更新。 ## 完整工作流程 ### 步骤0: 文件编号分配 (CRITICAL - 避免重复) **在创建任何文件前,必须先确定可用编号!** 1. **检查现有编号**: ```bash ls doc/10*.rmd doc/10*.qmd | sort | tail -20 ``` 2. **选择下一个可用编号**: - 找到当前最大编号 (如 1099) - 新文件使用下一个编号 (如 1100,上一个编号+1) - **绝对禁止**: 使用已存在的编号! 3. **编号冲突检测**: ```bash # 检查是否有重复编号 ls doc/10*.rmd doc/10*.qmd | sed 's/.*\///;s/-.*//' | sort | uniq -d # 如果有输出,说明存在重复编号,必须先解决 ``` 4. **命名规范**: - 格式: `10[number]-[topic].rmd`
- 核心任务
- 快速启动 (Quick Start)
- 完整工作流程
- 步骤0: 文件编号分配 (CRITICAL - 避免重复)
- 步骤1: 逐部分生成教程内容(CRITICAL - 分段生成策略)
- 步骤1.5: 生成配图并在文章中引用(CRITICAL)
- 步骤2: 验证渲染 (CRITICAL)
- 步骤3: 更新导航系统 (CRITICAL)
- 步骤4: 最终渲染与提交
- 写作规范
- 代码块与表格格式规范 (CRITICAL)
- 图片居中 (MANDATORY)
- 表格字体大小 (MANDATORY)
- 参考资源
ls doc/10*.rmd doc/10*.qmd | sort | tail -20 ls doc/10*.rmd doc/10*.qmd | sed 's/.*\///;s/-.*//' | sort | uniq -d grep "!\[.*\](images/diagrams/" doc/[number]-[topic].rmd quarto render doc/10[number]-[topic].rmd quarto render doc/sections/statistics.qmd quarto render doc/index.qmd git add doc/10xx-*.rmd doc/images/[topic]-cover.svg git add doc/_quarto.yml doc/0001-guide.rmd README.md doc/sections/statistics.qmd git commit -m "feat(stat): 新增[方法名称]统计教程"
What does the section-statistics skill do?
生成统计分析方法类教程 (.rmd/.qmd),确保理论背景、模型假设、完整分析流程与结果解释并重。
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill section-statistics --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.