← 返回 Skills 市场
captainsvbot

The Synthetic Context Generator

作者 captainsvbot · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
203
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install scg
功能描述
Generate tailored context windows with relevant code patterns, pitfalls, StackOverflow solutions, and local project context for AI coding tasks.
安全使用建议
This skill appears to do what it says: it will read and index any project path you give it, combine results with its built-in knowledge base, and fetch relevant StackOverflow answers. Before using it: (1) do not point it at directories that contain secrets (private keys, .env files, credential stores) because those files can be read and included in outputs; (2) consider running it in a non-sensitive workspace or with a copy of your repo; (3) be aware outputs may include snippets from your codebase that you then paste into other tools or LLMs — avoid leaking sensitive data that way; (4) if you need token-accurate counts, ensure tiktoken is installable in your environment (it may require native bindings). If you want stronger assurance, request the full project repository URL or a signed release so you can verify package provenance and review the complete package-lock before installing.
功能分析
Type: OpenClaw Skill Name: scg Version: 1.0.2 The Synthetic Context Generator (SCG) is a developer tool designed to reduce context bloat for AI coding assistants by retrieving only relevant code patterns, local project snippets, and StackOverflow solutions. The codebase is well-structured and uses standard libraries like 'commander' for CLI management, 'fuse.js' for local fuzzy searching, and 'tiktoken' for token estimation. Analysis of 'src/sources/localSearch.js' and 'src/sources/webSearch.js' confirms that local file reading is restricted to the user-specified directory and web queries are limited to keywords derived from the user's goal. There are no signs of data exfiltration, malicious execution, or prompt injection attempts in the documentation or instructions.
能力评估
Purpose & Capability
Name/description say: generate context windows from local code, a KB, and web (StackOverflow). The code implements a CLI that parses goals, searches a built-in knowledge base, optionally indexes/searches a user-specified local project, and queries the StackExchange API. Declared dependencies (fuse.js, tiktoken, glob, commander) match these capabilities. The presence of dotenv in package.json and dotenv usage shown only inside KB samples is slightly unnecessary but not harmful; overall the required assets align with the stated purpose.
Instruction Scope
SKILL.md and the CLI explicitly read and index files under any project path you provide (glob patterns include many code and text file types) and fetch StackOverflow results. This is expected for a context generator, but it does mean any files you point at (including secrets or credentials) will be read and appear in outputs. The skill does not attempt to read system-wide config paths or other unrelated locations. Implementation detail: searchLocal auto-triggers indexProject without awaiting it which can cause timing issues but not a security violation.
Install Mechanism
No install spec is provided by the registry (instruction-only install). The project includes normal npm dependencies sourced from the public registry (package.json/lock present). There are no external arbitrary download URLs or archive extracts. Risk here is standard for installing third‑party Node packages.
Credentials
The skill declares no required environment variables or credentials. The code itself does not attempt to access secrets or remote APIs that require credentials. Note: KB examples contain code snippets that reference environment variables (e.g., JWT_SECRET, dotenv), but those are inert examples and not runtime requirements of the skill.
Persistence & Privilege
The skill does not request persistent, elevated platform privileges and 'always' is false. Its indexing stores data in module-level variables (in-memory) and does not persist indexes to disk or modify other skills. The CLI exposes an 'index' command to build an in-memory index for the running process only.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install scg
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /scg 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Remove web UI, CLI only
v1.0.1
Add MIT license
v1.0.0
Initial release
元数据
Slug scg
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

The Synthetic Context Generator 是什么?

Generate tailored context windows with relevant code patterns, pitfalls, StackOverflow solutions, and local project context for AI coding tasks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 203 次。

如何安装 The Synthetic Context Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install scg」即可一键安装,无需额外配置。

The Synthetic Context Generator 是免费的吗?

是的,The Synthetic Context Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

The Synthetic Context Generator 支持哪些平台?

The Synthetic Context Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 The Synthetic Context Generator?

由 captainsvbot(@captainsvbot)开发并维护,当前版本 v1.0.2。

💬 留言讨论