JSPM

  • Created
  • Published
  • Downloads 44
  • Score
    100M100P100Q110023F
  • License MIT

Universal Agent Compatibility Layer & Rules Framework (Total Awareness Standard)

Package Exports

  • @qubiit/lmagent
  • @qubiit/lmagent/install.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@qubiit/lmagent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

๐Ÿง  LMAgent: The Universal AI Agent Runtime

โ–ˆโ–ˆโ•—     โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•‘โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•
โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘
โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•  โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•  โ•šโ•โ•โ•โ•   โ•šโ•โ•
                                                  by QuBit

Version License Agents Skills

"Separate the reasoning from the execution." LMAgent is the foundational runtime that empowers your AI Agents with standardized Skills, Rules, and Workflows across 37 supported agents (Cursor, Claude Code, Windsurf, Gemini CLI, Cline, Roo, Copilot, and many more).


โšก One Command. Any Agent.

npx @qubiit/lmagent@latest

That's it. No global install required. LMAgent will:

  1. Auto-detect which AI agents you have installed on your system
  2. Pre-select the detected agents for installation
  3. Deploy skills, rules, and workflows to each agent's directory
  4. Generate the entry point file so each agent auto-invokes the framework

Requires Node.js โ‰ฅ 22. Works on macOS, Linux, and Windows.


๐Ÿš€ Full Setup Guide

Step 1 โ€” Initialize your project (first time only)

npx @qubiit/lmagent@latest init

Copies AGENTS.md, CLAUDE.md, and GEMINI.md to your project root. These are the entry points that agents read automatically when they start.

Step 2 โ€” Install the framework

npx @qubiit/lmagent@latest install

Deploys skills, rules, and workflows to all detected agents. Generates agent-specific config files.

Step 3 โ€” Verify

npx @qubiit/lmagent@latest doctor

Checks that everything is correctly configured.

Update (when new versions are released)

npx @qubiit/lmagent@latest update

๐Ÿ›๏ธ Architecture

LMAgent uses a Hub & Spoke model: one universal brain (.agents/) that feeds all agents.

Your Project/
โ”œโ”€โ”€ .agents/                    # โ† UNIVERSAL BRAIN (source of truth)
โ”‚   โ”œโ”€โ”€ rules/                  # 11 behavioral rules
โ”‚   โ”œโ”€โ”€ skills/                 # 31 specialized roles
โ”‚   โ”œโ”€โ”€ workflows/              # 13 SOPs (Standard Operating Procedures)
โ”‚   โ”œโ”€โ”€ memory/                 # 5 persistent context files
โ”‚   โ”œโ”€โ”€ templates/              # Project scaffolds & agent config templates
โ”‚   โ”œโ”€โ”€ scripts/                # Utility scripts
โ”‚   โ”œโ”€โ”€ config/                 # Framework settings
โ”‚   โ””โ”€โ”€ docs/                   # Extended documentation
โ”‚
โ”œโ”€โ”€ AGENTS.md                   # โ† PILLAR 1: Capability catalog (read by all agents)
โ”œโ”€โ”€ CLAUDE.md                   # โ† PILLAR 2: Entry point for Claude Code / Antigravity
โ”œโ”€โ”€ GEMINI.md                   # โ† PILLAR 3: Entry point for Gemini CLI / Antigravity
โ”‚
โ”œโ”€โ”€ .cursor/rules/              # โ† Cursor-specific rules & skills
โ”œโ”€โ”€ .windsurf/rules/            # โ† Windsurf-specific rules & skills
โ”œโ”€โ”€ .claude/rules/              # โ† Claude Code-specific rules & skills
โ””โ”€โ”€ ...                         # (one directory per installed agent)

How auto-invocation works

Each agent reads a specific file when it starts. LMAgent generates that file automatically:

Agent Entry Point Generated
Cursor .cursorrules
Claude Code CLAUDE.md
Gemini CLI / Antigravity GEMINI.md
Windsurf .windsurf/rules/lmagent.md
Cline .clinerules/00-lmagent.md
Roo Code .roo/rules/00-lmagent.md
VSCode Copilot .github/copilot-instructions.md
Goose .goosehints
Continue .continuerules
Junie .junie/guidelines.md
OpenHands .openhands/microagents/repo.md
Codex CLI AGENTS.md
All others 00-lmagent.md in their rulesDir

All entry points point to AGENTS.md โ€” the single source of truth.


๐Ÿงฉ Skills Catalog (31 Skills)

Activate any skill by typing its trigger in the chat:

๐ŸŽฏ Management & Architecture

Trigger Skill Description
/orch orchestrator High-level task planning and agent coordination
/pm product-manager PRD generation, user stories, roadmap planning
/arch architect System design, scalable patterns, cloud infrastructure
/lead tech-lead Code review, technical decisions, mentoring
/sm scrum-master Agile ceremonies, sprint planning, retrospectives
/doc technical-writer Documentation, API refs, user guides

๐Ÿ”ง Engineering

Trigger Skill Description
/dev backend-engineer APIs, database schema, authentication
/front frontend-engineer React, Next.js, Tailwind, state management
/mobile mobile-engineer React Native, Expo, iOS/Android pipelines
/data data-engineer ETL pipelines, SQL optimization, data warehousing
/devops devops-engineer CI/CD, Docker, Kubernetes, Terraform
/sec security-analyst Vulnerability scanning, OWASP, code auditing
/test qa-engineer E2E testing (Playwright), unit tests, QA strategy
/review code-reviewer Static analysis, logic verification, clean code
/api api-designer REST/GraphQL contracts, OpenAPI standards
/supa supabase-expert Supabase architecture, RLS, Edge Functions
/git git-workflow Branch management, conventional commits, releases
/web browser-agent Web automation, scraping, UI testing
/seo seo-auditor Technical SEO, Core Web Vitals, accessibility

