Logo de Karthik R Analysis Style

Karthik R Analysis Style

Comunidade
skthewimp
karthik-r-analysis-style

Use para análises em R no estilo de Karthik, notebooks exploratórios em RMarkdown/Quarto e pipelines de analytics: rascunhos orientados por precedentes locais, sondagens guiadas por perguntas, código tidyverse/tidytable, tabelas e gráficos rápidos, ramificações informadas pelo domínio, dbplyr/Arrow/DuckDB para conjuntos de dados maiores e notebooks compatíveis com RStudio.

Visão geral

Publicado porskthewimp
Repositóriokarthik-data-visualization-skill
Nome da habilidadekarthik-r-analysis-style
Estrelas
49
Forks
5
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por skthewimp no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Karthik R Analysis Style no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/karthik-r-analysis-style/codex
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/skthewimp/karthik-data-visualization-skill.git /tmp/karthik-data-visualization-skill
mkdir -p .claude/skills
cp -r /tmp/karthik-data-visualization-skill/karthik-r-analysis-style/codex .claude/skills/karthik-r-analysis-style
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Karthik R Analysis Style em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Karthik R Analysis Style automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Karthik R Analysis Style não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Karthik R Analysis Style

Use for R analysis, exploratory .Rmd/.qmd notebooks, and analytics pipelines. Core rule: this is not generic EDA and not a polished report - it is a working scratchpad where the next chunk follows from what the previous chunk showed.

Own R notebook texture, local precedent, exploratory branching, and R code conventions. karthik-analysis-planner owns the analysis contract, karthik-data-cleaning owns substantive data preparation and validation, dataviz-selector owns final chart choice, karthik-data-visualization owns publication chart design, and chart-explainer owns notes attached to plots.

Analyst, not software engineer

Treat an exploratory notebook as thinking in public with data. The goal is judgement, not architecture - context-specific probes, visible assumptions, and domain reasoning over reusable machinery.

Do:

  • Start from the analytical question and unit of analysis, not a code structure.
  • Let messy facts change the next step; keep local, disposable objects if they help thinking.
  • Use domain names and metrics supported by the current question and data; don't treat one notebook family's examples as universal defaults.
  • Clean or transform only what helps answer the next question; keep caveats near the chunk that revealed them.

Don't:

  • Turn exploration into a package, framework, pipeline, or component, or abstract early into functions/configs/classes/helpers/tests/generic loaders.
  • Optimize for reproducible production code before understanding the data.
  • Hide judgement behind generic verbs like clean_data(), process_data(), run_analysis().
  • Make the notebook tidy at the cost of the reasoning trail.

A good notebook can be a little ugly if it shows the analyst's path. A bad notebook is clean, generic, and context-free.

What the 2018+ notebooks show

A 20-notebook audit (Mint, Shopify, Retail, Oliveboard, Ticketing, Onsite, elections, weather, payments, JEE, BabbageInsight, qcom/Cosmix, cricket) fixes the priors:

  • Start from a live context: article, client problem, stakeholder need, product idea, or personal curiosity. A concrete objective is fine; a generic EDA preamble is not.
  • The unit of analysis is usually implicit in the first few chunks - make it visible in new work (order, item, store-day, candidate-seat, ball, innings, match, user-test, hour-day, app-city-SKU).
  • Broad metric scans are allowed only when the business/client context calls for them, and stay metric-led (GMV, AOV, DAU, coupon burn, availability, search visibility), not column-led.
  • Rough prose is a feature: typos, fragments, "Not as interesting!", "Nothing significant", "What is this column?" are closer than polished paragraphs. Sparse is fine - not every chunk needs prose, but every sequence should reveal why that cut came next.
  • Modeling/simulation/clustering is acceptable when it's the natural analyst move (swing simulator, structural break test, clustering, forecast, player impact), not because a template says so.
  • Exports (pdf, pbcopy, saved chart) and DuckDB/S3/Parquet setup appear only when the output or data source requires them - don't generalize either into boilerplate.

