Synthetic Context Generator (SCG)
Generate optimized context windows for AI coding tasks.
by captainsvbot · published 2026-03-22
$ claw add gh:captainsvbot/captainsvbot-scg# Synthetic Context Generator (SCG)
Generate optimized context windows for AI coding tasks.
Description
SCG takes a goal/task as input and returns a curated context window containing exactly what's needed:
Usage
# Generate context for a task
scg "write secure authentication middleware"
# Skip web search
scg "create React component" --no-web
# Custom token limit
scg "optimize database query" --max-tokens 2000
# Index a local project
scg index ./my-project
# Learn from a codebase
scg learn ./srcOptions
Examples
# Security-focused
scg "secure SQL query"
# → SQL injection patterns, parameterized queries, secrets handling
# React development
scg "create React component with hooks"
# → Custom hooks, useEffect best practices, testing patterns
# API development
scg "build REST API with Express"
# → Rate limiting, Helmet, JWT, error handlingTriggers
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...