Skip to content

The agent that grows with you

fix(skills): brace the remaining role-tag placeholders that reach the model

kshitijk4poor154e2601b89c
diff --git a/model_tools.py b/model_tools.py
index f6b37b5a98d..138797668fa 100644
--- a/model_tools.py
+++ b/model_tools.py
@@ -931,7 +931,7 @@ def handle_function_call(
if "manage_connections" not in _select_tool_names(enabled_toolsets, disabled_toolsets, quiet_mode=True):
return _emit(tool_error("Connectors are not available in this session."))
if is_connector_name(function_name) and parse_connector_name(function_name) is None:
- return _emit(tool_error("Malformed connector tool name; expected connectors__<connector>__<tool>."))
+ return _emit(tool_error("Malformed connector tool name; expected connectors__<connector>__{tool}."))
original_args = dict(function_args)
if not skip_tool_request_middleware:
diff --git a/optional-skills/creative/system-atlas/SKILL.md b/optional-skills/creative/system-atlas/SKILL.md
index 5d452732ed0..b944fd73a4d 100644
--- a/optional-skills/creative/system-atlas/SKILL.md
+++ b/optional-skills/creative/system-atlas/SKILL.md
@@ -58,7 +58,7 @@ Follow the order — each step was earned by a correction the first time round.
1. **Read the inputs before drawing.** The vision doc, the repo's existing surfaces, and whatever prior art the user allows (ask — they may forbid a branch or a source). If you will build on a framework, read its docs first; hand long docs to a subagent via `delegate_task` with your specific design questions and have it return a primer with gotchas and a "what it does not give us" list. Drawing before this produces boxes that don't map to anything real.
2. **Discuss before drawing.** Propose the structure in chat, mapped to the runtime's real primitives, and ask only the questions you cannot derive from the repo. Take defaults for the rest and say which.
-3. **First atlas — the whole system.** Copy `assets/` into the atlas home (rename `data.example.mjs` to `data.mjs`), fill the data, build with `node`, publish. **Where the atlas home is depends on the repo's docs policy** — ask before committing anything. Docs-friendly repos: `docs/<system>/atlas/` in-tree. Repos that commit only ADRs and `CONTEXT.md`: put the atlas, `SYSTEM.md`, and `research/` in a git-ignored scratch dir and attach `SYSTEM.md` + research to the spec issue when published. (Committing the whole set once produced a 3,900-line docs PR and four review rounds reconciling three restatements of one design.) Load the design-md or architecture-diagram skill via skill_view for HTML-artifact guidance if useful; read `references/design-language.md` for the visual rules either way.
+3. **First atlas — the whole system.** Copy `assets/` into the atlas home (rename `data.example.mjs` to `data.mjs`), fill the data, build with `node`, publish. **Where the atlas home is depends on the repo's docs policy** — ask before committing anything. Docs-friendly repos: `docs/{system}/atlas/` in-tree. Repos that commit only ADRs and `CONTEXT.md`: put the atlas, `SYSTEM.md`, and `research/` in a git-ignored scratch dir and attach `SYSTEM.md` + research to the spec issue when published. (Committing the whole set once produced a 3,900-line docs PR and four review rounds reconciling three restatements of one design.) Load the design-md or architecture-diagram skill via skill_view for HTML-artifact guidance if useful; read `references/design-language.md` for the visual rules either way.
4. **Progressive disclosure.** A whole system at once reads as noise. Ten-ish chapters; each adds at most three structures and runs one small flow that only touches revealed structures; the last chapter shows everything with a flow picker. Unrevealed structures stay in the index, dimmed, with their chapter number. Panels are summary-first: one sentence, then *Read more* and *Steps* folded.
5. **Shapes and labels.** Letters on boxes are not enough. Give each role a shape and put a readable name label on the canvas under every structure — see design-language.
6. **Text twin.** `CONTEXT.md` is a glossary and nothing else (the nouns, one line each); ADRs only for decisions that are hard to reverse, surprising without context, and the result of a real trade-off — these two are the in-tree pieces. `SYSTEM.md` is generated and `research/` holds evidence; both live with the atlas (scratch dir or `docs/`, per step 3). Don't open issues unless asked.
diff --git a/optional-skills/creative/system-atlas/assets/data.example.mjs b/optional-skills/creative/system-atlas/assets/data.example.mjs
index f739107fe09..c677aa74f0c 100644
--- a/optional-skills/creative/system-atlas/assets/data.example.mjs
+++ b/optional-skills/creative/system-atlas/assets/data.example.mjs
@@ -1,6 +1,6 @@
// Single source of truth for one atlas. Copy to <atlas home>/data.mjs and edit.
// Build: bun <atlas home>/build.mjs → writes ../SYSTEM.md and ../atlas.html
-// The atlas home is docs/<system>/atlas/ in repos that commit design docs, or a
+// The atlas home is docs/{system}/atlas/ in repos that commit design docs, or a
// git-ignored scratch directory in repos that only commit ADRs + CONTEXT.md.
export const META = {
diff --git a/tools/connectors/gateway/merge.py b/tools/connectors/gateway/merge.py
index b7c96f22c82..eb9efceee8d 100644
--- a/tools/connectors/gateway/merge.py
+++ b/tools/connectors/gateway/merge.py
@@ -70,7 +70,7 @@ def partition_calls(calls: Sequence[Any]) -> Partition:
code="TOOL_NOT_FOUND",
message=(
"Malformed connector tool name; expected "
- "connectors__<connector>__<tool>."
+ "connectors__<connector>__{tool}."
),
)
)
diff --git a/tools/tool_search_validation.py b/tools/tool_search_validation.py
index fb62f879772..150c140c02c 100644
--- a/tools/tool_search_validation.py
+++ b/tools/tool_search_validation.py
@@ -214,7 +214,7 @@ def not_deferrable_error(name: str) -> str:
"""Rejection for a ``tool_call`` naming something that is not a deferred tool.
Two different mistakes reach here and need opposite corrections: a directly-listed
tool (call it without the bridge) vs. an unknown name — typically a deferred MCP tool
- cited by its bare suffix instead of the full ``mcp__<server>__<tool>`` name. Telling
+ cited by its bare suffix instead of the full ``mcp__<server>__{tool}`` name. Telling
the second group 'call it directly' is the opposite of what they must do."""
from tools.tool_search import _core_tool_names # late: tool_search imports this module
if name in _core_tool_names() or _registry_entry(name) is not None:
@@ -229,4 +229,4 @@ def not_deferrable_error(name: str) -> str:
hint = (f" Did you mean {', '.join(repr(c) for c in candidates)}?" if candidates
else " Use tool_search to find the exact name.")
return (f"'{name}' is not a known tool name. Deferred tools must be invoked through tool_call "
- f"by the exact name tool_search returns (e.g. mcp__<server>__<tool>).{hint}")
+ f"by the exact name tool_search returns (e.g. mcp__<server>__{{tool}}).{hint}")