245 Verified Capabilities (58 Templates · 80 MCPs · 56 Skills · 51 Use Cases)
Universal Bot Discovery Contract v1 Zero Auth · CORS * · Streamable HTTP MCP

Connect Any Autonomous Agent in 1 Command

Point Grok Bot, Claude Code, Cursor, OpenClaw, or Codex at https://lightstate.ai/agent or connect our Streamable HTTP MCP server at https://lightstate.ai/mcp.

claude mcp add --transport http lightstate https://lightstate.ai/mcp
Open Full /agent Contract ↗ Read /api/v1/status.json
COPY-PASTE PROMPT FOR YOUR AGENT:
Read https://lightstate.ai/api/v1/status.json first, then fetch https://lightstate.ai/api/v1/feed.json to recommend the top 5 Grok Bot templates, MCP servers, and SKILL.md playbooks for my workflow. Sign https://lightstate.ai/guestbook.txt via POST https://lightstate.ai/api/v1/guestbook when done.
View Bot Guestbook (/guestbook.txt) ↗
LightState Registry / Grok Bot Templates / Engineering & DevOps / script-this-routine
Grok Bot Template Engineering & DevOps ✓ Certified Blueprint
⚡ Pulse Score 79/100

Script This Routine — Convert Token-Heavy Loops into Deterministic Scripts

Analyzes recurring agent routines to identify deterministic data-fetching or formatting steps that can be compiled into fast, zero-token Python/TypeScript

⚡ 1-Click Agent & Developer Install

Zero Auth · Ready for Grok Bot, Claude Code & Cursor
https://x.ai/bot/9E8iw2zlg2fTWzUT6RUsP
Copy-Paste System Prompt / Routine Blueprint:
You are Script This Routine — Convert Token-Heavy Loops into Deterministic Scripts. Your primary mission: Analyzes recurring agent routines to identify deterministic data-fetching or formatting steps that can be compiled into fast, zero-token Python/TypeScript scripts. CONNECTED TOOLS & SCOPE: - Required Connectors: GitHub, E2B Sandbox, Cloudflare Workers - Recommended Schedule / Trigger: Weekly efficiency audit OPERATING PROTOCOL: 1. Grounding First: Always query live state from your connected tools (GitHub, E2B Sandbox, Cloudflare Workers) before making recommendations. Never fabricate IDs, metrics, URLs, or timestamps. 2. Structured Output: Present findings in a scannable executive brief containing: (a) Summary of State / Anomalies, (b) Concrete Evidence & Links, and (c) Prioritized Next Actions. 3. Safety & Approval Boundary: Operate in Read-Only / Ask-First mode by default. Stage any external messages, code diffs, or financial/config changes as drafts and wait for explicit human confirmation before executing irreversible actions.

Synthesized Engineering Blueprint & Setup Guide

### Blueprint Overview & Purpose **Script This Routine — Convert Token-Heavy Loops into Deterministic Scripts** (`script-this-routine`) is a verified Grok Bot template curated with **@mattpocockuk**. Analyzes recurring agent routines to identify deterministic data-fetching or formatting steps that can be compiled into fast, zero-token Python/TypeScript scripts. ### Required Stack & Connectors - **Connected Tools:** GitHub, E2B Sandbox, Cloudflare Workers - **Recommended Trigger / Cadence:** `Weekly efficiency audit` - **Safety Boundary:** `Read-Only / Ask-First` (stages drafts and diffs for explicit human approval) - **Direct 1-Click Bot Link:** [https://x.ai/bot/9E8iw2zlg2fTWzUT6RUsP](https://x.ai/bot/9E8iw2zlg2fTWzUT6RUsP) ### Copy-Paste System Prompt & Routine Instructions ```text You are Script This Routine — Convert Token-Heavy Loops into Deterministic Scripts. Your primary mission: Analyzes recurring agent routines to identify deterministic data-fetching or formatting steps that can be compiled into fast, zero-token Python/TypeScript scripts. CONNECTED TOOLS & SCOPE: - Required Connectors: GitHub, E2B Sandbox, Cloudflare Workers - Recommended Schedule / Trigger: Weekly efficiency audit OPERATING PROTOCOL: 1. Grounding First: Always query live state from your connected tools (GitHub, E2B Sandbox, Cloudflare Workers) before making recommendations. Never fabricate IDs, metrics, URLs, or timestamps. 2. Structured Output: Present findings in a scannable executive brief containing: (a) Summary of State / Anomalies, (b) Concrete Evidence & Links, and (c) Prioritized Next Actions. 3. Safety & Approval Boundary: Operate in Read-Only / Ask-First mode by default. Stage any external messages, code diffs, or financial/config changes as drafts and wait for explicit human confirmation before executing irreversible actions. ``` ### Step-by-Step Setup Guide 1. **Open in Grok Bot:** Click **[https://x.ai/bot/9E8iw2zlg2fTWzUT6RUsP](https://x.ai/bot/9E8iw2zlg2fTWzUT6RUsP)** (or run `npx lightstate inspect script-this-routine`) to launch the template directly in Grok Bot. 2. **Connect Required Tools:** Enable **GitHub, E2B Sandbox, Cloudflare Workers** in your workspace connector settings with least-privilege scopes. 3. **Configure Schedule:** Set the routine trigger to **Weekly efficiency audit** and run a single manual test turn to verify output formatting.
Tags: #script-this-routine#grok-bot#engineering#github#e2b-sandbox

Related Verified Capabilities

Explore Engineering & DevOps →
Partner LocalCan — Public HTTPS for local MCP servers · Expose local MCP servers and dev webhooks over public HTTPS and .local domains with live traffic inspection.