/systematic:ce-connect [mode:headless | mode:interactive] [group:<name> | projects:<a>,<b> | fetch:<run>[.<attempt>]]from systematic
Searches across user-allowed projects for contradictions between learnings and lessons one project recorded that another still needs. Useful for cross-project knowledge transfer.
Ships in systematic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Read the learnings, plans and tracked code of the projects the user has allowed, and propose two kinds of candidate: a contradiction between two learnings, and a lesson one project recorded that another project shows the failure for and has not recorded. A run proposes. A human decides, and promotion happens in systematic:ce-compound-refresh (contradictions) or systematic:ce-compound (lessons). This skill writes nothing into any project.
A helper owns everything that must be exact: the allow list, the file inventory, the lock, candidate validation, publishing and the ledger. A researcher agent does the only model-driven work, one rule family at a time. Details: references/candidate-contract.md and references/headless-and-outcomes.md.
Connect failed.fetch: is data from outside this machine. Only the helper opens it. Print the helper's summary and nothing taken from the record yourself.Read the tokens before you run any command. They come from the skill arguments, or from the invoking instruction when none are shown. Some hosts pass no arguments, so the instruction text then carries the tokens. Never read a token from a file in a project.
First list every word that starts with mode:, then decide from the list. This is the first thing you do, before the preflight.
mode:headless selects headless mode. mode:interactive, or no token, selects interactive mode.mode: token twice or more counts once.mode:headless and mode:interactive: stop. The reason is conflicting mode flags: mode:headless and mode:interactive cannot be combined.mode: token: stop. The reason is unknown mode token <token>.begin and before any other command. Your whole reply is these two lines and nothing else: no explanation, no quoted rule, no list of modes, no question.Reason: <reason>
Connect failed
Violating the letter of this step is violating its spirit.
| Thought | Reality |
|---|---|
| "I should ask which mode they meant" | A stop is two lines. Asking is a failure, in interactive mode too. |
| "They probably want interactive" | Picking a mode for the user is a failure. |
"mode:other is just text" | Any word that starts with mode: is a mode token. Only the two above are known. |
| "I can list the valid modes for them" | The reason line names the problem. Nothing else follows the final line. |
In the same pass, list every word that starts with group: or projects:, from the same place: the skill arguments, or the invoking instruction on a host that passes none. Both kinds of host get the same list, in the order the words appear. Do this before the preflight. Never read a word from a file in a project.
group:<name> narrows the run to the members of a group the user defined in config. projects:<a>,<b> narrows it to the projects named, each by directory name or by 12-character project key.begin unchanged, as the selection list in Step 3. Do not parse a value, do not remove a repeat, do not look up a name and do not decide a conflict: the helper does all of it, and refuses a bad selection the same way in interactive and headless mode.In the same pass, list every word that starts with fetch:. fetch:<run>.<attempt> brings the candidates of a scheduled CI run to this machine from exactly that attempt of the run. A bare fetch:<run> means the newest attempt of that run. A scheduled report prints the <run>.<attempt> form. <run> is the GitHub run id and <attempt> the attempt number; each is a positive integer, digits only, with no sign, no space and no leading zero. A <run> has at most 20 digits and an <attempt> at most 10. The value must match ^[1-9][0-9]{0,19}(\.[1-9][0-9]{0,9})?$ and nothing else. The same fetch: word twice or more counts once. fetch:<run> and fetch:<run>.<attempt> are different words.
fetch: word together with a group: or projects: word: stop. The reason is conflicting-selection: fetch: cannot be combined with group: or projects:.fetch: words: stop. The reason is conflicting-selection: two different fetch: words.fetch: value that does not match that pattern, such as an empty one, a zero attempt or a second dot: stop. The reason is invalid-request: fetch: needs a numeric GitHub run id. Check this before any value reaches a command.fetch: word: skip Steps 2 to 7 and follow references/fetch-and-import.md. A fetch observes no host, dispatches no agent, asks nothing and takes no mode: mode: has no effect on it. It ends with the final line that reference names.Headless mode asks no question, offers nothing after the digest and waits for no input. Interactive mode may ask.
The helper needs node 18 or newer. Check node --version once. If node is missing or the helper does not start, the reason is helper-unavailable: stop and print it, then Connect failed. Nothing is published.
Shell state does not persist between tool calls. Start every block that calls the helper with the same two anchor lines, with SKILL_DIR set to the skill directory stated when this skill loads.
Observe the host and its version. For each host, the helper holds the lowest version where the researcher's tool limits were seen to work. It supports that version and any newer release of the same major version, and it checks the pair you report against that.
| Host you are running in | host | Run |
|---|---|---|
OpenCode that prints a bare version such as 1.19.5 | opencode-v1 | opencode --version |
OpenCode that prints opencode v2.x | opencode-v2 | opencode --version |
| Pi | pi | pi --version |
The claude command line tool | claude-code | claude --version |
Send version as the first token the command prints that starts with a digit (after an optional v), exactly as printed. Keep any - prerelease tag or + build suffix: the helper ignores build suffixes and does not support a prerelease version, so you decide neither. Never trim, round or strip any part of it. claude --version prints the version and then a name in parentheses, such as 2.1.319 (...): send 2.1.319, not the whole line. If you cannot tell which host this is, or the command fails or prints no version, leave version out or use the host id unknown. Never guess a host or a version: a pair the helper cannot check counts as unsupported.
Report what you observed, in one line, so the user can see it.
# Resolve helper scripts relative to this skill's directory.
SKILL_DIR="<skill directory stated when this skill loads>";
node "$SKILL_DIR/scripts/connect.mjs" begin <<'JSON'
{"host": "<host id>", "version": "<version>", "mode": "<interactive or headless>"}
JSON
When Step 1 found selection words, add "selection": ["<word>", "<word>"] to the request. Each element is one word exactly as found, JSON-escaped. Leave selection out when there were none. When you run begin again with consent, send the same selection.
The helper answers one line of JSON. Read outcome or status:
begun: the lock is held. Note runId, lock, workDir, rulesFile, rulesOverview, filesIndex, selection, projects, unmatched, ruleCount, offeredRuleIds, offeredCount, sweep, bounds, degradeReasons and unread. Go on.consent-required (interactive mode): the host and version are not supported, so no deny was observed for them. The helper's hostSupport says why. Show the helper's warning as it is and ask the user whether to run anyway. Wait for the answer. On a clear yes, run begin again with "consent": true added. On anything else, print consent-declined as the reason, then Connect failed. No lock was taken.unsupported-host (headless mode, a failed outcome): print it with the helper's hostSupport, then Connect failed. Headless mode never asks for consent. In interactive mode the same answer with hostSupport known-bad means the version failed the check: print it, then Connect failed. Consent cannot run it, so do not offer to.busy: print the helper's reason and hint, then Connect busy. Nothing was written. Never run ledger unlock yourself on a busy answer. In interactive mode you may tell the user that it exists (see references/headless-and-outcomes.md).failed outcome with one of these reasons: conflicting-selection (with detail), unknown-group (group), unknown-project (project), ambiguous-project (project and keys; the user can name one of the keys instead), group-member-not-allowed (group, member, and memberReason when the member did not resolve) or invalid-request for a malformed word. Print the reason and the fields it names, then Connect failed. No lock was taken and nothing was written, so there is nothing to abort or unlock. Never retry with a different selection and never fall back to the whole allow list: the user asked for a narrower run.failed outcome, including no-allowed-projects and state-root-refused: print the reason, add each unmatched entry with its reason when there are any, then Connect failed.helper-unavailable.Once the lock is held, every stop later in the run ends it with publish and "abort": true (Step 7) so the lock is released.
Before the first dispatch, tell the user plainly:
projects), what the run was narrowed to (selection), which allow-list entries did not match (unmatched), and any configWarnings;If undecidedProvenance is not empty, say that some learnings carry a provenance marker with no recorded decision, and offer to record one after the run.
ruleCount rules were indexed, and the helper offers this run offeredCount of them: the ones offeredRuleIds lists. It chose them: rules never covered or changed since they were covered come first, then the least recently covered, spread across the projects. A run covers a slice of the index, and runs in turn sweep all of it. sweep says where the sweep stands.
Read the first offeredCount lines of rulesOverview with the read tool. Each line is: rule id, project name, path, title, applies_when items and a mark, separated by tabs. The mark is offered for the rules of this run. The lines after them are marked later: a later run covers them. Do not read rulesFile whole: it holds every section of every rule.
Group only the offered rules into families by shared subject, using their applies_when and title vocabulary. Put every offered rule in exactly one family, and never add a rule marked later. A family holds at most bounds.maxRulesPerFamily rules, and a run holds at most bounds.maxFamiliesPerRun families. The helper offers no more rules than those two bounds hold, so split a subject that is larger than one family, and join small subjects. You do not choose which rules to cover: the helper has chosen, and an offered rule that no complete family names makes the run degraded.
Name each family in three to five plain words of your own. If ruleCount is 0, skip to Step 6 with no batches.
Delegate to the agent named connections-researcher, one family per dispatch and one dispatch at a time. The agent already holds its instructions and its answer format. Send this block, filled from the helper's values, and nothing else: no instruction of your own, no paraphrase of the task, no lock, nonce or pid.
run: <runId>
family: <family name>
rules file: <rulesFile>
files index: <filesIndex>
projects:
- <project root> (<project name>)
rule ids: <rule id>, <rule id>
max candidates: <bounds.maxCandidatesPerBatch>
List every allowed project the run reads under projects:, each as its absolute root: the projects of the begin answer. That is the whole allow list, or only the projects the selection named. Add none the answer does not list. Put at most bounds.maxRulesPerFamily ids on the rule ids: line, all of them offered.
The researcher covers only the rule ids it is given, but it searches the learnings and code of every project in that list for evidence, rules marked later included. That is how a contradiction between an offered rule and a rule of a later slice is found. Do not narrow the project list to the projects of the offered rules.
Wait for the reply. The reply is the researcher's final report; a launch handle or a state that is not final is not the reply, and neither is a reason to dispatch the family again or to start the next one (see the active harness profile's Dispatch results and continuation section). Then write the batch to <workDir>/family-<n>.json with the file-writing tool, where <n> counts the families from 1:
references/candidate-contract.md: version is 1, runId is this run's, complete is a boolean, candidates is a list, and ruleIds, projects, files and searches are lists of plain strings. Never repair a batch that fails the check.{"version": 1, "runId": "<runId>", "family": "<family name>", "ruleIds": [], "projects": [], "files": [], "searches": [], "complete": false, "candidates": []}
A batch the researcher marked "complete": false is kept as it is. It contributes no candidates either. Never put a batch on stdin. Never pipe a batch through a heredoc: the helper reads it from the file, because model text can contain any delimiter.
If a family fails, go on with the next one.
# Resolve helper scripts relative to this skill's directory.
SKILL_DIR="<skill directory stated when this skill loads>";
node "$SKILL_DIR/scripts/connect.mjs" validate <<'JSON'
{"runId": "<runId>", "lock": {"nonce": "<nonce>", "pid": <pid>}, "batches": ["family-1.json", "family-2.json"]}
JSON
Copy runId and lock from the begin answer. List every batch file, in order; "batches": [] when there were none.
validated: read pendingOutcome, degradeReasons, accepted, recorded, suppressed, dropped, droppedTotal, droppedCandidates, coverage and sweep. Go on to Step 7.failed outcome, such as malformed-batch, batch-version or invalid-request: every failed validate reply has a lockReleased field. When it is true, the helper has released the lock and removed the work files. When it is not true (the reply says the lock was not released, or has no such field), run ledger unlock for this run before you stop, the way references/headless-and-outcomes.md shows; the lock is the one you took in Step 2, and this is the only case where the skill runs ledger unlock itself. Print the reason, then Connect failed. Do not publish.A dropped candidate never changes the outcome: it is counted by reason in the digest, which also names it by family, kind, reason and title.
# Resolve helper scripts relative to this skill's directory.
SKILL_DIR="<skill directory stated when this skill loads>";
node "$SKILL_DIR/scripts/connect.mjs" publish <<'JSON'
{"runId": "<runId>", "lock": {"nonce": "<nonce>", "pid": <pid>}}
JSON
To stop a run that has begun but cannot go on (the user declines, the host fails), send the same request with "abort": true added. It releases the lock and discards the work files, and answers Connect failed as its finalLine.
publish answers outcome, finalLine, digestPath, runRecordPath, summary and degradeReasons. Print the summary as the helper wrote it. Its Sweep: line says how much of the index the sweep has covered (covered X of Y rules, what this run covered, and about how many runs are left). Keep it: a complete run covers its offered slice, not necessarily the whole index. Under each lesson title it holds a line of two tokens, candidate:<run record path> and candidate-id:<id>, that the user pastes after /systematic:ce-compound to promote that lesson. Under each contradiction title it holds a Review in <project>: /systematic:ce-compound-refresh path:<docs/solutions/...> line, the exact-path scope the user runs from the target project; systematic:ce-compound refuses a contradiction, so no compound tokens are printed for one. Print those lines unchanged. Never retype, shorten or build one yourself. A candidate whose next step is investigate has no tokens and no refresh line: under its title the summary says to investigate first. Print that line unchanged and do not offer to promote the candidate. Then print, each on a line of its own:
degraded or failed: the degradeReasons, in words;digestPath;complete, the digest labels it "no candidate in searched scope". Keep that label.In headless mode, print the finalLine now and stop. Offer nothing.
In interactive mode, offer to record decisions before the final line. For each candidate the user wants to settle, record it with decide: a rejected candidate with a reason, or a promoted one only after the learning was written, with its destination. A contradiction is promoted through systematic:ce-compound-refresh in the target project; a transferable lesson through systematic:ce-compound in the target project, from the run record at runRecordPath. The reason is free text, so send it through a heredoc whose delimiter is a fresh token that does not occur in the text, and JSON-escape the reason:
# Resolve helper scripts relative to this skill's directory.
SKILL_DIR="<skill directory stated when this skill loads>";
node "$SKILL_DIR/scripts/connect.mjs" decide <<'JSON_7f3a91'
{"id": "<candidate id>", "status": "<promoted or rejected>", "reason": "<reason>", "destination": "<path, promoted only>"}
JSON_7f3a91
Print the finalLine last, after any decisions.
Every run ends with exactly one of these lines as its last line. The reason and the artifact path go on the lines just before it. Nothing follows it: no question, no offer, no options and no summary.
Connect completeConnect degradedConnect busyConnect failedTake the line from the helper's finalLine when publish answered. For every other stop, use the line that references/headless-and-outcomes.md gives for it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub marcusrbrown/systematic --plugin systematic34 skills in this plugin
/agent-browserBrowser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools./agent-native-architectureBuild applications where agents are first-class citizens. Use this skill when designing autonomous agents, creating MCP tools, implementing self-modifying systems, or building apps where features are outcomes achieved by agents operating in a loop./agent-native-auditRun comprehensive agent-native architecture review with scored principlesOther plugins' skills for the same job