skills-hub: Instructions file for Codex

AGENTS.md

skills-hub AGENTS.md is an instructions file for Codex, OpenCode from liuxingqitd/skills-hub. It costs 732 tokens per session, scanned A, original, MIT.

A project guide for Codex that documents the repository’s commands, structure, architecture, and rules. It describes a local dashboard for managing AI-agent skills.

In plain words
What is it for?
Use it to understand where pages, components, APIs, and business logic belong. It also helps run the development server and verify changes.
Why use it?
It gives the coding agent project context before it changes code. It also records the commands and checks used to run, build, lint, test, and type-check the project.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex.

This is liuxingqitd/skills-hub's own configuration. It tells Codex and OpenCode 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/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/liuxingqitd/skills-hub

Made for: Codex, OpenCode.

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 AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/liuxingqitd/skills-hub/agents-md"><img src="https://agentmods.dev/badge/instructions/liuxingqitd/skills-hub/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 732 This file is loaded in full into every session.
When invoked 732 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 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.00732 $0.00732
Opus 5 $0.00366 $0.00366
Sonnet 5 $0.00146 $0.00146
Haiku 4.5 $0.00073 $0.00073

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

Security

Grade A, and why

skills-hub AGENTS.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 9d 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

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 55 lines

What it actually says

AGENTS.md

This file provides guidance to Codex (Codex.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(Codex、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. 9d ago First seen · 55 lines · 732 tokens per session scan A d3e54b1bda59

Subscribe to this mod's changes

skills-hub AGENTS.md is an instructions file published in the GitHub repository liuxingqitd/skills-hub (81 stars, last pushed 8d ago), licensed MIT. It adds 732 tokens to every session, about $0.0037 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 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

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