Agent skill
SAS
Execute these commands after EVERY implementation (see AGENT_AUTOMATION module for full workflow).
Install this agent skill to your Project
npx add-skill https://github.com/hivellm/rulebook/tree/main/templates/skills/languages/sas
SKILL.md
SAS Project Rules
Agent Automation Commands
CRITICAL: Execute these commands after EVERY implementation (see AGENT_AUTOMATION module for full workflow).
# Complete quality check sequence:
# Run SAS code validation (project-specific)
# Run SASUnit tests
# Check log files for errors/warnings
# SAS projects typically use:
sas -sysin validate_code.sas # Code validation
sas -sysin run_tests.sas # Run SASUnit tests
SAS Configuration
CRITICAL: Use SAS 9.4+ with code validation and testing.
- Version: SAS 9.4+ or Viya 3.5+
- Linter: SAS Code Analyzer
- Testing: SASUnit or custom test frameworks
- Version Control: Track all .sas files
Code Quality Standards
Mandatory Quality Checks
IMPORTANT: These commands MUST match your GitHub Actions workflows!
# Pre-Commit Checklist (MUST match .github/workflows/*.yml)
# 1. Validate SAS code syntax (matches workflow)
sas -sysin your_program.sas -nosplash -print /dev/null
# 2. Run SASUnit tests (matches workflow)
%include "sasunit/run_all_tests.sas";
# 3. Check for warnings and errors (matches workflow)
grep -i "ERROR\|WARNING" your_program.log
# If ANY fails: ❌ DO NOT COMMIT - Fix first!
Why This Matters:
- SAS code with syntax errors will fail in production
- Missing test validation = data processing errors
Code Style
/* Good: Clear, commented, structured */
%macro process_data(input_ds=, output_ds=, threshold=0.5);
%* Validate inputs;
%if %length(&input_ds) = 0 %then %do;
%put ERROR: input_ds parameter required;
%return;
%end;
/* Process data */
data &output_ds;
set &input_ds;
where value > &threshold;
run;
%mend;
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
NestJS
Align all NestJS services, modules, and controllers with these conventions.
kirby-plugin-development
Builds or extends Kirby plugins using hooks, extensions, blocks, KirbyTags, and shared templates/controllers. Use when creating reusable features or integrating Panel customizations.
uloop-focus-window
Bring Unity Editor window to front via uloop CLI. Use when you need to: (1) Focus Unity Editor before capturing screenshots, (2) Ensure Unity window is visible for visual checks, (3) Bring Unity to foreground for user interaction.
uloop-launch
Launch Unity project with matching Editor version via uloop CLI. Use when you need to: (1) Open a Unity project with the correct Editor version, (2) Restart Unity to apply changes, (3) Switch build target when launching.
youtube-transcript
Extract transcripts from YouTube videos. Use when the user asks for a transcript, subtitles, or captions of a YouTube video and provides a YouTube URL (youtube.com/watch?v=, youtu.be/, or similar). Supports output with or without timestamps.
xiaohongshu
生成小红书文案和配图。当用户需要写小红书、生成社交媒体文案、小红书运营内容时使用
Didn't find tool you were looking for?