skills-hub: Instructions file for Claude Code

CLAUDE.md

skills-hub CLAUDE.md is an instructions file for Claude Code from liuxingqitd/skills-hub. It costs 733 tokens per session, scanned A, a copy of skills-hub AGENTS.md, MIT.

Project instructions for a Next.js application that manages installed AI-agent skills. They describe the app's commands, pages, architecture, and local development setup.

In plain words
What is it for?
Starting the development server, building, linting, testing, type-checking, and understanding where pages, components, server logic, and API routes belong.
Why use it?
They give a coding agent the project context needed to change the dashboard, APIs, and skill-management features safely.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

This is liuxingqitd/skills-hub's own configuration. It tells Claude Code how to work on skills-hub itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything skills-hub configures →

Reuse

Borrowing it

Nothing to install: this file belongs to liuxingqitd/skills-hub. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/liuxingqitd/skills-hub/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/liuxingqitd/skills-hub

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 skills-hub CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/liuxingqitd/skills-hub/claude-md/github.svg)](https://agentmods.dev/instructions/liuxingqitd/skills-hub/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/liuxingqitd/skills-hub/claude-md"><img src="https://agentmods.dev/badge/instructions/liuxingqitd/skills-hub/claude-md/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 skills-hub CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/liuxingqitd/skills-hub/claude-md"><img src="https://agentmods.dev/badge/instructions/liuxingqitd/skills-hub/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 733 This file is loaded in full into every session.
When invoked 733 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod 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.00733 $0.00733
Opus 5 $0.00367 $0.00367
Sonnet 5 $0.00147 $0.00147
Haiku 4.5 $0.00073 $0.00073

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

Security

Grade A, and why

skills-hub 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 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.

Origin

This is a copy

92% identical to skills-hub AGENTS.md — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 55 lines

What it actually says

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Commands

npm run dev          # Start dev server (默认 3000)
npm run dev:reset    # Clear .next cache then start dev server
npm run build        # Production build
npm start            # Start production server
npm run lint         # next lint
npm test             # vitest run (all tests)
npx tsc --noEmit     # TypeScript type check

重要: 开发服务器在 http://localhost:3000 运行。不要手动修改端口。

Project Overview

Skills Hub — 本地 AI agent skills 管理工作台 (Next.js 15 / React 19 / TypeScript 5.9 / Tailwind CSS v4)。浏览和管理各 AI agent(Claude Code、Codex、Cursor、Trae)已安装的 skills,跟踪同步状态与差异,编辑全局规则文件。

Architecture

应用结构

  • app/ — Next.js App Router(页面 + API 路由)
    • 页面:/(技能仪表盘)、/instructions(全局规则编辑器)、/agents/registry/sync
    • 数据获取:页面使用 server component 直接调用 src/lib/server/ 中的模型函数
    • API:app/api/ 下的 route handlers 供客户端组件调用
  • src/components/ — React 客户端组件
    • ui/ — 通用 UI 原子组件
    • board/, instructions/, overview/, registry/, sync/ — 页面级组件
  • src/lib/ — 核心业务逻辑,按领域分包:
    • config/ — agent 配置与 custom skills
    • skills/ — skill 扫描、分类、安装状态判断
    • instructions/ — 规则文件扫描、哈希、写入
    • sync/ — 同步计划构建、应用、移除
    • server/ — server-only 模型构建函数
  • src/types/ — 全局类型定义
  • config/ — agent 定义 (agents.json) 和 custom skills 列表
  • tests/fixtures/ — 测试夹具目录

关键设计决策

  • 文件系统即数据源:所有 agent 配置和 skill 都来自本地文件系统,无外部数据库
  • 测试与源码同目录*.test.ts 放在对应 src/lib/ 源码旁,而非集中存放
  • 无 ESLint 配置文件:依赖 Next.js 内置 lint
  • 无 Tailwind 配置文件:使用 Tailwind v4 零配置模式 (@import "tailwindcss")
  • Server/Client 明确分层:数据模型在 src/lib/server/ 中构建(仅服务端),组件层负责展示

Agent 配置格式

config/agents.json 定义各 agent 的 skills 目录路径和安装规则。每个 agent 包含名称、技能目录路径、以及源 skills 目录的映射(source → 安装路径)。

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 · 55 lines · 733 tokens per session scan A d7082010efac

Subscribe to this mod's changes

skills-hub CLAUDE.md is an instructions file published in the GitHub repository liuxingqitd/skills-hub (80 stars, last pushed 9d ago), licensed MIT. It adds 733 tokens to every session, about $0.0037 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to skills-hub AGENTS.md, differing in 6 lines, and is treated as a copy.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 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,153 tokens

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

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,735 tokens