# contextcost

> contextcost — caoshurong-contextcost. Use this tool when you need to measure the token cost of reading a repository or verify the effectiveness of cuts in reducing token usage. It solves problems related to optimizing AI agent efficiency and reducing costs associated with token usage. The contextcost tool takes a repository as input and outputs the token cost, providing valuable insights for cost optimization.

Canonical page: https://skillsregistry.net/skills/caoshurong-contextcost  
JSON: https://api.skillsregistry.net/v1/skills/caoshurong-contextcost

## Description

Measure how many tokens an AI agent pays to read your repo, and verify that cuts actually save tokens.

## Trust

- **Trust score (0–1):** 0.54
- **Verification tier:** scanned
- **Last scanned:** 2026-09-28

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** container
- **Runtime environment:** vm
- **License:** MIT
- **Updated:** 2026-09-28

## Source

- **Source listing:** [GitHub](https://github.com/CAOShurong/contextcost)

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "caoshurong-contextcost"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/caoshurong-contextcost` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/caoshurong-contextcost/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
