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 25 tokens per session (673 once invoked), scanned B, 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 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 673 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. 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.00025 $0.00673
Opus 5.5 $0.00010 $0.00269
Sonnet 5.5 $0.00005 $0.00135
Haiku 4.5 $0.00003 $0.00067

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

Security

Grade B, and why

runner-publish scanned grade B with 2 findings 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 6d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

ssh bj-edge sudo systemctl start fcm-hosts-next.service

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 · 61 lines

How it starts

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

Trigger

  • Modifying or validating scripts/publish.sh, deploy/, or .github/workflows/main.yml.
  • Troubleshooting FCM hosts generation, publication, or push failures.
  • Changing DNS query/validation logic and verifying behavior.

Entry Point

  • Production script: scripts/publish.sh
  • systemd units: deploy/fcm-hosts-next.service, deploy/fcm-hosts-next.timer
  • 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 script or Go CLI updates:

  1. Run test suite:
    go test ./...
    
  2. Dry run 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 .
    

Production on bj-edge

  1. fcm-hosts-next.timer runs 4 times daily (UTC 01:17, 07:17, 13:17, 19:17) as user fcm-runner.
  2. Each run resets /var/lib/fcm-runner/fcm-hosts-next to origin/main, tests, generates, installs the hosts files into /srv/cagedbird/fcm-hosts-next/, then commits and pushes them.
  3. Manual refresh and logs:
    ssh bj-edge sudo systemctl start fcm-hosts-next.service
    ssh bj-edge journalctl -u fcm-hosts-next.service -n 50
    
  4. Unit changes in deploy/ are not applied automatically: copy them to /etc/systemd/system/ and run sudo systemctl daemon-reload.
  5. GitHub Actions only runs go test and shellcheck on code changes; it never harvests or publishes.

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

  • Push over SSH 443: fcm-runner pushes with the writable repo deploy key fcm-runner@bj-edge; its ~/.ssh/config maps github.com to ssh.github.com:443. Do not switch to HTTPS tokens.
  • Prevent Workflow Loop: Generated commits MUST include [skip ci] in the message.
  • No Direct Remote Edits: Do not edit served host files directly on the server. Always change the repository and let the next run publish.

Read the full file on GitHub · 61 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. 6d ago Changed · +6 lines · +5 tokens per session scan A → B e20a2f71a179
  2. 2mo 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 (59 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 673 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

runner-publish compared with skills from other repositories

runner-publish next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
runner-publishcagedbird043/fcm-hosts-nextSkill59yesterdayMITB25Claude Code, Codex
deployment-patternsaffaan-m/ECCSkill298k4d agoMITA41Claude Code, Kiro
agent-github-modesruvnet/rufloSkill81kyesterdayMITA21Claude Code
baby-sitlangchain-ai/open-sweSkill11kyesterdayMITA30Claude Code, Codex
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.5k11d agoMITA69Claude Code
atmos-hookscloudposse/atmosSkill1.4kyesterdayApache-2.0A46Claude Code
atmos-procloudposse/atmosSkill1.4kyesterdayApache-2.0A38Claude Code