AI-Assisted Development#

Osprey’s workflows are designed for AI coding assistants. Use structured prompts to automate testing, documentation, commits, and releases.


Getting Started#

Osprey workflows work with AI coding assistants. Choose the tool that fits your workflow:

AI-powered code editor with native @ mentions for workflow files.

Platform Support: Windows, macOS, Linux

Installation Instructions

1. Download:

Visit cursor.com and download for your platform.

2. Install:

  • Windows: Run the .exe installer

  • macOS: Open the .dmg and drag to Applications

  • Linux: Install .deb or .rpm package for your distribution

3. First-Time Setup:

  • Launch Cursor

  • Complete the setup wizard

  • Create an account to unlock AI features (optional but recommended)

  • Open the Osprey project folder

See also

Official docs: docs.cursor.com

Terminal-based AI assistant that works alongside your existing editor.

Platform Support: Windows (WSL), macOS, Linux

Installation Instructions

1. Prerequisites:

  • Node.js 18.0 or higher

  • Internet connection

2. Install:

# Using npm (recommended)
npm install -g @anthropic-ai/claude-code

# Or using Homebrew (macOS)
brew install anthropic/tap/claude-code

3. Verify Installation:

claude --version

4. Authenticate:

claude auth login

This opens your browser to sign in with your Anthropic account.

5. Update:

# Using npm
npm update -g @anthropic-ai/claude-code

# Using Homebrew
brew upgrade claude-code

See also

Official docs: docs.anthropic.com


Accessing Workflow Files#

Osprey’s AI workflow files are bundled with the installed package. Choose the method that fits your AI tool:

Option 1: Copy to Project (Any AI Tool)

Copy tasks to your project’s .ai-tasks/ directory for use with any AI assistant:

# Browse tasks interactively (recommended)
osprey tasks

# Or copy directly by name
osprey tasks copy pre-merge-cleanup

Then reference in your AI assistant:

@.ai-tasks/pre-merge-cleanup/instructions.md Scan my changes

Option 2: Install as Claude Code Skills

For Claude Code users, install tasks as skills for automatic discovery:

# Install a task as a Claude Code skill
osprey claude install migrate

Then simply ask Claude to use the skill - it discovers installed skills automatically.

Command Reference and Advanced Usage

Task Commands (browse and copy tasks)

# Interactive browser (recommended)
osprey tasks

# List all available tasks
osprey tasks list

# Copy task to project (.ai-tasks/)
osprey tasks copy pre-commit

# View task instructions
osprey tasks show pre-commit

# Get path to task file
osprey tasks path pre-commit

Claude Commands (manage Claude Code skills)

# Install task as Claude Code skill
osprey claude install migrate

# Install with force overwrite
osprey claude install migrate --force

# List installed and available skills
osprey claude list

Viewing Available Tasks

List all tasks bundled with Osprey:

osprey tasks list

This will show tasks like:

migrate                          Upgrade downstream projects to newer OSPREY versions
pre-commit                       Validate code before commits
testing-workflow                 Comprehensive testing guide
commit-organization              Organize changes into atomic commits
pre-merge-cleanup                Detect loose ends before merging
ai-code-review                   Review AI-generated code
docstrings                       Write Sphinx-compatible docstrings
comments                         Write purposeful inline comments
release-workflow                 Create releases with proper versioning
update-documentation             Keep docs in sync with code changes
create-capability                Create new capabilities in Osprey apps
channel-finder-pipeline-selection   Select appropriate Channel Finder pipelines
channel-finder-database-builder  Build channel finder databases

Skill Auto-Generation

Tasks with skill_description in their frontmatter can be installed as Claude Code skills without requiring custom wrappers:

# List installable skills (shows auto-generated)
osprey claude list

# Install any skill-ready task
osprey claude install create-capability

Interactive Menu

You can also access tasks from the interactive menu:

# Launch interactive menu
osprey

# Select: [>] tasks - Browse AI assistant tasks
# Or: [>] claude - Manage Claude Code skills

Version Updates

Task files are version-locked with your installed Osprey version. After upgrading Osprey, reinstall tasks to get updates:

# After upgrading Osprey
pip install --upgrade osprey-framework

# Reinstall tasks
osprey claude install migrate --force

Workflow Catalog#

Fast workflows for common tasks (< 5 minutes).

πŸ” Pre-Merge Cleanup

Scan for common issues before committing.

πŸ” Pre-Merge Cleanup
πŸ“ Docstrings

Generate proper docstrings for functions and classes.

πŸ“ Docstrings
πŸ’¬ Comments

Add strategic comments to complex code.

πŸ’¬ Comments

Comprehensive workflows for development tasks (10-30 minutes).

πŸ§ͺ Testing Strategy

Cost-aware testing: unit, integration, or e2e?

πŸ§ͺ Testing Strategy
πŸ“¦ Commit Organization

Organize changes into atomic commits with CHANGELOG entries.

πŸ“¦ Commit Organization
πŸ“š Documentation Updates

Identify and update documentation that needs changes.

πŸ“š Documentation Updates
πŸ€– AI Code Review

Review AI-generated code for quality and correctness.

