# Ccg Workspace

> code-context-graph — namespace file management. Upload, list, and delete files in isolated namespace directories for MSA source management.

- **Type:** Skill
- **Install:** `agentstack add skill-tae2089-code-context-graph-ccg-workspace`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [tae2089](https://agentstack.voostack.com/s/tae2089)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [tae2089](https://github.com/tae2089)
- **Source:** https://github.com/tae2089/code-context-graph/tree/main/.claude/skills/ccg-workspace

## Install

```sh
agentstack add skill-tae2089-code-context-graph-ccg-workspace
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# code-context-graph — Namespace File Management

Manage namespace file directories for uploading, organizing, and deleting source files. Designed for MSA environments where each namespace represents a service. The skill name remains `ccg-workspace` as a legacy alias.

## MCP Tools (6)

| Tool | Description |
|------|-------------|
| `upload_file` | Upload a single file to namespace (base64 encoded content) |
| `upload_files` | Upload multiple files to namespaces in a single call (JSON array) |
| `list_namespaces` | List all namespaces |
| `list_workspaces` | Deprecated alias for `list_namespaces` |
| `list_files` | List files in a namespace |
| `delete_file` | Delete a single file from namespace |
| `delete_namespace` | Delete an entire namespace and all its files |
| `delete_workspace` | Deprecated alias for `delete_namespace` |

## Namespace Directory Structure

```
{namespace-root}/
├── payment-svc/
│   ├── handler.go
│   └── service.go
├── user-svc/
│   ├── auth.go
│   └── profile.go
└── gateway/
    └── router.go
```

- Canonical root flag is `--namespace-root ` (default: `workspaces`); `--workspace-root` remains a deprecated alias
- Each namespace maps to a service/module directory: `{namespace}/{file}`
- File content is uploaded as base64-encoded strings

## Usage Examples

### Upload a single file
```
→ upload_file(namespace: "payment-svc", file_path: "handler.go", content: "")
```

### Bulk upload multiple files
```
→ upload_files(files: '[{"namespace":"payment-svc","file_path":"handler.go","content":""},{"namespace":"payment-svc","file_path":"service.go","content":""}]')
```

Note: `files` parameter is a JSON string containing an array of file entries.

### List all namespaces
```
→ list_namespaces()
→ Returns: ["payment-svc", "user-svc", "gateway"]
```

### List files in a namespace
```
→ list_files(namespace: "payment-svc")
→ Returns: ["handler.go", "service.go"]
```

### Delete a file
```
→ delete_file(namespace: "payment-svc", file_path: "handler.go")
```

### Delete entire namespace
```
→ delete_namespace(namespace: "payment-svc")
→ Removes payment-svc/ directory and all files within
```

## E2E Pipeline: Upload → Build → Search

After uploading files, build the graph and search:

```
1. upload_file(namespace: "payment-svc", file_path: "handler.go", content: "")
2. build_or_update_graph(path: "{namespace-root}/payment-svc")  — see /ccg skill
3. search(query: "payment")  — see /ccg skill
```

## E2E Pipeline: Upload Docs → RAG Index → Search → Read

Upload documentation files to a namespace directory, then build and query the RAG index:

```
1. upload_file(namespace: "my-service", file_path: "docs/internal/handler.go.md", content: "")
2. build_rag_index(namespace: "my-service")  — see /ccg-docs skill
3. search_docs(query: "handler", namespace: "my-service")
4. get_rag_tree(namespace: "my-service")
5. get_doc_content(namespace: "my-service", file_path: "docs/internal/handler.go.md")
```

## Security

- Path traversal attacks are blocked (`../` in namespace or file_path)
- File size is validated before writing
- Namespace names are sanitized

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [tae2089](https://github.com/tae2089)
- **Source:** [tae2089/code-context-graph](https://github.com/tae2089/code-context-graph)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-tae2089-code-context-graph-ccg-workspace
- Seller: https://agentstack.voostack.com/s/tae2089
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
