codestyle

codestyle is a skill for Claude Code, Codex from itxaiohanglover/mcp-codestyle-server. It costs 88 tokens per session (1,014 once invoked), scanned A, original, MIT.

A tool for searching, retrieving, creating, and uploading reusable code templates. It provides command-line workflows for template management and an AI-guided conversation for generating templates.

In plain words
What is it for?
Use it to search local or remote templates, get their contents, generate a template through dialogue, or upload one from a directory.
Why use it?
It reduces repeated work when finding existing code patterns or turning new code into a reusable template.

Skill for Claude CodeCodex

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/itxaiohanglover/mcp-codestyle-server/codestyle
Any agent
npx skills add itxaiohanglover/mcp-codestyle-server --skill codestyle
Clone the repo
git clone --depth 1 https://github.com/itxaiohanglover/mcp-codestyle-server

Made for: Claude Code, Codex.

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 codestyle

README.md
[![agentmods](https://agentmods.dev/badge/skills/itxaiohanglover/mcp-codestyle-server/codestyle.svg)](https://agentmods.dev/skills/itxaiohanglover/mcp-codestyle-server/codestyle)
Your own site
<a href="https://agentmods.dev/skills/itxaiohanglover/mcp-codestyle-server/codestyle"><img src="https://agentmods.dev/badge/skills/itxaiohanglover/mcp-codestyle-server/codestyle.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,014 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.00088 $0.01014
Opus 5 $0.00044 $0.00507
Sonnet 5 $0.00018 $0.00203
Haiku 4.5 $0.00009 $0.00101

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

Security

Grade A, and why

codestyle 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.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/codestyle.bat, scripts/init-repository.bat, scripts/init-repository.sh, …), 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.

skill/codestyle/SKILL.md · 141 lines

How it starts

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

Codestyle

Code template management: CLI tools for search/get/upload + AI-guided generation.

Decision Tree

User request
    │
    ├─ "search" / "检索" ──→ Search Workflow (CLI, local+remote)
    │
    ├─ "get" / "获取" ──→ Get Workflow (CLI, local+remote)
    │
    ├─ "generate" / "生成" ──→ Generate Workflow (AI dialog, then upload)
    │
    └─ "upload" / "上传" ──→ Upload Workflow (CLI, remote)

Commands

Command Execution Description
search CLI (JAR) Search templates (local Lucene + remote API)
get CLI (JAR) Get full template content
generate AI Dialog Multi-turn conversation, then call upload
upload CLI (JAR) Upload template to server

Quick Start

Windows

"<SKILL_DIR>\scripts\codestyle.bat" search "keyword"
"<SKILL_DIR>\scripts\codestyle.bat" get "template-path"
"<SKILL_DIR>\scripts\codestyle.bat" upload --path ./my-template

Linux/macOS

bash <SKILL_DIR>/scripts/codestyle search "keyword"
bash <SKILL_DIR>/scripts/codestyle get "template-path"
bash <SKILL_DIR>/scripts/codestyle upload --path ./my-template

Generate (AI Dialog)

User: 把这段代码做成模板:[代码]
AI: [多轮对话引导生成模板]
AI: [调用 upload 存储]

Workflows

See references/ for detailed workflow instructions:

Generate Workflow Overview

Generate workflow is pure AI dialog, no script calls until final upload.

Input Example Pre-processing
Code snippet @RestController ... None
Current file "当前这个文件" Read file
Local path /path/to/file.java Read file
GitHub URL https://github.com/xxx/repo Clone repo
Web URL https://blog.xxx.com/... Crawl content

Read the full file on GitHub · 141 lines

Files

What ships with it

36 files 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. 4d ago First seen · 141 lines · 88 tokens per session scan A 6b8bd4f374d4

Subscribe to this mod's changes

codestyle is a skill published in the GitHub repository itxaiohanglover/mcp-codestyle-server (55 stars, last pushed 5mo ago), licensed MIT. It adds 88 tokens to every session and 1,014 once invoked, about $0.0004 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.