Skills
Skills are reusable packages that extend Cosine’s capabilities. They provide pre-built prompts, tools, and behaviors for specific tasks or domains. Think of skills as plugins that teach Cosine new tricks.
What Are Skills?
Section titled “What Are Skills?”Skills are distributed as npm-compatible packages that can be installed from:
- Git repositories - Install directly from GitHub, GitLab, etc.
- Local paths - Install from your local filesystem
- npm registry - Install published packages
Each skill can provide:
- System prompts - Specialized instructions for the AI
- Tools - Custom functions and capabilities
- Templates - Pre-defined task patterns
- Configuration - Default settings and behaviors
Installing Skills
Section titled “Installing Skills”From a Git Repository
Section titled “From a Git Repository”The most common way to install skills is from a Git repository:
# Install all skills from a repocos skills add github.com/username/cosine-skills
# Install specific skills onlycos skills add github.com/username/cosine-skills --skill skill1 --skill skill2
# Install with auto-confirmationcos skills add github.com/username/cosine-skills -yFrom a Local Path
Section titled “From a Local Path”For development or private skills:
# Install from local directorycos skills add /path/to/local/skills
# Install specific skill from local pathcos skills add /path/to/local/skills --skill my-skillFrom npm
Section titled “From npm”Install published skills packages:
# Using npx (recommended)npx skills add @myorg/cosine-skills
# Or with cos directlycos skills add npm:@myorg/cosine-skillsInstall Scopes
Section titled “Install Scopes”Skills can be installed at different scopes:
Best for: Team-shared skills, project-specific workflows
Installs skills to the nearest cosine.toml with is_topmost_config = true.
# Install for current projectcos skills add github.com/username/skills --projectSkills are stored in .cosine/skills/ within your project.
Best for: Personal skills you use across all projects
Installs skills to ~/.cosine/skills/ in your home directory.
# Install globallycos skills add github.com/username/skills --globalGlobal skills are available in all Cosine CLI sessions regardless of project.
Best for: Testing, temporary use
Installs skills to a local .cosine/skills/ directory without requiring a cosine.toml.
This is the default if no scope is specified and there’s no topmost config.
# Install locally (default behavior)cos skills add github.com/username/skillsInteractive Scope Selection
Section titled “Interactive Scope Selection”If you don’t specify a scope, you’ll be prompted:
$ cos skills add github.com/username/skillsSelect install scope: 1) Project (nearest cosine.toml with is_topmost_config = true) 2) Global (~/.cosine/skills)Enter choice [1-2]:Skill Commands Reference
Section titled “Skill Commands Reference”cos skills add
Section titled “cos skills add”Install skills from a source.
Usage:
cos skills add <source> [flags]Arguments:
| Argument | Description |
|---|---|
source | Repository URL, local path, or npm package |
Flags:
| Flag | Short | Description |
|---|---|---|
--global | -g | Install globally |
--project | Install for current project | |
--yes | -y | Skip confirmation prompts |
--skill | Install only specific skill (repeatable) | |
--cwd | Working directory for project installs |
Examples:
# Basic installationcos skills add github.com/cosineai/skills
# Install specific skillscos skills add github.com/cosineai/skills --skill python --skill react
# Global installation with auto-confirmcos skills add github.com/cosineai/skills -g -y
# From local pathcos skills add ~/my-skills --projectCommand Parsing
Section titled “Command Parsing”The skills command can also parse full npm-style commands:
# These are equivalent:cos skills add github.com/user/skillscos skills add npx skills add github.com/user/skills
# With flags:cos skills add "npx skills add github.com/user/skills --skill python --global"Managing Installed Skills
Section titled “Managing Installed Skills”Viewing Installed Skills
Section titled “Viewing Installed Skills”Skills are stored in different locations based on scope:
| Scope | Location |
|---|---|
| Project | ./.cosine/skills/ |
| Global | ~/.cosine/skills/ |
| Local | ./.cosine/skills/ |
Listing Skills
Section titled “Listing Skills”# List project skillsls .cosine/skills/
# List global skillsls ~/.cosine/skills/Removing Skills
Section titled “Removing Skills”Currently, remove skills by deleting their directories:
# Remove a project skillrm -rf .cosine/skills/skill-name
# Remove a global skillrm -rf ~/.cosine/skills/skill-nameUpdating Skills
Section titled “Updating Skills”To update a skill to the latest version:
# Re-install the skill (overwrites existing)cos skills add github.com/user/skills --skill skill-name -yUsing Skills
Section titled “Using Skills”Once installed, skills are automatically available in your Cosine sessions. The AI will:
- Load skill contexts - System prompts and configurations
- Use skill tools - Custom tools provided by skills
- Follow skill patterns - Templates and behaviors
Activating Skills
Section titled “Activating Skills”Skills are automatically activated based on context. You can also explicitly reference them:
You: Use the python skill to analyze this codebaseCosine: I'll use the Python skill to analyze your code.Combining Skills
Section titled “Combining Skills”Multiple skills can be active simultaneously:
# Install Python and React skillscos skills add github.com/user/skills --skill pythoncos skills add github.com/user/skills --skill reactNow both skill contexts are available when working on Python/React projects.
Creating Skills
Section titled “Creating Skills”You can create your own skills for personal use or to share with the community.
Skill Structure
Section titled “Skill Structure”A skill package has this structure:
skill-name/├── skill.toml # Skill manifest├── prompts/│ └── system.md # System prompt additions├── tools/│ └── tool.js # Custom tool implementations└── templates/ └── template.md # Reusable prompt templatesSkill Manifest (skill.toml)
Section titled “Skill Manifest (skill.toml)”[skill]name = "python"description = "Python development best practices"version = "1.0.0"author = "Your Name"
[compatibility]cosine_version = ">=2.0.0"
[prompts]system = "prompts/system.md"
[tools]lint = "tools/lint.py"format = "tools/format.py"Publishing Skills
Section titled “Publishing Skills”To share your skills:
- Git repository: Push to GitHub/GitLab and share the URL
- npm registry: Publish as an npm package
- Internal registry: Use private npm registries for company skills
Example Skill Use Cases
Section titled “Example Skill Use Cases”Language-Specific Skills
Section titled “Language-Specific Skills”Python Skill:
cos skills add github.com/cosineai/python-skillProvides:
- Python best practices in prompts
- Linting and formatting tools
- Package management helpers
React Skill:
cos skills add github.com/cosineai/react-skillProvides:
- React/TypeScript patterns
- Component generation templates
- Testing best practices
Framework Skills
Section titled “Framework Skills”Django Skill:
cos skills add github.com/cosineai/django-skillFastAPI Skill:
cos skills add github.com/cosineai/fastapi-skillDomain-Specific Skills
Section titled “Domain-Specific Skills”Data Science Skill:
cos skills add github.com/cosineai/datascience-skillDevOps Skill:
cos skills add github.com/cosineai/devops-skillBest Practices
Section titled “Best Practices”1. Use Project Scope for Teams
Section titled “1. Use Project Scope for Teams”When working in a team, prefer project scope so everyone has the same skills:
cos skills add github.com/company/skills --project# Commit .cosine/skills/ to gitgit add .cosine/skills/git commit -m "Add Cosine skills"2. Use Global Scope for Personal Tools
Section titled “2. Use Global Scope for Personal Tools”Keep personal productivity skills global:
# Your personal favoritescos skills add github.com/user/my-favorites -g3. Pin Specific Versions
Section titled “3. Pin Specific Versions”For reproducibility, reference specific commits or tags:
# Install from a specific tagcos skills add github.com/user/skills@v1.2.3
# Install from a specific commitcos skills add github.com/user/skills#abc1234. Select Only Needed Skills
Section titled “4. Select Only Needed Skills”Don’t install everything—select only what you need:
# Good: Install only what you needcos skills add github.com/user/skills --skill python
# Avoid: Installing all skills unnecessarilycos skills add github.com/user/skills # Installs everything5. Document Your Skills
Section titled “5. Document Your Skills”If you create skills, include a good README:
# My Cosine Skill
## What it doesDescription of the skill's purpose.
## Installation\`\`\`bashcos skills add github.com/user/skill\`\`\`
## UsageExamples of how to use the skill.
## Tools- `tool1`: Description- `tool2`: DescriptionTroubleshooting
Section titled “Troubleshooting”Installation Failures
Section titled “Installation Failures”If skill installation fails:
-
Check the source URL:
Terminal window # Verify the repo existsgit ls-remote github.com/user/skills -
Check network access:
Terminal window # Test connectivitycurl -I https://github.com -
Check npm/npx availability:
Terminal window # Verify npx worksnpx --version
Skills Not Loading
Section titled “Skills Not Loading”If installed skills aren’t available:
-
Verify installation location:
Terminal window # Check project skillsls -la .cosine/skills/# Check global skillsls -la ~/.cosine/skills/ -
Restart Cosine CLI: Some skill changes require a fresh session.
-
Check skill.toml: Ensure the skill has a valid manifest file.
Conflicting Skills
Section titled “Conflicting Skills”If multiple skills conflict:
- Remove conflicting skills
- Re-install only needed ones
- Use
--skillflag to install specific skills
Next Steps
Section titled “Next Steps”- MCP Configuration - Add external tool integrations
- Configuration - Learn about CLI configuration options
- CLI Overview - Return to CLI documentation index