pp-digg
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDigg AI — Printing Press CLI
Digg AI — Printing Press CLI
Prerequisites: Install the CLI
前置条件:安装CLI
This skill drives the binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
digg-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press install digg --cli-only - Verify:
digg-pp-cli --version - Ensure (or
$GOPATH/bin) is on$HOME/go/bin.$PATH
If the install fails before this CLI has a public-library category, install Node or use the category-specific Go fallback after publish.
npxIf reports "command not found" after install, the install step did not put the binary on . Do not proceed with skill commands until verification succeeds.
--version$PATHDigg AI is a curated leaderboard of 1,000 AI accounts on X and the story clusters they surface. The web UI shows you today's snapshot. This CLI tails the pipeline events, keeps a local rank-history that survives daily overwrites, and exposes Digg's own replacement rationale and gravity components so an agent can answer 'why this story?' and 'what got dropped overnight?' with structured data.
本技能驱动二进制文件。在调用本技能的任何命令之前,您必须确认CLI已安装。如果未安装,请先执行以下步骤:
digg-pp-cli- 通过Printing Press安装程序安装:
bash
npx -y @mvanhorn/printing-press install digg --cli-only - 验证安装:
digg-pp-cli --version - 确保(或
$GOPATH/bin)已添加到$HOME/go/bin环境变量中。$PATH
如果在该CLI进入公共库分类前安装失败,请安装Node.js,或在发布后使用特定分类的Go备用安装方式。
npx如果安装后执行提示“command not found”,说明安装步骤未将二进制文件添加到中。在验证成功前,请不要执行技能命令。
--version$PATHDigg AI是X平台上1000个AI账号的精选排行榜,以及这些账号发布的故事集群。网页界面展示的是当日快照。本CLI可追踪流水线事件,保留不受每日覆盖影响的本地排名历史,并公开Digg自身的替换依据和权重组件,让Agent能够通过结构化数据回答“为什么是这个故事?”以及“夜间哪些内容被替换了?”等问题。
When to Use This CLI
何时使用本CLI
Use this CLI when an agent or power user needs structured access to Digg AI's rankings, ranking-change history, pipeline events, or per-cluster transparency record. It is the right tool for tracking AI-news cycle movement, building cross-aggregator research over HN+Techmeme+Digg, or exposing Digg AI signals into a larger automation. Do NOT use it for vote, comment, or post automation — those mutations are explicitly out of scope.
当Agent或高级用户需要结构化访问Digg AI的排名、排名变化历史、流水线事件或集群级透明度记录时,可使用本CLI。它是追踪AI新闻周期动态、构建HN+Techmeme+Digg跨聚合器研究,或将Digg AI信号集成到更大自动化流程中的理想工具。请勿将其用于投票、评论或发布自动化——这些操作明确不在本工具的范围内。
When Not to Use This CLI
何时不使用本CLI
Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.
请勿为需要创建、更新、删除、发布、评论、点赞、邀请、下单、发送消息、预订、购买或修改远程状态的请求激活本CLI。本CLI仅提供用于查看、导出、同步和分析的只读命令。
Unique Capabilities
独特功能
These capabilities aren't available in any other tool for this API.
这些功能是其他同类型API工具所不具备的。
Topic search and per-post citations
主题搜索与单帖引用
-
— Topic search across Digg's full window. Live by default — hits
search, the same server-side search that backs the di.gg/ai Cmd+K modal — with FTS5 fallback to the local store on network error or/api/search/stories.--data-source localReturns ranked clusters with engagement metadata (postCount, uniqueAuthors, firstPostAge); the load-bearing recipe for last30days-style research workflows.bashdigg-pp-cli search "<topic>" --since 30d --agent --select clusterUrlId,title,rank,postCount,uniqueAuthors,firstPostAge- — filter to clusters first posted within the window (live mode parses Digg's own
--since Nh|Nd|Nw|Nm; local mode readsfirstPostAge).digg_clusters.first_post_at
-
— X posts attached to one cluster, with author rank, body when rendered, media URLs, repost-context, and minted xUrl for one-click citation.
postsThe citations recipe: surface the highest-credibility AI 1000 voices on a story, sortable by rank, type, or time.bashdigg-pp-cli posts <clusterUrlId> --by rank --limit 5 --agent --select author.username,author.rank,post_type,xUrl,body
-
— 在Digg的完整时间范围内进行主题搜索。默认使用实时模式——调用
search,即支持di.gg/ai Cmd+K模态框的服务器端搜索——在网络错误或指定/api/search/stories时,会回退到本地存储的FTS5搜索。--data-source local返回包含互动元数据(postCount、uniqueAuthors、firstPostAge)的排名集群;是支持近30天研究工作流的核心命令。bashdigg-pp-cli search "<topic>" --since 30d --agent --select clusterUrlId,title,rank,postCount,uniqueAuthors,firstPostAge- — 筛选在指定时间窗口内首次发布的集群(实时模式解析Digg自身的
--since Nh|Nd|Nw|Nm;本地模式读取firstPostAge)。digg_clusters.first_post_at
-
— 关联到单个集群的X帖子,包含作者排名、渲染后的正文、媒体URL、转发上下文和用于一键引用的专属xUrl。
posts引用解决方案:展示某一故事中可信度最高的AI 1000账号内容,可按排名、类型或时间排序。bashdigg-pp-cli posts <clusterUrlId> --by rank --limit 5 --agent --select author.username,author.rank,post_type,xUrl,body
Author lookup and roster browse
作者查询与排行榜浏览
-
— Look up any X handle in Digg's full author universe (1000 + off-1000) via
authors get. For off-1000 handles, the response includes/api/search/users, the rank-1000 anchor'ssubject_peer_follow_count, and a signedpeer_follow_count— the gap to the 1000 measured in AI-1000 peer follows (NOT raw X follower count).peer_follow_gapThe credibility lookup: an agent can decide whether to quote a handle by reading one structured record.bashdigg-pp-cli authors get <handle> --agentTrimmed off-1000 example for:mvanhornjson{ "username": "mvanhorn", "current_rank": null, "subject_peer_follow_count": 19, "nearest_in_1000": {"rank": 1000, "username": "...", "peer_follow_count": 90}, "peer_follow_gap": 71 }is the gap to rank-1000'speer_follow_gap(peer follows from inside the AI 1000). Do not read it as a raw X follower delta.followed_by_count -
— Full ranked AI 1000 from
authors list, persisted with rich fields (rank, category, bio, vibeDistribution, GitHub URL)./ai/1000Identify rising voices in a category, find authors who just joined the 1000, see who's falling fast — sortable, filterable, scriptable.bash# Biggest movers since the last snapshot digg-pp-cli authors list --by rankChange --limit 20 --agent # Newly listed (first appearance in the 1000) digg-pp-cli authors list --only-new --agentSort with; filter with--by rank|rankChange|category|followers,--category "<name>",--only-new.--only-fallers
-
— 通过
authors get查询Digg完整作者库中的任意X账号(1000个核心账号+非核心账号)。对于非核心账号,响应包含/api/search/users、排名1000的基准账号的subject_peer_follow_count,以及签名后的peer_follow_count——与1000名核心账号的关注差距(不是X平台的原始粉丝数)。peer_follow_gap可信度查询:Agent可通过一条结构化记录决定是否引用某账号内容。bashdigg-pp-cli authors get <handle> --agent非核心账号的精简示例:mvanhornjson{ "username": "mvanhorn", "current_rank": null, "subject_peer_follow_count": 19, "nearest_in_1000": {"rank": 1000, "username": "...", "peer_follow_count": 90}, "peer_follow_gap": 71 }是与排名1000账号的peer_follow_gap(AI 1000核心账号的关注数)差距。请勿将其视为X平台原始粉丝数的差值。followed_by_count -
— 从
authors list获取完整的AI 1000排名列表,并持久化存储丰富字段(rank、category、bio、vibeDistribution、GitHub URL)。/ai/1000识别某一分类中的新兴账号、找到刚加入1000榜单的作者、查看排名快速下降的账号——支持排序、筛选和脚本化处理。bash# 上次快照以来排名变化最大的账号 digg-pp-cli authors list --by rankChange --limit 20 --agent # 新上榜账号(首次进入1000榜单) digg-pp-cli authors list --only-new --agent使用进行排序;使用--by rank|rankChange|category|followers、--category "<name>"、--only-new进行筛选。--only-fallers
Live pipeline observability
实时流水线监控
-
— Tail Digg's ingestion pipeline in real time — see clusters as they're detected, stories fast-climbing the leaderboard with explicit rank deltas, X posts being processed, batch breakdowns.
eventsWhen an agent needs 'tell me when story X just climbed N ranks' or 'what new clusters did Digg detect in the last hour', this is the only way.bashdigg-pp-cli events --since 1h --type fast_climb --json --select clusterId,label,delta,currentRank,previousRank -
— Poll /ai, diff against last snapshot, alert when any cluster moves N+ ranks.
watchRead-only operational watcher; never writes anything back to Digg.bashdigg-pp-cli watch --alert 'rank.delta>=10' -
— One-screen view of /api/trending/status: isFetching, nextFetchAt, storiesToday, clustersToday, last 5 events.
pipeline statusLets ops and power users see when a fresh batch is about to land and what's been ingested in the last hour.bashdigg-pp-cli pipeline status --watch
-
— 实时追踪Digg的 ingestion 流水线——查看集群检测情况、排名快速上升的故事(包含明确的排名变化值)、正在处理的X帖子、批量处理详情。
events当Agent需要“告知我故事X何时上升了N个排名”或“过去一小时Digg检测到哪些新集群”时,这是唯一的实现方式。bashdigg-pp-cli events --since 1h --type fast_climb --json --select clusterId,label,delta,currentRank,previousRank -
— 轮询
watch接口,与上次快照对比,当任意集群排名变化超过N时发出警报。/ai只读操作监控器;绝不会向Digg写入任何内容。bashdigg-pp-cli watch --alert 'rank.delta>=10' -
— 单屏展示
pipeline status信息:isFetching、nextFetchAt、storiesToday、clustersToday、最近5个事件。/api/trending/status让运维人员和高级用户了解新批次内容何时上线,以及过去一小时内已摄入的内容。bashdigg-pp-cli pipeline status --watch
Local state that compounds
可累积的本地状态
-
— Show stories that were knocked out of the rankings since the last sync, with Digg's own published replacement rationale.
replacedBest-of-feed shifts faster than people remember. This makes 'what did Digg drop and why' queryable.bashdigg-pp-cli replaced --since 24h --json -
— Show this cluster's Hacker News and Techmeme mirrors when Digg has detected the story is being discussed there.
crossrefRemoves the manual 'is HN talking about this too' step from any cross-aggregator research workflow.bashdigg-pp-cli crossref iq7usf9e -
— Top accounts in the Digg AI 1000 ranked by Digg's influence score, story count, or reach.
authors topInvestors and AI scouts care which accounts move the news cycle. Now queryable, sortable, scriptable.bashdigg-pp-cli authors top --by influence --limit 50 --json -
— Full trajectory of one cluster's currentRank, peakRank, and delta over local snapshot history.
history'Entered at #18, peaked at #4 over 6h, dropped to #22 by 24h' is impossible to learn from the live site.bashdigg-pp-cli history iq7usf9e --json -
— Every cluster a given X account contributed to, with post type (original, retweet, quote, reply).
author'Show me every story this account surfaced this week' is the investor-scout query.bashdigg-pp-cli author Scobleizer --since 7d --json
-
— 展示自上次同步以来被移出排名的故事,以及Digg官方发布的替换依据。
replaced精选信息流的变化速度远超人们的记忆。该功能让“Digg移除了哪些内容以及原因”可被查询。bashdigg-pp-cli replaced --since 24h --json -
— 当Digg检测到某故事在Hacker News和Techmeme上被讨论时,展示该集群在这两个平台的镜像内容。
crossref省去了跨聚合器研究工作流中手动检查“HN是否也在讨论这个内容”的步骤。bashdigg-pp-cli crossref iq7usf9e -
— 按Digg影响力评分、故事数量或覆盖范围排名的AI 1000顶级账号。
authors top投资者和AI scout关注哪些账号能推动新闻周期。现在该信息可被查询、排序和脚本化处理。bashdigg-pp-cli authors top --by influence --limit 50 --json -
— 单个集群在本地快照历史中的currentRank、peakRank和delta完整轨迹。
history“初始排名18,6小时内升至第4,24小时后降至22”这类信息无法从实时网站获取。bashdigg-pp-cli history iq7usf9e --json -
— 某一X账号贡献的所有集群,包含帖子类型(原创、转发、引用、回复)。
author“展示该账号本周发布的所有故事”是投资者和AI scout常用的查询需求。bashdigg-pp-cli author Scobleizer --since 7d --json
Transparency
透明度
-
— Print the full ranking transparency record for one cluster — scoreComponents, evidence array, numeratorLabel, percentAboveAverage.
evidenceWhen a user asks 'why is THIS the top story', the answer is structured data; agents can compose with it.bashdigg-pp-cli evidence iq7usf9e --json -
— Read per-time-window positivity ratios (pos6h, pos12h, pos24h, posLast) for a cluster.
sentimentTells an agent whether the conversation around a story is still net-positive or has soured; useful before quoting a story.bashdigg-pp-cli sentiment iq7usf9e --window 6h --json
-
— 打印单个集群的完整排名透明度记录——scoreComponents、evidence数组、numeratorLabel、percentAboveAverage。
evidence当用户询问“为什么这个故事是榜首”时,答案是结构化数据;Agent可对其进行组合使用。bashdigg-pp-cli evidence iq7usf9e --json -
— 读取集群在指定时间窗口内的正面情绪比率(pos6h、pos12h、pos24h、posLast)。
sentiment告知Agent某故事的讨论氛围是否仍为正面,或已转向负面;在引用故事前非常有用。bashdigg-pp-cli sentiment iq7usf9e --window 6h --json
HTTP Transport
HTTP传输
This CLI uses Chrome-compatible HTTP transport for browser-facing endpoints. It does not require a resident browser process for normal API calls.
本CLI使用兼容Chrome的HTTP传输访问面向浏览器的端点。正常API调用不需要常驻浏览器进程。
Command Reference
命令参考
feed — Top-level AI story feed (HTML page; CLI parses the embedded RSC stream)
- — Fetch the raw /ai HTML page. The CLI's sync command parses this; most users should run
digg-pp-cli feed rawthensyncinstead of...top - — Fetch the raw /ai/{clusterUrlId} story detail page (HTML). The CLI's
digg-pp-cli feed story_rawcommand parses this; users should not...story
search — Topic search across the full Digg window
- — Live by default (
digg-pp-cli search "<query>"); FTS5 fallback to the local store. Flags:/api/search/stories,--since Nh|Nd|Nw|Nm,--data-source live|local|auto.--limit
authors — Inspect the Digg AI 1000 leaderboard
- — Look up any X handle (1000 + off-1000); off-1000 records include
digg-pp-cli authors get <handle>,subject_peer_follow_countanchor, andnearest_in_1000. Flag:peer_follow_gap(fuzzy fallback).--limit - — Full ranked AI 1000 from
digg-pp-cli authors list, persisted with rich fields. Flags:/ai/1000,--by rank|rankChange|category|followers,--category,--only-new,--only-fallers.--limit - — Top contributors by influence, post count, or reach. Flags:
digg-pp-cli authors top,--by.--limit
posts — X posts attached to one cluster
- — Origins, replies, quotes, retweets with author rank, body when rendered, media URLs, minted xUrl. Flags:
digg-pp-cli posts <clusterUrlId>,--by rank|type|time,--type tweet|reply|quote|retweet,--limit.--no-cache
story — Full cluster detail. Envelope now includes and fields populated by the U5 RSC parser.
postspostsMetatrending — Public ingestion-pipeline status and event stream
- — Read the current pipeline status: storiesToday, clustersToday, isFetching, nextFetchAt, and the recent event stream...
digg-pp-cli trending
feed — 顶级AI故事信息流(HTML页面;CLI解析嵌入的RSC流)
- — 获取原始
digg-pp-cli feed rawHTML页面。CLI的sync命令会解析该页面;大多数用户应运行/ai然后sync,而非直接使用此命令……top - — 获取原始
digg-pp-cli feed story_raw故事详情页面(HTML)。CLI的/ai/{clusterUrlId}命令会解析该页面;用户无需直接使用此命令……story
search — 在Digg完整时间范围内进行主题搜索
- — 默认使用实时模式(
digg-pp-cli search "<query>");回退到本地存储的FTS5搜索。支持参数:/api/search/stories、--since Nh|Nd|Nw|Nm、--data-source live|local|auto。--limit
authors — 查看Digg AI 1000排行榜
- — 查询任意X账号(核心+非核心);非核心账号记录包含
digg-pp-cli authors get <handle>、subject_peer_follow_count基准账号和nearest_in_1000。支持参数:peer_follow_gap(模糊匹配回退)。--limit - — 从
digg-pp-cli authors list获取完整的AI 1000排名列表,并持久化存储丰富字段。支持参数:/ai/1000、--by rank|rankChange|category|followers、--category、--only-new、--only-fallers。--limit - — 按影响力、帖子数量或覆盖范围排名的顶级贡献者。支持参数:
digg-pp-cli authors top、--by。--limit
posts — 关联到单个集群的X帖子
- — 原创帖、回复、引用、转发,包含作者排名、渲染后的正文、媒体URL、专属xUrl。支持参数:
digg-pp-cli posts <clusterUrlId>、--by rank|type|time、--type tweet|reply|quote|retweet、--limit。--no-cache
story — 完整集群详情。信封现在包含由U5 RSC解析器填充的和字段。
postspostsMetatrending — 公开的ingestion流水线状态和事件流
- — 读取当前流水线状态:storiesToday、clustersToday、isFetching、nextFetchAt,以及最近的事件流……
digg-pp-cli trending
Finding the right command
查找合适的命令
When you know what you want to do but not which command does it, ask the CLI directly:
bash
digg-pp-cli which "<capability in your own words>"which02--help当您知道要做什么但不知道对应命令时,可直接询问CLI:
bash
digg-pp-cli which "<用您自己的语言描述功能>"which02--helpRecipes
使用示例
Topic search for research workflows
研究工作流的主题搜索
bash
digg-pp-cli search "<topic>" --since 30d --agent --select clusterUrlId,title,rank,postCount,uniqueAuthors,firstPostAgeServer-side search across Digg's full window via ; returns ranked clusters with engagement metadata (postCount, uniqueAuthors, firstPostAge). The load-bearing recipe for last30days-style consumers — pair with for citations.
/api/search/storiespostsbash
digg-pp-cli search "<topic>" --since 30d --agent --select clusterUrlId,title,rank,postCount,uniqueAuthors,firstPostAge通过在Digg完整时间范围内进行服务器端搜索;返回包含互动元数据(postCount、uniqueAuthors、firstPostAge)的排名集群。这是支持近30天研究工作流的核心命令——可与配合使用以获取引用内容。
/api/search/storiespostsAuthor credibility lookup (in or out of the 1000)
作者可信度查询(核心/非核心账号)
bash
digg-pp-cli authors get <handle> --agentResolves any X handle to a structured record. For an off-1000 handle like , the response includes , , and . is the distance to rank-1000 measured in AI-1000 peer follows (the metric Digg actually ranks by) — NOT a raw X follower-count delta.
mvanhornsubject_peer_follow_count: 19nearest_in_1000.peer_follow_count: 90peer_follow_gap: 71peer_follow_gapbash
digg-pp-cli authors get <handle> --agent将任意X账号解析为结构化记录。对于非核心账号如,响应包含、和。是与排名1000账号的AI 1000核心账号关注数差距(Digg实际使用的排名指标)——不是X平台原始粉丝数的差值。
mvanhornsubject_peer_follow_count: 19nearest_in_1000.peer_follow_count: 90peer_follow_gap: 71peer_follow_gapRoster browse: biggest movers and newly listed
排行榜浏览:排名变化最大和新上榜账号
bash
undefinedbash
undefinedBiggest movers since the last snapshot
上次快照以来排名变化最大的账号
digg-pp-cli authors list --by rankChange --limit 20 --agent
digg-pp-cli authors list --by rankChange --limit 20 --agent
Newly listed (first appearance in the 1000)
新上榜账号(首次进入1000榜单)
digg-pp-cli authors list --only-new --agent
Identify rising voices in a category, find authors who just joined the 1000. Sort with `--by rank|rankChange|category|followers`; filter with `--category`, `--only-new`, `--only-fallers`.digg-pp-cli authors list --only-new --agent
识别某一分类中的新兴账号、找到刚加入1000榜单的作者。使用`--by rank|rankChange|category|followers`进行排序;使用`--category`、`--only-new`、`--only-fallers`进行筛选。Top comments per article (citations)
每篇文章的顶级评论(引用)
bash
digg-pp-cli posts <clusterUrlId> --by rank --limit 5 --agent --select author.username,author.rank,post_type,xUrl,bodySurfaces the highest-credibility AI 1000 voices on a story; minted X URLs make citations one-click. Combine with to go from topic → cluster → quotable posts in two commands.
searchbash
digg-pp-cli posts <clusterUrlId> --by rank --limit 5 --agent --select author.username,author.rank,post_type,xUrl,body展示某一故事中可信度最高的AI 1000账号内容;专属X URL支持一键引用。结合命令,可通过两步操作从主题→集群→可引用帖子。
searchWhat climbed >=10 ranks in the last hour
过去一小时内排名上升≥10的内容
bash
digg-pp-cli events --since 1h --type fast_climb --json --select clusterId,label,delta,currentRank,previousRankReads the public events stream, filters to fast-climb events only, and narrows the JSON to the five fields an agent actually needs.
bash
digg-pp-cli events --since 1h --type fast_climb --json --select clusterId,label,delta,currentRank,previousRank读取公开事件流,仅筛选快速上升事件,并将JSON结果精简为Agent实际需要的五个字段。
Why is a story the top story
为什么某故事是榜首
bash
digg-pp-cli evidence 65idu2x5 --jsonPrint the scoreComponents and evidence array for one cluster. Get a clusterUrlId from .
digg-pp-cli top --json --select clusterUrlIdbash
digg-pp-cli evidence 65idu2x5 --json打印单个集群的scoreComponents和evidence数组。可通过获取clusterUrlId。
digg-pp-cli top --json --select clusterUrlIdShow every cluster a given X account contributed to this week
展示某X账号本周贡献的所有集群
bash
digg-pp-cli author Scobleizer --since 7d --json --select label,clusterUrlId,activityAtQueries the local store for clusters where the named author was a contributor; output is narrowed for agent consumption.
bash
digg-pp-cli author Scobleizer --since 7d --json --select label,clusterUrlId,activityAt查询本地存储中指定作者贡献的集群;输出已精简以适配Agent使用。
Cross-reference a story across HN and Techmeme
跨HN和Techmeme交叉引用故事
bash
digg-pp-cli crossref 65idu2x5Uses Digg's own hackerNews/techmeme reference fields so you don't have to search those sites manually. Pass any clusterUrlId from .
top --json --select clusterUrlIdbash
digg-pp-cli crossref 65idu2x5使用Digg自身的hackerNews/techmeme参考字段,无需手动搜索这些平台。传入从获取的任意clusterUrlId即可。
top --json --select clusterUrlIdTail the pipeline live
实时追踪流水线
bash
digg-pp-cli pipeline status --watchOne-screen dashboard of isFetching, nextFetchAt, storiesToday, clustersToday, and the last few pipeline events.
bash
digg-pp-cli pipeline status --watch单屏仪表盘展示isFetching、nextFetchAt、storiesToday、clustersToday以及最近几个流水线事件。
Auth Setup
认证设置
No authentication required.
Run to verify setup.
digg-pp-cli doctor无需认证。
运行验证设置。
digg-pp-cli doctorAgent Mode
Agent模式
Add to any command. Expands to: .
--agent--json --compact --no-input --no-color --yes-
Pipeable — JSON on stdout, errors on stderr
-
Filterable —keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
--selectbashdigg-pp-cli feed raw --agent --select id,name,status -
Previewable —shows the request without sending
--dry-run -
Offline-friendly — sync/search commands can use the local SQLite store when available
-
Non-interactive — never prompts, every input is a flag
-
Read-only — do not use this CLI for create, update, delete, publish, comment, upvote, invite, order, send, or other mutating requests
在任意命令后添加。等效于:。
--agent--json --compact --no-input --no-color --yes-
可管道化 — stdout输出JSON,stderr输出错误信息
-
可筛选 —保留字段子集。点路径可深入嵌套结构;数组可遍历元素。对于冗长的API,这是保持上下文精简的关键:
--selectbashdigg-pp-cli feed raw --agent --select id,name,status -
可预览 —显示请求但不发送
--dry-run -
离线友好 — 同步/搜索命令在可用时可使用本地SQLite存储
-
非交互式 — 从不提示,所有输入均为参数
-
只读 — 请勿使用本CLI执行创建、更新、删除、发布、评论、点赞、邀请、下单、发送或其他修改状态的请求
Response envelope
响应信封
Commands that read from the local store or the API wrap output in a provenance envelope:
json
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}Parse for data and to know whether it's live or local. A human-readable summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.
.results.meta.sourceN results (live)从本地存储或API读取数据的命令会将输出包装在来源信封中:
json
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}解析获取数据,可了解数据是实时还是本地的。仅当stdout为终端时,才会向stderr打印人类可读的摘要——管道/Agent消费者仅会在stdout获取纯JSON。
.results.meta.sourceN results (live)Agent Feedback
Agent反馈
When you (or the agent) notice something off about this CLI, record it:
digg-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
digg-pp-cli feedback --stdin < notes.txt
digg-pp-cli feedback list --json --limit 10Entries are stored locally at . They are never POSTed unless is set AND either is passed or . Default behavior is local-only.
~/.digg-pp-cli/feedback.jsonlDIGG_FEEDBACK_ENDPOINT--sendDIGG_FEEDBACK_AUTO_SEND=trueWrite what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当您(或Agent)发现本CLI存在问题时,请记录:
digg-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
digg-pp-cli feedback --stdin < notes.txt
digg-pp-cli feedback list --json --limit 10反馈条目存储在本地中。除非设置了且传递了或设置,否则绝不会POST到服务器。默认行为仅存储在本地。
~/.digg-pp-cli/feedback.jsonlDIGG_FEEDBACK_ENDPOINT--sendDIGG_FEEDBACK_AUTO_SEND=true请记录让您感到意外的内容,而非提交bug报告。简短、具体、单行描述:这样的反馈才更有价值。
Output Delivery
输出交付
Every command accepts . The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
--deliver <sink>| Sink | Effect |
|---|---|
| Default; write to stdout only |
| Atomically write output to |
| POST the output body to the URL ( |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
所有命令均支持。输出会发送到指定的sink,同时(或替代)输出到stdout,以便Agent无需手动管道即可路由命令结果。支持三种sink:
--deliver <sink>| Sink | 效果 |
|---|---|
| 默认;仅输出到stdout |
| 原子性地将输出写入 |
| 将输出体POST到指定URL( |
未知格式会被拒绝,并返回包含支持格式的结构化错误。Webhook失败时返回非零退出码,并在stderr记录URL和HTTP状态。
Named Profiles
命名配置文件
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
digg-pp-cli profile save briefing --json
digg-pp-cli --profile briefing feed raw
digg-pp-cli profile list --json
digg-pp-cli profile show briefing
digg-pp-cli profile delete briefing --yesExplicit flags always win over profile values; profile values win over defaults. lists all available profiles under so introspecting agents discover them at runtime.
agent-contextavailable_profiles配置文件是一组保存的参数值,可在多次调用中复用。当定时Agent每次运行都使用相同配置调用同一命令时,可使用此功能——即HeyGen的“Beacon”模式。
digg-pp-cli profile save briefing --json
digg-pp-cli --profile briefing feed raw
digg-pp-cli profile list --json
digg-pp-cli profile show briefing
digg-pp-cli profile delete briefing --yes显式参数始终优先于配置文件值;配置文件值优先于默认值。会在下列出所有可用配置文件,以便自省Agent在运行时发现它们。
agent-contextavailable_profilesExit Codes
退出码
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
| 代码 | 含义 |
|---|---|
| 0 | 成功 |
| 2 | 使用错误(参数错误) |
| 3 | 资源未找到 |
| 5 | API错误(上游问题) |
| 7 | 速率限制(等待后重试) |
| 10 | 配置错误 |
Argument Parsing
参数解析
Parse :
$ARGUMENTS- Empty, , or
help→ show--helpoutputdigg-pp-cli --help - Starts with → ends with
install→ MCP installation; otherwise → see Prerequisites abovemcp - Anything else → Direct Use (execute as CLI command with )
--agent
解析:
$ARGUMENTS- 为空、或
help→ 显示--help输出digg-pp-cli --help - 以开头 → 结尾为
install→ MCP安装;否则 → 参见上方前置条件mcp - 其他内容 → 直接使用(添加参数执行CLI命令)
--agent
MCP Server Installation
MCP服务器安装
Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:
bash
claude mcp add digg-pp-mcp -- digg-pp-mcpVerify:
claude mcp list从本CLI的已发布公共库条目或预构建版本安装MCP二进制文件,然后注册:
bash
claude mcp add digg-pp-mcp -- digg-pp-mcp验证:
claude mcp listDirect Use
直接使用
- Check if installed: If not found, offer to install (see Prerequisites at the top of this skill).
which digg-pp-cli - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the flag:
--agentbashdigg-pp-cli <command> [subcommand] [args] --agent - If ambiguous, drill into subcommand help: .
digg-pp-cli <command> --help
- 检查是否安装:如果未找到,提供安装选项(参见顶部前置条件)。
which digg-pp-cli - 将用户查询与上方独特功能和命令参考中的最佳命令匹配。
- 添加参数执行:
--agentbashdigg-pp-cli <command> [subcommand] [args] --agent - 如果存在歧义,查看子命令帮助:。
digg-pp-cli <command> --help