format-apa-report
정보
이 스킬은 Quarto 또는 R Markdown 보고서를 APA 7판 스타일에 맞게 서식을 지정합니다. apaquarto 또는 papaja 패키지를 사용하여 표지, 초록, 인용, 표, 그림 및 참고문헌을 처리합니다. APA 형식의 학술 논문, 심리학 보고서 또는 R 분석이 포함된 재현 가능한 원고를 작성할 때 사용하세요.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/format-apa-reportClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Format APA Report
Create an APA 7th edition formatted report using Quarto (apaquarto) or R Markdown (papaja).
When to Use
- Writing an academic paper in APA format
- Creating a psychology or social science research report
- Generating reproducible manuscripts with embedded analysis
- Preparing a thesis or dissertation chapter
Inputs
- Required: Analysis code and results
- Required: Bibliography file (.bib)
- Optional: Co-authors and affiliations
- Optional: Manuscript type (journal article, student paper)
Procedure
Step 1: Choose Framework
Option A: apaquarto (Quarto, recommended)
install.packages("remotes")
remotes::install_github("wjschne/apaquarto")
Option B: papaja (R Markdown)
remotes::install_github("crsh/papaja")
Got: The chosen framework package installs successfully and is loadable with library(apaquarto) or library(papaja).
If fail: If installation fails due to missing system dependencies (e.g., LaTeX for PDF output), install TinyTeX first with quarto install tinytex. For GitHub installation failures, check that the remotes package is installed and that GitHub is accessible.
Step 2: Create Document (apaquarto)
Create manuscript.qmd:
---
title: "Effects of Variable X on Outcome Y"
shorttitle: "Effects of X on Y"
author:
- name: First Author
corresponding: true
orcid: 0000-0000-0000-0000
email: [email protected]
affiliations:
- name: University Name
department: Department of Psychology
- name: Second Author
affiliations:
- name: Other University
abstract: |
This study examined the relationship between X and Y.
Using a sample of N = 200 participants, we found...
Results are discussed in terms of theoretical implications.
keywords: [keyword1, keyword2, keyword3]
bibliography: references.bib
format:
apaquarto-docx: default
apaquarto-pdf:
documentmode: man
---
Got: File manuscript.qmd exists with valid YAML frontmatter containing title, shorttitle, author affiliations, abstract, keywords, bibliography reference, and APA-specific format options.
If fail: Verify YAML indentation is consistent (2 spaces) and that author: entries use the list format with name:, affiliations:, and corresponding: fields. Check that bibliography: points to an existing .bib file.
Step 3: Write APA Content
# Introduction
Previous research has established that... [@smith2023; @jones2022].
@smith2023 found significant effects of X on Y.
# Method
## Participants
We recruited `r nrow(data)` participants (*M*~age~ = `r mean(data$age)`,
*SD* = `r sd(data$age)`).
## Materials
The study used the Measurement Scale [@author2020].
## Procedure
Participants completed... (see @fig-design for the study design).
# Results
```{r}
#| label: fig-results
#| fig-cap: "Mean scores by condition with 95% confidence intervals."
#| fig-width: 6
#| fig-height: 4
ggplot(summary_data, aes(x = condition, y = mean, fill = condition)) +
geom_col() +
geom_errorbar(aes(ymin = ci_lower, ymax = ci_upper), width = 0.2) +
theme_apa()
```
A two-way ANOVA revealed a significant main effect of condition,
*F*(`r anova_result$df1`, `r anova_result$df2`) = `r anova_result$F`,
*p* `r format_pvalue(anova_result$p)`, $\eta^2_p$ = `r anova_result$eta`.
# Discussion
The findings support the hypothesis that...
# References
Got: Content follows APA section structure (Introduction, Method, Results, Discussion, References) with inline R code for statistics and proper cross-references using @fig- and @tbl- prefixes.
If fail: If inline R code does not render, verify backtick-r syntax is correct (`r expression`). If cross-references show as literal text, check that the referenced chunk labels use the correct prefix and that the chunk has a corresponding caption option.
Step 4: Format Tables in APA Style
#| label: tbl-descriptives
#| tbl-cap: "Descriptive Statistics by Condition"
library(gt)
descriptive_table <- data |>
group_by(condition) |>
summarise(
M = mean(score),
SD = sd(score),
n = n()
)
gt(descriptive_table) |>
fmt_number(columns = c(M, SD), decimals = 2) |>
cols_label(
condition = "Condition",
M = "*M*",
SD = "*SD*",
n = "*n*"
)
Got: Tables render with APA formatting: italicized column headers for statistical symbols, proper decimal alignment, and a descriptive caption above the table.
If fail: If gt table does not render in APA style, ensure gt package is installed and that cols_label() uses markdown-style italics (*M*, *SD*). For papaja users, use apa_table() instead of gt().
Step 5: Manage Citations
Create references.bib:
@article{smith2023,
author = {Smith, John A. and Jones, Mary B.},
title = {Effects of intervention on outcomes},
journal = {Journal of Psychology},
year = {2023},
volume = {45},
pages = {123--145},
doi = {10.1000/example}
}
APA citation styles:
- Parenthetical:
[@smith2023]-> (Smith & Jones, 2023) - Narrative:
@smith2023-> Smith and Jones (2023) - Multiple:
[@smith2023; @jones2022]-> (Jones, 2022; Smith & Jones, 2023)
Got: references.bib contains valid BibTeX entries with all required fields (author, title, year, journal) and citation keys match those used in the manuscript text.
If fail: Validate BibTeX syntax with an online validator or bibtool -d references.bib. Ensure citation keys in the text exactly match .bib keys (case-sensitive).
Step 6: Render
# Word document (common for journal submission)
quarto render manuscript.qmd --to apaquarto-docx
# PDF (for preprint or review)
quarto render manuscript.qmd --to apaquarto-pdf
Got: Properly formatted APA document with title page, running head, and correctly formatted references section.
If fail: For PDF rendering failures, verify TinyTeX is installed (quarto install tinytex). For DOCX output issues, check that apaquarto's Word template is accessible. If references do not appear, ensure the # References heading is present at the end of the document.
Validation
- Title page formatted correctly (title, authors, affiliations, author note)
- Abstract present with keywords
- In-text citations match reference list
- Tables and figures numbered correctly
- Statistics formatted per APA (italicized, proper symbols)
- References in APA 7th edition format
- Page numbers and running head present (PDF)
Pitfalls
- Inline R code formatting: Use backtick-r syntax for inline statistics, not hardcoded values
- Citation key mismatches: Ensure .bib keys match exactly in the text
- Figure placement: APA manuscripts typically place figures at the end; set
documentmode: man - Missing CSL file: apaquarto includes the APA CSL; papaja users may need to specify
csl: apa.csl - Special characters in abstracts: Avoid markdown formatting in the YAML abstract block
Related Skills
create-quarto-report- general Quarto document creationgenerate-statistical-tables- publication-ready tablesbuild-parameterized-report- batch report generation
GitHub 저장소
연관 스킬
content-collections
메타이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
polymarket
메타이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
creating-opencode-plugins
메타이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
sglang
메타SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
