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
.exeinstallermacOS: Open the
.dmgand drag to ApplicationsLinux: Install
.debor.rpmpackage 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).
Scan for common issues before committing.
Generate proper docstrings for functions and classes.
Add strategic comments to complex code.
Comprehensive workflows for development tasks (10-30 minutes).
Cost-aware testing: unit, integration, or e2e?
Organize changes into atomic commits with CHANGELOG entries.
Identify and update documentation that needs changes.
Review AI-generated code for quality and correctness.
Build new capabilities for Osprey applications.
Choose the right pipeline for your control system.
Build high-quality channel databases with AI assistance.
Complete workflows for releases and major changes (1-2 hours).
Complete release workflow with testing, versioning, and deployment.
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#
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#
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#
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#
Example:
@.ai-tasks/update-documentation/instructions.md What docs need updating?
π Docstrings#
Example:
@.ai-tasks/docstrings/instructions.md Write a docstring for this function
π€ AI Code Review#
Example:
@.ai-tasks/ai-code-review/instructions.md Review this AI-generated code
π§ Create Capability#
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#
Example:
@.ai-tasks/channel-finder-pipeline-selection/instructions.md Help me select the right Channel Finder pipeline.
ποΈ Channel Finder Database Builder#
Example:
@.ai-tasks/channel-finder-database-builder/instructions.md Help me build my Channel Finder database.
π’ Release Workflow#
Example:
@.ai-tasks/release-workflow/instructions.md Guide me through releasing v0.9.8
Best Practices#
Do:
Reference specific workflows with
@mentionsProvide 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:
List available tasks:
osprey tasks listCode Standards for coding conventions
Contributing to Osprey for environment setup
Developer Guides for technical guides
Get Started:
Run osprey tasks list to see available tasks, then reference one with your next change!
π¬ Comments#
View task file
Example: