Skip to content
Back to skills

Docs

ASecurity

How the popost Skill reaches users. On 2026-11-19 the repository went public (fresh repository, one squashed commit) and `popost@4.6.0` was published to npm from a local checkout (so without provenance). Two routes, both ending with the Skill in the user's coding agent: | Route | User command (same on macOS, Windows, Linux) | Needs | |---|---|---| | npm | `npx popost@latest install` | the package on the npm registry | | GitHub | `npx skills add PopostAI/popost -g` | the repository public, the...

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
content-marketingrustgobashnodegitapi

Works with

  • terminal
  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 15 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add PopostAI/popost --skill docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/popostai-docs/badge)](https://www.skillsdirectory.com/skills/popostai-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Skill distribution at launch

How the popost Skill reaches users. On 2026-11-19 the repository went public (fresh repository, one squashed commit) and
`popost@4.6.0` was published to npm from a local checkout (so without provenance). Two routes, both ending with the
Skill in the user's coding agent:

| Route | User command (same on macOS, Windows, Linux) | Needs |
|---|---|---|
| npm | `npx popost@latest install` | the package on the npm registry |
| GitHub | `npx skills add PopostAI/popost -g` | the repository public, the Skill on its default branch |

On first use the Skill finds the executable (`popost --version`) or installs it (`npm install -g popost`), and any command
that needs platform credits guides the user to `https://popost.ai/account/api-keys` and stores the key with
`popost auth set --stdin` (`~/.popost/credentials.json`). The GitHub route copies the Skill folder only (no `dist/`), so
it depends on the npm package for the executable: publish to npm first.

## Before launch (once)

1. An npm account that will own the name `popost`, with two-factor authentication on for writes (`npm profile enable-2fa auth-and-writes`).
   Confirm the name is free or ours: `npm view popost` must answer 404 (or list us as maintainer). If an organisation is
   wanted, create it first and add the maintainers; the name stays unscoped because the commands are `npx popost`.
2. The legal items in `TODO.md` section 3 are done, and the repository is public (fresh repository, squashed history).
3. The default branch (GitHub setting) contains `skills/popost/SKILL.md` with a valid `name` and `description` and no
   `metadata.internal: true`: the skills CLI clones the default branch and looks in `skills/`.
4. The version is the same in `skills/popost/package.json`, `skills/popost/src/version.ts` and the `metadata.version` of
   `skills/popost/SKILL.md` (`npm run release:check` fails when they differ). The server refuses clients older than its
   configured minimum, so tell the popost.ai side before raising `VERSION`.

## Check what will ship (any time, nothing is published)

```bash
npm ci
npm run check            # typecheck, lint, tests
npm run release:check    # builds, lists the tarball (npm pack --dry-run), fails on missing, private or developer-only files and on version drift
npm run release:smoke    # packs, installs the tarball in a scratch directory, runs --version, auth and install with an isolated HOME
```

Both scripts are plain Node and run unchanged on Windows. `release:smoke` installs the packed dependencies from the registry
(or the npm cache), so it needs network on a cold cache.

## Publish to npm

From a clean checkout of the release commit on the default branch:

```bash
npm ci
npm run release:check
npm run release:smoke
cd skills/popost
npm publish --access public --otp <code from the authenticator>
```

- `prepublishOnly` does not exist: `dist/` must have been built by `release:check` just before. `npm publish` runs from
  `skills/popost` (the package root), never from the repository root (private, `popost-repo`).
- Provenance: only from CI. A GitHub Actions job with `permissions: id-token: write` runs the same steps and ends with
  `npm publish --provenance --access public` (authenticated by an npm automation token or trusted publishing). A local
  publish cannot carry provenance; do not pass `--provenance` there.
- Versions follow semver. A pre-release is `4.2.0-rc.1` published with `--tag next`; users on `@latest` never get it.
  Only a stable version is published without `--tag`.
- Verify from a machine (or a scratch `HOME`) that has never seen the package:

  ```bash
  npx popost@latest --version                  # prints the version just published
  npx popost@latest install --agent all --dry-run
  npx popost@latest install                    # installs for the agents found
  popost auth status                           # after npm install -g popost
  ```

## Publish the GitHub route

1. Make the repository public and merge the release commit to the default branch.
2. In a scratch `HOME`: `npx skills add PopostAI/popost -g`. Pick the agents the prompt offers; check that
   `<agent skills dir>/popost/SKILL.md` exists and `npx skills list -g` shows `popost`.
3. The skills CLI copies the whole `skills/popost` folder of the repository: about 6.8 MB of tracked files including
   `src/`, `tests/` and `tools/`. It has no ignore mechanism (it skips only `.git`, `__pycache__`, `__pypackages__` and
   `metadata.json` files). That is acceptable; do not move `src/` to work around it, because `skills/popost` is also the npm package root.
4. Start the agent, ask for a post: it runs `popost --version`, installs the command with `npm install -g popost` when missing,
   and asks for an API key when credits are needed.

## What a release triggers on users' machines

Since the update mechanism shipped (`skills/popost/src/update/`), publishing a stable version to the `latest` tag reaches
every standard installation (the published package in npm's global directory) without anyone typing a command:

1. Within 24 hours of the publish, the next `popost` command on a machine asks the registry for `popost/latest` (one small
   request a day beside the command; a failed request is tried again after an hour; the first time a newer version
   appears a second request confirms that the running version is a published build) and learns the version.
2. **Patch and minor versions**: that command starts `popost update` in the background as it ends. There is no waiting
   period: a publish reaches active machines within about a day. The update reads the registry's entry for the exact
   version (`npm view`), downloads the package as one file into a staging directory beside the installed one
   (`npm pack`), and checks the file before anything is installed: its sha512 must be the registry's `dist.integrity`,
   and the registry's signature over it (`dist.signatures`, keys from `/-/npm/v1/keys`) must be valid. Then npm installs
   that file in the staging directory, the new command line is started once (`--version`), the installed directory is
   swapped (two renames), and the new package's `popost install --existing` refreshes the Skill copies that already
   exist on the machine; it creates none. The next command reports `popost was updated to X`. A failed update leaves
   the old version in place, is reported once and is not retried for 7 days (or until the next version).
3. **Major versions, deprecated versions**, Windows, processes running as root, and machines where the global npm
   directory is not writable: only a notice, `popost X is available (this is Y); run: popost update`. Copies installed
   with pnpm, Yarn, Bun or Volta get the notice with that manager's command and are never replaced.

What follows for a release:

- A published version is live for most active users within a day, and cannot be recalled from machines that already took
  it. Run `release:check` and `release:smoke` first, as before.
- **Stopping a bad release: `npm deprecate popost@X "reason"`.** A deprecated version is never installed automatically:
  the daily check reads the mark with the version, and the background update asks the registry again directly before
  it downloads, so a mark set after a machine's check still stops that machine. Machines that already installed X keep
  it; publish the fixed patch, which installs the same way (moving `latest` back does not downgrade anyone: an update
  only ever moves forward). `npm unpublish` stops it too (the registry no longer has the entry, so the update fails and
  is reported as failed), but breaks every installation that pins X; prefer the deprecation. Take the mark away with
  `npm deprecate popost@X ""`. `popost update` typed by hand still installs a deprecated `latest`.
- **Publish from npm's own registry with its signature.** With `registry.npmjs.org` the update refuses a version whose
  registry signature is missing or invalid; npm signs every publish, so nothing is to do, but a release must never be
  served to users from a registry entry that was rewritten by hand.
- The new package's `popost install --existing` runs unattended on every machine. It must stay safe to run without a
  terminal: no prompts, no network, keep the sign-in profile, create no copy, exit 0 when nothing is to do. The flag
  must keep its name and meaning: the OLD version's update code starts the NEW package with it.
- The new command line must start on every Node the `engines` field allows: it is started before the swap, and a
  version that does not start is never swapped in (the update is reported as failed).
- Breaking changes go in a major version; nothing else is held back from the automatic update.
- A pre-release (`--tag next`) is never offered and never replaced. A test build handed to someone as a file must carry a
  version that is not on the registry (a pre-release such as `4.8.0-test.1`) or a `dist/distribution.json`: npm keeps no
  record of where a global package came from, so a file build with a published version number is taken for the
  published package and updated like one.
- The server's minimum client version (`x-popost-client-version`) can now be raised sooner after a release, but not
  at once: machines in CI, with `POPOST_NO_AUTO_UPDATE=1`, on Windows, running as root, installed with another package
  manager, with a major version pending, or without write access keep the old version until someone updates them.

State on a user's machine: `~/.popost/update/` (`check.json`, `attempt.json`, `settings.json`, `npm-root.json`,
`update.log`, a lock and one small file per running command); deleting the directory is harmless. `~/.popost/installs.json`
lists the skills directories `popost install` wrote to; without it a copy installed with `--dir` is no longer refreshed
by updates.

## Rollback

- A bad release: `npm deprecate popost@<version> "Broken: use <good version>"`, then publish a fixed patch version. Moving
  `latest` back: `npm dist-tag add popost@<good version> latest`.
- `npm unpublish popost@<version>` works only within 72 hours of publishing (and never for a version others depend on);
  after that only deprecate. A published version number is never reused.
- GitHub route: revert the commit on the default branch; users get the new state on the next `npx skills add`. Nothing is
  cached on the registry side.

## After launch

- Replace the install sections of `README.md`, `README.zh-CN.md` and `skills/popost/README.md` (they say both routes
  open at launch, with the local `npm run pack:skill` route until then): drop the "not yet available" wording.
- The popost.ai API Key page copy already uses these commands (`npx popost@latest install`, `popost auth set`); check it
  still matches the final syntax.
- Remove "not published to npm" statements in `AGENTS.md` and `skills/popost/README.md`; add the published package to
  `NOTICE` only if third-party licences changed.

Files in this skill

  • editor-rewrite/PARITY.md11.5 KB
  • editor-rewrite/SPEC.md23.7 KB
  • editor-rewrite/current-contracts.md79.9 KB
  • editor-rewrite/current-features.md29 KB
  • editor-rewrite/tools/frame_check.py19 KB
  • editor-rewrite/tools/parity_check.mjs72 KB
  • editor-rewrite/tools/parity_local_server.py4.1 KB
  • history/oss-cleanup-progress.md19.3 KB
  • readme-showcase-credits.md4.6 KB
  • release-skill.md10.7 KB
  • video/DEVELOPMENT.md30.4 KB
  • video/DEVELOPMENT.zh.md29.9 KB
  • video/README.md801 B
  • video/STUDIO.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in content-marketing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.