fcm-hosts-next: Skill for Claude Code

.agents/skills/runner-publish/SKILL.md

runner-publish is a skill for Claude Code, Codex from cagedbird043/fcm-hosts-next. It costs 20 tokens per session (572 once invoked), scanned A, original, MIT.

Instructions for maintaining and checking the workflow that generates and publishes Firebase Cloud Messaging host lists. They cover Go tests, local dry runs, DNS collection, GitHub Actions, SSH keys, and server deployment.

In plain words
What is it for?
Testing or troubleshooting the Go command, validating DNS and connectivity, changing the scheduled GitHub Actions workflow, and deploying generated host files over SSH.
Why use it?
They provide repeatable checks and deployment rules for changing the generation pipeline without publishing invalid files or breaking the production update process.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is cagedbird043/fcm-hosts-next's own configuration. It tells Claude Code and Codex how to work on fcm-hosts-next itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fcm-hosts-next configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go run ./cmd/fcmhost run -workdir . -dns=false -v.

Reuse

Borrowing it

Nothing to install: this file belongs to cagedbird043/fcm-hosts-next. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cagedbird043/fcm-hosts-next/main/.agents/skills/runner-publish/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cagedbird043/fcm-hosts-next

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for runner-publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/cagedbird043/fcm-hosts-next/runner-publish/github.svg)](https://agentmods.dev/skills/cagedbird043/fcm-hosts-next/runner-publish)
Your own site
<a href="https://agentmods.dev/skills/cagedbird043/fcm-hosts-next/runner-publish"><img src="https://agentmods.dev/badge/skills/cagedbird043/fcm-hosts-next/runner-publish/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for runner-publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/cagedbird043/fcm-hosts-next/runner-publish"><img src="https://agentmods.dev/badge/skills/cagedbird043/fcm-hosts-next/runner-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 572 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00572
Opus 5 $0.00010 $0.00286
Sonnet 5 $0.00004 $0.00114
Haiku 4.5 $0.00002 $0.00057

Measured 10d ago against content hash 426aa3f778c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

runner-publish scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sI https://fcm-hosts.cagedbird.cn/fcm_dual.hosts
.agents/skills/runner-publish/SKILL.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Trigger

  • Modifying or validating FCM hosts update workflow (.github/workflows/main.yml).
  • Troubleshooting FCM hosts generation, publication, or server deployment failures.
  • Changing DNS query/validation logic and verifying behavior.

Entry Point

  • Workflow file: .github/workflows/main.yml
  • Go CLI entry: go run ./cmd/fcmhost run
  • Generated outputs: fcm_dual.hosts, fcm_ipv4.hosts, fcm_ipv6.hosts

Workflow

Local Verification

Before pushing any workflow or Go CLI updates:

  1. Run test suite:
    go test ./...
    
  2. Dry run runner verification (checks FCM 5228 connectivity without dns harvest):
    go run ./cmd/fcmhost run -workdir . -dns=false -v
    
  3. Perform full local run to verify DNS harvesting and expansion:
    go run ./cmd/fcmhost run -workdir .
    

GitHub Actions & Server Deployment

  1. Workflow is scheduled 4 times daily (UTC 01:17, 07:17, 13:17, 19:17).
  2. If manual refresh is needed, trigger via workflow_dispatch on GitHub Actions.
  3. The workflow uses SSH Deploy Key ACTIONS_DEPLOY_KEY for checkout/push, and SERVER_SSH_KEY for deploying to /srv/cagedbird/fcm-hosts-next/ on the remote server.

Verification

  • Verify Go build and test status.
  • Check local generated fcm_dual.hosts, fcm_ipv4.hosts, fcm_ipv6.hosts files for correct format (IP host entries).
  • Check remote serving URL:
    curl -sI https://fcm-hosts.cagedbird.cn/fcm_dual.hosts
    

Guardrails

  • Prefer SSH Checkout over HTTPS: To prevent GnuTLS connection timeouts on mainland dual-stack runners, workflow checkout and push MUST use the SSH deploy key (ACTIONS_DEPLOY_KEY).
  • Prevent Workflow Loop: Commits generated by the bot MUST include [skip ci] in the message and the push event must be configured to skip triggering another run.
  • Separate Keys: GitHub actions push key (ACTIONS_DEPLOY_KEY) and server deploy key (SERVER_SSH_KEY) are separate credentials. Do not mix them.
  • No Direct Remote Edits: Do not edit served host files directly on the server. Always update locally/via workflow.

Read the full file on GitHub · 55 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 55 lines · 20 tokens per session scan A 426aa3f778c5

Subscribe to this mod's changes

runner-publish is a skill published in the GitHub repository cagedbird043/fcm-hosts-next (57 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 572 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

chinese-git-workflow

A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.

jnMetaCode/superpowers-zh · 69 tokens

baby-sit

Monitor a GitHub pull request until CI is green, diagnose failures, and rerun only evidence-backed flaky GitHub Actions jobs.

langchain-ai/open-swe · 30 tokens

atmos-hooks

Atmos hooks: lifecycle events, hook kinds, command/store/git/security hooks, step/steps hooks, when: conditions, scoping and overrides, toolchain integration, --skip-hooks, and Atmos Pro/local output.

cloudposse/atmos · 46 tokens

atmos-pro

Atmos Pro setup and workflows: settings.pro, GitHub OIDC, affected and inventory uploads, stack locks, pro commit, workflow dispatch, merge queues, and drift detection.

cloudposse/atmos · 38 tokens

start-temps-cluster

Start (or restart) a local multi-node Temps cluster using Docker-in-Docker — one control plane + 3 worker nodes, each a privileged DinD container running its own dockerd + temps agent, wired with the real multi-host overlay (VXLAN, computecidr allocation) via tools/dev-cluster/ in whichever checkout/worktree you run…

gotempsh/temps · 204 tokens

pr-watch

Local PR watcher. Monitors CI status, automatically fixes failing checks by reading failure logs and applying targeted fixes, then optionally merges when all checks pass. Local CLI analog to Claude Code's cloud auto-fix feature.

SethGammon/Citadel · 46 tokens