Skip to content
Agentmart
Submit a tool

margin-audit

Recompute gross margins from raw order exports and flag operations below target.

Skill by keurcien

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/keurcien-margin-audit

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Recompute gross margins from raw order exports and flag operations below target. Use when margins look off, when finance asks for a margin audit, or before a pricing decision.

Use cases: security, finance

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/margin-audit

What's inside

Skill name
margin-audit
Description
Recompute gross margins from raw order exports and flag operations below target. Use when margins look off, when finance asks for a margin audit, or before a pricing decision.
License
MIT
Compatibility
Requires Python 3.11+ with pandas and openpyxl
Metadata
author: keurcien · auxilia-requires: python>=3.11; pandas>=2.1, openpyxl; egress=none
Instructions
26 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (5)

  • SKILL.md
  • rules.md · references/
  • clean.py · scripts/
  • fake_data.py · scripts/
  • margins.py · scripts/

SKILL.md (first lines)

# Margin audit

## When to use

Margins reported by an operation look wrong, or someone wants them recomputed
from the raw export rather than trusted from the dashboard.

## Steps

1. Ask for the raw order export (CSV) if it is not already in the workspace.
2. Clean it: `python scripts/clean.py <export.csv> cleaned.csv` — drops
   cancelled orders and normalises currency columns.
3. Compute margins per operation: `python scripts/margins.py cleaned.csv margins.xlsx`.
4. Read `references/rules.md` for the margin targets per category before
   flagging anything.
5. Report the operations below target, worst first, with the recomputed
   margin next to the reported one.

## Testing without a real export

`python scripts/fake_data.py fake.csv` writes a synthetic export that
`margins.py` reads directly. Add `--raw` to get currency formatted like a real
export (`12,50€`) so the file has to go through `clean.py` first. Four of the
twelve generated operations sit below their category target.

From keurcien/auxilia-skills, MIT.

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Sep 17, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from keurcien

Cite this page

margin-audit skill. Agent Mart. https://agentmart.dev/skills/keurcien-margin-audit (last updated 2026-10-24)