Api Design
Api Design teaches you how to shape coherent public APIs for TypeScript, JavaScript, React, and React Native libraries before implementation. It covers designing explicit types, stable semantics, and clean public contracts while avoiding common pitfalls like untyped dictionaries and boolean clusters. Use this skill to review exported functions, classes, hooks, and options objects—or pair it with build-nitro-modules when working with Nitro-backed libraries.
Api Design teaches best practices for building predictable, well-typed public APIs in TypeScript and JavaScript libraries.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-27
Api Design teaches best practices for building predictable, well-typed public APIs in TypeScript and JavaScript libraries. Api Design teaches you how to shape coherent public APIs for TypeScript, JavaScript, React, and React Native libraries before implementation. It covers designing explicit types, stable semantics, and clean public contracts while avoiding common pitfalls like untyped dictionaries and boolean clusters. Use this skill to review exported functions, classes, hooks, and options objects—or pair it with build-nitro-modules when working with Nitro-backed libraries.
Use it when
- Api Design covers API design best practices by emphasizing explicit typing, stable semantics, and clean public contracts.
- Api Design addresses REST and architectural patterns for APIs as a core focus area.
Install
margelo/react-native-skills/api-design
generated, unverified - the skill's exact subdirectory could not be determined; check the repository on GitHub
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What does Api Design teach about creating public APIs?
Api Design teaches you how to shape coherent public APIs for TypeScript, JavaScript, React, and React Native libraries before implementation. It focuses on designing explicit types, stable semantics, and clean public contracts while helping you avoid common pitfalls like untyped dictionaries and boolean clusters. Use this skill to review exported functions, classes, hooks, and options objects.
How do I design an API that follows best practices?
Api Design covers API design best practices by emphasizing explicit typing, stable semantics, and clean public contracts. The skill guides you through reviewing exported functions, classes, hooks, and options objects to ensure they form coherent interfaces. It helps you identify and avoid anti-patterns such as untyped dictionaries and boolean clusters that undermine maintainability.
What REST API design patterns does Api Design cover?
Api Design addresses REST and architectural patterns for APIs as a core focus area. The skill teaches you how to design scalable and maintainable API endpoints using established patterns and conventions. It provides guidance on structuring your public contracts so they remain stable and coherent across TypeScript, JavaScript, React, and React Native implementations.
Can Api Design help with API versioning and standards?
Yes, Api Design includes guidance on API versioning and standards. The skill helps you establish stable semantics and clean public contracts that support versioning strategies. When designing your exported functions, classes, hooks, and options objects, Api Design ensures your API adheres to recognized standards and conventions for long-term maintainability.
Should I use Api Design with other skills for library development?
Api Design works well alongside build-nitro-modules when working with Nitro-backed libraries. Use Api Design to review and refine your public API surface—exported functions, classes, hooks, and options objects—before implementation. This pairing ensures both the design coherence and the build infrastructure of your library are optimized together.
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Learn API design best practices and principles”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
This skill guides you through building robust Swift code with strong API boundaries and idiomatic Apple-platform patterns. It emphasizes type-safe design to make invalid states unrepresentable, choosing a single concurrency model upfront, and keeping synchronous operations cheap and nonblocking. Use it when working with Foundation APIs, async/await, actors, or Swift-backed Nitro Module implementations.
This skill covers the complete workflow for creating React Native Nitro Modules: scaffolding monorepos with Nitrogen, authoring TypeScript HybridObject specs, generating native boilerplate, implementing platform code in C++, Swift, and Kotlin, and preparing modules for publication. Learn how the codegen pipeline transforms `.nitro.ts` specs into native bindings, manage HybridObject state and lifecycle, design factory methods for native resources, and integrate example apps and testing. Pair with api-design for general library shape and with language-specific skills (swift, kotlin, cpp) for platform implementation details.
This skill guides you through building robust C++ code with emphasis on type-safe API design, clear ownership patterns, and maintainable file organization. It covers RAII principles, async boundaries, and integration with React Native Nitro Modules, helping you write native code that's predictable and easy to review.
Ts Library provides a collection of TypeScript utilities tailored for Vue and Nuxt ecosystems. Built to accelerate development workflows, it offers ready-made solutions for frequent coding patterns you'll encounter in modern web applications. Integrate it into your projects to reduce boilerplate and focus on building features.
This skill handles the end-to-end automation of package distribution and versioning tasks. Integrate it into your CI/CD pipeline to eliminate repetitive publishing steps, manage releases systematically, and keep your artifact repositories in sync across environments.
Master native mobile development for iOS and Android platforms using contemporary frameworks and best practices. This skill equips you with hands-on guidance for architecting, building, and deploying production-ready mobile applications across both ecosystems.