Skip to content

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.

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

The most common way to install skills is from a Git repository:

Terminal window
# Install all skills from a repo
cos skills add github.com/username/cosine-skills
# Install specific skills only
cos skills add github.com/username/cosine-skills --skill skill1 --skill skill2
# Install with auto-confirmation
cos skills add github.com/username/cosine-skills -y

For development or private skills:

Terminal window
# Install from local directory
cos skills add /path/to/local/skills
# Install specific skill from local path
cos skills add /path/to/local/skills --skill my-skill

Install published skills packages:

Terminal window
# Using npx (recommended)
npx skills add @myorg/cosine-skills
# Or with cos directly
cos skills add npm:@myorg/cosine-skills

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.

Terminal window
# Install for current project
cos skills add github.com/username/skills --project

Skills are stored in .cosine/skills/ within your project.

If you don’t specify a scope, you’ll be prompted:

Terminal window
$ cos skills add github.com/username/skills
Select install scope:
1) Project (nearest cosine.toml with is_topmost_config = true)
2) Global (~/.cosine/skills)
Enter choice [1-2]:

Install skills from a source.

Usage:

Terminal window
cos skills add <source> [flags]

Arguments:

ArgumentDescription
sourceRepository URL, local path, or npm package

Flags:

FlagShortDescription
--global-gInstall globally
--projectInstall for current project
--yes-ySkip confirmation prompts
--skillInstall only specific skill (repeatable)
--cwdWorking directory for project installs

Examples:

Terminal window
# Basic installation
cos skills add github.com/cosineai/skills
# Install specific skills
cos skills add github.com/cosineai/skills --skill python --skill react
# Global installation with auto-confirm
cos skills add github.com/cosineai/skills -g -y
# From local path
cos skills add ~/my-skills --project

The skills command can also parse full npm-style commands:

Terminal window
# These are equivalent:
cos skills add github.com/user/skills
cos skills add npx skills add github.com/user/skills
# With flags:
cos skills add "npx skills add github.com/user/skills --skill python --global"

Skills are stored in different locations based on scope:

ScopeLocation
Project./.cosine/skills/
Global~/.cosine/skills/
Local./.cosine/skills/
Terminal window
# List project skills
ls .cosine/skills/
# List global skills
ls ~/.cosine/skills/

Currently, remove skills by deleting their directories:

Terminal window
# Remove a project skill
rm -rf .cosine/skills/skill-name
# Remove a global skill
rm -rf ~/.cosine/skills/skill-name

To update a skill to the latest version:

Terminal window
# Re-install the skill (overwrites existing)
cos skills add github.com/user/skills --skill skill-name -y

Once installed, skills are automatically available in your Cosine sessions. The AI will:

  1. Load skill contexts - System prompts and configurations
  2. Use skill tools - Custom tools provided by skills
  3. Follow skill patterns - Templates and behaviors

Skills are automatically activated based on context. You can also explicitly reference them:

You: Use the python skill to analyze this codebase
Cosine: I'll use the Python skill to analyze your code.

Multiple skills can be active simultaneously:

Terminal window
# Install Python and React skills
cos skills add github.com/user/skills --skill python
cos skills add github.com/user/skills --skill react

Now both skill contexts are available when working on Python/React projects.

You can create your own skills for personal use or to share with the community.

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 templates
[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"

To share your skills:

  1. Git repository: Push to GitHub/GitLab and share the URL
  2. npm registry: Publish as an npm package
  3. Internal registry: Use private npm registries for company skills

Python Skill:

Terminal window
cos skills add github.com/cosineai/python-skill

Provides:

  • Python best practices in prompts
  • Linting and formatting tools
  • Package management helpers

React Skill:

Terminal window
cos skills add github.com/cosineai/react-skill

Provides:

  • React/TypeScript patterns
  • Component generation templates
  • Testing best practices

Django Skill:

Terminal window
cos skills add github.com/cosineai/django-skill

FastAPI Skill:

Terminal window
cos skills add github.com/cosineai/fastapi-skill

Data Science Skill:

Terminal window
cos skills add github.com/cosineai/datascience-skill

DevOps Skill:

Terminal window
cos skills add github.com/cosineai/devops-skill

When working in a team, prefer project scope so everyone has the same skills:

Terminal window
cos skills add github.com/company/skills --project
# Commit .cosine/skills/ to git
git add .cosine/skills/
git commit -m "Add Cosine skills"

Keep personal productivity skills global:

Terminal window
# Your personal favorites
cos skills add github.com/user/my-favorites -g

For reproducibility, reference specific commits or tags:

Terminal window
# Install from a specific tag
cos skills add github.com/user/skills@v1.2.3
# Install from a specific commit
cos skills add github.com/user/skills#abc123

Don’t install everything—select only what you need:

Terminal window
# Good: Install only what you need
cos skills add github.com/user/skills --skill python
# Avoid: Installing all skills unnecessarily
cos skills add github.com/user/skills # Installs everything

If you create skills, include a good README:

# My Cosine Skill
## What it does
Description of the skill's purpose.
## Installation
\`\`\`bash
cos skills add github.com/user/skill
\`\`\`
## Usage
Examples of how to use the skill.
## Tools
- `tool1`: Description
- `tool2`: Description

If skill installation fails:

  1. Check the source URL:

    Terminal window
    # Verify the repo exists
    git ls-remote github.com/user/skills
  2. Check network access:

    Terminal window
    # Test connectivity
    curl -I https://github.com
  3. Check npm/npx availability:

    Terminal window
    # Verify npx works
    npx --version

If installed skills aren’t available:

  1. Verify installation location:

    Terminal window
    # Check project skills
    ls -la .cosine/skills/
    # Check global skills
    ls -la ~/.cosine/skills/
  2. Restart Cosine CLI: Some skill changes require a fresh session.

  3. Check skill.toml: Ensure the skill has a valid manifest file.

If multiple skills conflict:

  1. Remove conflicting skills
  2. Re-install only needed ones
  3. Use --skill flag to install specific skills