printing-press-score
Skill4.8k starsChanged 7 months agoMITView on GitHub
Score a generated CLI against the Steinberger bar, compare two CLIs side-by-side
- Installs packages
Trending
Less talk lately.thin dataabout the whole repository
Who's talking about mvanhorn/cli-printing-press
- A Hacker News story“CLI Printing Press – create go CLI tool from any API”Hacker News · May 7, 2026 · 7 points
- mvanhorn/printing-press-library“fix(hostex): repair sync offset, transactions range and review keys”GitHub · Oct 3, 2026 · 1 reactions
- mvanhorn/printing-press-library“fix(meta-ads): follow Graph paging.next for --all”GitHub · Sep 29, 2026 · 1 reactions
- mvanhorn/printing-press-library“fix(instagram): follow Graph cursors for media list --all”GitHub · Sep 29, 2026 · 1 reactions
- enetx/http2“v1.0.26 requires enetx/http >= v1.0.29 but go.mod declares no requirements (build fails on …”GitHub · Sep 1, 2026 · 1 reactions
The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 13
Talked about on GitHub, Hacker News and Bluesky (13 times).
On GitHub · 11
- Oct 3, 2026fix(hostex): repair sync offset, transactions range and review keys — mvanhorn/printing-press-library1 reaction · 4 comments
- Sep 29, 2026fix(meta-ads): follow Graph paging.next for --all — mvanhorn/printing-press-library1 reaction · 1 comment
- Sep 29, 2026fix(instagram): follow Graph cursors for media list --all — mvanhorn/printing-press-library1 reaction · 1 comment
- Sep 1, 2026v1.0.26 requires enetx/http >= v1.0.29 but go.mod declares no requirements (build fails on DisableClientPriority) — enetx/http21 reaction
- Aug 8, 2026feat(spotify): quota circuit breaker with real Retry-After, token-stable tiered cache, adaptive rate limiting by default — mvanhorn/printing-press-library1 reaction · 1 comment
6 more on GitHub
- Jul 29, 2026feat(scrape-creators): make --all follow response cursors; add --all, aliases, positional handle to feed commands — mvanhorn/printing-press-library1 reaction · 5 comments
- Jun 27, 2026docs(plans): vibe-signal v1 build-ready spec + generation blocker — mvanhorn/printing-press-library1 reaction · 2 comments
- Jun 18, 2026ci: harden release supply chain — mvanhorn/last30days-skill1 reaction · 2 comments
- Jun 16, 2026fix(ci): bump workflow Go toolchain — mvanhorn/printing-press-library1 reaction · 1 comment
- Jun 15, 2026fix: correct go install command in CONTRIBUTING.md — mvanhorn/printing-press-library1 reaction · 1 comment
- May 9, 2026feat(fireflies): add fireflies — mvanhorn/printing-press-library1 reaction · 2 comments
On Hacker News · 1
- May 7, 2026CLI Printing Press – create go CLI tool from any API7 points
On Bluesky · 1
- May 7, 2026RT @mvanhorn: What is happening?! Printing Press is trending news on X! Please star on github both repos if you haven't yet.… — @garrytan-mir-rt.selfhosted.social0 likes and reposts · 1 reply
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- printing-press-amendSkill
- printing-press-importSkill
- printing-press-output-reviewSkill
- printing-press-polishSkill
- printing-press-publishSkill
- printing-press-reprintSkill
- printing-press-retroSkill
- printing-pressSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
30 rules. About 0 are common, 15 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Before any other commands, run the setup contract to verify the cli-printing-press binary is on PATH and initialize scope variables:
- Very specific: line 99
Read the user's input after /printing-press-score.
- Distinctive: line 103
After stripping noise words, count the remaining tokens:
- Distinctive: line 114
Treat it as a path (absolute or relative).
- Very specific: line 120
If neither exists, Glob $PRESS_LIBRARY/<name>-pp-cli*
- Distinctive: line 121
If exactly one glob match exists and is a directory, use it
- Distinctive: line 122
If multiple glob matches exist, present a numbered menu using AskUserQuestion
- Distinctive: line 124
If neither exists, scan current-run and archived state:
- Very specific: line 125
Use Glob to find $PRESS_RUNSTATE/runs/*/state.json files
- Very specific: line 126
Read each, look for an output_dir or working_dir value whose basename contains the name
- Distinctive: line 127
If found and the directory exists, use it
- Distinctive: line 129
If nothing resolves, report the error: "Could not find CLI '<name>'.
- Very specific: line 132
Use Glob to find all $PRESS_CURRENT/*.json files
- Very specific: line 133
Read each to get api_name, state_path, and working_dir
- Very specific: line 135
If none are found, Glob $PRESS_LIBRARY/*-pp-cli* and use those directories instead
- Distinctive: line 136
If exactly one → use it automatically
- Distinctive: line 137
If multiple → present a numbered menu using AskUserQuestion:
- Distinctive: line 144
If none found → report: "No generated CLIs found.
- Very specific: line 150
Check <cli-dir>/spec.json — the pipeline converts YAML specs to JSON during generation
- Very specific: line 151
If not found, scan $PRESS_RUNSTATE/runs/*/state.json files for one matching this CLI's directory.
- Very specific: line 152
If no spec found, proceed without --spec.
- Distinctive: line 158
Run the scorecard command:
- Very specific: line 164
If a spec was found, add --spec <spec-path>.
- Distinctive: line 205
Run both scorecard commands in parallel using two simultaneous Bash tool calls:
- Very specific: line 255
If gap_report is non-empty, list the gaps:
- Very specific: line 263
If unscored_dimensions is non-empty, add a note after the table:
- Very specific: line 294
If the cli-printing-press binary is not on PATH → show install instructions: go install …
- Distinctive: line 295
If the scorecard command fails → report the error with the full stderr output
- Distinctive: line 296
If a CLI directory doesn't exist → report which name couldn't be resolved
- Distinctive: line 297
If JSON parsing fails → show the raw output and report the parsing error
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/printing-press-score
Score generated CLIs against the Steinberger bar. Supports rescoring, scoring by name/path, and comparing two CLIs.
Quick Start
/printing-press-score # rescore current CLI
/printing-press-score notion-pp-cli-4 # score by name
/printing-press-score ~/my-cli # score by path
/printing-press-score notion-pp-cli-4 vs notion-pp-cli-2 # compare twoPrerequisites
- Go 1.26.6 or newer installed
cli-printing-pressbinary on PATH (install withgo install github.com/mvanhorn/cli-printing-press/v4/cmd/cli-printing-press@latest)
Step 0: Setup
Before any other commands, run the setup contract to verify the cli-printing-press binary is on PATH and initialize scope variables:
<!-- PRESS_SETUP_CONTRACT_START --># min-binary-version: 4.0.0
# Derive scope first — needed for local build detection
_scope_dir="$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")"
_scope_dir="$(cd "$_scope_dir" && pwd -P)"
# Prefer local build when running from inside the printing-press repo.
_press_repo=false
if [ -x "$_scope_dir/cli-printing-press" ] && [ -d "$_scope_dir/cmd/cli-printing-press" ]; then
_press_repo=true
export PATH="$_scope_dir:$PATH"
echo "Using local build: $_scope_dir/cli-printing-press"
elif ! command -v cli-printing-press >/dev/null 2>&1; then
if [ -x "$HOME/go/bin/cli-printing-press" ]; then
echo "cli-printing-press found at ~/go/bin/cli-printing-press but not on PATH."
echo "Add GOPATH/bin to your PATH: export PATH=\"\$HOME/go/bin:\$PATH\""
else
echo "cli-printing-press binary not found."
echo "Install with: go install github.com/mvanhorn/cli-printing-press/v4/cmd/cli-printing-press@latest"
fi
return 1 2>/dev/null || exit 1
fi
# Resolve and emit the absolute path the agent must use for every later
# `cli-printing-press` invocation. `export PATH` above only affects this one
# Bash tool call; subsequent calls open a fresh shell and resolve bare
# `cli-printing-press` against the user's default PATH, where a stale global
# can silently shadow the local build. The agent captures this marker and
# substitutes the absolute path into every later invocation.
if [ "$_press_repo" = "true" ]; then
PRINTING_PRESS_BIN="$_scope_dir/cli-printing-press"
else
PRINTING_PRESS_BIN="$(command -v cli-printing-press 2>/dev/null || true)"
fi
echo "PRINTING_PRESS_BIN=$PRINTING_PRESS_BIN"
PRESS_BASE="$(basename "$_scope_dir" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9_-]/-/g; s/^-+//; s/-+$//')"
if [ -z "$PRESS_BASE" ]; then
PRESS_BASE="workspace"
fi
PRESS_SCOPE="$PRESS_BASE-$(printf '%s' "$_scope_dir" | shasum -a 256 | cut -c1-8)"
PRESS_HOME="${PRINTING_PRESS_HOME:-$HOME/printing-press}"
PRESS_RUNSTATE="$PRESS_HOME/.runstate/$PRESS_SCOPE"
PRESS_LIBRARY="$PRESS_HOME/library"
PRESS_MANUSCRIPTS="$PRESS_HOME/manuscripts"
PRESS_CURRENT="$PRESS_RUNSTATE/current"
mkdir -p "$PRESS_RUNSTATE" "$PRESS_LIBRARY" "$PRESS_MANUSCRIPTS" "$PRESS_CURRENT"<!-- PRESS_SETUP_CONTRACT_END -->After running the setup contract, capture the PRINTING_PRESS_BIN=<abs-path> line from stdout. Every subsequent cli-printing-press ... invocation in this skill must use that absolute path (substitute the value, not the literal $PRINTING_PRESS_BIN token) — export PATH above only affects the single Bash tool call it runs in, so later calls open a fresh shell where bare cli-printing-press resolves against the user's default PATH and a stale global can shadow the local build.
After capturing the binary path, check binary version compatibility. Read the min-binary-version field from this skill's YAML frontmatter. Run <PRINTING_PRESS_BIN> version --json and parse the version from the output. Compare it to min-binary-version using semver rules. If the installed binary is older than the minimum, stop immediately and tell the user: "cli-printing-press binary vX.Y.Z is older than the minimum required vA.B.C. Run go install github.com/mvanhorn/cli-printing-press/v4/cmd/cli-printing-press@latest to update."
Current-run state is resolved from $PRESS_RUNSTATE. Published CLIs are resolved from $PRESS_LIBRARY. Archived manuscripts are resolved from $PRESS_MANUSCRIPTS.
Step 1: Parse Arguments
Read the user's input after /printing-press-score. The input is free-form — interpret intent, don't enforce syntax.
Noise words to strip: compare, vs, versus, and, against, with, to
After stripping noise words, count the remaining tokens:
- 0 tokens → Rescore Current mode
- 1 token → Score Single mode
- 2 tokens → Compare mode
Step 2: Resolve CLI Directories
For each CLI identifier, resolve it to a directory path:
If the token contains / or .
Treat it as a path (absolute or relative). Verify the directory exists.
If the token is a plain name
Try these locations in order:
$PRESS_LIBRARY/<name>/— exact match$PRESS_LIBRARY/<name>-pp-cli/— with -pp-cli suffix- If neither exists, Glob
$PRESS_LIBRARY/<name>-pp-cli* - If exactly one glob match exists and is a directory, use it
- If multiple glob matches exist, present a numbered menu using AskUserQuestion
If neither exists, scan current-run and archived state:
6. Use Glob to find $PRESS_RUNSTATE/runs/*/state.json files
7. Read each, look for an output_dir or working_dir value whose basename contains the name
8. If found and the directory exists, use it
If nothing resolves, report the error: "Could not find CLI '<name>'. Provide a path or check the name."
Rescore Current (0 tokens)
- Use Glob to find all
$PRESS_CURRENT/*.jsonfiles - Read each to get
api_name,state_path, andworking_dir - Filter to those whose
working_diractually exists on disk - If none are found, Glob
$PRESS_LIBRARY/*-pp-cli*and use those directories instead - If exactly one → use it automatically
- If multiple → present a numbered menu using AskUserQuestion:
Multiple CLIs found. Which one to score? 1. stripe-pp-cli ($PRESS_LIBRARY/stripe-pp-cli) 2. notion-pp-cli ($PRESS_LIBRARY/notion-pp-cli) 3. linear-pp-cli ($PRESS_LIBRARY/linear-pp-cli) - If none found → report: "No generated CLIs found. Provide a name or path."
Step 3: Find Spec for Tier 2 Scoring
For each resolved CLI directory, find the OpenAPI spec:
- Check
<cli-dir>/spec.json— the pipeline converts YAML specs to JSON during generation - If not found, scan
$PRESS_RUNSTATE/runs/*/state.jsonfiles for one matching this CLI's directory. Read itsspec_pathfield. If that file exists on disk, use it. - If no spec found, proceed without
--spec. Note to the user: "No spec found — spec-derived dimensions will be marked N/A and omitted from the denominator. Provide a spec path for full scoring."
Step 4: Run Scorecard
Single Score Mode
Run the scorecard command:
cli-printing-press scorecard --dir <resolved-path> --jsonIf a spec was found, add --spec <spec-path>.
Parse the JSON output. The structure is:
{
"api_name": "...",
"steinberger": {
"output_modes": 8,
"auth": 7,
"error_handling": 6,
"terminal_ux": 9,
"readme": 5,
"doctor": 10,
"agent_native": 7,
"local_cache": 4,
"breadth": 7,
"vision": 6,
"workflows": 3,
"insight": 5,
"path_validity": 0,
"auth_protocol": 0,
"data_pipeline_integrity": 7,
"sync_correctness": 6,
"type_fidelity": 4,
"dead_code": 3,
"total": 72,
"percentage": 72
},
"overall_grade": "B",
"gap_report": ["..."],
"unscored_dimensions": ["path_validity", "auth_protocol"]
}If unscored_dimensions is present, those dimensions should be rendered as N/A, not 0/x, and should be described as omitted from the denominator rather than as fixable CLI defects. For backward compatibility, JSON still encodes the numeric fields as 0; consumers must use unscored_dimensions to distinguish N/A from a real zero.
Learn-loop credit is static-behavioral, never presence-based: the scorecard credits teach/recall/learnings registration on the root command and non-empty entity lookup seeds (or the spec's recorded no-entities escape). The learn loop is default-on, so internal/learn/ existing earns nothing; when explaining a learn gap, point at missing seeds or unregistered commands, not missing files. Execution proof (verify matrix, learnings stats) belongs to verify and dogfood; the scorecard runs no binaries.
Compare Mode
Run both scorecard commands in parallel using two simultaneous Bash tool calls:
# Call 1:
cli-printing-press scorecard --dir <path1> --spec <spec1> --json
# Call 2:
cli-printing-press scorecard --dir <path2> --spec <spec2> --jsonParse both JSON outputs.
Step 5: Render Output
Single Score Table
Render a rich markdown table. Note: Tier 1 dimensions are all /10. Tier 2 dimensions are /10 except TypeFidelity and DeadCode which are /5.
Scorecard: <api_name>
Infrastructure (Tier 1)
| Dimension | Score |
|----------------|-------|
| Output Modes | 8/10 |
| Auth | 7/10 |
| Error Handling | 6/10 |
| Terminal UX | 9/10 |
| README | 5/10 |
| Doctor | 10/10 |
| Agent Native | 7/10 |
| Local Cache | 4/10 |
| Breadth | 7/10 |
| Vision | 6/10 |
| Workflows | 3/10 |
| Insight | 5/10 |
Domain Correctness (Tier 2)
| Dimension | Score |
|--------------------------|-------|
| Path Validity | 9/10 |
| Auth Protocol | 8/10 |
| Data Pipeline Integrity | 7/10 |
| Sync Correctness | 6/10 |
| Type Fidelity | 4/5 |
| Dead Code | 3/5 |
**Total: 72/100 — Grade B**If gap_report is non-empty, list the gaps:
Gaps:
- <gap 1>
- <gap 2>If unscored_dimensions is non-empty, add a note after the table:
Note: path_validity, auth_protocol were unscored and omitted from the denominator. Provide a spec path for full scoring.Compare Table
Render a side-by-side table with a delta column. Show the first CLI name and second CLI name as column headers. Calculate delta as (CLI 1 score - CLI 2 score). Show +N for positive, -N for negative, — for zero.
Scorecard Comparison: <name1> vs <name2>
Infrastructure (Tier 1)
| Dimension | <name1> | <name2> | Delta |
|----------------|---------|---------|-------|
| Output Modes | 8/10 | 5/10 | +3 |
| Auth | 7/10 | 7/10 | — |
| ... | | | |
Domain Correctness (Tier 2)
| Dimension | <name1> | <name2> | Delta |
|--------------------------|---------|---------|-------|
| Path Validity | 9/10 | 6/10 | +3 |
| ... | | | |
| **Total** | **72/100 (B)** | **56/100 (C)** | **+16** |Error Handling
- If the cli-printing-press binary is not on PATH → show install instructions:
go install github.com/mvanhorn/cli-printing-press/v4/cmd/cli-printing-press@latest - If the scorecard command fails → report the error with the full stderr output
- If a CLI directory doesn't exist → report which name couldn't be resolved
- If JSON parsing fails → show the raw output and report the parsing error
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

