Token导航 LogoToken导航

Agent Skill · 开发规范

perigon-api-best-practices(perigon API 最佳实践)

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

perigon-api-best-practices 是开发规范类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在开发规范类的 1,265 个 Skill 里排第 1,043。

总安装 269周安装 11GitHub Stars 2下载 87核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/goperigon/skills --skill perigon-api-best-practices

这个 Skill 是做什么的

开发规范类 Skill 用来统一代码风格、目录结构和评审口径,产出多为检查清单或改写建议。

遵循 Perigon 平台的 API 设计规范与集成标准。帮助开发者统一接口风格、错误码与分页机制。通过 GitHub 仓库安装,提供 OpenAPI 模板与示例代码。实际部署前应与后端服务对齐字段含义与状态流转。

perigon-api-best-practices 属于开发规范类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/perigon-api-best-practices

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

perigon-api-best-practices 怎么安装?

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

perigon-api-best-practices 支持哪些 AI 工具?

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

perigon-api-best-practices 需要什么权限?

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

perigon-api-best-practices 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

perigon-api-best-practices 用的人多吗?

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

perigon-api-best-practices 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发规范类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
vercel-react-best-practices

Vercel React 最佳实践 · Codex、Claude

8,490,72025,918操作浏览器MIT通过
web-design-guidelines

网页设计指南 · Codex、Claude

6,686,01625,885需要联网MIT有提醒
remotion-best-practices

Remotion 最佳实践 · Codex、Claude

6,505,6323,027操作浏览器MIT有提醒
supabase-postgres-best-practices

Supabase Postgres 最佳实践 · Codex、Claude

3,175,5232,030需要联网MIT通过
next-best-practices

Next.js 最佳实践 · Codex、Claude

1,848,240841操作浏览器MIT通过
perigon-api-best-practices

perigon API 最佳实践 · 本页

2692接触敏感数据未明确有提醒

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

SKILL.md 原文

Perigon API Best Practices

Comprehensive guide for building with the Perigon News Intelligence API. Covers all endpoints, query patterns, and integration best practices.

When to Apply

Reference these guidelines when:

  • Searching or filtering news articles by keyword, topic, category, date, source, sentiment, or location
  • Tracking evolving news stories and clustered article groups
  • Generating AI-powered summaries of news coverage
  • Performing semantic/vector search over news articles or Wikipedia content
  • Querying the Wikipedia knowledge base for structured page data
  • Looking up people, companies, journalists, or media sources
  • Browsing available topics and categories
  • Building dashboards, alerts, or monitoring tools powered by news data
  • Integrating Perigon into any application or AI agent workflow

API Overview

Base URL: https://api.perigon.io

EndpointMethodPurpose
/v1/articles/allGETSearch and filter news articles with rich parameters
/v1/stories/allGETClustered news stories with summaries and metadata
/v1/stories/historyGETStory evolution history with changelogs and snapshots
/v1/summarizePOSTAI-powered summarization over matched articles
/v1/vector/news/allPOSTSemantic/vector search over news articles
/v1/wikipedia/allGETSearch and filter Wikipedia pages
/v1/vector/wikipedia/allPOSTSemantic/vector search over Wikipedia content
/v1/people/allGETPeople mentioned in the news (650k+ database)
/v1/companies/allGETCompany data with financial metadata
/v1/journalists/allGETJournalist profiles (230k+ database)
/v1/journalists/{id}GETSingle journalist by ID
/v1/sources/allGETMedia sources database (200k+ sources)
/v1/topics/allGETTopics taxonomy browser

Authentication

The API key can be passed in two ways:

  1. Query parameter: ?apiKey=YOUR_API_KEY
  2. Header: x-api-key: YOUR_API_KEY

Best practices:

  • Store the API key in an environment variable (e.g., PERIGON_API_KEY). Never hardcode it.
  • Prefer the header method (x-api-key) to keep keys out of URLs and logs.
  • Get your API key at perigon.io.

Endpoint Selection Guide

Choose the right endpoint based on the task:

Need individual articles? → /v1/articles/all
Need grouped stories with summaries? → /v1/stories/all
Need to track how a story evolves over time? → /v1/stories/history
Need an AI-generated summary of coverage? → /v1/summarize
Need semantic similarity search for news? → /v1/vector/news/all
Need Wikipedia knowledge? → /v1/wikipedia/all
Need semantic search over Wikipedia? → /v1/vector/wikipedia/all
Need person/company/journalist/source info? → /v1/people|companies|journalists|sources/all
Need to browse available topics? → /v1/topics/all

