cocosearch-deps

cocosearch-deps is a skill for Claude Code from VioletCranberry/coco-search. It costs 34 tokens per session (2,623 once invoked), scanned A, original, MIT.

A guide for mapping how files in a code project depend on one another, using CocoSearch, a tool that searches a project's dependency graph.

In plain words
What is it for?
It is for impact analysis, tracing file connections, finding highly connected files, and answering how two pieces of code are related.
Why use it?
It helps reveal what may be affected by a change, which files connect two parts of the project, and which files are central to many others.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cocosearch plugin — 12 skills shipped together

Good fit It is for impact analysis, tracing file connections, finding highly connected files, and answering how two pieces of code are related.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/violetcranberry/coco-search/cocosearch-deps
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-deps
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-deps

README.md
[![agentmods](https://agentmods.dev/badge/skills/violetcranberry/coco-search/cocosearch-deps/github.svg)](https://agentmods.dev/skills/violetcranberry/coco-search/cocosearch-deps)
Your own site
<a href="https://agentmods.dev/skills/violetcranberry/coco-search/cocosearch-deps"><img src="https://agentmods.dev/badge/skills/violetcranberry/coco-search/cocosearch-deps/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-deps

Your own site · 80×15
<a href="https://agentmods.dev/skills/violetcranberry/coco-search/cocosearch-deps"><img src="https://agentmods.dev/badge/skills/violetcranberry/coco-search/cocosearch-deps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,623 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 40
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
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.00034 $0.02623
Opus 5 $0.00017 $0.01311
Sonnet 5 $0.00007 $0.00525
Haiku 4.5 $0.00003 $0.00262

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

Security

Grade A, and why

cocosearch-deps 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-deps/SKILL.md · 286 lines

How it starts

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

Dependency Graph Exploration with CocoSearch

A guided workflow for understanding how files connect through dependencies. Use this skill when the goal is specifically about dependency relationships — impact analysis, connection tracing, or hub identification.

When to use this skill vs. others:

Goal Skill
"What breaks if I change X?" cocosearch-deps (this skill)
"How does X work?" cocosearch-explore
"I need to safely refactor X" cocosearch-refactoring (uses deps as part of impact analysis)
"Trace this bug through call chains" cocosearch-debugging (uses deps for call tracing)
"What are the most connected files?" cocosearch-deps (this skill)
"How are X and Y connected?" cocosearch-deps (this skill)

Pre-flight Check

  1. Resolve index name (use the resolved name for all operations):
    • Try cocosearch.yaml for indexName field -- if found, use it
    • If no config file, call list_indexes() and match the current project's directory name against available indexes. The MCP tools auto-derive index names from directory paths (e.g., my-project/ -> my_project), so a match is likely if the repo was indexed without a config file.
    • If no match found, the project is genuinely not indexed -- offer to index it. Do NOT abandon CocoSearch tools just because cocosearch.yaml is missing.
  2. list_indexes() to confirm project is indexed
  3. Verify dependency index exists and is fresh — call get_file_dependencies on any known file:
get_file_dependencies(file="<any-known-file>", depth=1)
  • If error or empty: Dependency index is missing. Offer: "No dependency data found. Want me to extract dependencies? This requires running index_codebase with deps extraction or cocosearch deps extract . via CLI." Do NOT proceed without dependency data -- this skill relies entirely on it.
  • If response contains warnings with type deps_outdated or deps_branch_drift: Warn: "Dependency data is outdated and may not reflect recent changes. Want me to re-extract dependencies first? (index_codebase with extract_deps=True)" Do NOT proceed without user acknowledgment -- stale deps can lead to incorrect analysis.
  • If results returned with no warnings: Dependency index is ready, proceed.
  1. Linked index health (if cocosearch.yaml has linkedIndexes):
    • Check the warnings array from index_stats() for entries starting with "Linked index"
    • If stale/missing: warn user — "Linked index 'X' is stale/missing. Cross-project dependency tracing may be incomplete. Want me to reindex?"

Read the full file on GitHub · 286 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 · 286 lines · 34 tokens per session scan A dcfa0d43c9a4

Subscribe to this mod's changes

cocosearch-deps is a skill published in the GitHub repository VioletCranberry/coco-search (37 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 2,623 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

vera

Code search over the current repository. Before reading files to answer "where is X", "how does Y work", "find Z", or "what calls W", run vera search " " or vera references first. Use vera grep for exact strings and regex, vera structural for definitions, routes, and env reads. Do not read multiple files hoping to…

VeraTools/Vera · 96 tokens

codebase-search

Semantic code and documentation search by meaning. Use codebasepeek to find WHERE code is (saves tokens), codebasesearch to see actual code. For exact identifiers, use grep instead. Search local codebase before using websearch for code/library/API/example questions.

Helweg/open-codebase-index · 58 tokens

gno

Search local documents, files, notes, and knowledge bases. Index directories, search with BM25/vector/hybrid, get AI answers with citations. Use when user wants to search files, find documents, query notes, look up information in local folders, index a directory, set up document search, build a knowledge base, needs…

gmickel/gno · 86 tokens

codebase-search

Preferred local codebase-understanding workflow for Pi and Codex. Start with codebasecontext before shell search or broad reads, then use specialized semantic and graph tools.

Helweg/open-codebase-index · 37 tokens

vera

Code search over the current repository. Before reading files to answer "where is X", "how does Y work", "find Z", or "what calls W", run vera search " " or vera references first. Use vera grep for exact strings and regex, vera structural for definitions, routes, and env reads. Do not read multiple files hoping to…

VeraTools/Vera · 96 tokens

locus

npx @sylphx/locus --root=/absolute/path/to/project.

SylphxAI/coderag · 0 tokens