зеркало из
https://github.com/docxology/cognitive.git
synced 2025-10-29 12:16:04 +02:00
2.4 KiB
2.4 KiB
Cursor Integration Guide
Overview
Cursor is an AI-augmented IDE that enhances development workflow through intelligent code assistance. This guide covers integration with our cognitive modeling framework.
Key Features
- AI-powered code completion
- Natural language code generation
- Intelligent code navigation
- Integrated documentation assistance
Setup
- Install Cursor from cursor.sh
- Configure project settings:
{ "ai.enableCompletion": true, "ai.enableChat": true, "editor.formatOnSave": true } - Link with git_workflow for version control
Workflow Integration
Template Generation
Use Cursor's AI to generate new templates:
- Open template directory:
templates/node_templates/ - Use natural language to describe template needs
- Refine with template_guide standards
Code Generation
Generate code for:
- active_inference_agents implementation
- belief_networks structures
- observation_models components
Documentation
Cursor can help maintain:
- api_reference documentation
- Code comments alignment with code_style
- Markdown formatting for obsidian_usage
Best Practices
AI Prompting
- Be specific about implementation details
- Reference existing code_organization
- Include context from key_concepts
Code Review
- Use AI to review against code_style
- Check compatibility with testing_guide
- Verify linking_patterns in documentation
Version Control
- Integrate with git_workflow
- Maintain clean commit history
- Document changes effectively
Tips and Tricks
Quick Actions
Cmd/Ctrl + I- AI inline suggestionsCmd/Ctrl + L- AI chatCmd/Ctrl + P- Quick file navigation
Context-Aware Completion
- Uses project structure understanding
- Aware of node_types and templates
- Maintains consistent code_style
Documentation Generation
- Auto-generates docstrings
- Creates markdown documentation
- Updates api_reference
Troubleshooting
Common Issues
- AI completion not working
- Template generation errors
- Integration conflicts
See troubleshooting for detailed solutions.