← 返回
未分类 中文

The Synthetic Context Generator

Generate tailored context windows with relevant code patterns, pitfalls, StackOverflow solutions, and local project context for AI coding tasks.
为AI编程任务生成包含相关代码模式、常见陷阱、StackOverflow解决方案及本地项目上下文的定制化上下文窗口。
captainsvbot captainsvbot 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 582
下载
💾 0
安装
1
版本
#latest

概述

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:

  • 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..."

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-02 14:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 688 📥 331,806
ai-agent

Autonomous GitHub Team

captainsvbot
自主 GitHub 团队 — 41 个 AI 代理,自主监控 GitHub 仓库,检测 bug、生成修复、打开 PR 并发布到生产环境。触发...
★ 0 📥 444
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,218