cocosearch-add-extractor

cocosearch-add-extractor is a skill for Claude Code from VioletCranberry/coco-search. It costs 57 tokens per session (3,711 once invoked), scanned A, original, MIT.

A guide for adding a dependency extractor for a programming language or file format. It parses files to identify which files depend on which others, optionally resolving import names to file paths.

In plain words
What is it for?
Use it when extending CocoSearch so it can build dependency trees, show dependency impact, include dependency context in searches, and answer file dependency questions.
Why use it?
It enables dependency maps and impact checks, making it easier to see what may be affected by a change.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the cocosearch plugin — 12 skills shipped together

Good fit Use it when extending CocoSearch so it can build dependency trees, show dependency impact, include dependency context in searches, and answer file dependency questions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/violetcranberry/coco-search/cocosearch-add-extractor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add VioletCranberry/coco-search --skill cocosearch-add-extractor
Clone the repo
git clone --depth 1 https://github.com/VioletCranberry/coco-search

Made for: Claude Code.

Or install cocosearch, the plugin that ships this one along with the rest of its 12 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cocosearch-add-extractor

README.md
[![agentmods](https://agentmods.dev/badge/skills/violetcranberry/coco-search/cocosearch-add-extractor/github.svg)](https://agentmods.dev/skills/violetcranberry/coco-search/cocosearch-add-extractor)
Your own site
<a href="https://agentmods.dev/skills/violetcranberry/coco-search/cocosearch-add-extractor"><img src="https://agentmods.dev/badge/skills/violetcranberry/coco-search/cocosearch-add-extractor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cocosearch-add-extractor

Your own site · 80×15
<a href="https://agentmods.dev/skills/violetcranberry/coco-search/cocosearch-add-extractor"><img src="https://agentmods.dev/badge/skills/violetcranberry/coco-search/cocosearch-add-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,711 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.03711
Opus 5 $0.00028 $0.01855
Sonnet 5 $0.00011 $0.00742
Haiku 4.5 $0.00006 $0.00371

Measured 10d ago against content hash 9a8928c6f6de, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

cocosearch-add-extractor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cocosearch-add-extractor/SKILL.md · 436 lines

How it starts

The opening of the file, as written. The whole thing — 436 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add Dependency Extractor with CocoSearch

A structured workflow for adding a dependency extractor to CocoSearch. Dependency extractors parse files to build a graph of what-depends-on-what, enabling deps tree, deps impact, get_file_dependencies/get_file_impact MCP tools, and include_deps=True in search results.

Philosophy: Extractors are autodiscovered and lightweight -- they parse one file at a time and emit edges. Module resolvers are optional and translate raw import strings into file paths. This skill guides you through both, with pre-checks that prevent wasted work.

Reference: The existing 8 extractors in src/cocosearch/deps/extractors/ and 4 resolvers in src/cocosearch/deps/resolver.py serve as patterns.

Step 1: Pre-checks

Before writing any code, verify the extractor is viable.

1a. Check If an Extractor Already Exists

search_code(
    query="dependency extractor LANGUAGES",
    symbol_type="class",
    use_hybrid_search=True,
    smart_context=True
)

Or check the registry directly:

uv run python -c "from cocosearch.deps.registry import get_all_extractor_language_ids; print(sorted(get_all_extractor_language_ids()))"

Currently registered: cjs, cts, docker-compose, github-actions, go, helm-template, helm-values, js, jsx, mjs, mts, py, terraform, ts, tsx.

If the target language_id is already listed, stop. The extractor exists. Inform the user.

1b. Determine the Language ID

The extractor's LANGUAGES set must match the language_id assigned during indexing:

Source language_id comes from Example
Standard language File extension without dot .py -> py, .go -> go
Language handler handler.SEPARATOR_SPEC.language_name hcl, dockerfile, bash
Grammar handler handler.GRAMMAR_NAME docker-compose, github-actions, terraform

Verify the language_id exists in the system:

search_code(
    query="LANGUAGE_EXTENSIONS EXTENSIONS language_name GRAMMAR_NAME",
    use_hybrid_search=True,
    smart_context=True
)

Read the full file on GitHub · 436 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 436 lines · 57 tokens per session scan A 9a8928c6f6de

Subscribe to this mod's changes

cocosearch-add-extractor is a skill published in the GitHub repository VioletCranberry/coco-search (37 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 3,711 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.