PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Skill Details

Runtime
(claude-4-7-opus)
Example user message
[userMessage]: Generate docs for the selected fetchUserProfile function.
Example agent response
## Overview This asynchronous function retrieves user profile data from the backend API using a provided user ID and handles authentication token inclusion. ## Inputs/Parameters | Parameter | Type | Description | | :--- | :--- | :--- | | `userId` | `string` | The unique identifier of the user. | | `authToken` | `string` | Bearer token for API authorization. | ## Returns Returns a `Promise<UserProfile>` object containing user details, or throws a `NetworkError` if the request fails. ## Logic/Workflow * Validates if `userId` and `authToken` are present. * Constructs the API endpoint URL. * Executes a `GET` request with the authorization header. * Parses the JSON response and returns the data. ## Edge Cases * Throws an error if the token is expired (401 Unauthorized). * Returns `null` if the user ID is not found in the database.
↗ Cursor Skill

Cursor Code Doc Architect

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this skill, you agree to our terms of service
CLAUDE-4-7-OPUS
Tested icon
Guide icon
Free credits icon
Instantly generate production-ready README documentation and clear explanations for any complex code snippet or file. Stop wasting hours writing docs manually. This skill forces Cursor to analyze your logic, identify parameters/returns, and output perfectly structured Markdown documentation ready for GitHub.
...more
Added 2 weeks ago
Report
Browse Marketplace