If evidence conflicts, prefer older hand-written notebooks for voice and reasoning, newer ones for current data-access patterns.

Improving this skill: sequential posterior update

When updating this skill from old notebooks, don't batch-read and summarize once. Go file by file (prior → inspect file 1 → write delta → update belief → choose file 2 in that light → ... → final patch), and after each file record what the skill would have predicted, what the notebook does, which belief should strengthen/weaken/become conditional, and which future notebooks the evidence applies to. Karthik's style is a family of behaviours (article scratchpad, client metric scan, data diagnostic, model experiment, chart hunt, personal curiosity), not one global template, so later files refine earlier conclusions rather than just adding examples.

First move: RAG against local precedent

Before creating or heavily editing a notebook, retrieve local examples and update your plan from them - the skill is the prior, nearby notebooks the evidence. Inspect 3-5 before writing:

  1. Same folder/project.
  2. Same domain (cricket, elections, commerce/client, weather, time series, survey, etc.).
  3. Older hand-written notebooks (2018 onward) if recent files look AI-generated or over-structured.
  4. One adjacent "bad fit" file if useful, to avoid copying the wrong mode.

For each, ask: question/context, grain, first inspection, branch logic, code texture, stopping point. Then write in the posterior style - don't invent a new workflow if the repo has one. Copy texture, not just syntax: roughness, local object names, domain metrics, assignment style, plot roughness, section rhythm, willingness to abandon paths. If references/style-observations.md is installed (it is private and not in the public repo), read it only when matching old notebooks closely.

Notebook family routing

Classify the family before writing, so one Karthik pattern isn't over-applied to all work:

  • Article/story scratchpad: one claim or curiosity; rough prose; quick tables/plots; export only if feeding article/chart.
  • Client diagnostic: stakeholder problem list, source-of-truth decisions, metric definitions, criteria scoring, business-native cuts.
  • Metric scan: broad scan only when metrics are domain-native (GMV, AOV, DAU, conversion, burn, incidence, active plans), not generic columns.
  • Forecast/model calibration: functions and repeated evaluation allowed; keep reasoning about bias, seasonality, holdout, ratios, horizons visible.
  • Algorithm/product experiment: end-to-end functions allowed (dynamic pricing, Elo, structural breaks, parsers); still explain assumptions and check intermediate objects.
  • Text/NLP parsing: helper functions are normal; still inspect raw lines and samples before abstraction.
  • Chart recreation/graphic hunt: start from target visual/question; iterate aesthetics and anomalies; export only when the output is the point.
  • Tracker/dashboard-ish: repeated charts/maps okay; preserve update logic and assumptions, don't make a generic app unless asked.

If a precedent file is just RStudio template boilerplate or generic AI-generated sections, treat it as negative evidence - don't copy its prose or structure.

Mental model

Write like Karthik at the console: load data → print the object → ask one narrow question in plain English → run one short table or plot → react (too messy, no signal, weird, useful, dead end) → change slice/grain/benchmark from what appeared. The notebook earns its keep by choosing what to look at next, not by being comprehensive.

Notebook shape

Default exploratory .Rmd:

yaml
---
title: "Concrete title"
output: html_notebook
---
r
require(tidyverse)
require(lubridate)   # if dates matter
require(tidytable)   # if grouped summaries get compact
  • The notebook is for running chunk by chunk while exploring, never for knitting. Add nothing that only serves a knitted output (figure sizing/captions, knitr::opts_chunk$set, cross-references, run-all/knit-ready structure, YAML author/date, global config, package abstraction) unless local precedent does it or the user asked. Assume every chunk runs one at a time in the console.
  • Use absolute paths or setwd() when chunk-by-chunk execution needs it.
  • Keep chunks short - one chunk = one thought/probe. Print raw objects early (head(), count(), summary()).
  • Each displayed output gets its own chunk. Put separate tables, plots, printed objects, and diagnostic summaries in separate chunks, even when they answer the same question. A chunk may include the preparation needed for its one output; preparation-only chunks are fine. Split multiple outputs rather than hiding or suppressing them.
  • Use section titles/prose as steering notes, not report copy. Leave dead ends if they explain the next move. Reassign objects freely when the cleaning step is local and obvious.

