cap-trivialisted
Install: claude install-skill williamcorrea23/sap-router-skill
## What I do
Generate a short interactive CAP trivia quiz. Pick (or receive) a topic,
search the CAP docs for accurate source material, write 3 multiple-choice
questions, and present them to the user using the `question` tool so they
appear as interactive choices — not just text.
## Inputs (optional)
The user may provide:
- **topic** — e.g. "CDS modeling", "authorization", "databases", "MTX",
"OData", "event queues", "handlers", "testing"
- **difficulty** — `beginner`, `intermediate`, or `advanced`
If neither is given, pick a topic at random from the list above and choose
`intermediate` difficulty.
## Steps
### 1. Resolve topic and difficulty
If the user provided a topic and/or difficulty, use those. Otherwise, pick
randomly. Do not output anything at this step — go straight to searching.
### 2. Search the CAP docs
Use the `cds-mcp_search_docs` tool to find accurate, specific content for
the chosen topic. Run 2–3 searches to gather enough material for varied
questions. Good search queries:
| Topic | Example search queries |
|-------|----------------------|
| CDS modeling | "entity aspects associations managed", "localized temporal" |
| Authorization | "restrict requires roles", "instance-based authorization" |
| Databases | "sqlite hana postgres plugin cap-js", "schema evolution deploy" |
| OData | "odata draft enabled fiori", "odata actions functions" |
| Event queues | "cds queued transactional event queue inbox" |
| Handlers | "srv.on before after handler phas