Toolverse
All skills

method-shorthand-jsdoc

by EpicenterHQ

Move helper functions into return objects using method shorthand for proper JSDoc preservation. Use when factory functions have internal helpers that should expose documentation to consumers, or when hovering over returned methods shows no JSDoc.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Mobile
Views
1

About this skill

Move helper functions into return objects using method shorthand for proper JSDoc preservation. Use when factory functions have internal helpers that should expose documentation to consumers, or when hovering over returned methods shows no JSDoc.

How to use

  1. Zidentyfikuj funkcję fabrykującą, która zwraca obiekt z metodami. Sprawdź, czy wewnątrz funkcji masz funkcje pomocnicze (helpery), które są używane tylko przez metody zwracane w obiekcie — to są kandydaci do przeniesienia.

  2. Skopiuj definicję funkcji pomocniczej wraz z jej komentarzem JSDoc. Upewnij się, że masz pełny tekst dokumentacji, w tym @param, @returns i inne adnotacje.

  3. W obiekcie zwracanym zastąp przypisanie funkcji (np. getEpoch) skrótem metody — przenieś ciało funkcji bezpośrednio do definicji metody w obiekcie, zachowując komentarz JSDoc tuż nad nią.

  4. Zaktualizuj wszystkie miejsca w kodzie, gdzie funkcja pomocnicza była wywoływana — zmień je na wywołania przez this lub bezpośrednie odwołania do metody w obiekcie.

  5. Przetestuj w swoim IDE — najdź kursor na metodę zwracaną z fabryki i sprawdź, czy tooltip wyświetla dokumentację JSDoc. Jeśli dokumentacja jest widoczna, zmiana została zastosowana poprawnie.

  6. Powtórz proces dla pozostałych funkcji pomocniczych, które powinny być dostępne konsumentom kodu z dokumentacją.

Related skills

claude-mobile-ios-testing

by krzemienski

Use when testing iOS apps on simulator, capturing screenshots for validation gates, automating UI testing with expo-mcp and xc-mcp, or verifying visual correctness - combines expo-mcp autonomous testing (React Native level) with xc-mcp simulator management (iOS level)

Mobile
15111

garmin-connect

by openclaw

Syncs daily health and fitness data from Garmin Connect into markdown files. Provides sleep, activity, heart rate, stress, body battery, HRV, SpO2, and weight data.

Mobile
37119

senior-architect

by alirezarezvani

Comprehensive software architecture skill for designing scalable, maintainable systems using ReactJS, NextJS, NodeJS, Express, React Native, Swift, Kotlin, Flutter, Postgres, GraphQL, Go, Python. Includes architecture diagram generation, system design patterns, tech stack

Mobile
184296

app-store-optimization

by davila7

Complete App Store Optimization (ASO) toolkit for researching, optimizing, and tracking mobile app performance on Apple App Store and Google Play Store

Mobile
1153

flutter-expert

by sickn33

Master Flutter development with Dart 3, advanced widgets, and multi-platform deployment. Handles state management, animations, testing, and performance optimization for mobile, web, desktop, and embedded platforms. Use PROACTIVELY for Flutter architecture, UI implementation, or

Mobile
54112

xcodebuildmcp

by cameroncooke

Official skill for XcodeBuildMCP. Use when doing iOS/macOS/watchOS/tvOS/visionOS work (build, test, run, debug, log, UI automation).

Mobile
2225