Skip to content
Back to skills

Trip Publish

ASecurity

Re-publish an already-public trip site after edits, or list what is published. The publish surface — never creates a repo, never rotates, never takes a site down, never publishes plaintext.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
ai-agentsrustgoshellbashexpressawsgit

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add cody-hutson/travel-planner --skill trip-publish --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Trip Publish?

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

Security grade badge for Trip Publish
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cody-hutson-trip-publish/badge)](https://www.skillsdirectory.com/skills/cody-hutson-trip-publish)

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
---
name: trip-publish
description: Re-publish an already-public trip site after edits, or list what is published. The publish surface — never creates a repo, never rotates, never takes a site down, never publishes plaintext.
argument-hint: update|list [--trip <slug>]
disable-model-invocation: true
allowed-tools: Bash(ls:*), Bash(grep:*), Bash(test:*), Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh update:*), Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh list:*), Read(${CLAUDE_SKILL_DIR}/../../reference/trip-resolution.md)
disallowed-tools: [Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh publish:*), Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh rotate:*), Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh unpublish:*), Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh status:*), Bash(bash:*), Bash(sh:*), Write, Edit, NotebookEdit]
---

# /trip-publish

`/trip-publish <verb> [--trip <slug>]`

The verb is the one the user typed. § *Selecting the verb* below is the whole of how it is
reached: a literal lookup, lexical at every step, against the recognition set read live. So
nothing in this file supplies a verb the user did not type, and the lookup has no place to
put the wording around the token; that the token was typed at all is held by this file's
invocation flag, not by the lookup.

**Engine root — where every path in this file resolves from.** This engine's own assets — the
agent prompts, the reference documents, the templates and the shell entry points — live under
`${CLAUDE_SKILL_DIR}/../..`, which is the directory holding them whatever working directory you
were invoked from. That holds when this verb's directory is a link placed beside the engine: the
harness names the link, and `..` is resolved after the link is followed, so the path still lands
in the engine — read it as the kernel does, never by collapsing the text. **Every engine path named anywhere in this file, its frontmatter included, and
every engine path named inside any engine document you open from it, is repository-relative to
that root and never to your working directory.** Resolve it against the root before you hand it to
a tool: a bare relative path follows the session's working directory, and that directory is
arbitrary. Operator trip data is a separate root and is named where it is used.

**A script's own data reads are a different question from where the script is, and rooting its
path does not answer it.** Where a verb's invocation section tells you where to stand when you run
it, that instruction is about the working directory the script resolves its own store against, and
it stands unchanged.

**The bare spelling of a path inside prose is deliberate and is not a defect to repair.** A path in
a document the agent reads is returned as text — there is no include directive at either surface —
so rooting it there would buy no mechanism while putting an unexpanded variable in front of every
human reader. The rooted spelling belongs where a path reaches a tool as written: the frontmatter
grants and the fenced invocations.

## Why this is its own file

**What `disallowed-tools` does at runtime was an open question here, and `ADR-007` has
closed it.** Its 2026-09-11 amendment discharged the tool-list question by **quoting the
published contract** rather than summarising it, and the account it confirms is the one
`reference/adr/ADR-007-command-entry-point.md` § Context had already given — **clause for
clause**, so the question this file once left open is settled in § Context's favour, and the
sentence that called it unsettled is withdrawn rather than softened. `allowed-tools` is
turn-scoped **pre-approval and not restriction**: every tool stays callable, and a tool
left off the list routes through the usual permission settings rather than being forbidden.
`disallowed-tools` is turn-scoped **removal** — the real restriction of the pair, and a
firmer thing to say about these entries than this passage used to say. **Durable blocking
still needs a permission-settings deny rule — a different artifact, and one this repo does
not ship**, so the removal these entries carry ends at the next message.
`scripts/test-command-taxonomy.sh` reads the line on a different axis: its invocation
classifier walks the command directory and matches this file's `disallowed-tools:` line on
the publish-script grant token that line carries, counting it into a **tool-grant tally** —
one term of a parse-coverage identity that guard asserts and fails on. That reading is of
what this file **declares**, so what it establishes is that the entry was written, and a
green check there is not a privilege guarantee and must not be read as one. Where else the
field appears is **re-derived from the tree rather than listed here**: the list this
sentence used to carry named the five command files, one workflow comment and the ADR, and
was two short — it missed a second workflow comment and the guard itself, which is what a
written-down census does.

What the settled account gives this file is narrower than enforcement, and that is all it
relies on. The declaration is turn-scoped and clears at the next message; a tool left off
`allowed-tools` is not thereby forbidden, it routes through the usual permission settings
instead. **Omission is not prohibition.**

**So this file's conduct is written as rules it follows, never as a property its
frontmatter guarantees**, and that is what keeps it sound on the rule alone: every claim
below holds without the frontmatter being what makes it true.

**Each claim here about what this command will not do is labelled by what establishes it,
and the two bases are not interchangeable.** A claim resting on a **rule this file
follows** holds because the file says so, and nothing but the file says so. A claim that
*also* has a `disallowed-tools` entry behind it names that entry as a **declared**
removal — one whose reach ends with the turn, and which is therefore
offered as corroboration rather than as the thing that makes the claim true. What is never
claimed is the third thing: a prohibition inferred from a grant left out. Where this file's
reach is bounded by omission alone, it says *unlisted*, not *denied*.