Prose style inside notebooks

Rough working notes, e.g. What does this file look like?, Need a quick size check first, Date coverage is not identical. Remember this before comparing apps., Let's only look at stores with enough days, Too messy. Try the recent period., This is probably a dead end, What matters is whether it rained at all in this window, not the exact hour.

Avoid generated-sounding scaffolding: Question Log, Reusable Cuts, Current Conclusion, Blog Notes, Executive Summary, Key Takeaways, Data Quality Assessment, "The setup is usable...", or any standing pipeline/framework unless explicitly asked.

After a plot: say what it showed. The notes above are lead-ins; every plot also needs a note after it saying what it showed, because whoever reads this notebook didn't run it. Use chart-explainer for these (don't restate its contract here), kept in the same rough register as the surrounding notebook.

Exploration moves that feel right

Prefer these over checklist EDA:

  • count(..., sort = T) for categories, statuses, years, teams, parties, stores, cities, SKUs.
  • Direct object printing to understand shape.
  • summarise(..., .by = ...) with n(), n_distinct(), min/max dates, sums, means, medians.
  • Quick proportions: mutate(prop = n / sum(n), .by = ...).
  • Meaningful filters: recent years, top entities, enough observations, non-missing fields, competitive candidates, active stores.
  • Change grain deliberately: ball → innings → match → season; order → store-day → store; hour → day/month/year; candidate → constituency/state.
  • Compare against a baseline: prior year/election/season, others vs India, app vs app, top stores vs rest, this year vs historical average.
  • Follow anomalies selectively; don't analyze every weird column. Use domain knowledge aggressively.

Domain patterns

  • Cricket: batting order, phase, run rate, strike rate, wickets, innings, chase/bat-first, top-order contribution, player/team cuts, match context, era cuts, simulations when useful.
  • Elections: vote share, margins, winner/runner-up, party abbreviations, swing, ENPV/corners, alliances, maps, previous-election comparison.
  • Commerce/client: GMV, AOV, order frequency, availability, search/discovery, conversion, cohorts, stores/cities/SKUs, top/bottom tables, treatment/control or no-coupon baselines.
  • Weather/time series: day-of-year overlays, this year vs history, month/hour windows, thresholds, medians/quantiles, structural breaks only after visual pulse checks.
  • Survey/health/personal data: enough-n filters, distributions by meaningful demographic or behavioural cuts, longitudinal comparisons.

Code defaults

  • Prefer tidyverse %>% pipes. Use dplyr's native .by for per-operation grouping; do not switch to tidytable just to use .by.
  • Prefer mutate(..., .by = key) and summarise(..., .by = c(key1, key2)) over group_by() %>% ... %>% ungroup(). Keep grouping local to each verb; use group_by() only when grouping genuinely needs to persist across several operations or the backend lacks .by support. For order-sensitive calculations, arrange explicitly before the grouped verb; preserve any required summary ordering with arrange().
  • Preserve unrelated surrounding style in old notebooks, including T/F; apply the .by preference to new or edited grouped operations without gratuitously rewriting untouched code.
  • Default to right assignment (->) at the end of any long chain, so a pipe can run partially, line by line, in the console; always put the target on the next line after ->, indented 2 spaces from the pipeline's base indent, even for short right assignments:
