extract-conventions

extract-conventions is a skill for Claude Code from AcKeskin/contexture. It costs 56 tokens per session (3,444 once invoked), scanned A, original, MIT.

A tool that observes how a codebase is written and records its recurring coding conventions as project rules. Conventions include patterns such as naming and code organization.

In plain words
What is it for?
Capturing conventions for a directory, module, or programming language, then using the resulting rules during later reviews.
Why use it?
It makes informal house style explicit so future work and reviews can follow the project's established patterns.

Skill for Claude Code

Written for Claude Code: $CLAUDE_PROJECT_DIR variable.

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/ackeskin/contexture/extract-conventions
Any agent
npx skills add AcKeskin/contexture --skill extract-conventions
Clone the repo
git clone --depth 1 https://github.com/AcKeskin/contexture

Made for: Claude Code.

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 extract-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/ackeskin/contexture/extract-conventions.svg)](https://agentmods.dev/skills/ackeskin/contexture/extract-conventions)
Your own site
<a href="https://agentmods.dev/skills/ackeskin/contexture/extract-conventions"><img src="https://agentmods.dev/badge/skills/ackeskin/contexture/extract-conventions.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,444 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.1 $0.00056 $0.03444
Opus 5 $0.00028 $0.01722
Sonnet 5 $0.00011 $0.00689
Haiku 4.5 $0.00006 $0.00344

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

Security

Grade A, and why

extract-conventions 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (detect.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/extract-conventions/SKILL.md · 198 lines

How it starts

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

extract-conventions

The convention-extraction organ. Auto-populates the project rule tier. Gates on the rule-prime hook for its output to be load-bearing — without the hook priming the extracted file, it is an inert surface. Feeds naming-and-comments, whose audit cites the project-tier conventions this writes.

Extract observes a scope and makes its implicit, tacit conventions explicit — a durable artefact the rule-prime hook primes and /review audits, rather than stateless per-run re-inference that is drift-prone and points a reviewer at nothing.

When to run

  • User types /extract-conventions <scope> (or with no arg → prompt for scope).
  • Natural language: "capture this module's conventions", "extract our house style", "codify how this codebase names things".
  • Do not auto-fire. Mode A, user-invoked only. Extracting and writing a project-tier rule is a deliberate act, never a session side effect. No hook, no session-start trigger.

Inputs

  • Scope argument — a directory (src/auth/), a module, or a language (csharp). With no arg, prompt:

    What scope should I extract conventions from? A directory (src/auth/), a module, or a language (csharp).

  • Working directory$CLAUDE_PROJECT_DIR or cwd. Anchors the write target (<project>/.claude/rules/...) and the rule-overlay resolution.

  • Per-category accept/edit/reject decisions — collected at the confirm gate (§4). Collaborator principle — never auto-write.

Procedure

1. Resolve scope and sample

Resolve the scope argument to a concrete file set:

Form Resolution
directory (src/auth/) every source file under it (recursive), respecting .gitignore
language (csharp) every file of that language across the project (by extension)
module name the directory matching it; if ambiguous, list candidates and ask

Consume the scope-resolution resolver where shipped for the boundary/granularity model; degrade to language-level when it isn't present. Do not invent a competing granularity model.

Read the full file on GitHub · 198 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 198 lines · 56 tokens per session scan A 68e1db3ccef2

Subscribe to this mod's changes

extract-conventions is a skill published in the GitHub repository AcKeskin/contexture (2 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 3,444 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-09-03.