hashnode-api
Hashnode GraphQL API documentation for creating, managing, and querying blogs, posts, publications, and user data on the Hashnode platform
What this skill does
# Hashnode API Skill
Comprehensive assistance with the Hashnode GraphQL API for blog management, content creation, and user interaction on the Hashnode platform.
## When to Use This Skill
This skill should be triggered when:
- Building integrations with Hashnode blogs or publications
- Querying Hashnode posts, users, or publication data
- Creating, publishing, or managing blog posts via API
- Implementing authentication with Hashnode Personal Access Tokens
- Working with GraphQL queries or mutations for Hashnode
- Debugging Hashnode API responses or error codes
- Setting up pagination (cursor-based or offset-based) for Hashnode data
- Implementing newsletter subscriptions, comments, or user interactions
- Migrating from the legacy Hashnode API to the new GQL endpoint
## Key Concepts
### API Endpoint
All Hashnode API requests go through a single GraphQL endpoint:
- **Endpoint:** `https://gql.hashnode.com` (POST only)
- **Playground:** Visit the same URL in a browser to explore the API
- **Legacy API:** `https://api.hashnode.com` is discontinued - migrate to new endpoint
### Authentication
- Most queries work without authentication
- Sensitive fields (drafts, email, etc.) require authentication
- All mutations require authentication
- **Authentication method:** Add `Authorization` header with your Personal Access Token (PAT)
- **Get your PAT:** https://hashnode.com/settings/developer → "Generate New Token"
### Rate Limits
- **Queries:** 20,000 requests per minute
- **Mutations:** 500 requests per minute
### Caching
- Almost all query responses are cached on the Edge
- Cache is automatically purged when you mutate data
- Check cache status in playground (bottom right: HIT/MISS)
- **Important:** Always request the `id` field to avoid stale data
### Error Codes
Common GraphQL error codes:
- `GRAPHQL_VALIDATION_FAILED` - Invalid query structure
- `UNAUTHENTICATED` - Missing or invalid auth token
- `FORBIDDEN` - Insufficient permissions
- `BAD_USER_INPUT` - Invalid input data
- `NOT_FOUND` - Resource doesn't exist
## Quick Reference
### 1. Fetch Publication Details
```graphql
query Publication {
publication(host: "blog.developerdao.com") {
id
isTeam
title
about {
markdown
}
}
}
```
Get basic information about a publication by its hostname.
### 2. Fetch Recent Blog Posts
```graphql
query Publication {
publication(host: "blog.developerdao.com") {
id
isTeam
title
posts(first: 10) {
edges {
node {
id
title
brief
url
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
```
Retrieve the latest 10 posts from a publication with cursor-based pagination support.
### 3. Fetch a Single Article by Slug
```graphql
query Publication {
publication(host: "blog.developerdao.com") {
id
post(slug: "the-developers-guide-to-chainlink-vrf-foundry-edition") {
id
title
content {
markdown
html
}
}
}
}
```
Get full content of a specific article using its slug and publication hostname.
### 4. Cursor-Based Pagination (Infinite Scroll)
```graphql
query Publication {
publication(host: "blog.developerdao.com") {
id
posts(
first: 10
after: "NjQxZTc4NGY0M2NiMzc2YjAyNzNkMzU4XzIwMjMtMDMtMjVUMDQ6Mjc6NTkuNjQxWg=="
) {
edges {
node {
id
title
brief
url
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
```
Use `endCursor` from previous response as `after` parameter to fetch next page.
### 5. Offset-Based Pagination (Traditional Pages)
```graphql
query Followers {
user(username: "SandroVolpicella") {
id
followers(pageSize: 10, page: 1) {
nodes {
id
username
}
pageInfo {
hasNextPage
hasPreviousPage
previousPage
nextPage
}
}
}
}
```
Navigate between pages using explicit page numbers.
### 6. Get Entity Count (Series Count Example)
```graphql
query SeriesCount {
publication(host: "engineering.hashnode.com") {
id
seriesList(first: 0) {
totalDocuments
}
}
}
```
Result:
```json
{
"data": {
"publication": {
"seriesList": {
"totalDocuments": 3
}
}
}
}
```
Use `totalDocuments` field to get counts without fetching all data.
### 7. Fetch Posts from a Series
```graphql
query Publication {
publication(host: "lo-victoria.com") {
id
series(slug: "graphql") {
id
name
posts(first: 10) {
edges {
node {
id
title
}
}
}
}
}
}
```
Get all posts belonging to a specific series.
### 8. Fetch Static Pages
```graphql
query Publication {
publication(host: "lo-victoria.com") {
id
staticPages(first: 10) {
edges {
node {
id
title
slug
}
}
}
}
}
```
Retrieve custom static pages like "About", "Contact", etc.
### 9. Fetch Single Static Page
```graphql
query Publication {
publication(host: "lo-victoria.com") {
id
staticPage(slug: "about") {
id
title
content {
markdown
}
}
}
}
```
Get content of a specific static page by slug.
### 10. Authentication Example - Get Drafts (Requires Auth)
```graphql
query Publication($first: Int!, $host: String) {
publication(host: $host) {
id
drafts(first: $first) {
edges {
node {
id
title
}
}
}
}
}
```
**Headers:**
```json
{
"Authorization": "your-personal-access-token-here"
}
```
Variables:
```json
{
"first": 10,
"host": "your-blog-host.hashnode.dev"
}
```
Drafts can only be queried by the publication owner with valid authentication.
## Reference Files
This skill includes comprehensive documentation in `references/`:
- **api.md** - Complete Hashnode GraphQL API documentation including:
- GQL Playground overview
- Caching behavior and best practices
- Rate limits and authentication
- Status codes and error handling
- Pagination methods (cursor-based and offset-based)
- Migration guide from legacy API
- Query and mutation examples
- Full list of available queries and mutations
Use the reference files for detailed information about specific API features, error handling patterns, and advanced query techniques.
## Working with This Skill
### For Beginners
Start by understanding the core concepts above, then explore:
1. **API Endpoint:** Test queries in the playground at https://gql.hashnode.com
2. **Authentication:** Generate your PAT at https://hashnode.com/settings/developer
3. **Basic Queries:** Try fetching publication details and blog posts first
4. **Pagination:** Start with cursor-based pagination for simple infinite scroll
### For Intermediate Users
Focus on:
1. **Authentication flows:** Implement PAT-based auth in your application
2. **Error handling:** Handle GraphQL error codes properly
3. **Pagination strategies:** Choose between cursor-based and offset-based based on your UI needs
4. **Caching considerations:** Always request `id` fields to avoid stale data
5. **Content extraction:** Work with both markdown and HTML content formats
### For Advanced Users
Explore:
1. **Mutations:** Publishing posts, managing drafts, updating content
2. **Complex queries:** Nested queries with multiple levels (publication → series → posts)
3. **Batch operations:** Optimize API calls with GraphQL field selection
4. **Webhook integration:** Handle Hashnode webhook events
5. **Rate limit optimization:** Implement efficient request batching
### Navigation Tips
- **Start broad → go deep:** Begin with publication queries, then drill into specific posts/series
- **Check authentication:** If you get `UNAUTHENTICATED` errors, verify your PAT is in the Authorization header
- **Test in playground:** Use https://Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.