Skip to content

100x is a skill by a former Cursor engineer that turns prompts into formally verified, production-ready code

Tell plugin users the plugin call form and where the tool comes from, and prune empty folders in the plugin build

Dead Internet1ad1e4b7348c
diff --git a/lib/claude-plugin.mjs b/lib/claude-plugin.mjs
index e96c00b..f42c222 100644
--- a/lib/claude-plugin.mjs
+++ b/lib/claude-plugin.mjs
@@ -74,7 +74,17 @@ export function pluginProblems(root) {
return problems;
}
-// Write the plugin folder, and remove what the build no longer owns so a renamed or deleted skill leaves nothing behind.
+// Remove every folder under `dir` that holds nothing, deepest first. `dir` itself stays.
+function pruneEmptyFolders(dir) {
+ for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
+ if (!entry.isDirectory()) continue;
+ const sub = path.join(dir, entry.name);
+ pruneEmptyFolders(sub);
+ if (!fs.readdirSync(sub).length) fs.rmdirSync(sub);
+ }
+}
+
+// Write the plugin folder, and remove what the build no longer owns so a renamed or deleted skill leaves nothing behind, folders included.
export function buildPlugin(root) {
const dir = path.join(root, PLUGIN_DIR);
const want = generatedFiles(root);
@@ -92,5 +102,6 @@ export function buildPlugin(root) {
fs.rmSync(path.join(dir, rel));
removed += 1;
}
+ pruneEmptyFolders(dir);
return { written, removed };
}
diff --git a/plugins/100x/skills/100x/SKILL.md b/plugins/100x/skills/100x/SKILL.md
index ca69168..756b19f 100644
--- a/plugins/100x/skills/100x/SKILL.md
+++ b/plugins/100x/skills/100x/SKILL.md
@@ -50,7 +50,7 @@ Each mode is its own skill, and the owner picks it by calling it. A word inside
| `100x-adhd` | a short back and forth, one question at a time. It answers questions about the project and shapes a loose idea into a brief. Nothing builds until you say go |
| `100x-bakeoff` | tests the skill itself, blind: the same agent with and without 100x on the same briefs. Reports "ahead" or "not shown". Builds no prototype |
-Call a skill the way your app does: `/100x-status` in Claude Code and Cursor, `$100x-status` in Codex.
+Call a skill the way your app does: `/100x-status` in Claude Code and Cursor, `$100x-status` in Codex. Installed as the Claude plugin, Claude Code puts the plugin's name in front: `/100x:100x-status`.
## Number phrases
@@ -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, run `scripts/install.sh` from the repo, two folders above the real path of this skill (`readlink -f` on its folder).
+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`.
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/plugins/100x/skills/100x/references/apps.md b/plugins/100x/skills/100x/references/apps.md
index 8d3573d..e8565a5 100644
--- a/plugins/100x/skills/100x/references/apps.md
+++ b/plugins/100x/skills/100x/references/apps.md
@@ -8,6 +8,7 @@
|---|---|---|---|
| Cursor | `/100x` | `~/.agents/skills` or `~/.cursor/skills` | used by the author |
| Claude Code | `/100x` | `~/.claude/skills` | used by the author |
+| Claude Code, as the plugin | `/100x:100x` | the plugin's own folder, which Claude Code keeps | the same skills as a copy, not run by the author yet |
| Codex | `$100x` | `~/.codex/skills` or `~/.agents/skills` | folder from its docs, untested here |
| opencode | name it in words | `~/.config/opencode/skills` | folder from its docs, untested here |
diff --git a/plugins/100x/skills/100x/references/words.md b/plugins/100x/skills/100x/references/words.md
index f29c65d..2da9c03 100644
--- a/plugins/100x/skills/100x/references/words.md
+++ b/plugins/100x/skills/100x/references/words.md
@@ -94,7 +94,7 @@ Say "max effort" or "high effort". Never say `reasoning_effort` or `effort=max`.
## What the owner says
-The owner calls skills and runs no commands. Never tell them to run `100x <command>`: those are yours. Tell them the skill to call, the way their app calls it (`/100x-report` in Claude Code and Cursor, `$100x-report` in Codex).
+The owner calls skills and runs no commands. Never tell them to run `100x <command>`: those are yours. Tell them the skill to call, the way their app calls it (`/100x-report` in Claude Code and Cursor, `$100x-report` in Codex, `/100x:100x-report` when Claude Code has it from the plugin).
| To | Tell them to call |
|---|---|
diff --git a/skills/100x/SKILL.md b/skills/100x/SKILL.md
index ca69168..756b19f 100644
--- a/skills/100x/SKILL.md
+++ b/skills/100x/SKILL.md
@@ -50,7 +50,7 @@ Each mode is its own skill, and the owner picks it by calling it. A word inside
| `100x-adhd` | a short back and forth, one question at a time. It answers questions about the project and shapes a loose idea into a brief. Nothing builds until you say go |
| `100x-bakeoff` | tests the skill itself, blind: the same agent with and without 100x on the same briefs. Reports "ahead" or "not shown". Builds no prototype |
-Call a skill the way your app does: `/100x-status` in Claude Code and Cursor, `$100x-status` in Codex.
+Call a skill the way your app does: `/100x-status` in Claude Code and Cursor, `$100x-status` in Codex. Installed as the Claude plugin, Claude Code puts the plugin's name in front: `/100x:100x-status`.
## Number phrases
@@ -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, run `scripts/install.sh` from the repo, two folders above the real path of this skill (`readlink -f` on its folder).
+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`.
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/references/apps.md b/skills/100x/references/apps.md
index 8d3573d..e8565a5 100644
--- a/skills/100x/references/apps.md
+++ b/skills/100x/references/apps.md
@@ -8,6 +8,7 @@
|---|---|---|---|
| Cursor | `/100x` | `~/.agents/skills` or `~/.cursor/skills` | used by the author |
| Claude Code | `/100x` | `~/.claude/skills` | used by the author |
+| Claude Code, as the plugin | `/100x:100x` | the plugin's own folder, which Claude Code keeps | the same skills as a copy, not run by the author yet |
| Codex | `$100x` | `~/.codex/skills` or `~/.agents/skills` | folder from its docs, untested here |
| opencode | name it in words | `~/.config/opencode/skills` | folder from its docs, untested here |
diff --git a/skills/100x/references/words.md b/skills/100x/references/words.md
index f29c65d..2da9c03 100644
--- a/skills/100x/references/words.md
+++ b/skills/100x/references/words.md
@@ -94,7 +94,7 @@ Say "max effort" or "high effort". Never say `reasoning_effort` or `effort=max`.
## What the owner says
-The owner calls skills and runs no commands. Never tell them to run `100x <command>`: those are yours. Tell them the skill to call, the way their app calls it (`/100x-report` in Claude Code and Cursor, `$100x-report` in Codex).
+The owner calls skills and runs no commands. Never tell them to run `100x <command>`: those are yours. Tell them the skill to call, the way their app calls it (`/100x-report` in Claude Code and Cursor, `$100x-report` in Codex, `/100x:100x-report` when Claude Code has it from the plugin).
| To | Tell them to call |
|---|---|
diff --git a/test/claude-plugin.test.mjs b/test/claude-plugin.test.mjs
index 4ac601b..1466adb 100644
--- a/test/claude-plugin.test.mjs
+++ b/test/claude-plugin.test.mjs
@@ -1,8 +1,9 @@
import assert from 'node:assert/strict';
import fs from 'node:fs';
+import os from 'node:os';
import path from 'node:path';
import test from 'node:test';
-import { HAND_WRITTEN, ICON, LIMITS, listFiles, PLUGIN_DIR, pluginProblems } from '../lib/claude-plugin.mjs';
+import { buildPlugin, HAND_WRITTEN, ICON, LIMITS, listFiles, PLUGIN_DIR, pluginProblems } from '../lib/claude-plugin.mjs';
import { ROOT } from './helpers.mjs';
// These are the checks of https://claude.com/docs/plugins/pre-submission-checklist that `claude plugin validate` does not run, so a change here cannot
@@ -71,6 +72,37 @@ test('the README names every way the skills leave the machine or change a permis
for (const [inSkills, inReadme] of mustSay) if (inSkills.test(skills)) assert.ok(readme.includes(inReadme), `the skills say ${inSkills}, so the README must say "${inReadme}"`);
});
+test('a rebuild repairs a plugin folder that holds a stale file, a deleted skill and an empty folder, and keeps the hand-written files', () => {
+ const root = fs.mkdtempSync(path.join(fs.realpathSync(os.tmpdir()), '100x-plugin-'));
+ try {
+ const put = (rel, text = 'x\n') => {
+ fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
+ fs.writeFileSync(path.join(root, rel), text);
+ };
+ put('package.json', JSON.stringify({ version: '1.2.3', license: 'MIT', repository: { url: 'git+https://github.com/o/r.git' }, keywords: ['k'] }));
+ put('LICENSE');
+ put('NOTICE.md');
+ put('skills/kept/SKILL.md');
+ const at = (rel) => path.join(root, PLUGIN_DIR, rel);
+ put(`${PLUGIN_DIR}/README.md`, 'mine\n');
+ put(`${PLUGIN_DIR}/${ICON}`, 'icon');
+ put(`${PLUGIN_DIR}/skills/deleted/SKILL.md`);
+ put(`${PLUGIN_DIR}/bin/tool`);
+ assert.notDeepEqual(pluginProblems(root), []);
+
+ buildPlugin(root);
+ assert.deepEqual(pluginProblems(root), []);
+ assert.ok(!fs.existsSync(at('bin')), 'the folder the stale file sat in is gone too');
+ assert.ok(!fs.existsSync(at('skills/deleted')));
+ assert.equal(fs.readFileSync(at('README.md'), 'utf8'), 'mine\n');
+ assert.equal(fs.readFileSync(at(ICON), 'utf8'), 'icon');
+ assert.equal(JSON.parse(fs.readFileSync(at('.claude-plugin/plugin.json'), 'utf8')).version, '1.2.3');
+ assert.deepEqual(buildPlugin(root), { written: 0, removed: 0 }, 'a second build changes nothing');
+ } finally {
+ fs.rmSync(root, { recursive: true, force: true });
+ }
+});
+
test('.gitattributes stays free of what makes the directory refuse to read the repository', () => {
const text = fs.readFileSync(path.join(ROOT, '.gitattributes'), 'utf8').replace(/#.*$/gm, '');
assert.ok(!/export-ignore|export-subst|\bfilter=/.test(text));