上下文生成器

Synthetic Context Generator (SCG)

by captainsvbot

Generate optimized context windows for AI coding tasks.

3.7k其他未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/captainsvbot/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:

  • Relevant code patterns from knowledge base
  • Common pitfalls and anti-patterns
  • StackOverflow solutions
  • Local project context

Usage

bash
# 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 ./src

Options

  • --context - Include local project context (default: true)
  • --max-tokens - Maximum tokens in output (default: 4000)
  • --no-web - Skip StackOverflow search
  • --verbose - Show debug info

Examples

bash
# 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 handling

Triggers

  • "get context for..."
  • "best practices for..."
  • "how to write..."
  • "implement..."
  • "create..."

相关 Skills

claude-api

by anthropic

热门

Build apps with the Claude API or Anthropic SDK. TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`/`claude_agent_sdk`, or user asks to use Claude API, Anthropic SDKs, or Agent SDK. DO NOT TRIGGER when: code imports `openai`/other AI SDK, general programming, or ML/data-science tasks.

其他
安全109.6k

openforge

by bloodandeath

热门

>

其他
未扫描3.7k

DEX聚合器

by BytesAgain

热门

Aggregate DEX prices and DeFi protocol data using DeFiLlama API. Use when comparing token prices. Requires curl.

其他
未扫描3.7k

评论