devex-sdk-design
/devex-sdk-design
Wspiera inżynierię doświadczenia deweloperskiego: projekt SDK, ergonomię API, narzędzia CLI, dokumentację i onboarding programistów.
- Autor
- travisjneuman ↗
- Repozytorium
- .claude ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 25.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wspiera inżynierię doświadczenia deweloperskiego: projekt SDK, ergonomię API, narzędzia CLI, dokumentację i onboarding programistów.
Oryginalny opis (EN)
Developer experience (DX) engineering, SDK design patterns, API ergonomics, CLI tooling design, documentation-driven development, and developer onboarding. Use when designing SDKs, improving API ergonomics, building developer tools, or creating developer documentation.
Jak działa
- SDK Design Principles
- Error Design
- CLI Design
- Documentation-Driven Development
- Developer Onboarding Metrics
- Versioning & Breaking Changes
Podgląd SKILL.md
---
name: devex-sdk-design
description: Developer experience (DX) engineering, SDK design patterns, API ergonomics, CLI tooling design, documentation-driven development, and developer onboarding. Use when designing SDKs, improving API ergonomics, building developer tools, or creating developer documentation.
---
# Developer Experience & SDK Design
## SDK Design Principles
### API Ergonomics
```typescript
// Bad: too many required params, unclear ordering
createUser(name, email, role, true, false, null, 'active');
// Good: builder pattern with named properties
const user = await sdk.users.create({
name: 'Alice',
email: 'alice@example.com',
role: 'admin',
});
// Good: fluent API for complex operations
const results = await sdk.query('users')
.where('role', '=', 'admin')
.orderBy('createdAt', 'desc')
.limit(10)
.execute();
```
### Progressive Disclosure
```typescript
// Simple case: just works with defaults
const client = new MySDK('api-key');
const result = await client.doThing();
// Advanced case: full control available
const client = new MySDK({
apiKey: 'api-key',
baseUrl: 'https://custom.endpoint.com',
timeout: 30000,
retries: { maxAttempts: 3, backoff: 'exponential' },
middleware: [loggingMiddleware, authRefreshMiddleware],
});
```
## Error Design
```typescript
// SDK errors should be structured and actionable
class SDKError extends Error {
constructor(
message: string,
public readonly code: string, // machine-readable
public readonly statusCode?: number, // HTTP status if applicable
public readonly retryable: boolean = false,
public readonly docs?: string, // link to relevant docs
) {
super(message);
}
}
// User sees:
// SDKError: Rate limit exceeded (rate_limit_exceeded)
// Retryable: true, retry after 2.3s
// Docs: https://docs.example.com/rate-limits
```
## CLI Design
### Command Structure
```
mycli <command> <subcommand> [flags]
mycli init # Interactive setup
mycli deploy --env production # Explicit flags
mycli logs --follow # Streaming output
mycli config set key value # Noun-verb pattern
```
### CLI Best Practices
- **Sensible defaults:** Work out of the box, `--flag` for customization
- **Progressive output:** Spinners for long ops, `--verbose` for debug, `--json` for machines
- **Confirmation prompts:** Destructive actions require `--yes` or interactive confirm
- **Shell completion:** Generate for bash/zsh/fish/PowerShell
- **Exit codes:** 0 = success, 1 = error, 2 = usage error
## Documentation-Driven Development
### README Structure (for SDKs)
1. **One-liner:** What it does in one sentence
2. **Quick start:** Copy-paste working example (< 10 lines)
3. **Installation:** Package manager commands
4. **Usage:** Common patterns with code examples
5. **API reference:** Auto-generated from types/docstrings
6. **Error handling:** Common errors and solutions
7. **Migration guide:** Breaking changes between versions
### Code Examples
- Every public method needs a usage example
- Examples must compile/run — test them in CI
- Show the happy path first, then edge cases
- Include expected output in comments
## Developer Onboarding Metrics
- **Time to Hello World:** < 5 minutes from docs to working code
- **Time to first API call:** < 10 minutes including auth setup
- **Copy-paste success rate:** Quick start examples work on first try
- **Error resolution time:** Error messages lead directly to fix
## Versioning & Breaking Changes
- Semantic versioning strictly followed
- Deprecation warnings 2 minor versions before removal
- Migration codemods for major version upgrades
- Changelog with every release (keep-a-changelog format)
Wersje
W bazie nie ma innych skilli o nazwie devex-sdk-design.
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki c7c7331c080e (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 3 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 85plan-devex-review
Przegląda plan powierzchni dla deweloperów, takiej jak API, CLI, SDK lub konfiguracja, pod kątem ergonomii, komunikatów błędów i zgodności wersji. - 100dx-review
Przeprowadza audyt doświadczenia deweloperskiego oparty na dowodach: testuje onboarding, ergonomię API i CLI, błędy, dokumentację i aktualizacje, a wyniki ocenia z etykietami TESTED, PARTIAL lub INFERRED. - 90port-review
Recenzuje istniejące SDK pod kątem idiomatycznej jakości, spójności i ergonomii pracy programisty. - 100devex
Pomaga poprawiać przepływy pracy deweloperów: potoki CI/CD, czas budowania, lokalne środowisko, narzędzia, dokumentację dla inżynierów i pomiar produktywności. - 90schema-review
Przegląda schemat API pod kątem spójności, kompletności i wygody pracy programistów. - 100api-documenter
Tworzy dokumentację API w OpenAPI 3.1 z interaktywnymi stronami, generuje pakiety SDK i buduje portal dla deweloperów.