# sap-rpt1

Prepares SAP FI/CO exports for local SAP-RPT-1-OSS experiments: checks the schema, hunts target leakage, and flags the governance steps.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 507 installs · ★ 475
- Author: secondsky
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/secondsky/sap-skills/tree/HEAD/plugins/sap-rpt1/skills/sap-rpt1/SKILL.md
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/skills/sap-rpt1

## What it does

This skill covers prototype work on SAP finance tables: late-payment classification in FI-AR, lost cash discounts in FI-AP, odd journal postings in FI-GL. It starts by making you pick a single prediction point and a single target column, then spell out what was known at that moment. Skip that and the experiment is meaningless.

Two scripts ship with it. `scripts/fico_data_prep.py` runs with `--dry-run` to print the CSV schema and leakage risks; `scripts/rpt1_oss_predict.py` checks whether the machine is ready for local inference. Four reference files cover data governance, portability to locked-down workstations, and the public source review. Non-UTF-8 exports are handled with `--encoding` and `--delimiter`.

Local inference needs Python 3.11, a Hugging Face login, and plenty of memory, since the model artifacts come from a gated repository. The bundled commands deliberately never run inference themselves — they only inspect data. Predictions here are not a basis for blocking a payment, granting credit, or signing off a control. Prototype and research only.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-rpt1 -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/sap-rpt1/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/sap-rpt1/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-rpt1 -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/sap-rpt1/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-rpt1 -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/sap-rpt1/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install secondsky/sap-skills sap-rpt1
```

2. **Manually: put the files in place**
- File: `.github/skills/sap-rpt1/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-rpt1 -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/secondsky/sap-skills --path plugins/sap-rpt1/skills/sap-rpt1
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/sap-rpt1/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-rpt1 -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/secondsky/sap-skills/tree/HEAD/plugins/sap-rpt1/skills/sap-rpt1/SKILL.md

## When to use it
- inspect an FI/CO export schema before running the model
- spot features created after the prediction point
- flatten a SAP extract to one row per prediction object
- check whether memory and Hugging Face access are enough for local runs
- assemble a governance checklist before touching real finance data

## Example prompts
- Check `fi_ar_export.csv` for leakage before the late-payment run, target is `paid_late`
- Run `scripts/fico_data_prep.py --dry-run --input "ap_invoices.csv" --target discount_lost` and list the risks
- What do I need in place for a local SAP-RPT-1-OSS run on this data?

## Similar
- [skill-creator](https://affpapa.org/en/nevibecode/skills/skill-creator.md) — skill · 414180 installs
- [writing-for-agents](https://affpapa.org/en/nevibecode/skills/writing-for-agents.md) — skill · 466719 installs
- [media-use](https://affpapa.org/en/nevibecode/skills/media-use.md) — skill · 1100000 installs
- [mcp-builder](https://affpapa.org/en/nevibecode/skills/mcp-builder.md) — skill · 130949 installs
- [subagent-driven-development](https://affpapa.org/en/nevibecode/skills/subagent-driven-development.md) — skill · 237746 installs
- [orchestration](https://affpapa.org/en/nevibecode/skills/orchestration.md) — skill · 349800 installs

From the same set: [secondsky/sap-skills](https://affpapa.org/en/nevibecode/by/secondsky/sap-skills.md) — 40 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
