SAP Commerce HAC
Overview
Use this skill for live-data investigation through HAC while keeping operations read-only and reproducible.
Trigger Checklist
Use this skill when one or more are true:
- you need current environment truth from HAC (not static config assumptions)
- you need read-only FlexibleSearch/SQL lookup for carts, customers, orders, addresses, routes, or delivery modes
- you need Groovy to navigate model relations that are awkward in joins
- you need a repeatable headless HAC run from terminal tooling
Safety Rules
- Use read-only operations unless the user explicitly asks for writes.
- Use Groovy in rollback mode.
- Do not run ImpEx imports, model saves, updates, deletes, or direct writes.
- Verify actual model qualifiers before querying.
Progressive Disclosure
Load only what the task needs:
references/query-playbook.mdfor investigation flow patternsreferences/flexible-search-patterns.mdfor query structurereferences/groovy-patterns.mdfor model-navigation scriptsreferences/model-gotchas.mdfor qualifier/relation pitfallsscripts/hac_run_groovy.shfor headless execute-once Groovy runs
Investigation Workflow
- Verify type/qualifier names from code before querying.
- Start with the narrowest exact lookup (code/uid/email/zip/store).
- Expand scope only if exact lookup fails.
- Prefer Groovy when relation traversal is complex.
- Separate candidate discovery from rule evaluation.
- Return concise conclusions with supporting identifiers.
Reporting Style
- Lead with conclusion first.
- Explain root cause before mechanics.
- Include concrete valid/invalid examples when relevant.
- Keep uncertainty explicit and minimal.