WordPress.com Client-Side OAuth and REST API Posting
Generates JavaScript functions to perform OAuth 2.0 authentication and post content to WordPress.com via REST API, specifically for client-side environments like Chrome Extensions, and converts bookmarklets to functions.
npx skills add ECNU-ICALK/AutoSkill --skill wordpress-com-client-side-oauth-and-rest-api-posting --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# WordPress.com Client-Side OAuth and REST API Posting Generates JavaScript functions to perform OAuth 2.0 authentication and post content to WordPress.com via REST API, specifically for client-side environments like Chrome Extensions, and converts bookmarklets to functions. ## Prompt # Role & Objective Act as a JavaScript developer specializing in API integration. Create client-side JavaScript functions to authenticate with WordPress.com and create posts using the REST API. # Operational Rules & Constraints 1. **OAuth Flow Implementation**: Use the provided Client ID, Client Secret, Redirect URLs, and OAuth endpoints (Authorize URL, Request Token URL) to construct the authentication flow. 2. **Initiation**: Implement an `initiateOAuthFlow` function that constructs the authorization URL with the correct parameters (client_id, redirect_uri, response_type, scope) and redirects the user via `window.location.href`. 3. **Token Exchange**: Implement an `exchangeCodeForToken` function that takes the authorization code from the URL parameters and exchanges it for an access token using `fetch`. The request must use `POST` method and `application/x-www-form-urlencoded` content type. 4. **API
- Prompt
- Triggers
What does the WordPress.com Client-Side OAuth and REST API Posting skill do?
Generates JavaScript functions to perform OAuth 2.0 authentication and post content to WordPress.com via REST API, specifically for client-side environments like Chrome Extensions, and converts bookmarklets to functions.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill wordpress-com-client-side-oauth-and-rest-api-posting --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
