trusttools
v1.0.2
Published
Universal CLI tool for managing AI agent skills across Cursor, Claude, Windsurf and 40+ AI agents
Downloads
160
Maintainers
Readme
TrustTools
Universal CLI tool for managing AI agent skills across Cursor, Claude, Windsurf and 40+ AI agents.
Features
- 🚀 Universal Agent Support: Automatically detects and supports Cursor, Claude, and Windsurf
- 🔗 Symlink-based Distribution: Skills stored once in
.agents/skills/, linked to all agents - 📦 Multiple Source Types: Install from GitHub (user/repo), URLs, or local paths
- 🔍 Smart Discovery: Automatically finds SKILL.md files in repositories
- ✅ Metadata Validation: Ensures skills have required
nameanddescriptionfields
Installation
npm install -g trusttoolsConfiguration
Create a .env file in your project root or set environment variables:
# Required for API search functionality
TRUSTTOOLS_API_URL=https://your-api-endpoint.comOr copy from the example:
cp .env.example .envUsage
Add a skill from GitHub
# Short format
trusttools add user/repo
# With path
trusttools add user/repo/path/to/skill
# Full URL
trusttools add https://github.com/user/repoAdd a skill from local path
trusttools add ./path/to/skill
trusttools add /absolute/path/to/skillList installed skills
trusttools listFind skills
# Search from API (requires TRUSTTOOLS_API_URL)
trusttools find "react optimization"
trusttools find "security audit"
# Scan GitHub repository
trusttools find user/repo
trusttools find user/repo/path/to/skills
# Scan local directory
trusttools find ./local-skillsShow environment info
trusttools infoHow It Works
1. Universal Skills Directory
All skills are stored in .agents/skills/ (the "Universal Path"). This ensures:
- Skills are stored only once
- Easy management and updates
- Consistent structure across projects
2. Agent Detection
TrustTools automatically detects which AI agents are present by checking for:
.cursor/- Cursor IDE.claude/- Claude Desktop.windsurf/- Windsurf
3. Symlink Distribution
When you add a skill, TrustTools:
- Downloads/copies the skill to
.agents/skills/[skill-name]/ - Creates symlinks in each detected agent's skills directory
- Example:
.cursor/skills/my-skill→.agents/skills/my-skill
Windows Note: On Windows, you need either:
- Run as Administrator, or
- Enable Developer Mode in Windows Settings
4. Skill Discovery Algorithm
TrustTools searches for skills in this order:
- Root
SKILL.md skills/folder- Recursive search in subdirectories (max depth: 2)
A valid skill must have a SKILL.md file with frontmatter:
---
name: My Skill
description: A helpful skill for doing X
version: 1.0.0
tags: [ai, automation]
---
# Skill content here...Architecture
Built with modern tools:
- Commander: CLI framework
- Ink: React for CLI (interactive UI)
- simple-git: Git operations
- gray-matter: YAML frontmatter parsing
- tsup: Fast TypeScript bundler
- chalk: Terminal colors
- ora: Elegant spinners
Project Structure
trusttools/
├── src/
│ ├── commands/
│ │ ├── add.ts # Add skill command
│ │ └── list.ts # List skills command
│ ├── utils/
│ │ ├── agents.ts # Agent detection
│ │ ├── parser.ts # SKILL.md parsing
│ │ ├── source.ts # Source parsing
│ │ └── symlink.ts # Symlink management
│ ├── types.ts # TypeScript types
│ └── index.ts # CLI entry point
├── package.json
├── tsconfig.json
└── tsup.config.tsDevelopment
# Install dependencies
npm install
# Development mode (watch)
npm run dev
# Build
npm run build
# Type check
npm run typecheck
# Test locally
npm start -- add user/repoExamples
Install a skill from GitHub
trusttools add anthropics/claude-skillsInstall from a specific path in a repo
trusttools add vercel/next.js/.claude-plugin/plugins/cache-componentsCheck what's installed
trusttools listOutput:
📦 Installed Skills (3):
✓ Cache Components
Expert guidance for Next.js Cache Components
Version: 1.0.0
Tags: nextjs, performance
Path: /Users/you/project/.agents/skills/cache-components
✓ TypeScript Helper
Advanced TypeScript utilities
Path: /Users/you/project/.agents/skills/typescript-helperLicense
MIT