That is why the publish surface is a separate file rather than a rule written inside
`/trip`. A rule written inside one file cannot partition anything **across** files — only
the per-file declarations can, because they are the only per-file thing there is to differ.
What a runtime does with those declarations is the settled question above; the partition
is a property of the declarations either way, which is why it is stated as one. **This file
holds the publish half of it, and that half is observable right here:** it reaches the
publish script and names every content-mutating tool in its `disallowed-tools`. The editing
half is a **requirement on the files that
hold it** — each denies the arms of the publish script it does not own, and both shell
wrappers. It is stated as a requirement rather than as an observation about those files,
because a sibling's frontmatter can change without this file changing, and a claim this
file makes about another file's declarations is a claim it cannot keep true.

One file could not hold both halves and still do either job, so folding a publishing verb
into `/trip` would put `plan`, `replan`, `research` and `site` on the same side of a
per-file control as a push to a live public site. **The separation is the control**, and it
is the reason this file exists — not a convenience. It is a *declared* partition, turn-scoped
like every grant and denial on this surface rather than a durable guarantee: what it removes
is the case where one file's declared set spans both jobs at once.

### What each grant is held for

| Grant | The use that holds it |
|---|---|
| `Bash(ls:*)` | the trip-listing evidence block below, which the declared `contract-depth` requires |
| `Bash(grep:*)` | the trip-record evidence block below, which the declared `contract-depth` requires; and, on an operator hand-off, the one line it prints, taken from `CLAUDE.md` § *Publishing to GitHub Pages* where that section is not already in context |
| `Bash(test:*)` | `update`'s two preconditions. Chosen because it is the narrowest primitive that answers *is this variable set* and *is this path present*, and because it **discloses no contents** — it answers by exit status. A malformed invocation can still put a usage diagnostic on stderr; that names an operand, never a value |
| `publish-trip-site.sh update` | `update`'s single invocation |
| `publish-trip-site.sh list` | `list`'s single invocation |
| `Read(${CLAUDE_SKILL_DIR}/../../reference/trip-resolution.md)` | the contract read every verb makes once per invocation, before it acts — the file this file's `Contract:` line names, and the one path the grant names |

**The publish script's grants are named here by script and arm, and spelled only in the
frontmatter above.** A cell that spelled one would be a second copy to keep in step with it.

**Denied, not merely unlisted:** `Write`, `Edit`, `NotebookEdit`. Nothing here
writes a file or edits one, and that rests on those denials — unlisted would prohibit
nothing. **`Read` is granted for one path and denied for none:** the contract file, which
every verb reads before it acts. A read of any other path routes through the permission
settings rather than being removed, so that this file reads no trip file in full is its own
rule, stated below, and not a denial.

**Two bounds rest on a rule instead, and are marked as rules rather than dressed as
denials.** This command **dispatches no agent**: the agent-dispatch tool is neither granted
nor denied on this surface, so the deny grammar does not reach it and no denial is claimed
for it — the bound is that no construct below dispatches one. Likewise it runs no `date`,
no `mkdir` and no primitive outside the grant table above but one — the `echo "$HOME"` this
command issues under gate `G0-root`, to learn the home directory it substitutes into the
pointer read, a call that reads no path: those are *unlisted*, which pre-approves nothing
and forbids nothing, so the bound is again the file's own text.

**One grant does read file contents, and this file states that rather than denying it.**
The trip-record evidence block below greps `trip-context.md` and emits the lines it
matched. That is reading a file's contents — by design, at the depth the contract requires,
and it is why no blanket "nothing here reads a file" claim appears anywhere in this file.
**A second grant reads without disclosing:** `Bash(test:*)` observes a path's presence and
readability, which is a read under § *What counts as a read here* although no contents reach
any channel. Both are declared where the surface requires reads to be declared — in the
verb's own `**Reads:**` line — and neither is denied here, because neither is the thing that
is ruled out. What is ruled out is narrower, and is stated as the rule it is: no construct
here directs either grant, or any other content-emitting primitive, at a passphrase path.

### The deny set, as a rule rather than a list

The denied arms are **every arm of the dispatch `case` in `scripts/publish-trip-site.sh`
whose body reaches a `cmd_*` function, minus the verbs of this file's requirement table**,
with each alternation split into its literal tokens so an aliased arm is denied under
every token that reaches it. Read the dispatch and the table when you need the set: it is
stated as a derivation rather than as a count or a census, so the correct set is always
**re-derivable** from live sources and never goes stale as a written-down number.

**Re-deriving it is not automatic, and this file does not claim it is.** `disallowed-tools`
is a static list in the frontmatter above; nothing compares it to the dispatch. The
trip-resolution contract suite puts runtime privilege out of scope by name, and where a
check does read a `disallowed-tools` line — `scripts/test-command-taxonomy.sh` does, in its
invocation classifier — it counts the line as a **declared tool grant** and compares it to
nothing, the dispatch included. So the day the script grows an arm, the
rule says what the new deny set is — and an editor still has to apply it. The Extension rule
below is where that obligation is written, and it is the whole of what carries it.

`status` is denied under that rule as the script's alias for
`list`, while this file implements the literal `list`; a `status` token also collides with
a different command's verb.

The shell wrappers this surface denies are denied here alongside the arms, because a
wrapper routes around a per-arm denial — denying one arm is worth nothing if the same
command line can be reached through `bash` or `sh`.

**What the deny set does not close, stated rather than papered over.** An enumerated
`disallowed-tools` cannot be closed over every content-emitting primitive, and the wrapper
denial is itself an enumeration — a shell outside the set this surface denies is not
denied by it.

**Nor does the allow side supply a closure to make up for it.** By this section's own rule,
a closed grant list forbids nothing: a primitive left off it routes through the permission
settings rather than being blocked. What the grant table delivers is a closed
**declaration**, not a closure — every primitive this file intends to use is named there,
bar the one `echo "$HOME"` named under that table as its only exception, so a use outside
them is a departure from the file rather than something the file quietly permits. The
grep grant, which the contract's prefix equality forces this file to hold at
its declared depth, is structurally capable of emitting a file's contents. That residual is
bounded by a rule rather than by a denial — no construct in this file directs a
content-emitting primitive at a passphrase path.

**Resolve the data root before you read anything.** `reference/trip-resolution.md` § *Resolving a trip* — read with this file's one
`Read` grant — gate `G0-root`,
using the `data-root-pointer:` path carried in this file's contract header below. Then **run each entry
below as a tool call**, substituting the resolved root for `<data-root>`. They are not pre-execution
blocks and nothing has run ahead of you: an entry yields no evidence until you issue it.

## Trips in your data home

`ls -1 "<data-root>/trips" 2>&1 || printf 'TRIPS-DIR-UNREADABLE\n'; true`

## Trip records

`grep -H -E '^\*\*Current mode:\*\*|^- \*\*Primary destination:\*\*|^\*\*Lifecycle:\*\*' "<data-root>/trips"/*/trip-context.md 2>&1 || printf 'NO-TRIP-CONTEXT-READABLE\n'; true`

## Contract header

```trip-contract-header
Contract: reference/trip-resolution.md § Resolving a trip
contract-depth: G8
population-role: RESOLVE
data-root-pointer: ${HOME}/.travel-planner/data-root
```

| verb | lifecycle | mode | destination | depth |
|---|---|---|---|---|
| update | ACTIVE | any | any | G8 |
| list | ANY | any | any | G0 |

The block above is this file's contract declaration, and the requirement table sits
**below** it, outside the fence, so it renders as a markdown table. The fence the
contract publishes names that table among the block's fields on a line that is **entirely
a placeholder** — it describes the field rather than rendering it — so the canonical fixes
this block's field set and does not settle where the table is drawn.

**The table sat inside the fence for one revision; this returns it to the outside.**
Neither arrangement is observed by `scripts/test-trip-resolution-contract.sh`, and that
was read out of its source rather than assumed: it opens a fence by info string at one pin
and that pin reads `CLAUDE.md`, while every assertion it makes about a consumer — the
citation line, `contract-depth`, `population-role`, and the depth cells it reads at
pipe-field five — is a whole-file line scan carrying no fence state. The choice is
therefore editorial and it is made for the rendered form. **A checker locating this file's
declared verb set by opening this fence would see the difference**; the table's own header
row is the anchor that survives the rendering. Both revisions are recorded here rather
than left for the next reader to rediscover as a difference with no stated reason.

**Frozen.** The citation line, byte-for-byte. `contract-depth: G8` as a **bare** token on
its own line — a code-span rendering of that line is graded as an *absent* declaration, so
the tolerance for a code span belongs to a depth **cell** and never to this line.
`population-role: RESOLVE`. The fence tag. The table's five columns, their order, and their
header row.

The ladder this cites is stated in one place and is not restated here. The blocks above
are this file's evidence entries, tool calls you issue as the data-root paragraph above
directs; their output is the whole of the trip state this file **resolves against**, and
the whole of the trip state it needs, and no verb here reads a per-trip path of its own but the
existence probe `update` declares. Do not
read `trip-context.md` in full, and do not read `trip-log.md` or anything
under `outputs/` — a rule this file follows, and the one `Read` grant names the contract
file and nothing else, under the caveat above on what a declaration establishes.

### What counts as a read here

**This file uses the surface's definition of a read, not a second one.** That definition is
stated in `skills/trip-record/SKILL.md` § *What the blocks above are*, a section that
marks itself frozen, and it is applied by `skills/trip/SKILL.md` in the same terms: **a
path read only to test whether it exists — or whether it is readable — is a read, and is
declared.** The reason is the one that section gives: the probe selecting a branch is the
control the rule on that branch turns on, and an undeclared probe hides the one read the
rule depends on. This file takes one such probe, `update`'s approver-declaration test, and
declares it; what keeps it clear of a silent re-key is the script's own refusal, and `update`'s
other precondition tests an environment variable.

**A read of a path and a read of a value are different objects:**

- **A read of a path** is any observation this command makes of the filesystem — presence,
  readability, contents. It is what a `**Reads:**` line declares, and its purpose is that
  the reads this command performs are auditable from the file.
- **A read of a value** is contents reaching a channel. It is what standing rule 4 forbids
  for a passphrase, and its purpose is that no secret enters the transcript.

**The read-scope ceiling for this file.** Every verb reads exactly what its own
`**Reads:**` line names, and nothing else; silence there is a prohibition rather than a gap.
The two prohibitions in the paragraph above are stated because they bind verbs whose lines
do not mention those files at all. How a sibling command renders its own ceiling is that
command's to state.

This file's grants for the evidence entries above are its declared minimum privilege, each
for a use the table above names: `Bash(ls:*)` for the listing block, and `Bash(grep:*)` for
the record block, which reads the lifecycle, the mode and the destination by value. No grant
here is speculative and none is unused.

**`contract-depth` is the maximum depth over the table, not a per-verb claim.** `list`
declares `G0` on its own row while this file declares `G8`; the maximum over the table is
`G8`, so the declaration is consistent with the row that differs from it.

**Depth `G0` scopes what `list` reads. It does not exempt `list` from G1 or G2**, which
bind every command in this surface, this one included. `G0` says the verb needs no trip
record — not that the ladder does not run for it. `list` therefore takes G1's
listing-trustworthiness check and G2's population dispositions exactly as the contract
states them for a `population-role: RESOLVE` consumer, the `--trip` rule included. Read
that as the contract's disposition rendered, never as a behaviour this verb owns.

**Why every state cell is declared rather than defaulted.** An undeclared `lifecycle`
reads `ACTIVE` under G7's default. `list` is repo-wide, so a defaulted `ACTIVE` would be a
requirement it never meant to state; it declares `ANY` explicitly instead. `update`
declares `ACTIVE` explicitly for the opposite reason — an archived trip must stop
re-publishing, and stating it in the row is what makes the refusal name a cell rather than
lean on a default.

**Why `update` declares `destination: any`.** Its real precondition is that a site exists
and this trip is already published, which is stronger and more precise than *a destination
is decided*, and it is checked where it belongs — see `update` below. A `destination`
requirement here would be a second, weaker guard for the same failure, and it would refuse
a legitimate case: a site built and already published while the destination line is still
bracketed.

## Standing clause — binding every verb of this command, present and future

This clause sits outside every verb section on purpose: a rule written inside one verb
protects only the verbs that existed when it was written.

1. **This command reaches only the arms its requirement table names.** It never invokes
   `publish`, `rotate` or `unpublish`, in any form — not directly, not through `bash` or
   `sh`, not through any other wrapper, alias or generated command line. The direct route
   and the `bash`/`sh` routes are **denied**; everything past them is a **rule this file
   follows**, because the wrapper denial is an enumeration and a shell outside it is not
   denied — as the deny-side residual above states rather than papers over.
2. **It never sets `ALLOW_PLAINTEXT`, and never passes `--yes` to `unpublish`.** Those are
   the flags that convert a refusal into a silent pass for a non-interactive caller, and
   `reference/adr/ADR-007-command-entry-point.md` § 2 states that bound is not negotiable
   by a later slice.
3. **It never sets `STATICRYPT_PASSWORD`.** A secret set on the invocation sits in the
   command text itself, which is the disclosure the same ADR's § 4 admission rule names
   when it excludes a secret supplied as a command-line argument.
4. **It never reads, prints, echoes, logs, stores or reproduces a passphrase *value*, and
   never substitutes one.** The object of this rule is the value, not the path. No
   construct in this file touches a passphrase path at all; the script holds the key check,
   and this file relays what it says. A refusal names the path and the variable — never a
   value, never a substitute, never a length, never a prefix.
5. **It writes, creates and deletes no trip content** — nothing this repo treats as the
   trip's own record. It introduces no field, so it claims no row in `CLAUDE.md` → *Write
   ownership — trip-context.md, block by block*. **This rule is scoped to trip content
   rather than to the `trips/` path, because the arm this file owns is not inert under
   that path:** the script's `update` arm removes and re-creates the per-trip scratch
   clone at `trips/<slug>/.publish/` and copies the re-encrypted page into it. That
   directory is a scratch clone under `<data-root>` rather than trip content, which is why
   it does not cross `reference/adr/ADR-007-command-entry-point.md` § 2's bound against
   overwriting existing trip content — but it *is* a write under `trips/`, so a rule
   phrased by path would be false the first time this command ran.
6. **It creates no per-trip GitHub repository and takes no site down.** Repo creation and
   Pages-enabling belong to the `publish` arm, takedown to `unpublish`; both are denied.
   The local clone the `update` arm makes under `trips/` is the scratch working copy rule 5
   names, not a repository this command creates.
7. **It never branches on freshness**, and adds no gate that blocks on it. G8 is reserved
   and report-only, and the contract records the reason: an unconditional
   render-newer-than-model gate refuses every correct publish rather than more of them.
8. **An act on a verb the operator did not type runs only after a confirmation that names
   the verb and its target, answered before the act.** The verb is the token in this file's
   requirement table. The target is the operand that verb's own `## <verb> <signature>`
   heading declares and, where it declares none, the trip `E1` resolved. Inference may
   reach such a verb, may name it and may prepare it; it may not act on its own selection.
   Where a verb's own section already states a confirmation shape — an echoed
   outgoing-to-incoming pair, a preview over a source's own answered set, a typed
   identifier, a display name beside a member count — that shape stands unchanged and this
   rule is added beneath it, never substituted for it. **A verb is outside this rule where
   its own `**Reads:**` block declares each of three things: that it writes nothing, that
   it dispatches no agent, and that it performs no act whose effect lands outside the
   trip's own files.** That is the inference line
   `reference/adr/ADR-007-command-entry-point.md` § 1 draws, read here rather than
   restated; a block declaring none of the three leaves its verb inside this rule, because
   a property nobody has declared is not one this rule may assume. **This rule is followed,
   not enforced.** No frontmatter key expresses a boundary finer than the file, the tool
   lists are turn-scoped and gate tools rather than acts, and no arrangement of them makes
   a confirmation happen — so the strength here is the strength of a rule, which is what
   § 1's amendment states and is the whole of what this file claims. A confirmation is what
   an inferred selection needs **before** an act the bounds already permit. It is never
   what makes an act they forbid available: it admits no `ALLOW_PLAINTEXT`, no `--yes` to
   `unpublish`, and no overwrite or deletion of existing trip content, each of which
   rules 2 and 5 above and `ADR-007` § 2 forbid unconditionally.
9. **A run nobody can answer writes only what its verb writes without asking.** A run is
   non-interactive where no later message can reach the session: print mode, or a scheduled
   task. An answer arrives only in a later message, and `allowed-tools` clears when one does
   (`reference/adr/ADR-007-command-entry-point.md` § *Context*). So where a verb's section
   reaches a write without asking anything, the write runs in this turn, under this turn's
   grants, because typing the verb is what asked for it. Where the section asks first — a
   question, a choice of routes, a confirmation, a typed token — the verb stops there: it
   names what it would have asked, writes nothing past that point, and takes no default, no
   assumed answer and no flag in the answer's place. What it wrote before that point stands,
   and it says so. A write the harness denies is relayed as a denial and never reported as
   done. **A session need not recognise print mode for this to hold**, because a question
   nobody answers writes nothing either way, and a verb's own non-interactive row stands,
   and stops no later than this rule would.
   `reference/adr/ADR-051-a-verb-runs-until-it-asks.md` records the decision; this rule is
   its operative statement. **This rule is followed, not enforced.**

**Extension rule.** A later slice may append a numbered rule above only where it genuinely
binds every verb of this command, present and future, and must say so in its own design; a
rule binding only that slice's verbs goes in that verb's own section. Adding a verb adds a
row to the requirement table, appended below the rows already there. `allowed-tools` grows
by union only, and only where the adding slice's own design names the verb that needs the
grant. **Any arm of the script that is not that slice's verb is added to the deny set in
the same edit** — the deny rule above is stated as a derivation so that the correct set is
*computable* rather than recalled. Computing it is not the same as applying it: applying it
is an editorial step, no check fails if it is skipped, and this sentence is the whole of
what carries the obligation.

## Selecting the verb

A literal lookup. Every step below is lexical, and the last one has a terminal
else-branch, which is what separates a lookup from a classification.

1. Take `$ARGUMENTS` as a literal string.
2. Remove `--trip` together with the value that follows it, from wherever in the string it
   appears — it is accepted in any position. `--trip` is a contract-level token: it is
   removed before the verb is selected and it is passed to no verb. A `--trip` with no
   value after it is a malformed invocation — say that `--trip` was given without a slug,
   and stop.
3. The verb is the first remaining whitespace-delimited token, ASCII-case-folded.
4. Match that token by **exact string equality** against the `verb` column of this file's
   requirement table, read live from the table above. Not a prefix match, not a nearest
   match, not a fuzzy match, not a substring match.
5. Everything after the verb token is that verb's argument string. Do not interpret it
   here and do not forward it: no row of the table above declares an argument, so a
   trailing token is reported and stops the invocation rather than being passed on.

**This command has no default verb.** If no token remains after step 2, name the verbs of
the table above, read live, and stop. A defaulted verb here would supply an action the
user did not type, on a surface where a candidate for the default pushes to a live public
site.

Never infer the verb from the wording of the request, from the trip's mode, from which
files exist, or from anything other than the token step 3 produced.

`trip.slug` is the directory name exactly as `E1` spelled it. The `--trip` value is a
selector matched against the members `E1` listed — it is never a path component, and no
path is ever built from it on this command.

**`--trip` does not filter `list`.** On `list` it still constrains G2 exactly as the
contract states, and it still does not change what `list` prints: `list` is repo-wide and
the script takes no argument for it. That asymmetry is stated here so a reader does not
expect a filtered inventory.

## When the token is not a verb of this command

This refusal happens before the gate ladder runs — before its first gate — so no trip
state has been established and none is asserted. It sets no `trip.resolution` and no
`trip.stop_gate`: those are outputs of a ladder that did not run. Say nothing about
whether a trip exists, which trip is active, or what mode it is in.

Render exactly this, and nothing else:

1. The token, verbatim, as the user typed it.
2. The verbs of the table above, read live from that table rather than from a list written
   into this section.
3. One sentence naming the engine's guided-entry surface at its root — the surface that
   takes a request in ordinary words and answers with the verb that serves it — and saying
   that it names a verb and runs none. Name no verb in that sentence.
4. Stop.

Do not guess. Do not offer a near-match suggestion — no "did you mean" — for a suggestion
is a classification with an extra step and a reflexive accept, on the least inspected path
in this file. Do not fall back to any other command's verb, and do not infer a verb from
the wording of the request.

The recognition set here is closed for a second reason as well, and the two are
independent: a verb absent from the requirement table is `REFUSE` under G7's default, so a
token that somehow reached the ladder without a row cannot `RUN` there either. A verb a
later slice adds lands in the table or does not run.

## update

**Reads:** in IDEATION, `trips/<slug>/.approvers` — an existence probe for the precondition below,
no byte of it read — and no other trip path of its own. On a first-publish or key-remedy hand-off below, the one line
it prints, from `CLAUDE.md` § *Publishing to GitHub Pages* — in context when this repository is the
workspace, otherwise taken with this file's `grep` grant from the engine root — and nothing else
of that file. Reads no `trips/<slug>/trip-context.md`, no
`trips/<slug>/trip-log.md`, no `trips/<slug>/.publish-slug` and nothing under
`trips/<slug>/outputs/` — the record block above already carries the lifecycle, the mode and
the destination by value, the publish script resolves the slug file itself, and a read here
would give this command a second source for state it does not own. It reads no
`trips/<slug>/.passphrase` either: the script holds that check. **Reads no passphrase
value**, on this verb or anywhere in this file. The precondition's other check reads no path: it
tests an environment variable, named here so its absence from the path list is not read as an
omission. Runs `scripts/publish-trip-site.sh update` and dispatches no agent.
**Non-interactive: the standing clause's *run nobody can answer*.**

**What it is.** Re-encrypt an already-published trip site and push only ciphertext to the
per-trip repo that already exists. It creates no per-trip GitHub repo, which is what keeps
it clear of the repo-creation reason that excludes the first publish.

**The passphrase stop is verb selection, not output filtering.** The script paths that
write a passphrase to standard output belong to arms this file denies. The arms this file
owns emit none — `update`'s completion line names only the URL, and `list` prints an
inventory table. Because the emitting paths are unreachable from here, **there is no
passphrase value for a filter to miss**. Nothing in this file filters output for a secret,
because nothing in it can produce one.

### Precondition — before any invocation is constructed

**`update` never generates a key, and the script holds that rule:** with no `$STATICRYPT_PASSWORD`
and no `.passphrase` it can read, it refuses before its resolver, naming `rotate`, so it pushes
nothing and writes no passphrase. This verb relies on that refusal rather than duplicating it.
The checks it makes of its own are below, in order, and the first to refuse stops it. Run
each through `test` and no other primitive: each answers by exit status and **discloses no
contents**.

**The passphrase environment override is unset.**

```
test -z "${STATICRYPT_PASSWORD:-}"
```

A non-zero exit is a **refusal, and it stops.** With the override set there may be two keys in
play, and this command must never read a passphrase value, so it cannot tell whether they agree. The script itself refuses
an update whose two keys disagree, before any network call — a silent re-key is how a routine
update once undid a rotation — and an agreeing pair resolves to the same key either way; this
check keeps the command from reaching that decision at all, because it cannot see which case it
is in. Say:
that `STATICRYPT_PASSWORD` is set in this environment; that where the trip has a `.passphrase`,
that file is the key of record; and that the remedy is to unset the variable — to change the site's
passphrase, the operator runs `rotate` in their own terminal. Name the variable. Name no value, no substitute, no
length, no prefix.

**No approver declaration, where the mode is IDEATION.** Every IDEATION build is a pre-plan site,
whatever the destination (`reference/site-layout-spec.md` § 3); in any other mode skip this check.
With `trip.data_root` and `trip.slug` substituted:

```
test -e "<data-root>/trips/<slug>/.approvers" || test -L "<data-root>/trips/<slug>/.approvers"
```

Presence is the declaration, a link included, as `_approval_policy` in
`scripts/publish-trip-site.sh` reads it. **A zero exit is a refusal, and it stops.** Say that this
trip declares approvers and is in IDEATION; that approvers approve the plan only, so a pre-plan site
carries nothing for them to approve; and the two ways forward. **Record a destination and move into
a plan mode:** `/trip-record destination <chosen>`, then `/trip-record mode DISCOVERY` (`CLAUDE.md`
§ *Starting a new trip*), then `/trip plan` and `/trip site`; the destination alone leaves the trip
in IDEATION. **Or withdraw the approvers:** retiring a declaration is the operator's own act, and it
removes `.approvals` with it (`skills/trip-record/SKILL.md` § *.approvers*, consequence 3).
Run neither.

### Ordering

Precondition → invocation → report. Nothing is invoked before the precondition passes.

### Invocation

```
${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh update trips/<slug>
```

with `<slug>` replaced by `trip.slug`. **Run it from any directory, and keep `trips/<slug>`
relative:** with the flag below appended the script resolves it under the data root rather than
the working directory, which is the same shape `/trip schema` gives `--scope dir trips/<slug>`.
The engine directory is no better a place to stand than any other — once the engine is installed,
its `trips/` is an empty skeleton.

**Append `--data-root <trip.data_root>` to the line above**, using the absolute path gate
`G0-root` resolved. Rooting the script's *path* makes the script reachable; it does not tell the
script where your data is, and the two are different questions. Without the flag the script falls
back to the working directory, which is exactly the dependence this contract removes. **This
instruction is prose beside the fence rather than a longer fenced line, deliberately:** the line
in the fence is the asset-resolution slice's and is left byte-identical, so a regression in either
concern stays attributable to one change. The retained where-to-stand sentences on this
surface are the same pattern, already ratified.

**When the trip was never published, or its per-trip repository exists and is empty**, the script
refuses before the passphrase is touched: it resolves the per-trip clone and asks the host about
an empty repository before it resolves the passphrase, so it creates no repository, pushes
nothing and mints no passphrase. Where the host answers, its own message names the remedy — a
first publish. Where the host cannot be read about an empty clone, it refuses as for a clone with
no record of the site, naming the clone's removal and a re-run, and writes nothing; the re-run
reaches the first-publish refusal once the host answers. (Resolving
the clone does clear a stale scratch clone first; that is rule 5's scope, and it is not a
publish.) This verb relies on that refusal rather than duplicating it; a second, weaker
pre-check would be a guard for a failure the script already guards precisely.

A first publish is not a verb of this file, so render the named remedy as an **operator
hand-off**: point at `CLAUDE.md` → *Publishing to GitHub Pages*, read its publish command as
§ *update*'s `**Reads:**` line says, print that command for the operator to run in their own terminal with every placeholder
filled, and stop. **Fill each one, or the printed line runs from nowhere:** `trip.slug`
for the placeholder trip directory, `trip.data_root` for `<data-root>`, and for
`<engine-root>` the engine root named at the top of this file, its `..` segments kept as
written — collapsed as text, they land outside the engine when this verb's directory is a
link. Filled, the line runs from whatever directory the operator's terminal is in.
**Print the line** — a hand-off that names a section and leaves the operator with nothing
runnable has failed, the same standard the plaintext hand-off below is held to.
**Rendering a command line for the operator is not constructing an invocation**, and the
two must not be collapsed: what is forbidden is running it, routing it through any
primitive, or offering `publish` as a verb of this command. Do not do those. Do print the
line.

**When the trip has no key the script can read**, the script refuses before its resolver, and its
own message names the remedies: putting the current passphrase back, `rotate`, and, for a site
published `--plaintext`, `rotate` or `unpublish` followed by `publish --plaintext`. None of those
is a verb of this file. Relay the message as an **operator hand-off**, by the same standard as the
first publish above, printing the line for whichever remedy the operator names and running none.
**The script's remedy of setting `STATICRYPT_PASSWORD` belongs to the operator's own terminal, never
to this verb:** the precondition above refuses whenever that variable is set, so relayed as a step of
this verb it would loop. Say so, and print the script's `update` line for the operator to run there
once they have set it; set nothing, and name no value.

**When the key does not open the live page, or another publish command holds the trip,** the script
refuses before its push and says which. The key's remedies — putting back the passphrase that opens the
site, or `rotate` — are not verbs of this file: relay them as an **operator hand-off** by the standard
above, printing the line for whichever the operator names and running none. Relay a lock refusal as it
stands: re-run once the named command has finished. Where the script says the holder is not running, the
removal it names is the operator's to run, after checking that no publish command is running on the trip.

**When the resolved trip is `ARCHIVED`**, the row above declares `lifecycle: ACTIVE`, so
G7 disposes `REFUSE`: name the cell the resolved state does not satisfy and the value the
ladder resolved, and stop. Do not re-publish an archived trip.

### Report

Report what the script reported, and add no conclusion it did not make. On success its
completion line names the live URL. If its source check or its pre-push guard stops it, say
that nothing was pushed and name what the script named — the file and the field for the source
check, never a value. A stop is not a partial publish.

## list

**Reads:** nothing beyond the blocks above. It takes no probe of its own, and reads no
`trips/<slug>/trip-context.md`, no `trips/<slug>/trip-log.md`, no
`trips/<slug>/.publish-slug` and **no `trips/<slug>/.passphrase`** — the script resolves
what it needs and reports it, and a read here would give this command its own view of
publication state, which § *Never assert a publication state that was not observed*
forbids. Its depth cell is `G0`, so it reads no trip record either. Runs
`scripts/publish-trip-site.sh list` and dispatches no agent. **It writes nothing, here or
anywhere: the subcommand it runs resolves and reports and never writes, encrypts or
pushes — so it performs no act whose effect lands outside the trip's own files.**

Repo-wide, read-only, no trip, no arguments, depth `G0` on its own row. It reports each
trip with its repo, status, published and edited dates, and the relation
`build-to-published`, exactly as the script emits them.

### Invocation

```
${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh list
```

Run it from any directory: with the data-root flag below appended the script scans
`<data-root>/trips/` rather than `./trips/`, and it takes no argument beyond that flag.

**Append `--data-root <trip.data_root>` to the line above**, using the absolute path gate
`G0-root` resolved. Rooting the script's *path* makes the script reachable; it does not tell the
script where your data is, and the two are different questions. Without the flag the script falls
back to the working directory, which is exactly the dependence this contract removes. **This
instruction is prose beside the fence rather than a longer fenced line, deliberately:** the line
in the fence is the asset-resolution slice's and is left byte-identical, so a regression in either
concern stays attributable to one change. The retained where-to-stand sentences on this
surface are the same pattern, already ratified.

**Freshness is report-only.** Render the `build-to-published` column as the script emits it,
including the operand an undetermined verdict names. No verb of this file branches on it, and
`update` does not require the page to be behind — re-publishing unchanged content is legal. It is not inert, though: it
pushes a commit, and `reference/adr/ADR-007-command-entry-point.md` § 4 records that
commit's timestamp as a metadata residual no revert reaches.

### The relation — `build-to-published`

| relation | the derived side | the source side, by rule | when an operand is not observable |
|---|---|---|---|
| `build-to-published` | the render as last pushed, by the digest `trips/<slug>/.published-itinerary` records after every successful `publish`, `update` and `rotate` | the newest `trips/<slug>/outputs/*-travel-site.html`, the member `publish` takes | `UNDETERMINED`, naming the operand |

The script's `list` evaluates it, outside `trip.freshness`, because what it compares crossed a channel
(`reference/adr/ADR-035-site-transitions-and-refresh.md` § 1). It is report-only, and no verb of this
command branches on it. It observes content identity — the organizer-confirm gate's own projection — so
a rebuild or a touch that changes nothing visible reads current; its verdicts are the shipped freshness
family's, compared as `skills/trip/SKILL.md` § *The freshness report* compares them. A record staged by
a push and not yet put in place, a record that cannot be read, no record on this machine, and a record
written under the earlier digest that no longer matches each leave the verdict undetermined, naming what
could not be read. A record written under another reading of the page that no longer matches leaves it
undetermined only where the page reads differently under the two readings, and reads behind otherwise.
It says nothing about whether the page is
served: `unpublish` leaves the record, and the status column carries that. It cannot observe a push
made from another machine; text outside the
projection — the coordination band and the declaration block, by design, and text a browser shows that
the digest still drops, as the comment above `strip_to_itinerary_text` states.

### Never assert a publication state that was not observed

Distinct cases, and they are distinct branches.

- **A G1 STOP** — any of that gate's STOP branches, a refused listing among them. Render
  the STOP and its remedy in the contract's terms for the branch that fired. Render no inventory, render no
  empty inventory, and say nothing at all about whether anything is published. A
  conclusion about publication state drawn from a directory listing that may have failed
  is the shape the contract's stop-message rule forbids by name, and a repo-wide
  inventory is where that shape is most tempting.
- **The script's degraded mode** — the GitHub CLI unavailable or unauthenticated. The
  script warns and leaves the publish-state columns indeterminate rather than negative.
  Keep *not published* and *could not determine* apart, and never collapse the
  indeterminate marker into a negative. Report the warning the script printed, so the
  reader knows which columns were not established.

## When a plaintext publish is what the user wants

This file has no plaintext verb and no plaintext flag, and every publish form is denied
here. It never sets `ALLOW_PLAINTEXT` — `reference/adr/ADR-007-command-entry-point.md`
§ 2, and that bound is not negotiable by this file.

The reason is the charter's own, and it is not that the branch is merely risky. The
confirmation on that branch is gated on stdin being a terminal, and a command Claude runs
never has one — so setting the variable does not confirm non-interactively, it **skips the
confirmation entirely**. The charter also records that the plaintext branch does not run
the pre-push ciphertext guard, running content controls instead — a refusal of any render
carrying a group-only section, the source check every publish runs, then the content guard.

So this is an operator action. The hand-off: point at `CLAUDE.md` → *Publishing to GitHub
Pages* → the opt-out paragraph, read its command as § *update*'s `**Reads:**` line reads a
hand-off's line, **print that paragraph's command for the operator to run
in their own terminal**, with every placeholder filled exactly as the first-publish
hand-off under § *update* fills them, say why an agent cannot run it, and stop. Print the
line — a hand-off that names a section and leaves the operator with nothing runnable has
failed. Do not run it, and do not carry a second copy of it here: that paragraph is its
one home.

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 ai-agents →

Comments

Loading comments…

Newsletter

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