100x is a skill by a former Cursor engineer that turns prompts into formally verified, production-ready code
Install the CLI from a pinned release with its SHA-256
Dead Internet8b5221e8b745
diff --git a/docs/install.md b/docs/install.mdindex aaa1a47..5260eb9 100644--- a/docs/install.md+++ b/docs/install.md@@ -24,14 +24,34 @@ The installer makes symlinks, a few small files and the folders for them, and noRun it again any time. It reports `unchanged` for what is already right. It never replaces a real folder or file, and it replaces a link that points elsewhere only with `--force`. A `git pull` in this repo updates the install because everything is a link.-### With npm, no clone+### Install a pinned release++Each release has one file, `100x-engineer-skill-<version>.tgz`. This page names the SHA-256 of the current one, so you can check it before npm runs anything from it. No clone is needed.++- Version: `0.1.1`+- SHA-256: `5b8ecf6ce51a61000fe09281324c7fa8ad4f09a84a96aae918ec0d193f9eb765`++On macOS and Linux:```bash-npm install -g github:DeadInternetStudios/100x-engineer-skill+curl -fsSLO https://github.com/DeadInternetStudios/100x-engineer-skill/releases/download/v0.1.1/100x-engineer-skill-0.1.1.tgz &&+echo "5b8ecf6ce51a61000fe09281324c7fa8ad4f09a84a96aae918ec0d193f9eb765 100x-engineer-skill-0.1.1.tgz" | shasum -a 256 -c - &&+npm install -g ./100x-engineer-skill-0.1.1.tgz &&100x install```-The first line puts the tool on your PATH, with the skills inside the package. The second does what the installer above does, from there. `npm update -g` replaces the package, so run `100x install` again after it.+The check prints `100x-engineer-skill-0.1.1.tgz: OK`. Each line runs only if the one before it worked, so a wrong checksum stops the chain and nothing is installed.++On Windows, in PowerShell:++```powershell+curl.exe -fsSLO https://github.com/DeadInternetStudios/100x-engineer-skill/releases/download/v0.1.1/100x-engineer-skill-0.1.1.tgz+if ((Get-FileHash .\100x-engineer-skill-0.1.1.tgz -Algorithm SHA256).Hash -eq '5b8ecf6ce51a61000fe09281324c7fa8ad4f09a84a96aae918ec0d193f9eb765') { npm install -g .\100x-engineer-skill-0.1.1.tgz; 100x install } else { Write-Error 'The checksum does not match. Nothing was installed.' }+```++The install line puts the tool on your PATH, with the skills inside the package. `100x install` does what the installer above does, from there. To update, install the newer release the same way, with the checksum this page names for it, then run `100x install` again. `npm update -g` does not look for releases, because the package came from a file.++What 100x downloads later is pinned too. `100x browsers` installs Playwright 1.65.1 and `100x helper setup` installs `@cursor/sdk` 1.4.2. The tool holds both versions and the npm integrity hash (SHA-512) of each package. It checks the hash right after the install, before it runs a browser download or the helper. On a mismatch it deletes what it installed and stops. The browser build is the one that Playwright version names.### On Windowsdiff --git a/plugins/100x/README.md b/plugins/100x/README.mdindex afabe77..bd88bea 100644--- a/plugins/100x/README.md+++ b/plugins/100x/README.md@@ -9,13 +9,17 @@ This plugin is the skills. They call the `100x` command line tool, which keeps tYou need Claude Code, Node.js 22 or newer, and git. The skills also load in Claude's other apps. A run needs a shell with the tool installed, so Claude Code is where it is used and tested.1. Add this plugin from the directory.-2. Install the tool, once:+2. Install the tool, once. It comes from release 0.1.1, one file with a fixed SHA-256, and npm runs nothing until the checksum matches:```bash- npm install -g github:DeadInternetStudios/100x-engineer-skill+ curl -fsSLO https://github.com/DeadInternetStudios/100x-engineer-skill/releases/download/v0.1.1/100x-engineer-skill-0.1.1.tgz &&+ echo "5b8ecf6ce51a61000fe09281324c7fa8ad4f09a84a96aae918ec0d193f9eb765 100x-engineer-skill-0.1.1.tgz" | shasum -a 256 -c - &&+ npm install -g ./100x-engineer-skill-0.1.1.tgz &&100x install```+ The check prints `100x-engineer-skill-0.1.1.tgz: OK`. If it prints anything else, the chain stops and nothing is installed. Windows commands are in [docs/install.md](https://github.com/DeadInternetStudios/100x-engineer-skill/blob/main/docs/install.md#install-a-pinned-release).+3. In Claude Code, run `/100x-engineer:100x-setup`. It asks which plan you are on and picks which model builds and which one judges.4. Give it a job:@@ -54,10 +58,10 @@ What the skills tell Claude to do, all on your computer:Only these reach the network, and only when you ask for them:- Your model host sees the brief and the files Claude reads, as in any Claude session.-- `100x browsers` downloads Playwright and Chromium into `~/.100x`, from npm and Playwright's download servers.+- `100x browsers` downloads Playwright 1.65.1 and the Chromium build it names into `~/.100x`, from npm and Playwright's download servers. The version is fixed in the tool, and so is the npm integrity hash (SHA-512) of each package. The tool checks the hash after the install and before it runs the browser download. If it differs, the tool deletes what it installed and stops.- The live-data template `fresh-data-check.mjs` makes one GET request to the URL you give it, to read a timestamp. It sends no headers or body of yours, reads no credentials and runs only against the source your brief names.- A run deploys a **preview** when your project already has a deploy setup (Vercel, Netlify, Cloudflare Pages, Firebase or Fly). It uses the login that is already on your machine and never the production flag, unless your brief says "deploy to production" in words. It does not create accounts or paste tokens.-- On Cursor only, `100x helper setup`, `login` and `run` install `@cursor/sdk` from npm and start helpers on your own Cursor account. You sign in once in the browser, or set `CURSOR_API_KEY` yourself. 100x never prints the key. The helper's task and what it reads go to Cursor. Claude Code users never need these.+- On Cursor only, `100x helper setup`, `login` and `run` install `@cursor/sdk` 1.4.2 from npm, pinned the same way, and start helpers on your own Cursor account. You sign in once in the browser, or set `CURSOR_API_KEY` yourself. 100x never prints the key. The helper's task and what it reads go to Cursor. Claude Code users never need these.One setting is off until you turn it on. `review.command` lets you start the judge as a shell command, set only in your global config, and only when you ask for it. The example for Claude in `skills/100x/references/apps.md` runs `claude -p` with an allow rule (`--allowedTools`) that names what the judge may do: read the project, edit files under `.100x/`, run `100x`, run a few read-only `git` commands, and run `npm run` and `npm test`. Claude refuses everything else. No example starts an app with its approvals off. The plugin never writes that setting itself, and it never changes Claude's permission settings.diff --git a/plugins/100x/skills/100x/SKILL.md b/plugins/100x/skills/100x/SKILL.mdindex 0c783e9..33352d1 100644--- a/plugins/100x/skills/100x/SKILL.md+++ b/plugins/100x/skills/100x/SKILL.md@@ -90,7 +90,7 @@ Done when you have sent the pre-flight, saved it in `project.md` and logged the- **New project.** Build it from scratch on the main branch. Work in the current folder when it is empty or holds only the brief. Otherwise create `./<slug>/`, `cd` into it and work there. The slug is the goal in at most four lowercase words joined by hyphens, like `tip-splitter`. Make it once and reuse it for the folder, the branch and the log id.- **Big change** to a repo with history. Work on branch `100x/<slug>`, stage only files you changed, and leave the owner's uncommitted files untouched.- **Small edit.** Make it, run the project's own check once, commit, reply in three lines. Stop. The pipeline is for work that deserves it.-3. `100x init` in the folder you settled on. It makes `.100x/`, keeps it out of git and prints the stack, the run command and the deploy hints it can find. An empty folder has none yet, so step 5 sets them. When it says an earlier run is already here, this brief is a new run: `100x init --fresh` moves the old run's files and stage tags aside and starts clean. If the shell cannot find `100x`, call `~/.100x/bin/100x`. If that is missing and this skill sits in a checkout of the repo, run `scripts/install.sh` from it, two folders above the real path of this skill (`readlink -f` on its folder). Installed as the Claude plugin there is no checkout: tell the owner to run `npm install -g github:DeadInternetStudios/100x-engineer-skill` and then `100x install`.+3. `100x init` in the folder you settled on. It makes `.100x/`, keeps it out of git and prints the stack, the run command and the deploy hints it can find. An empty folder has none yet, so step 5 sets them. When it says an earlier run is already here, this brief is a new run: `100x init --fresh` moves the old run's files and stage tags aside and starts clean. If the shell cannot find `100x`, call `~/.100x/bin/100x`. If that is missing and this skill sits in a checkout of the repo, run `scripts/install.sh` from it, two folders above the real path of this skill (`readlink -f` on its folder). Installed as the Claude plugin there is no checkout: tell the owner to install the tool from the pinned release, with the version and checksum on https://github.com/DeadInternetStudios/100x-engineer-skill/blob/main/docs/install.md#install-a-pinned-release, and then to run `100x install`. Do not install it from anywhere else in its place.4. Read `~/.100x/profile.md`, or `references/profile.default.md` when it does not exist. Read `100x config print`. Read the owner's rules and settle any major difference (`references/rules.md`).5. Write the prompt in `.100x/project.md`: the brief word for word, then the longer prompt the owner would have written, after reading what the brief names. Run `100x prompt check` and fix what it names. Decide and log inside the prompt, never ask. Everything it holds, and how to write it, is in `references/open.md`, `references/prompt.md` and `references/prompt-example.md`.6. Modifiers. Each number phrase becomes a `100x config set ... --local` line, a length of work becomes `100x clock set "<the owner's words>" --fill` and the watchdog, and `Mode: overnight` or `Grind: yes` is recorded when a mode skill sent you here. The exact commands are in `references/open.md`, and `3 versions` reads `references/variants.md`.diff --git a/skills/100x/SKILL.md b/skills/100x/SKILL.mdindex beb8949..c405fb9 100644--- a/skills/100x/SKILL.md+++ b/skills/100x/SKILL.md@@ -90,7 +90,7 @@ Done when you have sent the pre-flight, saved it in `project.md` and logged the- **New project.** Build it from scratch on the main branch. Work in the current folder when it is empty or holds only the brief. Otherwise create `./<slug>/`, `cd` into it and work there. The slug is the goal in at most four lowercase words joined by hyphens, like `tip-splitter`. Make it once and reuse it for the folder, the branch and the log id.- **Big change** to a repo with history. Work on branch `100x/<slug>`, stage only files you changed, and leave the owner's uncommitted files untouched.- **Small edit.** Make it, run the project's own check once, commit, reply in three lines. Stop. The pipeline is for work that deserves it.-3. `100x init` in the folder you settled on. It makes `.100x/`, keeps it out of git and prints the stack, the run command and the deploy hints it can find. An empty folder has none yet, so step 5 sets them. When it says an earlier run is already here, this brief is a new run: `100x init --fresh` moves the old run's files and stage tags aside and starts clean. If the shell cannot find `100x`, call `~/.100x/bin/100x`. If that is missing and this skill sits in a checkout of the repo, run `scripts/install.sh` from it, two folders above the real path of this skill (`readlink -f` on its folder). Installed as the Claude plugin there is no checkout: tell the owner to run `npm install -g github:DeadInternetStudios/100x-engineer-skill` and then `100x install`.+3. `100x init` in the folder you settled on. It makes `.100x/`, keeps it out of git and prints the stack, the run command and the deploy hints it can find. An empty folder has none yet, so step 5 sets them. When it says an earlier run is already here, this brief is a new run: `100x init --fresh` moves the old run's files and stage tags aside and starts clean. If the shell cannot find `100x`, call `~/.100x/bin/100x`. If that is missing and this skill sits in a checkout of the repo, run `scripts/install.sh` from it, two folders above the real path of this skill (`readlink -f` on its folder). Installed as the Claude plugin there is no checkout: tell the owner to install the tool from the pinned release, with the version and checksum on https://github.com/DeadInternetStudios/100x-engineer-skill/blob/main/docs/install.md#install-a-pinned-release, and then to run `100x install`. Do not install it from anywhere else in its place.4. Read `~/.100x/profile.md`, or `references/profile.default.md` when it does not exist. Read `100x config print`. Read the owner's rules and settle any major difference (`references/rules.md`).5. Write the prompt in `.100x/project.md`: the brief word for word, then the longer prompt the owner would have written, after reading what the brief names. Run `100x prompt check` and fix what it names. Decide and log inside the prompt, never ask. Everything it holds, and how to write it, is in `references/open.md`, `references/prompt.md` and `references/prompt-example.md`.6. Modifiers. Each number phrase becomes a `100x config set ... --local` line, a length of work becomes `100x clock set "<the owner's words>" --fill` and the watchdog, and `Mode: overnight` or `Grind: yes` is recorded when a mode skill sent you here. The exact commands are in `references/open.md`, and `3 versions` reads `references/variants.md`.diff --git a/test/install-pin.test.mjs b/test/install-pin.test.mjsnew file mode 100644index 0000000..9e3706c--- /dev/null+++ b/test/install-pin.test.mjs@@ -0,0 +1,67 @@+import assert from 'node:assert/strict';+import fs from 'node:fs';+import path from 'node:path';+import test from 'node:test';+import { listFiles, PLUGIN_DIR } from '../lib/claude-plugin.mjs';+import { PINS } from '../lib/pins.mjs';+import { ROOT } from './helpers.mjs';++const read = (rel) => fs.readFileSync(path.join(ROOT, rel), 'utf8');+const { version } = JSON.parse(read('package.json'));+const FILE = `100x-engineer-skill-${version}.tgz`;+const URL = `https://github.com/DeadInternetStudios/100x-engineer-skill/releases/download/v${version}/${FILE}`;+const PLUGIN_README = `${PLUGIN_DIR}/README.md`;+const INSTALL_PAGE = 'docs/install.md';+const SHA256 = /\b[0-9a-f]{64}\b/g;+const checksums = (rel) => [...new Set(read(rel).match(SHA256) ?? [])];++test('the install step in the plugin README names the release by version and checks one SHA-256 before npm runs it', () => {+ const readme = read(PLUGIN_README);+ const lines = readme.split('\n');+ const download = lines.findIndex((line) => line.includes(URL));+ assert.ok(download >= 0, `the README downloads ${URL}`);+ const check = lines.find((line) => line.includes(FILE) && line.includes('shasum -a 256 -c -'));+ assert.ok(check, 'the README checks the file with shasum');+ assert.match(check, /^\s*echo "[0-9a-f]{64} {2}/, 'the checksum is in the step, not behind a link');+ const install = lines.find((line) => line.includes('npm install -g') && line.includes(FILE));+ assert.ok(install, 'npm installs the file that was checked');+ assert.ok(lines.indexOf(check) > download && lines.indexOf(install) > lines.indexOf(check), 'download, then check, then install');+ for (const line of [lines[download], check, install]) assert.ok(line.trimEnd().endsWith('&&'), `a failed step stops the chain: ${line.trim().slice(0, 40)}`);+});++test('the plugin README and the install page carry the same checksum, in the shape of SHA-256', () => {+ const plugin = checksums(PLUGIN_README);+ const page = checksums(INSTALL_PAGE);+ assert.equal(plugin.length, 1, 'the plugin README holds one checksum');+ assert.deepEqual(page, plugin, 'the install page holds the same one');+ assert.equal(read(INSTALL_PAGE).split(plugin[0]).length - 1, 3, 'the page lists it once, then uses it in the shell command and in the PowerShell command');+});++test('the root README cannot hold the checksum of a tarball it is packed into, so it sends the reader to the install page', () => {+ const readme = read('README.md');+ assert.deepEqual(readme.match(SHA256) ?? [], [], 'no 64-hex string in the packed README');+ assert.ok(readme.includes(URL), 'it downloads the pinned release');+ assert.ok(readme.includes(`shasum -a 256 ${FILE}`), 'it prints the checksum for the reader to compare');+ assert.ok(readme.includes('docs/install.md#install-a-pinned-release'), 'it links to the page that has the checksum');+ assert.match(read(INSTALL_PAGE), /^### Install a pinned release$/m, 'and that link lands on a heading');+});++test('no step in the plugin folder or the install docs installs code from a branch, a bare name or a latest tag', () => {+ const under = (dir) => listFiles(path.join(ROOT, dir)).map((rel) => `${dir}/${rel}`);+ const files = [...under(PLUGIN_DIR), ...under('skills'), 'README.md', INSTALL_PAGE];+ for (const rel of files.filter((file) => file.endsWith('.md'))) {+ const text = read(rel);+ assert.doesNotMatch(text, /npm (install|i|add) [^\n]*github:/, `${rel} installs from a branch`);+ assert.doesNotMatch(text, /@latest\b/, `${rel} installs a latest tag`);+ assert.doesNotMatch(text, /\|\s*(ba)?sh\b/, `${rel} pipes a download into a shell`);+ if (rel.startsWith(PLUGIN_DIR)) assert.doesNotMatch(text, /\bnpx\s/, `${rel} runs a package that is not pinned`);+ }+});++test('the docs name the same versions of Playwright and the Cursor SDK that the tool pins', () => {+ for (const rel of [PLUGIN_README, INSTALL_PAGE]) {+ const text = read(rel);+ assert.ok(text.includes(`Playwright ${PINS.playwright.version}`), `${rel} names Playwright ${PINS.playwright.version}`);+ assert.ok(text.includes(`@cursor/sdk\` ${PINS['@cursor/sdk'].version}`), `${rel} names @cursor/sdk ${PINS['@cursor/sdk'].version}`);+ }+});