Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

tune-copilot-teams-extension

/tune-copilot-teams-extension

Dostraja rozszerzenie Copilot dla Teams: układy Adaptive Cards, grupowanie zapytań Graph API, cache i koszt interakcji.

Repozytorium
frootai ↗
Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
3
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Dostraja rozszerzenie Copilot dla Teams: układy Adaptive Cards, grupowanie zapytań Graph API, cache i koszt interakcji.

Oryginalny opis (EN)

Tune Copilot Teams Extension — optimize Adaptive Card layouts, Graph API batching, response caching, SSO token management, cost per interaction. Use when: tune, optimize.

Jak działa

  1. When to Use
  2. Tuning Dimensions
  3. Production Readiness Checklist
  4. Output: Tuning Report
Sekcje z nagłówków SKILL.md, w oryginale · 109 linii, 739 słów
Podgląd SKILL.md
---
name: tune-copilot-teams-extension
description: "Tune Copilot Teams Extension — optimize Adaptive Card layouts, Graph API batching, response caching, SSO token management, cost per interaction. Use when: tune, optimize."
---

# Tune Copilot Teams Extension

## When to Use
- Optimize Adaptive Card layouts for better UX
- Improve Graph API performance with batching and caching
- Tune bot response quality and latency
- Configure SSO token caching and refresh strategy
- Reduce cost per interaction

## Tuning Dimensions

### Dimension 1: Adaptive Card Optimization

| Aspect | Default | Optimized | Impact |
|--------|---------|-----------|--------|
| Card complexity | 10+ elements | 5-7 elements | Faster render, better mobile |
| Image resolution | Original | 400px max width | Faster load |
| Action buttons | 5+ | 3 max (primary/secondary/dismiss) | Clearer UX |
| FactSet usage | Full details | Top 3-5 facts | Less scroll |
| Card version | 1.3 | 1.5 | Latest Teams features |

**Card design rules**:
- Mobile-first: test on phone before desktop
- Max 3 action buttons per card
- Use `wrap: true` on all TextBlocks
- FactSet for key-value data (not tables)
- Fallback text for clients that can't render cards

### Dimension 2: Graph API Performance

| Strategy | Before | After | Improvement |
|----------|--------|-------|-------------|
| Individual calls | 5 calls × 200ms = 1s | — | Baseline |
| Batch requests (`$batch`) | 1 call × 300ms | 70% faster | 700ms saved |
| Response caching (Redis) | — | Cache 5min TTL | 95% faster for repeated |
| Delta queries | Full data each time | Only changes | 80% less data |
| Select/expand fields | Return all fields | Only needed fields | 50% less payload |

```bash
# Example: Batch 3 Graph calls into 1
POST https://graph.microsoft.com/v1.0/$batch
{
  "requests": [
    { "id": "1", "method": "GET", "url": "/me/profile" },
    { "id": "2", "method": "GET", "url": "/me/drive/recent" },
    { "id": "3", "method": "GET", "url": "/me/messages?$top=5" }
  ]
}
```

### Dimension 3: Response Quality Tuning

| Parameter | Default | Range | Impact |
|-----------|---------|-------|--------|
| System prompt length | 500 tokens | 200-800 | Shorter = faster, longer = more context |
| Temperature | 0.3 | 0.1-0.5 | Lower = more consistent, higher = more creative |
| Max response tokens | 500 | 200-1000 | Cards show summaries, link to details |
| Knowledge grounding | None | SharePoint/Dataverse | More accurate domain answers |
| Citation format | None | "[Source: doc name]" | User trust + verification |

### Dimension 4: SSO Token Management

| Strategy | Implementation | Benefit |
|----------|---------------|---------|
| Token caching | Store in Bot State (Cosmos DB) | Avoid re-auth on every message |
| Refresh proactively | Refresh at 80% of expiry | No failed calls from expired tokens |
| Scope minimization | Request only needed scopes | Faster consent, less risk |
| Conditional access | Handle MFA challenges gracefully | No broken flows for MFA users |

### Dimension 5: Cost Per Interaction

| Component | Cost Driver | Optimization |
|-----------|------------|-------------|
| Bot Service | Messages processed | Free tier: 10K messages/mo |
| App Service | Compute hours | B1 tier sufficient for <1000 users |
| Azure OpenAI | Tokens per response | Cache frequent responses, use gpt-4o-mini |
| Graph API | API calls | Batch + cache = 70% reduction |
| Cosmos DB (state) | RU/s | Serverless for low volume |

**Monthly cost estimate** (1000 active users, 10 messages/user/day):
| Component | Cost |
|-----------|------|
| Bot Service (Free tier, up to 10K) | $0 |
| App Service (B1) | $55/mo |
| Azure OpenAI (gpt-4o-mini) | $15/mo |
| Cosmos DB (Serverless) | $5/mo |
| **Total** | **~$75/mo** |

## Production Readiness Checklist
- [ ] Adaptive Cards render on all Teams clients (desktop/mobile/web)
- [ ] SSO working without user prompts
- [ ] Graph API using batch + cache (< 3s response time)
- [ ] Graph permissions are least-privilege verified
- [ ] Throttling handled with exponential backoff
- [ ] Bot state persisted in Cosmos DB
- [ ] Proactive notifications tested
- [ ] Error messages user-friendly (not stack traces)
- [ ] Teams admin approval obtained
- [ ] Analytics tracking user engagement metrics

## Output: Tuning Report
After tuning, compare:
- Response latency improvement
- Graph API call reduction (batch + cache savings)
- Adaptive Card engagement (click-through on actions)
- Cost per interaction change
- User satisfaction delta
Pliki w paczce (3)
  • SKILL.lean.md 4 KB
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB

Wersje

W bazie nie ma innych skilli o nazwie tune-copilot-teams-extension.

Migawka bazy z 28.10.2026 · wersja paczki deba7f45865a (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100evaluate-copilot-teams-extension
    Ocenia rozszerzenie Copilot dla Teams: przepływ SSO, uprawnienia Graph API, renderowanie Adaptive Cards, jakość odpowiedzi i odporność na throttling.
  • 100deploy-copilot-teams-extension
    Wdraża rozszerzenie Copilot dla Teams: manifest aplikacji Teams, Bot Service, SSO, Adaptive Cards, Microsoft Graph API i zatwierdzenie przez administratora.
  • 95teams-adaptive-cards
    Buduje, sprawdza i naprawia karty Adaptive Cards dla Microsoft Teams, także przez bota, webhook i Graph.
  • 100teams-dev
    Wspiera programowanie dla Microsoft Teams: boty, message extensions, osadzone aplikacje webowe, Adaptive Cards, okna dialogowe, SSO, infrastrukturę oraz Teams Developer CLI i SDK.
  • 100teams-expert
    Doradza w tworzeniu botów Microsoft Teams, zakładek, rozszerzeń wiadomości, kart adaptacyjnych, integracji Graph API i wdrażaniu aplikacji Teams.
  • 100teams-app-developer
    Buduje, testuje i wdraża aplikacje i agentów Microsoft 365 dla Teams i Copilota: tworzenie projektu, testy lokalne, wdrożenie w chmurze, diagnostyka i migracja ze Slacka do Teams.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.