context-optimization
Installation
SKILL.md
Context Optimization Skill
Strategies for effective context management: @ mentions, context window optimization, and semantic search.
When to Use
Use this skill when:
- Managing context window efficiently
- Providing targeted references
- Optimizing @ mention usage
- Using semantic search effectively
- Understanding context limits
Capabilities
@ Mentions
- @Files & Folders: Reference files or directories
- @Code: Reference specific code sections
- @Docs: Reference documentation
Context Optimization
- Context window management
- Strategic @ mention usage
- Let agent gather context when appropriate
- Reference files instead of copying
Semantic Search
- Natural language queries
- Incremental understanding
- Code discovery
- Pattern finding
Best Practices
@ Mentions
Use for:
- Specific examples to follow
- Related code patterns
- Configuration files
- Cross-referencing
Let agent search for:
- General questions
- Broad exploration
- Discovery tasks
- Understanding flows
Context Window
- Use @ mentions selectively
- Let agent search automatically
- Reference files, don't copy
- Break into chunks for large tasks
- Use Plan Mode for complex features
Related Resources
- Rule:
.cursor/rules/context-management.mdc - Rule:
.cursor/rules/semantic-search.mdc - Command:
/semantic-search - Agent:
.cursor/skills/context-optimization/agents/context-manager.md
Related skills
More from basedhardware/omi
docs-automation
Automate documentation updates when API endpoints, functions, or architecture change. Detects code changes that require doc updates, generates API reference from FastAPI routers, updates architecture diagrams, and syncs between internal and external docs.
13omi-api-integration
Omi API integration Developer API MCP server webhook OAuth authentication rate limiting API keys
11