Sas94 Skill banner
xiaosongz xiaosongz

Sas94 Skill

Data community

Description

Claude Code skill for SAS 9.4 — DATA step, PROC SQL, macros, hash tables, ODS, stats procs

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

sas94-skill

A [Claude Code](https://docs.anthropic.com/en/docs/claude-code) skill for writing, reviewing, and debugging SAS 9.4 code with AI assistance.

SAS 9.4 is the daily driver for biostatisticians, health-services researchers, and pharma/claims analysts, yet SAS is underrepresented in LLM training corpora. This skill distills rules and idioms from MIT-licensed sources (`sasjs/lint`, `sasjs/core`) plus hand-transcribed SAS-programmer pitfalls (GWU data-mining curriculum), and routes Claude Code to topic-specific reference files on demand.

**Status:** `v0.0.1` pre-release. Reference content is organized as per-topic atom directories under `references/`, with each atom covering one concept (e.g. `references/data-step/merge.md`, `references/macros/scope-and-quoting.md`). Atoms are populated across both REQUIRED sections (Overview, Critical Rules, Canonical Idioms, Function/Statement Quick Ref, See Also) and OPTIONAL sections (Silent Pitfalls, Anti-patterns). See [`docs/coverage-matrix.md`](docs/coverage-matrix.md) for per-file status.

What This Skill Does

When activated, Claude Code can:

  • Translate study descriptions into idiomatic SAS 9.4 (DATA step, PROC SQL, macros, PROC FREQ/MEANS/LOGISTIC, hash tables, ODS)
  • Catch silent-failure patterns before code ships — MERGE overwrite, LAG-inside-IF, missing retain on accumulators, macro-quoting errors, PROC APPEND shape mismatches, and more
  • Enforce the 15 rules from sasjs/lint v2.4.3 covering macro definition, file headers, line formatting, and source hygiene
  • Apply sasjs/core macro patterns — positional-required + keyword-optional signatures, %local discipline, iftrue= guards, /*/STORE SOURCE*/ registration
  • Route to topic-specific reference files for deep dives

Installation

Recommended: Claude Code plugin marketplace

Two slash commands inside any Claude Code session:

/plugin marketplace add xiaosongz/sas94-skill
/plugin install sas94@sas9