Shell Tool · engineering · Sentinel

Swap Page Sections

Reorder <section> blocks in a minified HTML file with byte-level safety.

Updated today
View as MarkdownsentinelsonnetcheapMax 6 turns

Overview

Uses the swap-sections tool (and the matching SKILL.md) to swap two <section> blocks in /work/index.html. Handles the minified-into-one-line case via grep anchors + byte offsets so the swap doesn't corrupt the document.

When to use this

  • user wants to reorder sections in a cloned landing page
  • user says 'move the pricing section above the features' / 'swap section A and B'

When NOT to use this

  • user wants to edit text inside a section → use shell_write / string-editing skill instead
  • the HTML is not minified to one line → use a normal editor; this is overkill

Example prompts

swap the hero and the testimonials sections
move the pricing block above the features block in index.html

Inputs and output

Inputs

FieldDescription
section_aanchor or index of first section
section_banchor or index of second

Output

Updated /work/index.html with the two sections swapped; diff summary.

Runtime profile

What the engine commits when this skill runs.

PropertyValueMeaning
Model tiersonnetThe balanced default model class. Trades quality against cost for the vast majority of skill runs.
Cost classcheapA small, fast model. Cents per invocation.
Turn budget6Hard cap on tool-calling iterations before the engine forces a final answer.
ExecutionsynchronousRuns inside the live turn; result lands in the same response.

Under the hood

Tools the engine exposes to this skill and integrations it needs.

ResourceKind
shell_exectool

Tags: engineering, html, edit

Execution template

Shell tools dispatch via a command template. The model substitutes user inputs into the placeholders before firing the underlying tool.

shell_execbash
1swap-sections {{section_a}} {{section_b}} /work/index.html

Invoking this from an agent

Three paths reach this skill. From the chat UI, a user can type the persona slash command followed by a natural request and the discovery step resolves to this skill automatically. From the MCP server, fetch the skill detail with get_skill({id: "swap-page-sections"}) and then invoke it through the agent runtime once the authenticated tier ships. From your own code, hit /docs/skills/swap-page-sections/llm.txt for the token-efficient markdown body and feed it to your model directly.

Note
Every skill page has a canonical permalink and a markdown alternate that LLM crawlers consume via Accept: text/markdown. The full machine-readable catalog lives at /.well-known/agent-skills/index.json.