| name | sagebase-commands |
| description | Provides quick reference for all Sagebase CLI commands and Docker operations. Activates when user asks how to run application, test, format code, manage database, or execute any Sagebase operation. Includes just commands, unified CLI, testing, formatting, and database management. |
Sagebase Commands
Purpose
Quick reference for all Sagebase CLI commands and Docker operations.
When to Activate
This skill activates automatically when:
- User asks how to run the application
- User mentions "run", "execute", "test", "format", or "database"
- User asks about Docker commands
- User needs to perform any Sagebase operation
Quick Command Reference
Just Commands (Recommended)
just up
just down
just db
just test
just format
just lint
just monitoring
just process-minutes
just logs
just ports
See reference.md for all just commands.
Main Application Commands
just exec uv run sagebase process-minutes
just exec uv run sagebase scrape-politicians --all-parties
just exec uv run sagebase streamlit
just exec uv run sagebase monitoring
just exec uv run sagebase coverage
Testing Commands
just test
just exec uv run pytest tests/unit/domain/test_speaker_domain_service.py
just exec uv run pytest --cov=src --cov-report=html
Code Quality Commands
just format
just lint
uv run --frozen pyright
Database Commands
just db
just exec uv run sagebase database backup
just exec uv run sagebase database restore backup.sql
just clean && just up
Migration Commands (Alembic)
just migrate
just migrate-rollback
just migrate-current
just migrate-history
just migrate-new "add_column_to_table"
Command Categories
- Environment Setup: Docker, dependencies, GCS
- Application Execution: Process minutes, scrape, UI
- Testing: pytest, coverage, evaluation
- Code Quality: ruff, pyright, pre-commit
- Database: backup, restore, connect
- Migrations: Alembic (migrate, rollback, history)
- Conference Members: Extract, match, create affiliations
- Parliamentary Groups: Extract, match, memberships
Detailed Reference
For complete command documentation with all options and examples, see reference.md.
Workflow Examples
For common workflows combining multiple commands, see examples.md.
Templates and Scripts
templates/: Command templates for common operations
scripts/: Helper scripts for complex workflows