r
some_pipeline(...) %>%
  more_steps(...) ->
  object
  • Left assignment is fine for short one-liners and where surrounding code uses it; new long chains end in ->.
  • Prefer case_when() over nested ifelse() in new code; don't rewrite old code without need.
  • Helpers stay small and local in first-pass exploration. Exception: parsers, simulations, forecasting calibration, Elo/dynamic-pricing algorithms, and repeated text processing may need functions - even then, inspect inputs/outputs around the function and keep assumptions visible.
  • Use write_delim(pipe('pbcopy'), '\t'), pdf(...), or quick export only when the notebook is clearly feeding a chart/article/client output.

Plot defaults

Plot early to decide whether the question is worth pursuing; good enough beats polished. Common patterns: geom_point() + geom_line() for time/ordered comparisons; geom_col() for counts; geom_histogram()/geom_density()/geom_violin() for distributions; geom_smooth(se = F) for broad shape; facet_wrap(..., scales = 'free') for entity comparisons; geom_text() when exact labels matter; geom_sf() when geography is the unit; theme_bw()/theme_minimal() with light cleanup.

Don't turn first-pass plots into publication charts unless asked, but make them interpretable enough to guide the next cut. When a plot becomes a deliverable rather than a probe, hand chart-form choice to dataviz-selector and visual execution to karthik-data-visualization; don't extend these rough defaults into a second publication style.

Database / large data

  • Don't write raw SQL. Reach for a dplyr backend: dbplyr with tbl(...) for databases, duckplyr/DuckDB for local analytical queries, arrow for Parquet/S3. Express filters, joins, and aggregation as dplyr verbs and let the backend translate.
  • Keep heavy aggregation in-backend; collect() only when local materialization is needed.
  • Only exception: an unavoidable one-off DDL/config statement (create view, attach, S3 credentials) with no dplyr equivalent. Never hand-write query logic (SELECT/GROUP BY/joins) as SQL strings.

Anti-patterns

Beyond the Don'ts above, when asked for exploratory notebooks specifically don't:

  • make a generic audit notebook unless an audit was asked for;
  • add logs, reusable-cut sections, numbered question systems, or blog-production scaffolds by default;
  • write long caveat/conclusion prose before seeing enough output, or smooth over uncertainty (if you haven't run the chunks, write probes, not conclusions);
  • create broad all-purpose notebooks - start with one concrete question and let it sprawl;
  • polish Karthik's rough working prose into corporate narration, or copy RStudio default template text (Add a new chunk...) and generic headings from precedent files.

Ban premature abstraction, not functions categorically - functions are fine when building an algorithm, parser, simulation, or forecast calibration.

Skeleton for a new scratchpad

Use this shape unless local examples suggest otherwise:

markdown
---
title: "Short scratchpad title"
output: html_notebook
---

```{r}
require(tidyverse)
read_csv("/absolute/path/file.csv") ->
  dat
dat

What does coverage look like?

dat %>%
  summarise(
    rows = n(),
    start = min(date, na.rm = T),
    end = max(date, na.rm = T),
    entities = n_distinct(entity)
  )

Which entities matter?

dat %>%
  count(entity, sort = T) %>%
  head(20)

Now take the first promising cut...


Then continue from results; don't fill the rest with hypothetical sections.

Perguntas frequentes

O que a habilidade de IA Karthik R Analysis Style faz?

Use para análises em R no estilo de Karthik, notebooks exploratórios em RMarkdown/Quarto e pipelines de analytics: rascunhos orientados por precedentes locais, sondagens guiadas por perguntas, código tidyverse/tidytable, tabelas e gráficos rápidos, ramificações informadas pelo domínio, dbplyr/Arrow/DuckDB para conjuntos de dados maiores e notebooks compatíveis com RStudio.

Por que usar Karthik R Analysis Style no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Karthik R Analysis Style é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Karthik R Analysis Style no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/karthik-r-analysis-style/codex. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Karthik R Analysis Style?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Karthik R Analysis Style?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Karthik R Analysis Style com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Karthik R Analysis Style é gratuita?

Sim. A habilidade é publicada no GitHub por skthewimp sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