agentleFS
qufei1993qufei1993/skills-hub/AGENTS.md

skills-hub

AGENTS.md1.7k starsChanged 2 months agoMITView on GitHub

Reply in Chinese; write PR titles and descriptions in English. Skills Hub is a cross-platform desktop app (Tauri 2 + React 19) for managing AI Agent Skills and syncing them to 48+ AI coding tools. Core concept: "Install once, sync everywhere."

Trending

Quiet since September.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 3 mentionsApr 2026: 3 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the qufei1993/skills-hub repository that our weekly crawl found: only 8 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about qufei1993/skills-hub

The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 8

Talked about on GitHub (8 times).

On GitHub · 8

3 more on GitHub
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    All user-visible text must use i18n (t('key')), translation keys defined in src/i18n/resources.ts

    line 111
  2. Distinctive:

    When adding or changing user-visible text, always provide English, Simplified Chinese, and Korean translations

    line 113
  3. Very specific:

    Use anyhow::Context to add context to errors

    line 121
  4. Very specific:

    Before frontend work that changes layout, visual styling, shared components, navigation, overlays, responsive behavior, or interaction …

    line 131
  5. Distinctive:

    Do not load the UI guidelines for backend-only, data-only, test-only, release, or documentation tasks unless they also change product UI.

    line 132
  6. Distinctive:

    Keep changes minimal: Only modify what is necessary for the requirement.

    line 139
  7. Very specific:

    Manual review: After user-facing bug fixes, run npm run tauri:dev from the working branch and confirm startup, unless requested otherwise.

    line 141
  8. Distinctive:

    Pull requests: When requested, submit code, tests, and release records against main, updating an existing branch PR when available.

    line 143
  9. Distinctive:

    Every database migration must include both an upgrade test and a previous-stable-version compatibility test.

    line 166

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Skills Hub - Project Rules

Reply in Chinese; write PR titles and descriptions in English.

Overview

Skills Hub is a cross-platform desktop app (Tauri 2 + React 19) for managing AI Agent Skills and syncing them to 48+ AI coding tools. Core concept: "Install once, sync everywhere."

Tech Stack

  • Frontend: React 19 + TypeScript 5.9 (strict) + Vite 7 + Tailwind CSS 4
  • Backend: Rust (Edition 2021, MSRV 1.77.2) + Tauri 2
  • Database: SQLite (rusqlite, bundled)
  • Git: libgit2 (git2 crate, vendored-openssl)
  • HTTP: reqwest (rustls-tls, blocking)
  • i18n: i18next (English / Simplified Chinese / Korean)
  • Notifications: sonner (toast)
  • Icons: lucide-react

Common Commands

npm run dev              # Vite dev server (port 5173)
npm run tauri:dev        # Tauri dev window (frontend + backend)
npm run build            # tsc + vite build
npm run check            # Full check: lint + test + build + rust:fmt:check + rust:clippy + rust:test
npm test                 # Frontend regression tests
npm run lint             # ESLint (flat config v9)
npm run rust:test        # cargo test
npm run rust:clippy      # Rust lint
npm run rust:fmt         # Rust format
npm run rust:fmt:check   # Rust format check

Directory Structure

src/                          # React frontend
├── App.tsx                   # Root component (centralized state, all modal states)
├── App.css                   # Global styles (all component styles live here)
├── index.css                 # CSS variables (theming) + Tailwind entry
├── components/
│   ├── Layout.tsx            # Main layout (sidebar + content area)
│   └── skills/               # Skills feature module
│       ├── Header.tsx        # Top bar (branding + language toggle + new button)
│       ├── FilterBar.tsx     # Filter/sort bar
│       ├── SkillsList.tsx    # Skills list container
│       ├── SkillCard.tsx     # Individual skill card
│       ├── LoadingOverlay.tsx
│       ├── types.ts          # Shared DTO type definitions (frontend ↔ backend)
│       └── modals/           # Modal components (8 total)
└── i18n/
    ├── index.ts              # i18next initialization
    ├── resources.ts          # English/Chinese resources + locale registration
    └── ko.ts                 # Korean translation resources

