上下文生成器
Synthetic Context Generator (SCG)
by captainsvbot
Generate optimized context windows for AI coding tasks.
安装
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
# 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
# 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, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks for the Claude API, Anthropic SDK, or Managed Agents; user adds/modifies/tunes a Claude feature (caching, thinking, compaction, tool use, batch, files, citations, memory) or model (Opus/Sonnet/Haiku) in a file; questions about prompt caching / cache hit rate in an Anthropic SDK project. SKIP: file imports `openai`/other-provider SDK, filename like `*-openai.py`/`*-generic.py`, provider-neutral code, general programming/ML.
并行代理
by axelhu
Use when facing 2 or more independent tasks that can be worked on without shared state - dispatches parallel subagents using sessions_spawn for concurrent investigation and execution, adapted for OpenClaw
高光制作器
by bwbernardweston18
>