โšก Specialized & AI

Trigger Skill Description
/fix systematic-debugger Methodical 4-phase debugging (RCA)
/perf performance-engineer Profiling, load testing, optimization
/ux ux-ui-designer Design systems, user flow, prototyping
/agent ai-agent-engineer Building LLM-based systems & MCP servers
/auto automation-engineer n8n workflows, Zapier, scripting
/prompt prompt-engineer Optimizing system prompts and LLM interactions
/mcp mcp-builder Build MCP servers, tools, and resources
/pdf document-generator Programmatic PDF/DOCX/XLSX generation

๐Ÿง  Methodologies

Trigger Skill Description
/bmad bmad-methodology Scale-Adaptive Intelligence, complexity classification
/sdd spec-driven-dev Spec-first development pipeline
/swe swe-agent Autonomous issue resolution, trajectory logging
/test-s testing-strategist Test planning, pyramid strategy, coverage goals

๐ŸŒ 37 Supported Agents

Agent Config Path Entry Point
Cursor .cursor/ .cursorrules
Windsurf .windsurf/ .windsurf/rules/lmagent.md
Cline .clinerules/ .clinerules/00-lmagent.md
Roo Code .roo/ .roo/rules/00-lmagent.md
VSCode Copilot .github/ .github/copilot-instructions.md
Trae .trae/ .trae/rules/lmagent.md
Trae CN .trae-cn/ .trae-cn/rules/lmagent.md
Claude Code .claude/ CLAUDE.md
Zed .rules/ .rules/lmagent.md
Amp / Kimi / Replit .agents/ .agents/rules/00-lmagent.md
Antigravity .agent/ GEMINI.md
Augment .augment/ .augment/rules/00-lmagent.md
Gemini CLI .gemini/ GEMINI.md
OpenClaw / Envoid rules/ openclaw.json
CodeBuddy .codebuddy/ .codebuddy/rules/00-lmagent.md
Codex CLI .codex/ AGENTS.md
Command Code .commandcode/ .commandcode/rules/00-lmagent.md
Continue .continue/ .continuerules
Crush .crush/ .crush/rules/00-lmagent.md
Droid .factory/ .factory/rules/00-lmagent.md
Goose .goose/ .goosehints
Junie .junie/ .junie/guidelines.md
iFlow CLI .iflow/ .iflow/rules/00-lmagent.md
Kilo Code .kilocode/ .kilocode/rules/00-lmagent.md
Kiro CLI .kiro/ .kiro/rules/00-lmagent.md
Kode .kode/ .kode/rules/00-lmagent.md
MCPJam .mcpjam/ .mcpjam/rules/00-lmagent.md
Mistral Vibe .vibe/ .vibe/rules/00-lmagent.md
Mux .mux/ .mux/rules/00-lmagent.md
OpenCode .opencode/ .opencode/rules/00-lmagent.md
OpenHands .openhands/ .openhands/microagents/repo.md
Pi .pi/ .pi/rules/00-lmagent.md
Qoder .qoder/ .qoder/rules/00-lmagent.md
Qwen Code .qwen/ .qwen/rules/00-lmagent.md
Zencoder .zencoder/ .zencoder/rules/00-lmagent.md
Neovate .neovate/ .neovate/rules/00-lmagent.md
Pochi .pochi/ .pochi/rules/00-lmagent.md
AdaL .adal/ .adal/rules/00-lmagent.md

๐Ÿ› ๏ธ CLI Reference

# Core
npx @qubiit/lmagent@latest              # Interactive install (auto-detects agents)
npx @qubiit/lmagent@latest init         # Initialize project (copies AGENTS.md, CLAUDE.md, GEMINI.md)
npx @qubiit/lmagent@latest install      # Install/update framework in current project
npx @qubiit/lmagent@latest update       # Alias for install
npx @qubiit/lmagent@latest uninstall    # Remove all LMAgent files from project
npx @qubiit/lmagent@latest uninstall --all  # Also remove root entry points (CLAUDE.md, etc.)

# Diagnostics
npx @qubiit/lmagent@latest doctor       # Verify project configuration
npx @qubiit/lmagent@latest validate     # Validate integrity of all skills
npx @qubiit/lmagent@latest tokens       # Analyze framework token consumption

# Skills Management
npx @qubiit/lmagent@latest create-skill             # Create a new skill interactively
npx @qubiit/lmagent@latest skills add owner/repo    # Install external skill from GitHub

๐Ÿ› ๏ธ Creating Custom Skills

# Create a new skill interactively
npx @qubiit/lmagent@latest create-skill

# Install an external skill from GitHub
npx @qubiit/lmagent@latest skills add owner/repo-name

# Validate all skills
npx @qubiit/lmagent@latest validate

Skills follow the standard structure:

.agents/skills/my-skill/
โ”œโ”€โ”€ SKILL.md          # Main instructions (required)
โ””โ”€โ”€ ...               # Optional additional files

๐Ÿ‘จโ€๐Ÿ’ป Developer Setup

If you are contributing to the framework:

git clone https://github.com/QuBiit0/lmagent.git
cd lmagent
npm install
npm link
lmagent doctor

๐Ÿค Contributing

We welcome contributions to expand the Universal Agent Brain. Check out CONTRIBUTING.md to add new Skills, Rules, or IDE support.


Built with โค๏ธ by QuBit ยท GitHub