agentleFS
cchao123cchao123/skills-manager/AGENTS.md

skills-manager

AGENTS.md124 starsChanged 7 months agoMITView on GitHub

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository. Skills Manager is a desktop application for managing Codex skills and plugins. It's built with Tauri 2 (Rust backend) and React + TypeScript (Vite frontend), targeting macOS and Windows. The application scans Codex's plugin directories, displays skills in a UI, and enables/disables them by modifying ~/.Codex/settings.json. It also supports cloning GitHub repositories containing custom skills. This starts: - Vite dev server on http://localhost:5173 (frontend with hot…

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

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Frontend (app/src/api/tauri.ts): Call via invoke('command_name', { args })

    line 49
  2. Very specific:

    All commands are registered in src-tauri/src/main.rs using tauri::generate_handler!

    line 51
  3. Very specific:

    No external state management library.

    line 97
  4. Very specific:

    Add to invoke handler: your_commands::your_function_name

    line 118
  5. Very specific:

    Add frontend wrapper in app/src/api/tauri.ts

    line 119

≈ “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

AGENTS.md

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

Project Overview

Skills Manager is a desktop application for managing Codex skills and plugins. It's built with Tauri 2 (Rust backend) and React + TypeScript (Vite frontend), targeting macOS and Windows.

The application scans Codex's plugin directories, displays skills in a UI, and enables/disables them by modifying ~/.Codex/settings.json. It also supports cloning GitHub repositories containing custom skills.

Development Commands

Start Development Server

npm run tauri:dev

This starts:

  • Vite dev server on http://localhost:5173 (frontend with hot reload)
  • Tauri app window
  • Rust cargo watch for backend changes

Note: Requires Rust toolchain and OpenSSL. On macOS with Homebrew:

export OPENSSL_DIR=$(brew --prefix openssl@3)
export PKG_CONFIG_PATH=$(brew --prefix openssl@3)/lib/pkgconfig

Build Production Bundle

# macOS
npm run tauri:build --target universal-apple-darwin

# Windows
npm run tauri:build --target x86_64-pc-windows-msvc

Output: src-tauri/target/release/bundle/

Build Rust Only (faster for backend changes)

cargo build --manifest-path=src-tauri/Cargo.toml

Architecture

Tauri IPC Pattern

The app uses Tauri's command system for Rust↔JavaScript communication:

Rust (src-tauri/src/commands/): Define functions with #[tauri::command] Frontend (app/src/api/tauri.ts): Call via invoke('command_name', { args })

All commands are registered in src-tauri/src/main.rs using tauri::generate_handler!.

Core Modules

ModuleFileResponsibility
SkillScannerscanner.rsScans ~/.Codex/plugins/cache/ and ~/.Codex/skills-manager/ for skills, parses SKILL.md frontmatter
SettingsManagersettings.rsReads/writes ~/.Codex/settings.json, manages enabledPlugins field
GitHubIntegratorgithub.rsGit operations (clone/pull) using git2 crate
Commandscommands/*.rsTauri command handlers (skills.rs, github.rs)

Codex Integration

The app integrates with Codex by:

  1. Scanning: Reads ~/.Codex/plugins/cache/[marketplace]/[plugin]/[version]/skills/ for SKILL.md files
  2. Enabling/Disabling: Modifies ~/.Codex/settings.json:
    {
      "enabledPlugins": {
        "superpowers@Codex-plugins-official": true
      }
    }
  3. GitHub Skills: Clones repos to ~/.Codex/skills-manager/[repo-name]/skills/

Skill File Format

Skills are defined with YAML frontmatter:

---
name: skill-name
description: Skill description
---

The scanner parses this using regex to extract name and description. Skills without frontmatter use the directory name as fallback.

Frontend Structure

  • app/src/App.tsx: Main app with simple state-based routing (currentPage: 'dashboard' | 'settings')
  • app/src/pages/: Dashboard.tsx, Settings.tsx (no React Router, just conditional rendering)
  • app/src/api/tauri.ts: Wrapper around @tauri-apps/api/tauri invoke function

State Management

No external state management library. React's useState manages:

  • Skills list (fetched via Tauri commands)
  • GitHub repos (fetched via Tauri commands)
  • UI state (search term, filter, add form visibility)

Important File Locations

PurposePath
Codex settings~/.Codex/settings.json
Plugin cache~/.Codex/plugins/cache/[marketplace]/[plugin]/[version]/
GitHub skills~/.Codex/skills-manager/[repo-name]/skills/
App config~/.skills-manager/config.json, ~/.skills-manager/github-config.json
Tauri configsrc-tauri/tauri.conf.json
Rust entrysrc-tauri/src/main.rs
Frontend entryapp/src/main.tsx

Adding New Tauri Commands

  1. Define function in src-tauri/src/commands/ with #[tauri::command]
  2. Register in src-tauri/src/main.rs: skills_commands::your_function_name
  3. Add to invoke handler: your_commands::your_function_name
  4. Add frontend wrapper in app/src/api/tauri.ts

Dependencies

Key Rust crates:

  • tauri 2: Desktop framework
  • git2: Git operations
  • serde: Serialization
  • anyhow: Error handling

Key npm packages:

  • @tauri-apps/api 2: Tauri frontend bindings
  • react 18: UI framework
  • vite 5: Build tool
  • tailwindcss: Styling

Common Issues

"Icon not RGBA" Error

Tauri requires RGBA format PNG icons. Generate using:

npx @tauri-apps/cli icon <input.svg>

OpenSSL Errors

On macOS, ensure OpenSSL is installed via Homebrew and env vars are set.

Port 5173 Already in Use

Kill the process: lsof -ti:5173 | xargs kill -9

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.