Token导航 LogoToken导航

Agent Skill · 前端设计

hashnode-api(hashnode API 文档)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

hashnode-api 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 5,315。

总安装 698周安装 30GitHub Stars 31下载 245核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hashnode-api(hashnode API 文档)
来源仓库:https://github.com/rawveg/skillsforge-marketplace
仓库路径:skills/hashnode-api
安装命令:
npx skills add https://github.com/rawveg/skillsforge-marketplace --skill hashnode-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rawveg/skillsforge-marketplace --skill hashnode-api

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

辅助梳理 Hashnode 博客平台的接口结构与集成方式,生成 OpenAPI 规范草稿。适合前后端联调、文档自动生成和第三方服务接入参考。通过 GitHub 安装,需了解平台鉴权机制(如 OAuth)与速率限制规则。生成的接口描述应基于实际使用案例,避免虚构字段或行为。

hashnode-api 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/hashnode-api

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/rawveg/skillsforge-marketplace --skill hashnod…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

hashnode-api 怎么安装?

在终端执行 npx skills add https://github.com/rawveg/skillsforge-marketplace --skill hashnode-api。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

hashnode-api 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

hashnode-api 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

hashnode-api 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

hashnode-api 用的人多吗?

公开数据是累计安装 698 次,近一周安装 30 次,下载 245 次,GitHub 31 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

hashnode-api 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
hashnode-api

hashnode API 文档 · 本页

69831接触敏感数据MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

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

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

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

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)

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)

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)

query SeriesCount {
  publication(host: "engineering.hashnode.com") {
    id
    seriesList(first: 0) {
      totalDocuments
    }
  }
}

Result:

{
  "data": {
    "publication": {
      "seriesList": {
        "totalDocuments": 3
      }
    }
  }
}

Use totalDocuments field to get counts without fetching all data.

7. Fetch Posts from a Series

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

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

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)

query Publication($first: Int!, $host: String) {
  publication(host: $host) {
    id
    drafts(first: $first) {
      edges {
        node {
          id
          title
        }
      }
    }
  }
}

Headers:

{
  "Authorization": "your-personal-access-token-here"
}

Variables:

{
  "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://gql.hashnode.com to test queries before implementing
  • Monitor cache: Watch cache HIT/MISS status to optimize your queries
  • Read error messages: GraphQL errors include helpful details in the extensions.code field

Common Use Cases

Building a Blog Frontend

  1. Fetch publication metadata
  2. Get post list with pagination
  3. Display individual posts by slug
  4. Implement series/category navigation
  5. Show static pages (about, contact)

Content Management Dashboard

  1. Authenticate with PAT
  2. List and manage drafts
  3. Publish/update posts
  4. Schedule content
  5. Monitor analytics

Newsletter Integration

  1. Subscribe/unsubscribe users
  2. Fetch subscriber counts
  3. Manage email preferences
  4. Track engagement metrics

Migration from Legacy API

  1. Update endpoint from api.hashnode.com to gql.hashnode.com
  2. Convert REST calls to GraphQL queries
  3. Update authentication mechanism (check docs)
  4. Adjust pagination from old format to cursor/offset-based
  5. Update error handling for new error codes

Resources

Official Documentation

references/

The api.md reference file contains:

  • Complete API specification
  • All available queries and mutations
  • Detailed parameter descriptions
  • Authentication requirements
  • Code examples with proper syntax
  • Links to original documentation
  • Comprehensive error code reference

Important Notes

  • Always request the id field on objects to avoid stale cached data
  • Rate limits are generous but respect them for production apps
  • Cache behavior: Most responses are cached; mutations automatically purge related cache
  • Breaking changes are rare and announced well in advance on Discord
  • Legacy API is shut down - use gql.hashnode.com only

Troubleshooting

Getting UNAUTHENTICATED errors?

  • Verify your Personal Access Token is valid
  • Check the Authorization header is set correctly
  • Ensure you're requesting fields that require auth (drafts, email, etc.)

Not seeing latest data?

  • Always request the id field to avoid stale cached data
  • Check if response is HIT/MISS in playground

Query validation failed?

  • Verify your GraphQL syntax in the playground first
  • Check required parameters are provided
  • Ensure field names match the schema

Rate limit reached?

  • Queries: 20k/min is very generous - optimize your queries
  • Mutations: 500/min limit - batch operations where possible
  • Use caching on your end to reduce API calls

Updating

This skill was automatically generated from official Hashnode documentation. To refresh with updated documentation, regenerate the skill using the latest docs from https://apidocs.hashnode.com.

平台分布

Claude Code

30.13%
按下载量换算74

Antigravity

25.96%
按下载量换算64

windsurf

19.08%
按下载量换算47

trae

11.41%
按下载量换算28

Codex

8.34%
按下载量换算20

OpenCode

3.37%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills