diff --git a/README.md b/README.md index 22db8aa..6531217 100644 --- a/README.md +++ b/README.md @@ -1 +1,66 @@ -# tstack \ No newline at end of file +# tstack + +My personal set of agent skills for rigorous engineering work. It's a hard fork of [pstack](https://github.com/cursor/plugins/tree/main/pstack) by [poteto](https://x.com/poteto), rebuilt so it isn't tied to one tool: plain `SKILL.md` skills that install into Claude Code, Codex, GitHub Copilot CLI, Cursor, and any other harness that reads the open skills layout. + +The main entry point is `/marius-mode`. It reads your request, picks a playbook (bug fix, feature, refactoring, investigation, and about twenty more), runs the other skills as the steps need them, and proves the result on the real app before calling it done. + +## Install + +```bash +npx skills add tacheshun/tstack -g -s '*' -a claude-code codex github-copilot cursor +``` + +Drop the harnesses you don't use. The skills land in `~/.agents/skills/`. Codex, Copilot, and Cursor read that folder directly, and Claude Code gets symlinks in `~/.claude/skills/`. Update with `npx skills update -g`. + +## Quick start + +Give it a goal and a way to check it: + +```text +/marius-mode the export writes duplicate rows when a retry lands mid-run. repro first, then fix and verify. +``` + +For non-trivial work it writes a short plan and waits for your go. Then it runs to a ready change without checking in, and stops before any push or PR. You merge. + +## Skills + +| Skill | Use it when | +|---|---| +| `/marius-mode` | Any non-trivial task. Routes to a playbook and applies the principles. | +| `/how` | You want to know how a subsystem works. | +| `/why` | You want to know why something was built this way. Queries your MCP sources. | +| `/teach` | You want to understand a change or subsystem, not only get a summary. | +| `/recall` | You're resuming work and want your recent context rebuilt from chat history. | +| `/blast-radius` | A small-looking change and you want to know what else it could break. | +| `/architect` | You're about to write code that crosses a function boundary. | +| `/arena` | You want several parallel attempts at the same thing, then the best parts of each. | +| `/swarm` | You want parallel workers across slices or races, then one report. | +| `/interrogate` | You want reviewers to try to break a diff. | +| `/tdd` | A bug with a cheap local test path: failing test first, then the fix. | +| `/no-comments` | Strip comments before review. | +| `/unslop` | Clean AI tells out of writing. | +| `/technical-writing` | Docs, READMEs, PR descriptions, commit messages. | +| `/bro` | Restate the last message in plain language. | +| `/figure-it-out` | No playbook fits. Designs an auditable one for the task. | +| `/show-me-your-work` | You want a decision log you can review later. | +| `/reflect` | A long task landed and you want its lessons turned into skill edits. | +| `/automate-me` | You want your own `-mode` skill drafted from how you actually work. | +| `/create-verification-skill` | Your project has no scripted way to prove app behavior. | +| `/maintain-verification-skill` | Your verification skill has drifted from the app. | +| `/typescript-best-practices` | You're reading or editing TypeScript. | + +There are also 23 `principle-*` skills, one rule each. `/marius-mode` reads their index and applies the ones a task triggers. + +## Cross-vendor review + +Review panels such as `/interrogate` can add reviewers from other model families by calling their CLIs headless (`claude`, `codex`, `copilot`). This is off by default. Allow CLIs per machine in `~/.config/tstack/bridge`, one per line, so a work machine can allow only the approved vendor. Details are in [the bridge reference](skills/interrogate/references/bridge.md). + +## Learn more + +The [tstack guide](docs/guide/README.md) walks through setup, routing, understanding code, design, building, verification, overnight runs, and making the style your own. + +To work on tstack itself, run `node scripts/check.mjs` before every PR. It validates frontmatter, links, and skill references, and rejects harness-specific terms. + +## License + +MIT. Includes work from pstack, copyright Lauren Tan. See [LICENSE](LICENSE). diff --git a/docs/guide/01-setup.md b/docs/guide/01-setup.md index f63ce4e..462bb33 100644 --- a/docs/guide/01-setup.md +++ b/docs/guide/01-setup.md @@ -1,38 +1,54 @@ -# Set up pstack +# Set up tstack -In this page you install the plugin, pick which models pstack uses, and run your first task. Setup is one command plus a short conversation. +In this page you install the skills into your harness, optionally turn on cross-vendor review, and run your first task. -## Install the plugin +## Install the skills -In a Cursor chat, run: +tstack is a folder of standard `SKILL.md` skills, so one installer covers every harness. Run: -```text -/add-plugin pstack +```bash +npx skills add tacheshun/tstack -g -s '*' -a claude-code codex github-copilot cursor ``` -Cursor confirms the plugin is installed. +- `-g` installs for your user, so every project sees the skills. Leave it out to install into the current project only. +- `-s '*'` installs all skills without asking which ones. +- `-a` names the harnesses. Drop the ones you don't use. -## Pick your models +The skills land once in `~/.agents/skills/`. Codex, GitHub Copilot, and Cursor read that folder directly. Claude Code gets symlinks in `~/.claude/skills/`. To update later, run `npx skills update -g`. -Run: +Check the install in your harness: -```text -/setup-pstack -``` +| Harness | Check | +|---|---| +| Claude Code | Type `/` and look for `/marius-mode`. | +| Codex | Ask "what skills do you have?" | +| GitHub Copilot CLI | Run `/skills`. | +| Cursor | Type `/` in a chat and look for `/marius-mode`. | -`/setup-pstack` (not in tstack) detects the models you have access to, asks for a reasoning budget, shows you each role (code delegates, judgment, the review panels), and asks what you want. Answer the questions. It writes `~/.cursor/rules/pstack-models.mdc`, a small rule every pstack skill reads. +Some harnesses ignore the flag that keeps a skill slash-only. Each skill's description names its own command, so it matches only when you ask for it. -You only override what you care about. A role with no line in the rule keeps the skill's default. To restore a default, delete that role's line. A rerun of `/setup-pstack` keeps any role whose model differs from the default. A rule written before 0.15.3 pins the old default models, so delete those role lines, or delete the file, then run `/setup-pstack` again. +## Models -You might be wondering what happens if you use Auto. Set a role to `inherit-parent` or `auto` and pstack omits the subagent `model` field, so the subagent inherits your parent chat model. Both values mean the same thing, and neither is a model slug. For a panel role the value is a list, and one subagent runs per entry, so the list length sets the panel size. Setup also configures `swarm workers`, the default model for every `/swarm` worker unless a race names a model for each arm. +tstack does not configure models. Each skill names a role (the strongest model, the default model, or a fast one), and your harness picks its own model for that role. In Claude Code that means Opus, Sonnet, or Haiku. In Codex it means OpenAI models. -## Accept the verification offer, or don't +## Turn on cross-vendor review, or don't -At the end of setup, `/setup-pstack` looks for a way to prove app behavior in your project, either a `verify-*` skill or an existing harness. If it finds neither, it offers once to generate one with [`/create-verification-skill`](../../skills/create-verification-skill/SKILL.md). +Review panels such as `/interrogate` find more when reviewers come from different model families. Your harness's subagents all come from one vendor, so tstack can add reviewers by calling other vendors' CLIs. It only calls the CLIs you allow on this machine. -Say yes and it writes `.cursor/skills/verify-/`, a project-local skill that teaches agents to drive your app the way a user does. It proves the skill works once before handing it over. Say no and setup moves on. You can run `/create-verification-skill` yourself any time. [Verify and ship](./06-verify-and-ship.md#create-a-project-verification-skill) covers when it earns its place. +Create `~/.config/tstack/bridge` with one CLI per line: + +```text +# personal machine +claude +codex +``` + +```text +# work machine: only the approved vendor +copilot +``` -After setup, start a new chat. The model rule applies to new sessions. +With no file, the bridge is off and panels run on your harness's own models. That default is safe on any machine. The exact commands are in [the bridge reference](../../skills/interrogate/references/bridge.md). ## Run your first task @@ -44,6 +60,6 @@ Pick something real but small, and describe it the way you'd describe it to a co Watch the todo list. Its first items are the matched playbook's steps copied in, the Feature playbook for this prompt. If `/marius-mode` skips a step, the step stays in the list with `skip: `, so you can see what it chose not to do. -From here you can type normal follow-ups. `/marius-mode` is sticky. It stays on for the conversation until you opt out by saying so. +`/marius-mode` applies to the task you invoke it with. Start the next task with `/marius-mode` again when you want the same rigor. Next: [Route work through `/marius-mode`](./02-marius-mode.md). diff --git a/docs/guide/02-marius-mode.md b/docs/guide/02-marius-mode.md index e95a2fb..40d32f0 100644 --- a/docs/guide/02-marius-mode.md +++ b/docs/guide/02-marius-mode.md @@ -23,7 +23,9 @@ flowchart TD J --> K ``` -The diagram shows the common routes. There are also playbooks for hillclimbing a metric, diagnosing runtime symptoms and captured traces, prototypes, visual parity, authoring and evaluating skills, autonomous runs, babysitting a PR or stack to merge-ready, shipping a verified stack, running a PR queue on autopilot, orchestrating project-scale programs, session pickup, pausing safely, multi-phase plans, and worktree cleanup. The [playbook directory](../../skills/marius-mode/playbooks/) has the full set. +The diagram shows the common routes. There are also playbooks for hillclimbing a metric, diagnosing runtime symptoms and captured traces, prototypes, visual parity, authoring and evaluating skills, autonomous runs, babysitting a PR or stack to merge-ready, shipping a verified stack, building a verified PR stack on autopilot, session pickup, pausing safely, multi-phase plans, and worktree cleanup. The [playbook directory](../../skills/marius-mode/playbooks/) has the full set. + +Two gates sit around every route. Non-trivial or greenfield work starts with a short plan: the approach, the files it touches, and each open decision with a recommended option. After your go, it runs to a ready change without checking in. It stops again before anything leaves your machine, such as a push, a PR, or a message, and you merge PRs yourself. Small fixes skip the plan. ## Say the goal, not the ceremony @@ -49,7 +51,7 @@ continue keep going until done ``` -Short works because the mode is sticky and the playbook holds the structure. Your words carry the intent, and the skill carries the rigor. +Short works because the playbook holds the structure. Your words carry the intent, and the skill carries the rigor. ## Switch tasks with "new task" diff --git a/docs/guide/03-understand.md b/docs/guide/03-understand.md index 81e5a23..6c0f136 100644 --- a/docs/guide/03-understand.md +++ b/docs/guide/03-understand.md @@ -1,6 +1,6 @@ # Understand the code before changing it -Editing code you don't understand is how subtle regressions ship. pstack gives you four ways in. `/how` explains what the code does now. `/why` digs up the reasons it's shaped that way. `/teach` blends both into one explanation. `/recall` rebuilds your own recent context on a topic. +Editing code you don't understand is how subtle regressions ship. tstack gives you four ways in. `/how` explains what the code does now. `/why` digs up the reasons it's shaped that way. `/teach` blends both into one explanation. `/recall` rebuilds your own recent context on a topic. ## Trace behavior with `/how` diff --git a/docs/guide/04-design.md b/docs/guide/04-design.md index 3bbd464..45d80da 100644 --- a/docs/guide/04-design.md +++ b/docs/guide/04-design.md @@ -38,7 +38,7 @@ flowchart LR H --> I[Verify] ``` -The panel comes from your `/setup-pstack` (not in tstack) configuration, and you can adjust it per task. Ask for more candidates when the decision matters, fewer when it doesn't: +The panel runs on your harness's models, plus other vendors' CLIs if you allowed them in `~/.config/tstack/bridge` ([Set up tstack](./01-setup.md#turn-on-cross-vendor-review-or-dont)). Adjust it per task. Ask for more candidates when the decision matters, fewer when it doesn't: ```text /arena this, 5 candidates. the cache key format is expensive to change later. diff --git a/docs/guide/05-build-and-clean.md b/docs/guide/05-build-and-clean.md index ca933d6..3f1cdca 100644 --- a/docs/guide/05-build-and-clean.md +++ b/docs/guide/05-build-and-clean.md @@ -48,7 +48,7 @@ In context, that's enough. [`/tdd`](../../skills/tdd/SKILL.md) writes the smalle ## Clean before you commit -The [Opening a PR playbook](../../skills/marius-mode/playbooks/opening-a-pr.md) rereads the diff against the laziness protocol before each commit and applies [`/unslop`](../../skills/unslop/SKILL.md) to the PR description and commit bodies. `/deslop` ships in the `cursor-team-kit` plugin, not in pstack. If you don't have it, ask for the same outcome in plain words: remove narrating comments, unsupported guards, dead compatibility paths, and unrelated edits. +The [Opening a PR playbook](../../skills/marius-mode/playbooks/opening-a-pr.md) rereads the diff against the laziness protocol before each commit and applies [`/unslop`](../../skills/unslop/SKILL.md) to the PR description and commit bodies. To ask for the same pass yourself, say it in plain words: remove narrating comments, unsupported guards, dead compatibility paths, and unrelated edits. For prose, `/unslop` takes a target and any extra rules you have: @@ -70,6 +70,6 @@ Comments need their own pass, and not from the agent that wrote them. An author The division of labor is worth keeping straight. The laziness reread cleans slop out of the code, `/unslop` cleans it out of prose, and `/no-comments` hands the comments to a reviewer who didn't write them. -**Pitfall:** cleanup is not optional polish. A diff with narrating comments and defensive dead weight reads as unfinished to reviewers, and the extra code is where the next bug hides. If the diff feels padded, say `deslop it` before you commit, not after review calls it out. +**Pitfall:** cleanup is not optional polish. A diff with narrating comments and defensive dead weight reads as unfinished to reviewers, and the extra code is where the next bug hides. If the diff feels padded, ask for that cleanup before you commit, not after review calls it out. Next: [Verify and ship](./06-verify-and-ship.md). diff --git a/docs/guide/06-verify-and-ship.md b/docs/guide/06-verify-and-ship.md index 0e41eac..a411e27 100644 --- a/docs/guide/06-verify-and-ship.md +++ b/docs/guide/06-verify-and-ship.md @@ -32,7 +32,7 @@ The UI bullet above hides a real requirement. The agent needs a scripted way to [`/create-verification-skill`](../../skills/create-verification-skill/SKILL.md) interviews the repository, not you. It works out what a user touches, how the app launches locally, what can drive it (an existing harness first, otherwise browser and CDP, a PTY, or plain HTTP), what evidence proves behavior, and whether two instances can run side by side. It asks you only what the code can't answer. -It writes `.cursor/skills/verify-/`, agent-facing instructions with exact Launch, Doctor, Drive, Evidence, and Cleanup sections, plus a feature map under `features/` that indexes what the app does and what result proves each feature works. The skill ships a [worked feature-map example](../../skills/create-verification-skill/references/feature-map-example/) with a README index and one file per feature using the four required H2s. Before handing it over, the generator proves the skill once end to end: launch, doctor check, drive one feature, capture evidence, clean up. If that proof fails, don't use the output. +It writes `.agents/skills/verify-/` in your project, with a `.claude/skills/` symlink for Claude Code, agent-facing instructions with exact Launch, Doctor, Drive, Evidence, and Cleanup sections, plus a feature map under `features/` that indexes what the app does and what result proves each feature works. The skill ships a [worked feature-map example](../../skills/create-verification-skill/references/feature-map-example/) with a README index and one file per feature using the four required H2s. Before handing it over, the generator proves the skill once end to end: launch, doctor check, drive one feature, capture evidence, clean up. If that proof fails, don't use the output. From then on, "verify it in the app" is a step any agent can execute, in this repo, with no setup conversation. diff --git a/docs/guide/07-overnight.md b/docs/guide/07-overnight.md index 1647493..3e650d6 100644 --- a/docs/guide/07-overnight.md +++ b/docs/guide/07-overnight.md @@ -19,7 +19,7 @@ Walk through what each line buys you: - "done means..." turns the goal into checks every iteration can run. - "fresh worktree off ``" keeps the run from colliding with anything else you have open. - "don't ask me before committing" pre-answers the permission the agent would otherwise block on. -- `/loop` is Cursor's built-in wake mechanism, not a pstack skill. The [Autonomous run playbook](../../skills/marius-mode/playbooks/autonomous-run.md) uses it to re-check the finish condition on events or a heartbeat. +- `/loop` is Claude Code's built-in recurring loop, not a tstack skill. In a harness without one, the agent polls until done. The [Autonomous run playbook](../../skills/marius-mode/playbooks/autonomous-run.md) uses it to re-check the finish condition on events or a heartbeat. - The escape hatch lets it stop at a genuine dead end and write up why, which beats eight hours of creative goal reinterpretation. Because you'll review this work after stepping away, `/marius-mode` routes it through [`/figure-it-out`](../../skills/figure-it-out/SKILL.md), which designs the run's phases before any code and wires in the decision log. diff --git a/docs/guide/08-principles.md b/docs/guide/08-principles.md index 1969bf5..fcd4e36 100644 --- a/docs/guide/08-principles.md +++ b/docs/guide/08-principles.md @@ -1,6 +1,6 @@ # Steer with principle names -pstack ships 23 principles as individual skills. `/marius-mode` reads their index at the start of every multi-step task, applies the ones the task triggers, and names each applied principle in its reply along with the decision it changed. +tstack ships 23 principles as individual skills. `/marius-mode` reads their index at the start of every multi-step task, applies the ones the task triggers, and names each applied principle in its reply along with the decision it changed. You don't invoke principles. You use their names to steer. Each name points at a complete rule the agent has already read, so one phrase redirects the work more precisely than a paragraph of instructions. diff --git a/docs/guide/09-make-it-yours.md b/docs/guide/09-make-it-yours.md index 098fe24..93f2d15 100644 --- a/docs/guide/09-make-it-yours.md +++ b/docs/guide/09-make-it-yours.md @@ -8,7 +8,7 @@ marius-mode is one person's style. The machinery underneath, playbooks, routing, /automate-me ``` -You don't describe your style, because [`/automate-me`](../../skills/automate-me/SKILL.md) reads it out of your history. It mines your recent transcripts in the active workspace for repeated preferences, in how you like replies, delegation, verification, code, prose, and process, then asks you which patterns are really you. It drafts `.cursor/skills/-mode/SKILL.md` through Cursor's built-in `create-skill` flow, runs the draft through [`/unslop`](../../skills/unslop/SKILL.md), and opens a PR from a worktree so you review it like any other change. +You don't describe your style, because [`/automate-me`](../../skills/automate-me/SKILL.md) reads it out of your history. It asks whether to mine this workspace's transcripts or, with your explicit yes, every harness's history on this machine. It looks for repeated preferences in how you like replies, delegation, verification, code, prose, and process, then asks you which patterns are really you. It drafts `skills/-mode/SKILL.md` per the authoring playbook and runs the draft through [`/unslop`](../../skills/unslop/SKILL.md). Rules mined from work history go to a local layer in `~/.agents/skills/` that is never committed, and it warns before publishing work-derived rules to a remote. Run it again whenever your habits drift: @@ -36,7 +36,7 @@ When you already know the workflow you want to capture: /marius-mode write a skill for verifying database migrations in this repo ``` -Writing a skill matches the [Authoring or modifying a skill playbook](../../skills/marius-mode/playbooks/authoring-a-skill.md), which routes through Cursor's built-in `create-skill`, validates the frontmatter and links, and ships the result through the Opening a PR playbook. Agent-facing prose has a higher bar than human prose, because an unhelpful sentence becomes an instruction some future agent follows. Let the playbook hold that bar rather than writing a `SKILL.md` freehand. +Writing a skill matches the [Authoring or modifying a skill playbook](../../skills/marius-mode/playbooks/authoring-a-skill.md), which sets portable frontmatter, validates it and the links with `node scripts/check.mjs`, and ships the result through the Opening a PR playbook. Agent-facing prose has a higher bar than human prose, because an unhelpful sentence becomes an instruction some future agent follows. Let the playbook hold that bar rather than writing a `SKILL.md` freehand. One special case has its own generator. A skill that must drive your app and prove behavior is a verification skill, so use [`/create-verification-skill`](../../skills/create-verification-skill/SKILL.md) and [`/maintain-verification-skill`](../../skills/maintain-verification-skill/SKILL.md) instead. [Verify and ship](./06-verify-and-ship.md#create-a-project-verification-skill) covers both. diff --git a/docs/guide/README.md b/docs/guide/README.md index 27d6edb..7721c6e 100644 --- a/docs/guide/README.md +++ b/docs/guide/README.md @@ -1,16 +1,16 @@ -# The pstack guide +# The tstack guide -pstack works best when you stop micromanaging the agent. You describe what you want and how you'll know it's done. `/marius-mode` picks the playbook, runs the other skills as the steps need them, and shows you the evidence. This guide teaches that habit with realistic prompts. +tstack works best when you stop micromanaging the agent. You describe what you want and how you'll know it's done. `/marius-mode` picks the playbook, runs the other skills as the steps need them, and shows you the evidence. This guide teaches that habit with realistic prompts. Here's what you'll learn: -1. [Set up pstack](./01-setup.md). Install the plugin and pick your models. +1. [Set up tstack](./01-setup.md). Install the skills and choose whether to allow cross-vendor review. 2. [Route work through `/marius-mode`](./02-marius-mode.md). Give it a goal and watch it pick a playbook. 3. [Understand the code](./03-understand.md). `/how`, `/why`, `/teach`, and `/recall` before you edit anything. 4. [Design the change](./04-design.md). `/architect`, `/arena`, `/swarm`, and `/interrogate` before code locks in a shape. 5. [Build and clean the change](./05-build-and-clean.md). The build playbooks, `/tdd`, `/unslop`, and `/no-comments`. 6. [Verify and ship](./06-verify-and-ship.md). Prove behavior on the real app, then open a focused PR and drive it to merged. -7. [Run work while you sleep](./07-overnight.md). An overnight contract, a decision log you can audit, and the playbooks that scale past one agent. +7. [Run work while you sleep](./07-overnight.md). An overnight contract, a decision log you can audit, and a stack of verified PRs to land in the morning. 8. [Steer with principle names](./08-principles.md). The 23 names that redirect an agent mid-task. 9. [Make it yours](./09-make-it-yours.md). Your own mode, plus how to test a skill change. 10. [Recipes and pitfalls](./10-recipes-and-pitfalls.md). Prompts to copy and mistakes to skip. @@ -27,4 +27,4 @@ Give the agent a goal and a way to check it, in your own words: You don't need to name a playbook or list skills. "repro first" and a checkable outcome are all the routing signal `/marius-mode` needs. It matches the Bug fix playbook, copies the steps into a todo list, and calls the right skills as each step fires. -Next: [Set up pstack](./01-setup.md). +Next: [Set up tstack](./01-setup.md). diff --git a/scripts/check.mjs b/scripts/check.mjs index 67c56e6..7cbcee4 100755 --- a/scripts/check.mjs +++ b/scripts/check.mjs @@ -3,15 +3,18 @@ import { existsSync, readdirSync, readFileSync } from "node:fs"; import { dirname, join, relative, resolve, sep } from "node:path"; import { fileURLToPath } from "node:url"; -export const PORTABLE_KEYS = new Set(["name", "description", "license", "allowed-tools", "disable-model-invocation"]); +export const PORTABLE_KEYS = new Set([ + "name", "description", "license", "compatibility", "metadata", "allowed-tools", "disable-model-invocation", +]); +const SKILL_NAME = /^[a-z0-9]+(-[a-z0-9]+)*$/; export const BANNED_TERMS = [ "AskQuestion", "Task tool", "subagent_type", "generalPurpose", "pstack-models", "setup-pstack", "cursor-team-kit", "create-skill", "~/.cursor/", "poteto-mode", "poteto-agent", - "grok-", "gpt-5", "claude-opus-", "deslop", "control-ui", "control-cli", "\u2014", + "grok-", "gpt-5", "claude-opus-", "deslop", "control-ui", "control-cli", "\u2014", ".cursor/skills", "/goal", ]; -export const TERM_SCAN_ROOTS = ["skills"]; +export const TERM_SCAN_ROOTS = ["skills", "docs/guide"]; export const ALLOWED_TERMS = { - "skills/recall/references/transcripts.md": ["~/.cursor/"], + "skills/recall/references/transcripts.md": ["~/.cursor/", ".cursor/skills"], }; const SCANNED_EXTENSIONS = /\.(md|sh|ts|mjs|tsv)$/; @@ -39,7 +42,7 @@ export function parseFrontmatter(text) { const match = line.match(/^([A-Za-z][\w-]*):\s*(.*)$/); if (match) { key = match[1]; - fields[key] = match[2].trim(); + fields[key] = match[2].trim().replace(/^(["'])(.*)\1$/, "$2"); } else if (key && /^\s+\S/.test(line)) { fields[key] = `${fields[key]} ${line.trim()}`.trim(); } @@ -65,7 +68,13 @@ function checkSkillFrontmatter(root, dir, errors) { const fields = parseFrontmatter(readFileSync(path, "utf8")); if (!fields) return errors.push(`${rel}:1: missing frontmatter`); if (fields.name !== dir) errors.push(`${rel}:1: name "${fields.name ?? ""}" must equal directory "${dir}"`); + else if (!SKILL_NAME.test(dir) || dir.length > 64) { + errors.push(`${rel}:1: name "${dir}" must be lowercase letters, digits, and single hyphens, max 64 characters`); + } if (!fields.description) errors.push(`${rel}:1: missing description`); + else if (fields.description.length > 1024) { + errors.push(`${rel}:1: description is ${fields.description.length} characters, max 1024`); + } for (const key of Object.keys(fields)) { if (!PORTABLE_KEYS.has(key)) errors.push(`${rel}:1: non-portable frontmatter key "${key}"`); } diff --git a/scripts/check.test.mjs b/scripts/check.test.mjs index 60f91c5..d0f4baa 100644 --- a/scripts/check.test.mjs +++ b/scripts/check.test.mjs @@ -104,3 +104,23 @@ test("the em dash character is a banned term", () => { const root = fixture({ "skills/alpha/SKILL.md": skill("alpha", "Fast \u2014 and wrong.\n") }); assert.deepEqual(check(root), ['skills/alpha/SKILL.md:6: banned term "\u2014"']); }); + +test("Cursor project skill paths and /goal are banned terms", () => { + const root = fixture({ "skills/alpha/SKILL.md": skill("alpha", "Write .cursor/skills/verify-app, then arm a /goal.\n") }); + assert.deepEqual(check(root), [ + 'skills/alpha/SKILL.md:6: banned term ".cursor/skills"', + 'skills/alpha/SKILL.md:6: banned term "/goal"', + ]); +}); + +test("names and descriptions follow the Agent Skills spec limits", () => { + const long = "x".repeat(1025); + const root = fixture({ + "skills/bad--name/SKILL.md": skill("bad--name"), + "skills/alpha/SKILL.md": `---\nname: alpha\ndescription: "${long}"\ncompatibility: Needs git\nmetadata:\n author: x\n---\nBody\n`, + }); + assert.deepEqual(check(root), [ + "skills/alpha/SKILL.md:1: description is 1025 characters, max 1024", + 'skills/bad--name/SKILL.md:1: name "bad--name" must be lowercase letters, digits, and single hyphens, max 64 characters', + ]); +}); diff --git a/skills/architect/SKILL.md b/skills/architect/SKILL.md index ac3160a..829c398 100644 --- a/skills/architect/SKILL.md +++ b/skills/architect/SKILL.md @@ -1,6 +1,6 @@ --- name: architect -description: "Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape." +description: "Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', or 'design this', or when another skill routes here." disable-model-invocation: true --- diff --git a/skills/arena/SKILL.md b/skills/arena/SKILL.md index 14edec6..94e41fd 100644 --- a/skills/arena/SKILL.md +++ b/skills/arena/SKILL.md @@ -1,6 +1,6 @@ --- name: arena -description: "Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape." +description: "Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', or 'throw it in the arena'." disable-model-invocation: true --- diff --git a/skills/blast-radius/SKILL.md b/skills/blast-radius/SKILL.md index 1713b28..4bc170f 100644 --- a/skills/blast-radius/SKILL.md +++ b/skills/blast-radius/SKILL.md @@ -1,6 +1,6 @@ --- name: blast-radius -description: "Find what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', or reviewing a small diff you don't trust." +description: "Find what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for /blast-radius, 'blast radius of X', or 'what could this break'." disable-model-invocation: true --- diff --git a/skills/create-verification-skill/SKILL.md b/skills/create-verification-skill/SKILL.md index 0fe2364..5affb00 100644 --- a/skills/create-verification-skill/SKILL.md +++ b/skills/create-verification-skill/SKILL.md @@ -6,7 +6,7 @@ disable-model-invocation: true # Create a verification skill -Every serious project needs a scripted way to drive the real app and prove behavior: launch it, exercise a feature the way a user would, and capture evidence. This skill generates that as a project-local skill (`.cursor/skills/verify-/`) tailored to the repo. You write the generator's output for the next agent, not for a human: it will be read cold, mid-task, by an agent that has never seen the app. +Every serious project needs a scripted way to drive the real app and prove behavior: launch it, exercise a feature the way a user would, and capture evidence. This skill generates that as a project-local skill (`.agents/skills/verify-/`) tailored to the repo. You write the generator's output for the next agent, not for a human: it will be read cold, mid-task, by an agent that has never seen the app. ## 1. Interview the repo, not the user @@ -22,7 +22,7 @@ If the checkout doesn't build or start as-is, fix that first (or report it preci ## 2. Generate the skill -Write `.cursor/skills/verify-/SKILL.md` with YAML frontmatter (`name: verify-` and a `description` that names the app, the surface, and when to reach for it. Without frontmatter the skill never registers.) and these sections, each grounded in what the interview actually found (no placeholders left): +Write `.agents/skills/verify-/SKILL.md` with YAML frontmatter (`name: verify-` and a `description` that names the app, the surface, and when to reach for it. Without frontmatter the skill never registers.) Codex, Copilot, and Cursor read `.agents/skills/`. For Claude Code, also add a symlink at `.claude/skills/verify-` pointing to it. and these sections, each grounded in what the interview actually found (no placeholders left): - **Launch:** the exact command that starts the app for verification, and how to tell it's ready (a log line, a port answering, a prompt). Include teardown. For a short-lived CLI or TUI there is no server to keep alive: launch means build the binary (or install deps) once, then start each drive in its own isolated PTY or tmux session. - **Doctor:** one read-only check that answers "is this instance worth driving?": process up, right version/build, port owned by us, auth valid. An agent runs this first whenever anything looks off. @@ -33,7 +33,7 @@ Write `.cursor/skills/verify-/SKILL.md` with YAML frontmatter (`name: verif ## 3. Seed the feature map -Create `.cursor/skills/verify-/features/README.md` plus one file per user-facing feature you can identify (aim for the top 3-5 to start, from routes, commands, menus, or docs). Follow the shape in [`references/feature-map-example/`](references/feature-map-example/), with a README index and one file per feature. Each file answers, from the user's point of view: what the feature is, how to reach it, how to drive it with the harness, and what observable end state proves it works. The four H2s are `Sub-features`, `How to get to it (user POV)`, `Driving it with `, and `Gotchas`. The map is the repo's maintained verification source; a proof that drives one convenient entry point is incomplete when the map lists others. +Create `.agents/skills/verify-/features/README.md` plus one file per user-facing feature you can identify (aim for the top 3-5 to start, from routes, commands, menus, or docs). Follow the shape in [`references/feature-map-example/`](references/feature-map-example/), with a README index and one file per feature. Each file answers, from the user's point of view: what the feature is, how to reach it, how to drive it with the harness, and what observable end state proves it works. The four H2s are `Sub-features`, `How to get to it (user POV)`, `Driving it with `, and `Gotchas`. The map is the repo's maintained verification source; a proof that drives one convenient entry point is incomplete when the map lists others. ## 4. Prove the generated skill before handing it over diff --git a/skills/figure-it-out/SKILL.md b/skills/figure-it-out/SKILL.md index 8dd9df5..9e6b16c 100644 --- a/skills/figure-it-out/SKILL.md +++ b/skills/figure-it-out/SKILL.md @@ -1,6 +1,6 @@ --- name: figure-it-out -description: "Design an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions via show-me-your-work. Use for /figure-it-out, 'figure it out', a large migration, or when no narrower playbook applies." +description: "Design an auditable playbook for work no narrower playbook fits. Scales rigor to the task, runs a hypothesis loop, and logs decisions via show-me-your-work. Use for /figure-it-out or 'figure it out', or when another skill routes here." disable-model-invocation: true --- diff --git a/skills/maintain-verification-skill/SKILL.md b/skills/maintain-verification-skill/SKILL.md index 082312d..440c51a 100644 --- a/skills/maintain-verification-skill/SKILL.md +++ b/skills/maintain-verification-skill/SKILL.md @@ -22,7 +22,7 @@ Only edit the verification skill's own directory (its SKILL.md, features/, and a ## Pass -0. **Locate the target.** Find the verification skill to maintain: the project-local skill whose body has launch/drive sections and a feature map (usually `.cursor/skills/verify-*/`). Several candidates → ask which one; none → stop and point at `/create-verification-skill` instead of inventing a target. +0. **Locate the target.** Find the verification skill to maintain: the project-local skill whose body has launch/drive sections and a feature map (usually `.agents/skills/verify-*/`). Several candidates → ask which one; none → stop and point at `/create-verification-skill` instead of inventing a target. 1. **Index hygiene.** Read the feature map README and glob its sibling files. Fix missing, extra, duplicate, or dead entries. Lightweight; no generated inventory. diff --git a/skills/marius-mode/SKILL.md b/skills/marius-mode/SKILL.md index dbb34ec..f4e4770 100644 --- a/skills/marius-mode/SKILL.md +++ b/skills/marius-mode/SKILL.md @@ -12,7 +12,7 @@ The Principles section below grounds every trigger. In your reply, name each pri Remaining triggers: -- Non-trivial or greenfield work → write a short plan first: the approach, the files touched, and each open decision with a recommended option. Wait for the go, then run to a ready PR without check-ins. Small fixes skip the plan. +- Non-trivial or greenfield work → write a short plan first: the approach, the files touched, and each open decision with a recommended option. Wait for the go, then run without check-ins to a committed, verified local branch. Small fixes skip the plan. - The user names a scope or a phase ("don't write code yet", "only the parser") → stay inside it literally. No extra features, compatibility layers, or neighboring changes. - Asked to review or assess → findings only, bottom line first, no code changes unless asked. - Nontrivial change, architecture decision, or "are we sure?" → the **how** skill. @@ -85,19 +85,21 @@ Read the leaf skill in full for any principle you apply. Each entry names when i **Always pause** for anything that leaves the machine or can't be undone: git push, opening or merging a PR, force-push, deploys, data deletion, and messages to people. The user reviews and merges PRs. +**What counts as the go.** Pushing, opening PRs, and fanning out many subagents each need an explicit go, and one go can cover all three. Invoking a playbook whose deliverable is pushed branches or open PRs (Babysit, Shipping, Autopilot-stack) grants push and PR creation for that work. So does approving a plan that says it will push or open PRs. Either also approves the fan-out that playbook or plan names. Without that grant, stop at the committed local branch and ask. Merging stays with the user unless they say otherwise. + **Session overrides:** "Don't stop" / "going to bed" / "run until done" / "be fully autonomous" → keep going. These do not lift the push and PR pause unless the user says so explicitly. **No is an acceptable answer.** Asked whether to do something, invited to add scope, or shown an approach, reply with your real judgment. Decline, push back, or say "this doesn't earn its place" when true. A recommendation is a judgment, not a validation. Agreement is not the default, candor over sycophancy. ## Subagents -**Default to working inline.** Spawn subagents for bulk reading, clear parallelism, or an independent review. A playbook step that says to delegate code is optional: do it in the main session unless the change is large and mechanical enough that a delegate saves real context. One harness writes code in a repo. Other model families review and debate. +**Default to working inline.** Spawn subagents for bulk reading, clear parallelism, or an independent review. A playbook step that says to delegate code is optional: do it in the main session unless the change is large and mechanical enough that a delegate saves real context. One harness writes code in a repo. Other model families review and debate, only through [the bridge](../interrogate/references/bridge.md). With the bridge off, use a fresh host subagent and say the review was same-family. -**Subagents you spawn inside a playbook step start by reading this file.** Make the first line of every such prompt: "Read `skills/marius-mode/SKILL.md` in full, including the Principles index, before any work." Routed workflow skills (`how`, `why`, `interrogate`, `reflect`, `swarm`) write their own subagent prompts. Respect them. +**Subagents you spawn inside a playbook step start by reading this file.** Make the first line of every such prompt tell it to read this `SKILL.md` in full, including the Principles index, before any work. Give the absolute path of the copy you loaded (for example `~/.agents/skills/marius-mode/SKILL.md`), since the target repo usually has no `skills/` folder. Routed workflow skills (`how`, `why`, `interrogate`, `reflect`, `swarm`) write their own subagent prompts. Respect them. **Defaults for every subagent spawn.** Run it in the background if the harness supports it, with full tool access (a read-only mode that strips MCP tools breaks lookups), file pointers instead of inlined context, and an explicit model role. Code delegates tier by difficulty. The hardest changes (cross-cutting design, gnarly concurrency, subtle algorithms) go to the strongest model, whether the task needs judgment on vague intent or is a precisely specified sequence of steps to execute to the letter. Trivial mechanical edits go to the fast model. Prose and judgment use the strongest model. -You own every subagent's work. Review the diff and write your own summary, don't pass through what it said. Interrupt-chained resumes silently drop directives, so fire a fresh subagent with consolidated scope rather than trusting a "done" summary. A second opinion is the same prompt against a different model. Agreement is high-signal. +You own every subagent's work. Review the diff and write your own summary, don't pass through what it said. Interrupt-chained resumes silently drop directives, so fire a fresh subagent with consolidated scope rather than trusting a "done" summary. A second opinion is the same prompt against a different model, through the bridge when it allows one. Agreement is high-signal. ## Writing the reply diff --git a/skills/marius-mode/playbooks/autopilot-stack.md b/skills/marius-mode/playbooks/autopilot-stack.md index ad6a52f..0100569 100644 --- a/skills/marius-mode/playbooks/autopilot-stack.md +++ b/skills/marius-mode/playbooks/autopilot-stack.md @@ -3,8 +3,8 @@ **You own the stack, never the landing. Build and verify the queue with full autonomy, then hand the operator one linear base-branch stack to review and land.** 1. **Run the owner loop.** Resolve the forge once for the program. GitHub CLI (`gh`) is the default. If `command -v origin` succeeds and Origin can resolve the repository, use `origin pr ...` for PR create, edit, view, watch, and merge operations. Otherwise stay on `gh` and record the fallback. Never require Graphite (`gt`). One subagent per PR (a remote or cloud agent if the harness offers one) owns its change end to end: build, first push, a ready PR opened before self-proof, self-proof (gates, CI, receipts), skeptical Bugbot triage per `../references/bugbot-triage.md`, a slop-strip (reread the diff against the **laziness-protocol** principle skill and delete what does not earn its place), `/no-comments` (the **no-comments** skill), and babysit to green per `playbooks/babysit.md`. Owners parallelize when the work is self-contained. Within about 15 minutes, every owner starts a `decisions.tsv` trail per the **show-me-your-work** skill, pushes its first branch snapshot, and opens the PR ready, never draft. Keep the trail uncommitted and return it in the report. As soon as a subagent starts, the owner adds its ID, expected runtime (at least the longest past run of that kind), and state to a `children.tsv` kept uncommitted like the trail. -2. **Audit on the wake chain.** The root runs an audit tick roughly every 30 minutes. A local root arms each tick as a real recurring loop (Claude Code: `/loop`). The loop uses a monitored-shell 30-minute sleep and emits an output-notification sentinel. A cloud root uses the existing cloud-sleeper wake chain instead. Never leave the cadence to memory or lossy completion notifications. At each tick, re-read this playbook file in full, then re-read the armed `/goal`. Audit the operation against both. Fix drift during that tick. Probe each owner with a generic liveness or status check. Count only side effects as progress: commits, pushes, PR or check deltas, and store reports. Treat a lane that passes its expected runtime without a side effect as stuck. Stand it down and dispatch a replacement at once. Do not wait for a polite return. Each tick also runs that stuck test over every owner's `children.tsv`. The owner records each stuck subagent as stuck and replaces it if its work is still needed. The root does both when the owner cannot. A stall never proves or drops the work. End the tick only when no delegated work is left. -3. **Hold the operator gates.** State-then-wait, so a request to state the plan is not a go. On the operator's explicit go, arm a `/goal` with the full program objective. The goal continues across turns until the chain is done. On the operator's stop, every owner takes an immediate zero-writes hold. +2. **Audit on the wake chain.** The root runs an audit tick roughly every 30 minutes. A local root arms each tick as a real recurring loop (Claude Code: `/loop`). The loop uses a monitored-shell 30-minute sleep and emits an output-notification sentinel. A remote root uses whatever scheduled wake the harness offers instead. Never leave the cadence to memory or lossy completion notifications. At each tick, re-read this playbook file in full, then re-read `goal.md`. Audit the operation against both. Fix drift during that tick. Probe each owner with a generic liveness or status check. Count only side effects as progress: commits, pushes, PR or check deltas, and status reports. Treat a lane that passes its expected runtime without a side effect as stuck. Stand it down and dispatch a replacement at once. Do not wait for a polite return. Each tick also runs that stuck test over every owner's `children.tsv`. The owner records each stuck subagent as stuck and replaces it if its work is still needed. The root does both when the owner cannot. A stall never proves or drops the work. End the tick only when no delegated work is left. +3. **Hold the operator gates.** State-then-wait, so a request to state the plan is not a go. On the operator's explicit go, write the full program objective to `goal.md` in the program's directory (and arm the harness's goal command too, if it has one). The goal stands across turns until the chain is done. On the operator's stop, every owner takes an immediate zero-writes hold. 4. **Verify each round.** The owner reports its code-ready head SHA once the shipped code is final, and STACK-READY with the exact head SHA when its loop is green. The root verifies each round at that SHA with parallel independent verifiers per the **swarm** skill, aggregated to one verdict. The lanes re-run the gates, prove the load-bearing behavior live on the real surface, audit the diff in two or more focused review lanes while distrusting the PR body, and run the same scenario on current trunk as a regression lane. The live lane is the floor, and a verdict without it is not clean. Send every proven finding to the owner in one fix-forward, with a red test per behavior finding, and give the new head a fresh verdict, except for lane results that stay valid under the patch-id rule in `playbooks/shipping.md`. Nothing enters the stack unverified. 5. **Append on a clean verdict, never ship.** No owner merges, arms auto-merge, or closes. A clean verdict appends the PR to the one linear base-branch stack, in verified order or an order the operator specified. 6. **Single writer on topology, parallel writers on builds.** Owners push only their own branches and report the tip, current base, and intended parent. The root is the only topology writer. To append a PR, fetch the intended parent, rebase the child branch onto that exact parent tip, push with `--force-with-lease` only after an `ls-remote` check, and set the PR base to the parent branch. Create it with `origin pr create --status open --base ` or `gh pr create --base ` according to the resolved forge. Retarget an existing PR with `origin pr edit --base ` or `gh pr edit --base `. Only the root PR targets trunk. Never submit or register the chain through `gt`. diff --git a/skills/marius-mode/playbooks/feature.md b/skills/marius-mode/playbooks/feature.md index 4b18403..a0daefb 100644 --- a/skills/marius-mode/playbooks/feature.md +++ b/skills/marius-mode/playbooks/feature.md @@ -9,7 +9,7 @@ - **Independent workstreams.** Disjoint files, services, or layers parallelize. Shared writes serialize. - **Shared mutable state.** Default to splitting the target (the **separate-before-serializing-shared-state** principle skill). Serialize only for real invariants. - **Smallest safe decomposition.** If one worker is best, name why. -4. Delegate code-writing to a subagent on the fast model (the strongest model for the hardest changes) with a specific scope (file paths, named data shape and its organizing structure per **principle-model-the-domain**, a state machine over scattered booleans, a table/registry over branching, a typed model over repeated shape assumptions, chosen before the delegate writes logic, and success criteria). When the implementation admits multiple valid shapes (error handling, abstraction layer, test structure), delegate via the **arena** skill instead so the runners surface the alternatives and the cross-judge guards the pick. Mandatory: no skip-with-reason escape, and Laziness Protocol does not override it (the gain is review separation, not lines saved). A subagent forbidden to spawn satisfies this by owning the diff directly with the same review separation. No "standing by" reply that waits on a nested agent. Comments per **Comments**. Surgical edits, re-ground against the source for upstream-derived files. Port shared-primitive improvements to all consumers and verify each. Commit liberally. +4. Delegate code-writing to a subagent on the fast model (the strongest model for the hardest changes) with a specific scope (file paths, named data shape and its organizing structure per **principle-model-the-domain**, a state machine over scattered booleans, a table/registry over branching, a typed model over repeated shape assumptions, chosen before the delegate writes logic, and success criteria). When the implementation admits multiple valid shapes (error handling, abstraction layer, test structure), delegate via the **arena** skill instead so the runners surface the alternatives and the cross-judge guards the pick. Delegation is optional per the Subagents section of `SKILL.md`: when you keep the work inline, get the review separation from `/interrogate` before the PR instead. A subagent forbidden to spawn satisfies this by owning the diff directly with the same review separation. No "standing by" reply that waits on a nested agent. Comments per **Comments**. Surgical edits, re-ground against the source for upstream-derived files. Port shared-primitive improvements to all consumers and verify each. Commit liberally. 5. Verify on the matching surface. "Inconclusive" or wrong-surface is not a pass. Flag it. 6. Rebase into small, ordered commits. Stack follow-ups. Use the **sequence-verifiable-units** principle skill, building, verifying, and committing each small unit before the next. diff --git a/skills/marius-mode/playbooks/multi-phase-plan.md b/skills/marius-mode/playbooks/multi-phase-plan.md index 33ede66..38e633a 100644 --- a/skills/marius-mode/playbooks/multi-phase-plan.md +++ b/skills/marius-mode/playbooks/multi-phase-plan.md @@ -32,15 +32,15 @@ Tests alone are not sufficient verification. A PR is verified only when its unit ### Arm the program - [ ] State the protocol and this plan to the operator, then stop. Start execution only on the operator's explicit go. -- [ ] On the operator's go, arm a `/goal` with this exact text. "" -- [ ] Read these from trunk at program start. Re-read them at every tick. - - [ ] `git show origin/main:skills/marius-mode/playbooks/.md` - - [ ] `git show origin/main:skills/swarm/SKILL.md` - - [ ] `git show origin/main:` - - [ ] `git show origin/main:skills/marius-mode/playbooks/opening-a-pr.md` - - [ ] `git show origin/main:skills/` -- [ ] Arm the 30-minute audit tick. In a local session, a real recurring loop (Claude Code: `/loop`). In a cloud root, a cloud-sleeper wake chain. Never leave the cadence to memory. -- [ ] Use this tick prompt, verbatim. "Re-read the execution playbook from trunk and the armed /goal. Audit the operation against both and fix drift in this tick. Probe every active lane and judge progress by side effects only. Stand down a stuck lane and dispatch its replacement now. Then post a short status message to the operator in chat only when the audit found a tracked change that no earlier status message reported, such as a PR opened, a code-ready head, a round launched or closed, a verdict, a merge, a stuck agent and the action taken, a blocker added or cleared, or a decision only the operator can make. Name every such change and nothing else. Do not repeat a table, the merged list, or an unchanged blocker. If the audit found none, end the turn with no reply text. Either way, log this tick's row in your decision trail. The row names the items reported, or none." +- [ ] On the operator's go, write the program objective to `goal.md` in the plan's directory (and arm the harness's goal command too, if it has one) with this exact text. "" +- [ ] Re-read these installed skill files at program start and at every tick, by the absolute path of the loaded marius-mode skill directory (`` below). + - [ ] `/marius-mode/playbooks/.md` + - [ ] `/swarm/SKILL.md` + - [ ] `` + - [ ] `/marius-mode/playbooks/opening-a-pr.md` + - [ ] `/` +- [ ] Arm the 30-minute audit tick. In a local session, a real recurring loop (Claude Code: `/loop`). In a remote root, whatever scheduled wake the harness offers. Never leave the cadence to memory. +- [ ] Use this tick prompt, verbatim. "Re-read the execution playbook and goal.md. Audit the operation against both and fix drift in this tick. Probe every active lane and judge progress by side effects only. Stand down a stuck lane and dispatch its replacement now. Then post a short status message to the operator in chat only when the audit found a tracked change that no earlier status message reported, such as a PR opened, a code-ready head, a round launched or closed, a verdict, a merge, a stuck agent and the action taken, a blocker added or cleared, or a decision only the operator can make. Name every such change and nothing else. Do not repeat a table, the merged list, or an unchanged blocker. If the audit found none, end the turn with no reply text. Either way, log this tick's row in your decision trail. The row names the items reported, or none." - [ ] On the operator's hold or stand-down, send every owner a zero-writes order at once. ### Spawn owners diff --git a/skills/marius-mode/scripts/check-plan.mjs b/skills/marius-mode/scripts/check-plan.mjs index 6c07f4e..be0e02b 100755 --- a/skills/marius-mode/scripts/check-plan.mjs +++ b/skills/marius-mode/scripts/check-plan.mjs @@ -17,7 +17,7 @@ const SUB_BLOCKS = [ "Merge.", ]; const PROGRAM_H3 = ["Arm the program", "Spawn owners", "PR mechanics", "Verdict and merge", "Boot recipe"]; -const PROGRAM_MARKERS = ["/goal", "git show origin/main:", /30[- ]minute/, "status message"]; +const PROGRAM_MARKERS = ["goal.md", "/", /30[- ]minute/, "status message"]; const HOW_TO_READ_MARKERS = [ "One box is one unit of work", "names the evidence", diff --git a/skills/principle-build-the-lever/SKILL.md b/skills/principle-build-the-lever/SKILL.md index 277189a..7ecd718 100644 --- a/skills/principle-build-the-lever/SKILL.md +++ b/skills/principle-build-the-lever/SKILL.md @@ -1,6 +1,6 @@ --- name: principle-build-the-lever -description: "Apply to any non-trivial work, not just bulk work: edits, migrations, analyses, checks. Build the tool that does it or proves it (codemod, script, generator, or a skill your subagents follow) instead of working by hand. The tool is the artifact a reviewer can rerun." +description: "Apply to non-trivial, repeated work: edits, migrations, analyses, checks. Build the tool that does it or proves it (codemod, script, generator, or a skill your subagents follow) instead of working by hand. The tool is the artifact a reviewer can rerun. One-off operational work takes the simplest direct path instead." disable-model-invocation: true --- # Build the Lever diff --git a/skills/show-me-your-work/SKILL.md b/skills/show-me-your-work/SKILL.md index 8f897b1..46bc6ed 100644 --- a/skills/show-me-your-work/SKILL.md +++ b/skills/show-me-your-work/SKILL.md @@ -64,7 +64,7 @@ Correct the log, not the story. The audit never edits or removes a row, even an ## Cross-model review of the trail -Before handing back, spawn a subagent on a different model family from the one that did the work. Self-review is not a substitute. The subagent reads the audit trail and the run's transcript, then flags what the user should pay attention to. Not a redo of the work, a scan for what's suboptimal or risky. +Before handing back, get a reviewer from a different model family than the one that did the work, through [the bridge](../interrogate/references/bridge.md). With the bridge off, use a fresh host subagent and write in the trail that the review was same-family. Self-review is not a substitute. The subagent reads the audit trail and the run's transcript, then flags what the user should pay attention to. Not a redo of the work, a scan for what's suboptimal or risky. - Decisions logged with weak or absent evidence. - Verification steps skipped or claimed without proof in the transcript. diff --git a/skills/swarm/SKILL.md b/skills/swarm/SKILL.md index c57fff1..f2d9263 100644 --- a/skills/swarm/SKILL.md +++ b/skills/swarm/SKILL.md @@ -1,6 +1,6 @@ --- name: swarm -description: "Fan out N parallel workers, drain them, and return one report. Use for /swarm, 'swarm this', or parallel coverage, races, gauntlets, and exploration." +description: "Fan out N parallel workers, drain them, and return one report. Use for /swarm or 'swarm this', or when another skill routes here." disable-model-invocation: true --- diff --git a/skills/tdd/SKILL.md b/skills/tdd/SKILL.md index ca6f24c..52f96a1 100644 --- a/skills/tdd/SKILL.md +++ b/skills/tdd/SKILL.md @@ -1,6 +1,6 @@ --- name: tdd -description: "Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious cheap local test target. Skip when the test path is unclear, expensive, integration-heavy, or not requested." +description: "Use for /tdd, or when the user explicitly asks for TDD, a failing test, or a regression test, or when another skill routes here. Skip when the test path is unclear, expensive, or integration-heavy." disable-model-invocation: true ---