# ikamenetskiy/sap-sac-optimized-story-scripting architecture

> Architecture diagram of the GitHub repository ikamenetskiy/sap-sac-optimized-story-scripting, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ikamenetskiy/sap-sac-optimized-story-scripting
- Repository: https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting

## Overview

This is a documentation-only Agent Skill for helping coding agents write scripts for SAP Analytics Cloud Optimized Story Experience. The workflow is: an agent reads the skill instructions, routes a known type or member through the reference indexes, then opens relevant API entity pages while composing an answer. The corpus covers visualization, data and planning, application, and export APIs. The graph reflects the README and file tree; sampled source is primarily for validating the frozen reference corpus, not the skill’s runtime workflow.

Main entry points: [`references`](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/tree/main/references) (Entity references), [`SKILL.md`](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/SKILL.md) (Skill instructions), [`references/members-index.md`](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/members-index.md) (Member index), [`references/index.md`](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/index.md) (Type index)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Skill routing"]
  node_instructions["Skill instructions<br/>[SKILL.md]"]
  node_type_index["Type index<br/>[index.md]"]
  node_member_index["Member index<br/>[members-index.md]"]
  node_member_shards["Member shards"]
end

subgraph group_api["API reference"]
  node_entity_refs["Entity references"]
end

subgraph group_capabilities["API domains"]
  node_application["Application APIs<br/>[application.md]"]
  node_datasource["Data APIs<br/>[datasource.md]"]
  node_planning["Planning APIs<br/>[planning.md]"]
  node_visualization["Visualization APIs<br/>[chart.md]"]
  node_export["Export APIs<br/>[exportpdf.md]"]
end

node_agent(("Coding agent"))

node_agent -->|"reads"| node_instructions
node_instructions -->|"routes types"| node_type_index
node_instructions -->|"routes members"| node_member_index
node_member_index -->|"locates member"| node_member_shards
node_agent -->|"looks up type"| node_type_index
node_agent -->|"searches member"| node_member_shards
node_agent -->|"opens details"| node_entity_refs
node_entity_refs --> node_application
node_entity_refs --> node_datasource
node_entity_refs --> node_planning
node_entity_refs --> node_visualization
node_entity_refs --> node_export

click node_instructions "https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/SKILL.md"
click node_type_index "https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/index.md"
click node_member_index "https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/members-index.md"
click node_member_shards "https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/tree/main/references"
click node_entity_refs "https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/tree/main/references"
click node_application "https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/application.md"
click node_datasource "https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/datasource.md"
click node_planning "https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/planning.md"
click node_visualization "https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/chart.md"
click node_export "https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/exportpdf.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_instructions,node_type_index,node_member_index,node_member_shards toneBlue
class node_entity_refs toneAmber
class node_application,node_datasource,node_planning,node_visualization,node_export toneMint
class node_agent toneIndigo
```

## Components

### Skill routing

- [Skill instructions](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/SKILL.md): `SKILL.md`
- [Type index](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/index.md): `references/index.md`
- [Member index](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/members-index.md): `references/members-index.md`
- [Member shards](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/tree/main/references): `references`

### API reference

- [Entity references](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/tree/main/references): `references`

### API domains

- [Application APIs](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/application.md): `references/application.md`
- [Data APIs](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/datasource.md): `references/datasource.md`
- [Planning APIs](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/planning.md): `references/planning.md`
- [Visualization APIs](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/chart.md): `references/chart.md`
- [Export APIs](https://github.com/ikamenetskiy/sap-sac-optimized-story-scripting/blob/main/references/exportpdf.md): `references/exportpdf.md`

### Other components

- **Coding agent**

## Connections

- Coding agent → Skill instructions: reads
- Skill instructions → Type index: routes types
- Skill instructions → Member index: routes members
- Member index → Member shards: locates member
- Coding agent → Type index: looks up type
- Coding agent → Member shards: searches member
- Coding agent → Entity references: opens details
- Entity references → Application APIs
- Entity references → Data APIs
- Entity references → Planning APIs
- Entity references → Visualization APIs
- Entity references → Export APIs
