← Back to Skills Marketplace
captainsvbot

The Synthetic Context Generator

by captainsvbot · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
203
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install scg
Description
Generate tailored context windows with relevant code patterns, pitfalls, StackOverflow solutions, and local project context for AI coding tasks.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install scg
  3. After installation, invoke the skill by name or use /scg
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
Remove web UI, CLI only
v1.0.1
Add MIT license
v1.0.0
Initial release
Metadata
Slug scg
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is The Synthetic Context Generator?

Generate tailored context windows with relevant code patterns, pitfalls, StackOverflow solutions, and local project context for AI coding tasks. It is an AI Agent Skill for Claude Code / OpenClaw, with 203 downloads so far.

How do I install The Synthetic Context Generator?

Run "/install scg" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is The Synthetic Context Generator free?

Yes, The Synthetic Context Generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does The Synthetic Context Generator support?

The Synthetic Context Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created The Synthetic Context Generator?

It is built and maintained by captainsvbot (@captainsvbot); the current version is v1.0.2.

💬 Comments