원클릭으로
data-analysis
This is default workflow for data analysis. It includes steps for data cleaning, exploration, and visualization.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
This is default workflow for data analysis. It includes steps for data cleaning, exploration, and visualization.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
End-of-data-collection workflow. Exports raw MongoDB data as JSONL, writes a companion README documenting schema + provenance, commits both to the repo, and archives the raw dataset to Zenodo with a permanent DOI. Use when the user says "data collection is done", "freeze the data", "archive the raw data", "post the raw data to Zenodo", "collection is complete", or is closing out a study.
Build a Qualtrics survey from specs using the qualtrics_sdk Python package. Give a description of your survey (questions, blocks, logic, embedded data) and this skill generates and runs a Python script to create it on Qualtrics.
Interact with Google Workspace (Drive, Docs, Sheets, Gmail, Calendar, etc.) using the `gws` CLI. Use this skill when the user wants to read, create, edit, or search Google Docs, Sheets, Drive files, or any Google Workspace resource.
Write an AsPredicted pre-registration for a study. Walk through each field with the user, then produce a complete pre-registration document.
End-of-session wrap-up — updates todo.md, comms.md, and current_state.md with session summary, commits/pushes if git repo, and creates a handoff briefing for the next session. Use when the user says "log off", "wrap up", "call it a night", "done for today", or is ending a work session.
Send the user an iMessage notification when a long-running task finishes. Use after any multi-step or long-running task, especially one the user has stepped away from.
| name | data-analysis |
| description | This is default workflow for data analysis. It includes steps for data cleaning, exploration, and visualization. |
This is the process I want to follow for data analysis:
One example of how to download data from Qualtrics using the qualtRics R package is as follows:
id = "SV_1Bn8JHpeFDRuu5E"
library(qualtRics)
fetch_survey(
surveyID = id,
verbose = TRUE,
force_request = TRUE,
convert = FALSE
) -> data
attr(data, "column_map")
Note that you can use attr(data, "column_map") to get the column names and their corresponding question IDs, which can be helpful for data cleaning and analysis.
Make sure to only keep the variables that are necessary for the analysis and nothing else. Make sure all variables have good names Make sure to drop all cases that are not needed (e.g., previews, etc.) If applicable, only keep participants who have a PROLIFIC_PID, and drop all cases that do not have a PROLIFIC_PID. This will ensure that you are only analyzing data from participants who completed the survey on Prolific. If there is a row where PROLIFIC_PID is "{{%PROLIFIC_PID%}}" then drop that row.
This file outputs a full correaltion matrix for all variables (and sub matrices if it helps interpretation). Histograms for all variables. Checks for outliers, etc. Output everything as a series of plots to a subfolder called eda.
This should have all the final analyses and visualizations, and should be written up in a clear and concise manner. Make sure to include all relevant information, such as the sample size, the statistical tests used, and the results of those tests.
DO NOT use cat to show results, instead use r results to show results in the quarto document. This will make it easier to read and understand the results.
Make the code hideable
Make sure the code is runnable interactively or from the quarto document. This will allow you to easily test and debug your code, and also make it easier for others to understand and reproduce your analysis. For example:
# switch for data load.
is_running_in_quarto <- function() {
# Check if a Quarto-specific environment variable is set
return(Sys.getenv("QUARTO_DOCUMENT_PATH") != "")}
# Example usage:
if (is_running_in_quarto()) {
dat <- read_parquet("../data/processed/analysis_data.parquet")
fig_path <- "../output/figures/"
tab_path <- "../output/tables/"
} else {
dat <- read_parquet("./data/processed/analysis_data.parquet")
fig_path <- "./output/figures/"
tab_path <- "./output/tables/"
}
Before submitting your work, always read the rendered report to make sure your reporting makes sense: for example if you wrote A and B were positively correlated (r = 0.023, p = 0.523), then you need to fix your write up.
Some rules: