cocosearch-commit

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

A commit-writing workflow that examines code changes, their dependencies, and their wider effects before suggesting a Conventional Commit message. Conventional Commits are a standard format such as `fix:` or `feat:` used to describe changes consistently.

In plain words
What is it for?
Use it before committing staged or unstaged changes to review their impact and prepare a commit message, then approve, edit, or cancel the commit.
Why use it?
It helps turn a shallow diff summary into a message that explains what changed, why it matters, and whether other parts of the project may be affected.

Skill for Claude CodeCodex

Part of the cocosearch plugin — 12 skills shipped together

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.

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

Made for: Claude Code, Codex.

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-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/violetcranberry/coco-search/cocosearch-commit.svg)](https://agentmods.dev/skills/violetcranberry/coco-search/cocosearch-commit)
Your own site
<a href="https://agentmods.dev/skills/violetcranberry/coco-search/cocosearch-commit"><img src="https://agentmods.dev/badge/skills/violetcranberry/coco-search/cocosearch-commit.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,965 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00053 $0.02965
Opus 5 $0.00026 $0.01483
Sonnet 5 $0.00011 $0.00593
Haiku 4.5 $0.00005 $0.00297

Measured 4d ago against content hash 493ad1a66fd5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cocosearch-commit 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 4d 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-commit/SKILL.md · 337 lines

How it starts

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

Smart Commit with CocoSearch

A structured workflow for generating comprehensive commit messages. Uses CocoSearch's semantic search and dependency analysis to understand what changed, why it matters, and what it affects — producing commit messages that go far beyond surface-level diff summaries.

What this adds over generic commit message generators:

  • Semantic understanding: Knows what the changed code does, not just what lines changed
  • Blast radius awareness: Flags when changes affect high-impact files with many dependents
  • Dependency context: Understands what the changed code relies on
  • Cross-cutting synthesis: Detects when changes span multiple subsystems and summarizes coherently
  • Conventional Commits: Automatically determines type, scope, and breaking changes

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 -- warn: "No CocoSearch index found. I'll generate a commit message from diffs alone, but semantic analysis won't be available. Want me to index first?" Do NOT abandon CocoSearch tools just because cocosearch.yaml is missing.
  2. list_indexes() to confirm project is indexed

  3. index_stats(index_name="<resolved-name>") to check freshness

    • Stale (>7 days) -> warn: "Index is X days old -- semantic context may not reflect recent changes."
  4. Check dependency freshness -- call get_file_dependencies on any known file:

    get_file_dependencies(file="<any-known-file>", depth=1)
    
    • If response contains warnings with type deps_outdated or deps_branch_drift: Note: "Dependency data is outdated -- impact analysis may be incomplete."
    • If response contains warnings with type deps_not_extracted: Note: "No dependency data found. Blast radius analysis will be skipped."
    • If no warnings: Proceed with full analysis.
  5. Linked index health (if cocosearch.yaml has linkedIndexes):

    • Check the warnings array from index_stats() for entries starting with "Linked index"
    • If stale/missing: note — "Linked index 'X' is stale/missing. Cross-project context may be limited."

Read the full file on GitHub · 337 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. 4d ago First seen · 337 lines · 53 tokens per session scan A 493ad1a66fd5

Subscribe to this mod's changes

cocosearch-commit is a skill published in the GitHub repository VioletCranberry/coco-search (37 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 2,965 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.

Related

Other skills, from other repositories

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

clawmem

ClawMem operational reference for agents at query time — the 3-rule escalation gate, MCP tool routing, the 4 query-optimization levers, pipeline behavior (query vs intentsearch), composite scoring, and memory lifecycle (pin/snooze/forget). Use when tuning retrieval, troubleshooting recall quality, or any ClawMem…

yoloshii/ClawMem · 120 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

semantic-search

Code search for this repo — pick the right Beacon tool for the question: exact symbol lookup, reference tracing, file outline, or semantic search.

sagarmk/beacon-plugin · 32 tokens