sas-migration
Migrate SAS programs to Python, Java, or Postgres equivalents with operational fidelity as the acceptance criterion. Handles audit checkpoints, conclusionary reports, and effort tracking for cost estimation.
- License 许可
- Apache-2.0
- 所属仓库
- pjherron/hypoc
- 最近更新
- 2026-09-01
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- sas-migration
- origin
- Platform
- description
- Migrate SAS programs to Python, Java, or Postgres equivalents with operational fidelity as the acceptance criterion. Handles audit checkpoints, conclusionary reports, and effort tracking for cost estimation.
03 SKILL.md 正文
SAS Migration
Migrate legacy SAS programs to modern equivalents (Python, Java, Postgres) while preserving operational fidelity — not byte-for-bit output parity, but correct behavior in production.
Domain Context
Load CONTEXT.md at session start for pharma QC domain terms. Key terms:
- Operational fidelity — the acceptance criterion. Migrated system does the same job, reports are correct, QC checkpoints are trustworthy.
- Conclusionary report — terminal, manager-facing output.
- Audit checkpoint — intermediate extraction point used to QC the monitored system. Many per program.
- Pilot migration — 3 programs being migrated as real working examples to calibrate cost estimation for 33 remaining.
Migration Workflow
1. Inventory the SAS program
- Map all DATA steps, PROC steps, macro calls, and library references
- Identify all output points: conclusionary reports and audit checkpoints
- Document data types, formats, and any SAS-specific behaviors (missing value handling, sorting defaults, date formats)
2. Map to target language
- SAS DATA step → Python (pandas/polars) or Java
- PROC SQL → Postgres query or SQLAlchemy
- SAS formats/informats → Python equivalents, with notes on divergence
- Macros → Python functions or parameterized queries
- Note anywhere Python/Java behavior differs from SAS — these are fidelity risks
3. Preserve audit checkpoints
- Each checkpoint in the SAS program must have a named equivalent in the migrated code
- Checkpoint outputs must be extractable at the same logical point in the pipeline
- Document the checkpoint map:
SAS checkpoint name → migrated equivalent → extraction method
4. Verify operational fidelity
- Run both SAS and migrated versions on the same input data
- Compare conclusionary report outputs — flag divergences
- Spot-check audit checkpoint outputs at key extraction points
- Document any intentional divergences (where SAS behavior was wrong or obsolete)
5. Track effort
- Log time per migration phase: inventory, mapping, implementation, verification
- Note complexity signals: macro count, external library dependencies, checkpoint count, data volume
- Feed into the cost re-estimation model for remaining 33 programs
Output Artifacts
Per migrated program:
- Migrated source code (Python / Java / SQL)
- Checkpoint map (SAS → migrated)
- Fidelity notes (where behavior differs and why)
- Effort log (hours per phase)
- Test results (input/output comparison summary)
Activation
Use when starting a SAS migration session. Works alongside domain-modeling (to maintain the pharma QC glossary) and verification-loop (to confirm fidelity before sign-off).
04 同仓库更多 Skills
workspace-surface-audit
Audit the active repo, MCP servers, plugins, connectors, env surfaces, and harness setup, then recommend the highest-value ECC-native skills, hooks, agents, and operator workflows. Use when the user wants help setting up Claude Code or understanding what capabilities are actually available in their environment.
Verification & Quality Assurance
Comprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability.
verification-loop
A comprehensive verification system for Claude Code sessions.
triage
Move issues and external PRs through a state machine of triage roles — categorise, verify, grill if needed, and write agent-ready briefs.
token-budget-advisor
Offers the user an informed choice about how much response depth to consume before answering. Use this skill when the user explicitly wants to control response length, depth, or token budget. TRIGGER when: "token budget", "token count", "token usage", "token limit", "response length", "answer depth", "short version", "brief answer", "detailed answer", "exhaustive answer", "respuesta corta vs larga", "cuántos tokens", "ahorrar tokens", "responde al 50%", "dame la versión corta", "quiero controlar cuánto usas", or clear variants where the user is explicitly asking to control answer size or depth. DO NOT TRIGGER when: user has already specified a level in the current session (maintain it), the request is clearly a one-word answer, or "token" refers to auth/session/payment tokens rather than response size.
to-tickets
Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker — edges as text in a local file, or native blocking links on a real tracker.