Advanced Features

MyLocalCLI includes powerful features inspired by professional CLI tools like OpenCode and AmpCode.


📌 Context Pinning

Pin important files to always include them in the AI's context. This ensures the AI always has access to critical files without you needing to reference them each time.

Commands

CommandDescription
/pin <file>Pin a file to always include
/unpin <file>Remove a file from pinned
/pinsList all pinned files

Example Usage

/pin src/config.js        # Always include config
/pin src/types.ts         # Always include types
/pins                     # See what's pinned
/unpin src/types.ts       # Remove from pinned

Tip: Pin your main types file, config, or any file you frequently reference!


🌿 Session Branching

Create conversation branches to explore different approaches without losing your current progress. Perfect for trying alternatives or exploring "what if" scenarios.

Commands

CommandDescription
/branch <name>Create a new branch from current conversation
/branchesList all branches
/checkout <name>Switch to a different branch
/checkout mainReturn to main conversation

Example Usage

/branch refactor-attempt     # Save current state as branch
# ... try something different ...
/checkout refactor-attempt   # Go back to that branch
/checkout main               # Return to main

📦 Project Templates

Initialize your project with predefined configurations that help the AI understand your project structure and follow best practices.

Available Templates

TemplateDescription
reactReact + TypeScript application
python-apiPython FastAPI/Flask backend
nodeNode.js application
nextjsNext.js full-stack app
expressExpress.js REST API

Usage

/templates        # List all templates
/init react       # Initialize React project
/init python-api  # Initialize Python API

This creates a MYLOCALCLI.md file with project-specific guidelines.


🎯 Custom Skills

Create your own skills to teach the AI your specific workflows and preferences.

Commands

CommandDescription
/skill create <name>Create a new custom skill
/skill search <query>Search existing skills
/skillsList all available skills

Creating a Skill

/skill create my-testing-standards

This creates a template at .mylocalcli/skills/my-testing-standards/SKILL.md that you can edit.

Skill File Format

---
name: "my-testing-standards"
description: "My project's testing requirements"
priority: 50
globs: ["**/*.test.js", "**/*.spec.ts"]
---

# Testing Standards

- Always use React Testing Library
- Test user behavior, not implementation
- Aim for 80% coverage

🤖 Subagents

Invoke specialized agents using @mentions for complex tasks.

Available Subagents

SubagentUsagePurpose
🔮 @oracleComplex searchesMulti-step analysis and pattern finding
📚 @librarianCode explorationUnderstanding and documenting code
👀 @reviewerCode reviewFinding bugs and suggesting improvements

Example Usage

@oracle find all places where user authentication happens

@librarian explain how the payment system works

@reviewer check my recent changes for bugs

View All Subagents

/subagents    # List available subagents

Quick Reference

FeatureCommandDescription
Pin file/pin <file>Always include in context
Create branch/branch <name>Save conversation state
Init project/init <template>Set up project config
Create skill/skill create <name>Make custom skill
Use subagent@oracle <query>Invoke specialized agent