src-tauri/src/                # Rust backend
├── main.rs                   # Entry point (calls app_lib::run)
├── lib.rs                    # App initialization (plugin registration, DB, cleanup tasks)
├── commands/
│   ├── mod.rs                # Tauri command layer (23 commands + DTOs)
│   └── tests/
└── core/                     # Core business logic
    ├── skill_store.rs        # SQLite ORM (4 tables: skills, skill_targets, settings, discovered_skills)
    ├── installer.rs          # Skill installation (local/git, with multi-skill detection)
    ├── sync_engine.rs        # Sync engine (symlink/junction/copy triple fallback)
    ├── git_fetcher.rs        # Git clone/pull (with cache and TTL)
    ├── tool_adapters/mod.rs  # Tool adapter registry (48 AI tools)
    ├── onboarding.rs         # Existing skill scanning/discovery
    ├── github_search.rs      # GitHub API search
    ├── central_repo.rs       # Central repository path management
    ├── content_hash.rs       # SHA256 directory content hashing
    ├── cache_cleanup.rs      # Git cache cleanup
    ├── temp_cleanup.rs       # Temp directory cleanup
    └── tests/                # One test file per module (10 total)

Architecture

Frontend ↔ Backend Communication

  • Uses Tauri IPC (invoke) to call backend commands
  • Frontend call pattern: const result = await invoke('command_name', { param })
  • Backend commands are defined in commands/mod.rs and registered in lib.rs via generate_handler!
  • New commands must be registered in both places

Frontend State Management

  • No state management library — all state is centralized in App.tsx via useState
  • Passed to child components via props drilling (modals receive many props)
  • Data refresh pattern: call invoke('get_managed_skills') after operations to re-fetch the list

Backend Layering

  • commands/ layer: Tauri command definitions, DTO conversions, error formatting (no business logic)
  • core/ layer: Pure business logic, independently testable
  • Async commands use tauri::async_runtime::spawn_blocking to wrap synchronous operations
  • Shared state injected via app.manage(store) + State<'_, SkillStore>

Error Handling

  • Backend uses anyhow::Result<T>, converted to string via format_anyhow_error() for the frontend
  • Special error prefixes for frontend identification: MULTI_SKILLS|, TARGET_EXISTS|, TOOL_NOT_INSTALLED|
  • Frontend catches with try-catch and displays errors via sonner toast

Coding Conventions

TypeScript

  • Strict mode: noUnusedLocals and noUnusedParameters are enabled — unused variables/params cause compile errors
  • Component files: PascalCase (SkillCard.tsx)
  • Props types: ComponentNameProps (SkillCardProps)
  • CSS class names: kebab-case (modal-backdrop, skill-card)
  • Modal conditional rendering: if (!open) return null (full unmount, not display:none)
  • Wrap presentational components with memo()
  • All user-visible text must use i18n (t('key')), translation keys defined in src/i18n/resources.ts
  • The app supports English (en), Simplified Chinese (zh), and Korean (ko)
  • When adding or changing user-visible text, always provide English, Simplified Chinese, and Korean translations
  • Korean users read the English release notes; release notes do not require Korean sections
  • DTO types are defined in src/components/skills/types.ts and must stay in sync with the Rust DTOs in commands/mod.rs

Rust

  • Functions/methods: snake_case
  • Constants: SCREAMING_SNAKE_CASE
  • Tauri command parameters use camelCase (to match frontend JS calling convention)
  • Use anyhow::Context to add context to errors
  • New core modules must be exported in core/mod.rs
  • Tests use tempfile crate for temp directories and mockito for HTTP mocking

Styling

  • Component styles go in src/App.css (not CSS Modules), using semantic CSS class names
  • Theming via CSS variables + [data-theme="dark"] selector, variables defined in src/index.css
  • Tailwind utility classes and custom CSS classes can be mixed

UI Design Reference

  • Before frontend work that changes layout, visual styling, shared components, navigation, overlays, responsive behavior, or interaction feedback, load only docs/UI-DESIGN-GUIDELINES.md.
  • Do not load the UI guidelines for backend-only, data-only, test-only, release, or documentation tasks unless they also change product UI.

Development Workflow

  1. Branch baseline: Unless specified otherwise, fetch origin/main and create a codex/ branch from it, preserving existing work. Verify the base commit; after changing the baseline, sync dependencies with the lockfile.
  2. Before implementing: Briefly describe the approach and list the files to be modified. Wait for confirmation before writing code.
  3. Implement completely: For features involving both frontend and backend, modify both sides in one pass — including Tauri command registration, DTO types, i18n translations (both EN and ZH), and UI.
  4. Keep changes minimal: Only modify what is necessary for the requirement. Do not refactor, add comments, or "improve" unrelated code.
  5. Verify: Bug fixes must include regression tests that fail before the fix and pass afterward. Run npm run check on the final changes before committing; resolve all failures.
  6. Manual review: After user-facing bug fixes, run npm run tauri:dev from the working branch and confirm startup, unless requested otherwise. Reuse or restart only this checkout's development processes.
  7. Release records: Record user-visible fixes under the current project version in CHANGELOG.md, docs/CHANGELOG.zh.md, and docs/releases/v<version>/; do not bump the version unless requested.
  8. Pull requests: When requested, submit code, tests, and release records against main, updating an existing branch PR when available. Describe the problem, fix, and validation; verify the PR and return its link. Do not merge without authorization.

Security Red Lines

  • Token、密码和私钥只能存入系统安全凭据存储,禁止进入数据库、配置文件、日志、URL 或同步仓库。
  • 只有用户主动操作或明确开启的后台功能才能读取凭据;页面加载、Tab 切换、状态展示和普通启动不得读取。
  • 开发版必须使用独立的凭据命名空间;授权、凭据、同步相关改动必须通过防泄漏与访问边界测试。
  • 开发版桌面和 CLI 与正式版共用数据库、中央 Skills 目录、配置、缓存、回收站和写锁,操作会影响真实 Agent 目录。凭据和 CLI bridge 可执行文件仍使用独立开发命名空间;自动化测试使用临时数据及 Agent 目录。旧开发库不得自动合并或覆盖正式库。

Network Boundary

  • 所有生产环境的 HTTP 客户端、OAuth 请求及远端 Git 操作必须通过 src-tauri/src/core/network_proxy.rs 创建或配置,并显式使用应用代理设置;禁止依赖进程代理环境变量、Git 全局代理或在业务模块中直接创建传输客户端。
  • 新增或修改出站网络代码后必须运行 npm run network:check,不得通过路径、命名或测试标记规避边界检查。

Important Notes

  • Path handling must support ~ expansion (backend has expand_home_path())
  • Sync strategy uses triple fallback: symlink → junction (Windows) → copy
  • Git uses vendored-openssl, HTTP uses rustls-tls — avoids system SSL issues
  • Version numbers must stay in sync between package.json and src-tauri/tauri.conf.json (validate with npm run version:check)
  • Rust crate is named app_lib (not the default package name) — use app_lib::... for imports
  • Database has a schema migration mechanism (migrate_legacy_db_if_needed) — consider migrations when modifying table structures
  • Additive, feature-only database tables must use a feature-specific schema marker in settings; do not raise the shared PRAGMA user_version when the previous stable release can safely ignore the change
  • Every database migration must include both an upgrade test and a previous-stable-version compatibility test; incompatible shared-schema changes require an explicit compatibility design before implementation
  • Tool adapter list is in tool_adapters/mod.rs — adding a new AI tool requires both a ToolId enum variant and an adapter instance

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.