πŸ€– AI Code Review
πŸ”§ Create Capability

Build new capabilities for Osprey applications.

πŸ”§ Create Capability
πŸ” Channel Finder Pipeline Selection

Choose the right pipeline for your control system.

πŸ” Channel Finder Pipeline Selection
πŸ—„οΈ Channel Finder Database Builder

Build high-quality channel databases with AI assistance.

πŸ—„οΈ Channel Finder Database Builder

Complete workflows for releases and major changes (1-2 hours).

🚒 Release Process

Complete release workflow with testing, versioning, and deployment.

🚒 Release Workflow

Detailed Workflow Guides#

Tip

First-time setup: Before using any workflow, copy it to your project:

osprey tasks copy pre-merge-cleanup

Then use @.ai-tasks/<task>/instructions.md in your AI assistant.

πŸ” Pre-Merge Cleanup#

View task file

Command Line:

./scripts/premerge_check.sh

Example:

@.ai-tasks/pre-merge-cleanup/instructions.md Scan my uncommitted changes

What it checks:

  • Debug code (print(), breakpoint(), etc.)

  • Missing or incomplete docstrings

  • TODO/FIXME comments

  • Missing CHANGELOG entries

  • Import organization


πŸ“¦ Commit Organization#

View task file

Example:

@.ai-tasks/commit-organization/instructions.md Help me organize my commits

Best for:

  • Feature branches with multiple related changes

  • Refactoring efforts spanning multiple files

  • Bug fixes that touch multiple components

  • First-time contributors organizing their PR

Note

Each commit gets its own CHANGELOG entry. Don’t batch all entries at the start!


πŸ§ͺ Testing Strategy#

View task file

Example:

@.ai-tasks/testing-workflow/instructions.md What type of test should I write?

Decision Framework:

Test Type

When to Use

Cost/Speed

Unit

Pure functions, business logic, utilities

⚑ Fast, cheap

Integration

Component interactions, API endpoints

βš™οΈ Medium speed/cost

E2E

Critical user flows, deployment validation

🐌 Slow, expensive


πŸ“š Documentation Updates#

View task file

Example:

@.ai-tasks/update-documentation/instructions.md What docs need updating?

πŸ“ Docstrings#

View task file

Example:

@.ai-tasks/docstrings/instructions.md Write a docstring for this function

πŸ’¬ Comments#

View task file

Example:

@.ai-tasks/comments/instructions.md Add comments to explain this logic

πŸ€– AI Code Review#

View task file

Example:

@.ai-tasks/ai-code-review/instructions.md Review this AI-generated code

πŸ”§ Create Capability#

View task file

Install as Claude Code skill:

osprey claude install create-capability

Example:

@.ai-tasks/create-capability/instructions.md Help me create a new capability

What it covers:

  • Requirements gathering (inputs, outputs, dependencies)

  • Context class design (data structures)

  • Capability implementation (business logic)

  • Registry configuration

  • Testing patterns

Interactive workflow: The task guides you through questions before writing code, ensuring proper design of context classes, error handling, and registry entries.


πŸ” Channel Finder Pipeline Selection#

View task file

Example:

@.ai-tasks/channel-finder-pipeline-selection/instructions.md Help me select the right Channel Finder pipeline.

πŸ—„οΈ Channel Finder Database Builder#

View task file

Example:

@.ai-tasks/channel-finder-database-builder/instructions.md Help me build my Channel Finder database.

🚒 Release Workflow#

View task file

Example:

@.ai-tasks/release-workflow/instructions.md Guide me through releasing v0.9.8

Best Practices#

Do:

  • Reference specific workflows with @ mentions

  • Provide context about what you’re working on

  • Review all AI-generated code carefully

  • Run tests to verify AI changes

  • Check for security issues in AI code

Don’t:

  • Blindly accept AI suggestions

  • Skip testing AI-generated code

  • Assume AI knows project-specific details

  • Skip pre-merge cleanup checks

  • Use AI to write every single line

  • Skip human code review


Example: Adding a Capability with AI#

1. Use the create-capability workflow:

@.ai-tasks/create-capability/instructions.md
Help me create a new capability for archiver data retrieval.

Or install as a Claude Code skill for automatic discovery:

osprey claude install create-capability

Then simply ask Claude: β€œHelp me create a new capability for archiver data”

The workflow will guide you through:

  • Requirements gathering (what data, inputs, outputs)

  • Context class design

  • Capability implementation

  • Registry configuration

2. Add appropriate tests:

@.ai-tasks/testing-workflow/instructions.md
My capability calls an external API. Should I write unit or integration tests?

3. Update documentation:

@.ai-tasks/update-documentation/instructions.md
I added a new archiver capability. What documentation needs updating?

4. Pre-commit cleanup:

@.ai-tasks/pre-merge-cleanup/instructions.md
Scan my uncommitted changes for issues

5. Organize commits:

@.ai-tasks/commit-organization/instructions.md
Help me organize these changes into atomic commits with CHANGELOG entries

See also

Explore More:

Get Started:

Run osprey tasks list to see available tasks, then reference one with your next change!