sasjs-adapter SKILL.md skillB

sasjs-adapter from sasjs/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add sasjs/skills/sasjs-adapter@git:20260915.398399c

Pins git:20260915.398399c in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 16 of 17 checks passed
Kind
SKILL.md skill
Repository
sasjs/skills
Path
sasjs-adapter/SKILL.md
Versions recorded
5
Latest version
git:20260915.398399c, committed Sep 15, 2026
First version recorded
Aug 16, 2026
Size
10,493 bytes
Repository stars
3
License
MIT

Frontend/Node integration with SAS backends using @sasjs/adapter - configuring the SASjs class, the exact request() inputs and response shape, authentication, file upload, and session management. Use when writing TypeScript/JavaScript that calls SAS services or jobs.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# @sasjs/adapter

`@sasjs/adapter` is the TypeScript library for calling SAS services/jobs from browsers or Node, with a unified API across three server types: `SAS9`, `SASVIYA`, `SASJS`.

## Basic setup

```ts
import SASjs from '@sasjs/adapter'

const sasjs = new SASjs({
  serverUrl: 'https://sas.example.com',
  serverType: 'SASVIYA',      // SAS9 | SASVIYA | SASJS
  appLoc: '/Public/app/myapp', // root folder of deployed services
  contextName: 'SAS Job Execution compute context', // Viya only
  debug: false
})
```

## request() - inputs (JS -> SAS)

### Signature

```ts
sasjs.request(
  sasJob: string,
  data: { [key: string]: any[] } | null,
  config?: { [key: string]: any },             // merged over SASjsConfig
  loginRequiredCallback?: () => any,
  authConfig?: AuthConfig,                      // Viya tokens for Node usage
  extraResponseAttributes?: ExtraResponseAttributes[]  // ['log'] | ['file'] | ['data']
)
```

- `sasJob`: relative path (no leading slash) resolved against `appLoc`, or an absolute path. Becomes the SAS `_program` parameter.
- `data`: an object whose keys become **work datasets in SAS**. Can be `null` if the service takes no input.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add sasjs/skills/sasjs-adapter@sha256:c6c5d4b49649a294

The line at the top of this page pins the label git:20260915.398399c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_zvsx6ddxpy7kpbge.svg)](https://markdownregistry.com/a/art_zvsx6ddxpy7kpbge)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Aug 16, 2026 and Sep 15, 2026, about one every 8 days.

versioncommittedcommitsizeaudit
git:20260915.398399c latest2026-09-15 398399c 10,493 BB view · diff
git:20260903.3b71ba72026-09-03 3b71ba7 10,544 BB view · diff
git:20260828.129e1842026-08-28 129e184 9,995 BB view · diff
git:20260817.a1136362026-08-17 a113636 3,902 BB view · diff
git:20260816.5fa831b2026-08-16 5fa831b 3,920 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No script tag (matched: <script)
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (10493 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

sasjs/skills · 3 stars · license MIT · pushed 2026-11-03 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_zvsx6ddxpy7kpbge
GET https://markdownregistry.com/api/v1/resolve?ref=sasjs/skills/sasjs-adapter
GET https://markdownregistry.com/api/v1/blob/c6c5d4b49649a2945133a49b0da0d8c241105f7200544a8b8af7c4c8b9d70170

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from sasjs/skills

sas-packages SKILL.md skill
sasjs/skills · sas-packages/SKILL.md · Installing, loading and unloading SAS packages with the SAS Packages Framework (SPF) and the SASPAC archive - the…
git:20260925.6f49a2b · audit A · 3 stars
sas SKILL.md skill
sasjs/skills · sas/SKILL.md · Expert guidance for the SAS programming language - DATA step, PROC SQL, macro language, formats, ODS, and common…
git:20261103.7a7a8d4 · audit A · 3 stars
sasjs-cli SKILL.md skill
sasjs/skills · sasjs-cli/SKILL.md · Using the SASjs CLI (@sasjs/cli) to create, compile (whole project or a single file), build, deploy, run, and test…
git:20261027.fdf3d8b · audit A · 3 stars
sasjs-core SKILL.md skill
sasjs/skills · sasjs-core/SKILL.md · Standards and conventions for the @sasjs/core SAS macro library (mf_*, mp_*, mm*, ms_*, mv_* macros). Use when writing…
git:20261103.7a7a8d4 · audit A · 3 stars
sasjs-framework SKILL.md skill
sasjs/skills · sasjs-framework/SKILL.md · Building full SASjs applications - project structure, sasjsconfig.json, services/jobs/macros folders, multi-target (SAS…
git:20260921.4fac612 · audit A · 3 stars
sasjs-lint SKILL.md skill
sasjs/skills · sasjs-lint/SKILL.md · Linting and formatting SAS code with @sasjs/lint - the .sasjslint rules and their defaults, the macro-declaration rules…
git:20261027.33cff4c · audit A · 3 stars
sasjs-server SKILL.md skill
sasjs/skills · sasjs-server/SKILL.md · Installing, configuring, and running @sasjs/server - the open-source NodeJS wrapper around the SAS binary that provides…
git:20261101.6faff03 · audit B · 3 stars

Every file in sasjs/skills

Browse by kind, by grade B, or by owner.