You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Search the SpawnDock TMA knowledge API for Telegram Mini App and SpawnDock-specific implementation guidance. Use when Codex needs authoritative TMA workflow details, Telegram WebApp API usage, SpawnDock TMA template behavior, or wants to verify how a feature should be built for Telegram Mini Apps before answering or coding.
4
+
---
5
+
6
+
# TMA Knowledge Search
7
+
8
+
Use this skill when local repo context is not enough for a Telegram Mini App question and the answer should come from the SpawnDock TMA knowledge base.
9
+
10
+
## Workflow
11
+
12
+
1. Form a focused English query about the TMA implementation detail you need.
13
+
2. Run `scripts/search_tma_knowledge.py "<query>"`.
14
+
3. Read the returned `answer` first, then inspect any `sources`.
15
+
4. Use the API result as the primary TMA-specific reference in your answer or implementation plan.
16
+
17
+
## Query Rules
18
+
19
+
- Prefer English queries even if the user writes in another language.
20
+
- Ask about one concrete problem at a time.
21
+
- Include key TMA terms in the query: `Telegram Mini App`, `WebApp`, `MainButton`, `theme`, `viewport`, `SpawnDock`, `Next.js template`, and similar domain words when relevant.
22
+
- Re-query with a narrower prompt if the first result is generic.
23
+
- Avoid unnecessary repeat calls: the endpoint can rate-limit quickly on the free tier.
24
+
25
+
## Output Handling
26
+
27
+
- Treat the API response as TMA-specific guidance, not as a generic web best-practices source.
28
+
- If the API returns no useful sources, say that clearly and fall back to repo code or official Telegram docs as needed.
29
+
- Keep citations lightweight: mention the knowledge API result and summarize the relevant guidance rather than dumping raw JSON.
30
+
31
+
## Resources
32
+
33
+
-`scripts/search_tma_knowledge.py`: sends the POST request and prints a readable summary or raw JSON.
34
+
- The script automatically uses `SPAWNDOCK_API_TOKEN`, `API_TOKEN`, or the nearest `spawndock.config.json``apiToken` when available.
35
+
-`references/api.md`: request and response contract for the knowledge endpoint.
0 commit comments