Core Query Patterns

Text Search (q parameter)

The q parameter searches across title, description, and content. It supports:

  • Boolean operators: AND, OR, NOT
  • Exact phrases: "climate change"
  • Wildcards: * (multiple chars), ? (single char)
  • Combining: "electric vehicles" AND (Tesla OR Rivian) NOT recalls

Date Filtering

  • from / to — Filter by publication date (ISO 8601 or yyyy-mm-dd)
  • addDateFrom / addDateTo — Filter by ingestion date
  • refreshDateFrom / refreshDateTo — Filter by last-updated date

Pagination

  • page — Page number (starts at 0)
  • size — Results per page
  • Set showNumResults=true to get total counts (slightly slower)

Sentiment Filtering

Filter by sentiment scores (0.0 to 1.0):

  • positiveSentimentFrom / positiveSentimentTo
  • negativeSentimentFrom / negativeSentimentTo
  • neutralSentimentFrom / neutralSentimentTo

Array Filters (OR logic)

Many filters accept arrays and combine with OR logic: category, topic, source, language, country, label, personName, companyDomain, companySymbol, journalistId, medium, sourceGroup

Exclude Filters (AND-exclude logic)

Prefix any array filter with exclude to remove matches: excludeCategory, excludeTopic, excludeSource, excludeLanguage, etc.

Vector Search (Semantic)

For natural language queries that don't map well to keyword search, use the vector endpoints:

News: POST /v1/vector/news/all — searches articles from the last 6 months by semantic similarity.

Wikipedia: POST /v1/vector/wikipedia/all — searches Wikipedia page sections by semantic similarity.

Both accept a prompt (natural language query), page, size, and a filter object for structured filtering with nested AND/OR/NOT logic.

How to Use References

Read individual reference files for detailed endpoint documentation:

references/authentication.md        — API key setup and security
references/articles-search.md       — /v1/articles/all deep dive
references/stories-clustering.md    — /v1/stories/all deep dive
references/stories-history.md       — /v1/stories/history deep dive
references/smart-summaries.md       — /v1/summarize deep dive
references/vector-search.md         — /v1/vector/news/all and /v1/vector/wikipedia/all
references/wikipedia-knowledge.md   — /v1/wikipedia/all deep dive
references/people-companies.md      — /v1/people/all and /v1/companies/all
references/journalists-sources.md   — /v1/journalists/all and /v1/sources/all
references/topics-categories.md     — /v1/topics/all and category taxonomy
references/pagination-filtering.md  — Common query patterns and pagination
references/error-handling.md        — HTTP status codes and retry logic
references/rate-limits.md           — Rate limit management

Each reference file contains:

  • Endpoint URL and HTTP method
  • All query/body parameters with types and descriptions
  • Example requests (curl) and response JSON
  • Common patterns and best practices
  • When to use this endpoint vs. alternatives

Best Practices Summary

  1. Start narrow, then broaden — Use specific filters first, then relax constraints if results are too few.
  2. Prefer from/to over addDateFrom/addDateTo for publication-date filtering unless you specifically need ingestion-date filtering.
  3. Use showReprints=false to deduplicate wire-service content (AP, Reuters) that appears on multiple sites.
  4. Use sourceGroup (e.g., top100, top25tech) for quality-filtered results.
  5. Combine endpoints — Use /v1/stories/all to find story clusters, then /v1/articles/all with clusterId for all articles in a story.
  6. Use vector search for intent-based queries — When the user's query is conversational or conceptual rather than keyword-based.
  7. Use Wikipedia endpoints for factual background — Combine with news search to enrich coverage with encyclopedic context.
  8. Handle pagination properly — Always check numResults and iterate pages when building comprehensive datasets.
  9. Cache strategically — News data changes frequently, but entity data (people, companies, sources) changes slowly.
  10. Respect rate limits — Implement exponential backoff on 429 responses.

External References

平台分布

Codex

36.51%
按下载量换算32

Claude

30.88%
按下载量换算27

Cursor

20.27%
按下载量换算18

Gemini CLI

9.56%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills