cc-recommender CLAUDE.md

cc-recommender CLAUDE.md is an instructions file for coding agents from yuji0809/cc-recommender. It costs 4,539 tokens per session, scanned A, original, MIT.

Development instructions for cc-recommender, an MCP server that analyzes a project and recommends suitable Claude Code skills, plugins, and MCP servers. It defines a layered code structure and file-level responsibility rules.

In plain words
What is it for?
Use it when developing cc-recommender, especially when organizing tools, services, repositories, imports, and project-analysis or recommendation logic.
Why use it?
It gives contributors consistent boundaries for adding or changing code, making the recommendation server easier to maintain.

Instructions file

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 instructions/yuji0809/cc-recommender/claude-md
Clone the repo
git clone --depth 1 https://github.com/yuji0809/cc-recommender

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 cc-recommender CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yuji0809/cc-recommender/claude-md.svg)](https://agentmods.dev/instructions/yuji0809/cc-recommender/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/yuji0809/cc-recommender/claude-md"><img src="https://agentmods.dev/badge/instructions/yuji0809/cc-recommender/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,539 This file is loaded in full into every session.
When invoked 4,539 The same file — it is already loaded in full.
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.04539 $0.04539
Opus 5 $0.02269 $0.02269
Sonnet 5 $0.00908 $0.00908
Haiku 4.5 $0.00454 $0.00454

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

Security

Grade A, and why

cc-recommender CLAUDE.md 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 5d 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.

CLAUDE.md · 513 lines

How it starts

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

cc-recommender Development Guide

このドキュメントは、cc-recommender プロジェクトの開発ガイドラインを定義します。 新しいコードを追加・変更する際は、必ずこのガイドラインに従ってください。

プロジェクト概要

Claude Code のスキル、プラグイン、MCP サーバーを推薦する MCP サーバー。 プロジェクトを分析し、適切な拡張機能を提案します。

アーキテクチャ原則

1. レイヤードアーキテクチャ

presentation (tools) → business logic (services) → data access (repositories)
                    ↓
                 config, utils, types

依存関係のルール:

  • 上位レイヤーは下位レイヤーに依存できる
  • 下位レイヤーは上位レイヤーに依存してはいけない
  • 同一レイヤー内での依存は最小限に

2. 単一責任の原則 (SRP)

  • 各ファイルは1つの責務のみを持つ
  • 大きくなりすぎた場合は分割を検討

3. 直接インポートの原則

原則: 直接個別ファイルからインポート

例外: 以下のディレクトリのみ index.ts を使用可能

  • types/index.ts - 型定義の公開 API(頻繁に使用されるため)
  • tools/handlers/index.ts - MCP ツールの公開 API(外部インターフェース)
// ✅ 許可: 公開 API からのインポート
import { Recommendation, ProjectInfo } from "../../types/index.js";
import { recommendSkills, searchSkills } from "../../tools/handlers/index.js";

// ✅ 推奨: その他は直接個別ファイルからインポート
import { analyzeProject } from "../../services/analyzer/project-analyzer.service.js";
import { calculateScore } from "../../services/recommender/scoring/scorer.js";

// ❌ 禁止: services/, config/, utils/ などに index.ts を作成
import { analyzeProject } from "../../services/analyzer/index.js"; // NG

理由:

  • インポート元が明確
  • 循環依存の防止
  • 未使用コードの検出が容易
  • 外部 API は index.ts で明示化
  • 内部実装は直接インポートで変更に強く

ディレクトリ構造

src/
├── config/              # 設定ファイル(定数、マッピング)
│   ├── constants.ts     # アプリケーション定数
│   ├── file-mappings.ts # ファイル拡張子とフレームワークのマッピング
│   ├── curated-list-sources.ts # キュレーションリストソース定義
│   ├── direct-skill-sources.ts # 直接スキルソース定義
│   ├── env.ts           # 環境変数設定
│   └── scoring-config.ts # スコアリングの重み・閾値
│
├── repositories/        # データアクセス層
│   ├── recommendation.repository.ts # データベース読み込み・キャッシュ
│   └── remote-data.repository.ts    # リモートデータ取得(CDN/GitHub)
│
├── utils/              # 共通ユーティリティ
│   └── glob-matcher.ts # Glob パターンマッチング
│
├── types/              # 型定義(ドメイン別に分割)
│   ├── index.ts        # 型定義の公開 API
│   ├── domain-types.ts # ドメイン型(Recommendation, Author, etc.)
│   ├── service-types.ts # サービス型(ProjectInfo, ScoredRecommendation)
│   └── raw-types.ts    # 外部データ型(RawPluginEntry, etc.)
│
├── schemas/            # Zod バリデーションスキーマ
│   └── tool-schemas.ts # MCP ツールの入力スキーマ
│
├── services/           # ビジネスロジック層
│   ├── analyzer/       # プロジェクト分析サービス
│   │   ├── parsers/    # 言語別パーサー
│   │   │   ├── package-json.parser.ts
│   │   │   ├── requirements-txt.parser.ts
│   │   │   ├── go-mod.parser.ts
│   │   │   └── (その他言語用パーサー)
│   │   └── project-analyzer.service.ts # メイン分析ロジック
│   │
│   ├── fetchers/       # 外部データ取得
│   │   ├── mcp/        # MCP サーバー取得
│   │   │   ├── mcp-fetcher.ts
│   │   │   └── official-mcp-fetcher.ts
│   │   ├── plugins/    # プラグイン取得
│   │   │   └── plugin-fetcher.ts
│   │   └── skills/     # スキル取得
│   │       ├── common/  # 共通ユーティリティ
│   │       │   ├── github-api.ts # GitHub API 呼び出し
│   │       │   ├── skill-parser.ts # スキルパース処理
│   │       │   └── types.ts # フェッチャー用の内部型
│   │       ├── curated-list-fetcher.ts # キュレーションリスト取得
│   │       ├── direct-skill-fetcher.ts # 直接スキル取得
│   │       └── skill-fetcher.ts # メインフェッチャー
│   │
│   ├── recommender/    # 推薦サービス
│   │   ├── scoring/    # スコアリングロジック
│   │   │   └── scorer.ts
│   │   ├── recommendation.service.ts # メイン推薦ロジック
│   │   ├── search.service.ts         # 検索機能
│   │   ├── quality-scorer.ts         # 品質スコア算出
│   │   └── formatters.ts             # 結果フォーマッター
│   │
│   └── security-scanner.service.ts # セキュリティスコア取得
│
├── tools/              # MCP ツール層(プレゼンテーション)
│   └── handlers/       # 各ツールの実装
│       ├── index.ts    # ツールの公開 API
│       ├── recommend-skills.tool.ts
│       ├── search-skills.tool.ts
│       ├── get-skill-details.tool.ts
│       ├── list-categories.tool.ts
│       └── get-stats.tool.ts
│
├── server/             # MCP サーバー設定
│   ├── mcp-server.ts   # サーバーセットアップ
│   └── tool-registry.ts # ツール登録
│
└── index.ts            # エントリーポイント(最小限)

Read the full file on GitHub · 513 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. 5d ago First seen · 513 lines · 4,539 tokens per session scan A c7212f6fa5e7

Subscribe to this mod's changes

cc-recommender CLAUDE.md is an instructions file published in the GitHub repository yuji0809/cc-recommender (10 stars, last pushed 3mo ago), licensed MIT. It adds 4,539 tokens to every session, about $0.0227 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-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,733 tokens