qubinode_navigator / rules
Cursor rule1 starsChanged 11 months agoMITView on GitHub
You are helping manage Qubinode Navigator, an enterprise infrastructure automation platform with PydanticAI-based orchestration (ADR-0063, ADR-0066). The AI Assistant includes a multi-agent system for intent-based deployment: When working with DAGs: - Use """ (triple double quotes) for bash_command, never ''' - DAG IDs must be snake_case matching filename - Use ASCII markers: [OK], [ERROR], [WARN], [INFO], [SKIP] - No string concatenation in bash_command
- Reads credentials
- Sends data out
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/adr-reference.mdcCursor rule
- .cursor/rules/dag-development.mdcCursor rule
- .cursor/rules/diagnostics.mdcCursor rule
- .cursor/rules/infrastructure-services.mdcCursor rule
- .cursor/rules/rag-knowledge.mdcCursor rule
- .cursor/rules/system-operations.mdcCursor rule
- .cursor/rules/troubleshooting.mdcCursor rule
- .cursor/rules/vm-operations.mdcCursor rule
- github-issue-resolverSkill
The file
We split this qubinode-overview.mdc into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 52
When working with DAGs:
- Very specific: line 53
Use """ (triple double quotes) for bash_command, never '''
- Very specific: line 55
Use ASCII markers: [OK], [ERROR], [WARN], [INFO], [SKIP]
- Distinctive: line 56
No string concatenation in bash_command
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
globs:
alwaysApply: true
---
# Qubinode Navigator - AI Assistant Context
You are helping manage Qubinode Navigator, an enterprise infrastructure automation platform with **PydanticAI-based orchestration** (ADR-0063, ADR-0066).
## Architecture Overview
- **AI Assistant** (port 8080): PydanticAI orchestrator + RAG knowledge base
- `/orchestrator/intent` - Natural language deployment (main interface)
- `/orchestrator/observe` - DAG monitoring with Observer Agent
- `/orchestrator/dags` - DAG discovery
- `/orchestrator/status` - Check API keys and availability
- **Airflow** (port 8888): Workflow orchestration for VM provisioning and deployments
- **MCP Server** (port 8889): Tool API for AI integrations
- **PostgreSQL** (port 5432): Metadata, pgvector for RAG embeddings
- **Marquez** (port 5001/3000): OpenLineage lineage tracking
## PydanticAI Orchestrator (ADR-0063, ADR-0066)
The AI Assistant includes a multi-agent system for intent-based deployment:
- **Manager Agent**: Analyzes user intent, finds matching DAGs, creates execution plans
- **Developer Agent**: Validates DAGs, checks prerequisites (templates, resources)
- **Observer Agent**: Monitors DAG runs, detects shadow errors, provides recommendations
### Intent-Based Deployment Example
```bash
# Deploy infrastructure using natural language
curl -X POST http://localhost:8080/orchestrator/intent \
-H "Content-Type: application/json" \
-d '{"intent": "Deploy FreeIPA", "auto_execute": true}'
# Monitor deployment
curl -X POST "http://localhost:8080/orchestrator/observe?dag_id=freeipa_deployment"
```
## Key Directories
- `airflow/dags/` - Airflow DAG definitions
- `airflow/plugins/qubinode/` - Custom operators (KcliVMCreate/Delete/List, PydanticAIOperator)
- `docs/adrs/` - Architecture Decision Records (60+ ADRs)
- `ai-assistant/` - AI service with PydanticAI orchestrator
- `scripts/development/deploy-qubinode.sh` - One-shot deployment script
## Critical Standards (ADR-0045)
When working with DAGs:
- Use `"""` (triple double quotes) for bash_command, never `'''`
- DAG IDs must be snake_case matching filename
- Use ASCII markers: `[OK]`, `[ERROR]`, `[WARN]`, `[INFO]`, `[SKIP]`
- No string concatenation in bash_command
## Common Commands
```bash
# Deployment (CI-tested method)
sudo -E ./scripts/development/deploy-qubinode.sh
# DAG Management (use sudo for root containers)
sudo podman exec airflow-scheduler airflow dags list
sudo podman exec airflow-scheduler airflow dags unpause <dag_id>
sudo podman exec airflow-scheduler airflow dags trigger <dag_id>
# VM Management (use sudo!)
sudo kcli list vm
sudo kcli info vm <name>
# Service Status
sudo podman ps
curl http://localhost:8080/orchestrator/status
curl http://localhost:8888/health
```
## Environment Variables
```bash
OPENROUTER_API_KEY=sk-or-... # Required for PydanticAI orchestrator
USE_LOCAL_MODEL=false # Skip local llama.cpp model
QUBINODE_ENABLE_AIRFLOW=true # Enable Airflow stack
```
## Related ADRs
- ADR-0063: PydanticAI Core Agent Orchestrator
- ADR-0066: Developer Agent DAG Validation and Smart Pipelines
- ADR-0067: Self-Hosted Runner E2E Testing
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

