{
  "id": "tpl_88f20639d838",
  "slug": "script-this-routine",
  "asset_type": "template",
  "name": "Script This Routine — Convert Token-Heavy Loops into Deterministic Scripts",
  "tagline": "Analyzes recurring agent routines to identify deterministic data-fetching or formatting steps that can be compiled into fast, zero-token Python/TypeScript ",
  "description_md": "### Blueprint Overview & Purpose\n**Script This Routine — Convert Token-Heavy Loops into Deterministic Scripts** (`script-this-routine`) is a verified Grok Bot template curated with **@mattpocockuk**.\n\nAnalyzes recurring agent routines to identify deterministic data-fetching or formatting steps that can be compiled into fast, zero-token Python/TypeScript scripts.\n\n### Required Stack & Connectors\n- **Connected Tools:** GitHub, E2B Sandbox, Cloudflare Workers\n- **Recommended Trigger / Cadence:** `Weekly efficiency audit`\n- **Safety Boundary:** `Read-Only / Ask-First` (stages drafts and diffs for explicit human approval)\n- **Direct 1-Click Bot Link:** [https://x.ai/bot/9E8iw2zlg2fTWzUT6RUsP](https://x.ai/bot/9E8iw2zlg2fTWzUT6RUsP)\n\n### Copy-Paste System Prompt & Routine Instructions\n```text\nYou 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.\n\nCONNECTED TOOLS & SCOPE:\n- Required Connectors: GitHub, E2B Sandbox, Cloudflare Workers\n- Recommended Schedule / Trigger: Weekly efficiency audit\n\nOPERATING PROTOCOL:\n1. 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.\n2. Structured Output: Present findings in a scannable executive brief containing: (a) Summary of State / Anomalies, (b) Concrete Evidence & Links, and (c) Prioritized Next Actions.\n3. 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.\n```\n\n### Step-by-Step Setup Guide\n1. **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.\n2. **Connect Required Tools:** Enable **GitHub, E2B Sandbox, Cloudflare Workers** in your workspace connector settings with least-privilege scopes.\n3. **Configure Schedule:** Set the routine trigger to **Weekly efficiency audit** and run a single manual test turn to verify output formatting.\n",
  "primary_category": "engineering",
  "categories_json": "[\"engineering\", \"templates\"]",
  "tags_json": "[\"script-this-routine\", \"grok-bot\", \"engineering\", \"github\", \"e2b-sandbox\"]",
  "compatible_agents_json": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "integrations_json": "[\"GitHub\", \"E2B Sandbox\", \"Cloudflare Workers\"]",
  "includes_json": "[]",
  "safety_level": "Read-Only / Ask-First",
  "safety_summary": "Verified capability blueprint by @mattpocockuk.",
  "share_url": "https://x.ai/bot/9E8iw2zlg2fTWzUT6RUsP",
  "deep_link_uri": "grokbot://template/script-this-routine?bot_id=9E8iw2zlg2fTWzUT6RUsP",
  "mcp_endpoint": "",
  "mcp_transport": "http",
  "install_command": "https://x.ai/bot/9E8iw2zlg2fTWzUT6RUsP",
  "skill_markdown": "",
  "starter_prompt": "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.\n\nCONNECTED TOOLS & SCOPE:\n- Required Connectors: GitHub, E2B Sandbox, Cloudflare Workers\n- Recommended Schedule / Trigger: Weekly efficiency audit\n\nOPERATING PROTOCOL:\n1. 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.\n2. Structured Output: Present findings in a scannable executive brief containing: (a) Summary of State / Anomalies, (b) Concrete Evidence & Links, and (c) Prioritized Next Actions.\n3. 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.",
  "project_url": "https://grokbot.dev",
  "repo_url": "",
  "creator_handle": "mattpocockuk",
  "creator_name": "Matt Pocock (@mattpocockuk)",
  "creator_avatar_url": null,
  "creator_url": "https://x.com/mattpocockuk",
  "creator_platform": "x",
  "creator_cal_url": null,
  "claimed_by_user_id": null,
  "scouted_by_handle": null,
  "source_url": "https://grokbot.dev",
  "source_tweet_id": null,
  "source_origin": "certified_builder",
  "source_posted_at": null,
  "x_likes": 325,
  "x_bookmarks": 724,
  "x_retweets": 181,
  "x_views": 4550,
  "human_upvotes": 325,
  "human_installs": 325,
  "bot_pulls": 724,
  "pulse_score": 79,
  "gravity_rank_score": 2583.5,
  "is_featured": 0,
  "is_verified": 1,
  "is_sponsored": 0,
  "sponsor_tier": "free",
  "sponsor_label": "",
  "sponsor_cta_url": "",
  "sponsor_expires_at": null,
  "commercial_intent_score": 0,
  "status": "active",
  "created_at": "2026-10-24T20:00:00Z",
  "updated_at": "2026-10-24T20:00:00Z",
  "verified_at": null,
  "primitive": "template",
  "title": "Script This Routine — Convert Token-Heavy Loops into Deterministic Scripts",
  "description": "Analyzes recurring agent routines to identify deterministic data-fetching or formatting steps that can be compiled into fast, zero-token Python/TypeScript ",
  "category": "engineering",
  "tags": "[\"script-this-routine\", \"grok-bot\", \"engineering\", \"github\", \"e2b-sandbox\"]",
  "agent_compatibility": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "author_handle": "mattpocockuk",
  "author_name": "Matt Pocock (@mattpocockuk)",
  "author_avatar": null,
  "source_tweet_url": "https://grokbot.dev",
  "github_url": "",
  "external_url": "https://grokbot.dev",
  "upvotes_count": 325,
  "installs_count": 325
}