Skip to main content
skill CX Codex

sap-bw-query — Claude Code skill: inspect SAP BW queries

An agent skill for SAP BW work through Eclipse and BW Modeling Tools: reads InfoProvider metadata, checks a specification and prepares an unsaved query draft.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add secondsky/sap-skills --skill sap-bw-query -a claude-code
Open on GitHub

What sap-bw-query does

The skill walks an agent from a business specification to a draft of a new SAP BW query. First it pulls provider metadata, meaning characteristics with their dimension groups plus key figures, through bw_describe_provider. Then it checks every name in QuerySpec v1 against that metadata. Gaps that block the build stop the draft; optimization hints come back separate from anything that would shift business meaning.

Queries that already exist are opened read-only. Nothing gets deleted or rewritten, and the only artifact produced is a local unsaved draft. Writing a brand-new query to the backend needs a human confirmation inside Eclipse tied to system, client, provider, technical name and a hash of the spec. A person also clicks Finish in SAP's own wizard. After that, bw_populate_query_editor fills the open editor with the drafted model and you decide whether to save.

Credentials never reach the skill. Paste a password and processing halts; you log in through SAP's native dialog instead. Windows is required. The studio installs per user in %LOCALAPPDATA%\BWAutomationStudio with no admin rights, and BwStudio.ps1 -Action Launch -Json starts it, adding -noPwdStore. Connections work over SNC/SSO or a plain login. Much of the checking is local; validation against a live BW system has not been done yet.

What it helps with

  • verify spec names for characteristics and key figures against provider metadata
  • build an unsaved draft query from a written business spec
  • lay out axes, filters and variables in the query editor
  • run BW query design rules against an open query
  • document an existing query in business terms without touching it

Example prompts for the agent

  • Run BwStudio.ps1 -Action Status -Json and tell me if the studio is ready
  • Read the provider metadata with bw_describe_provider and check my spec against it
  • Prepare an unsaved query draft with these axes and filters, no saving

How to install sap-bw-query

1Skills CLI (Vercel)

npx skills add secondsky/sap-skills --skill sap-bw-query -a claude-code

2Manually: put the files in place

~/.claude/skills/sap-bw-query/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/sap-bw-query/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about sap-bw-query

How do I install sap-bw-query in Claude Code?

Run npx skills add secondsky/sap-skills --skill sap-bw-query -a claude-code. The skill lands at ~/.claude/skills/sap-bw-query/SKILL.md.

What does sap-bw-query do?

It reads InfoProvider metadata in SAP BW, checks a QuerySpec v1 against it and prepares an unsaved query draft for you to review in Eclipse.

Can it modify or delete an existing BW query?

No. Open queries stay read-only, and any new query exists as a draft until a human confirms it in Eclipse.

Similar skills

All skills for Data and databases →

From the same set24

sap-btp-master-data-integration Walks you through setting up an SAP Master Data Integration tenant, connecting applications and fixing master data replication. CX Codex +1 659installs sap-hana-cloud-data-intelligence Guides your agent through building graphs and pipelines in SAP Data Intelligence Cloud, writing operators and setting up replication from ABAP systems. CX Codex +1 643installs sap-btp-cloud-platform A reference skill for SAP Business Technology Platform: accounts, Cloud Foundry, Kyma, ABAP Environment, MTA deployments and on-premise connectivity. CX Codex +1 636installs sap-sac-scripting A skill for writing and debugging scripts in SAP Analytics Cloud. Covers Analytics Designer and Optimized Story Experience. CX Codex +1 634installs sap-sac-planning Guides agents through SAP Analytics Cloud planning models, data actions, and version workflows. Useful for debugging allocations and Datasphere connections. CX Codex +1 612installs sap-dependency-security Guards SAP projects against supply chain risks and enforces strict executable rules for MCP servers. Useful when upgrading libraries in SAP CAP or BTP. CX Codex +1 558installs sap-cloud-sdk-ai-python Integrates sap-ai-sdk-gen into Python applications. It guides foundation model connectivity and request orchestration via SAP AI Core. CX Codex +1 545installs sap-api-policy Evaluates SAP interface integrations against the SAP API Policy v.4.2026a baseline and delivers an evidence-based technical assessment. CX Codex +1 387installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor