Skip to content
project-overview logo

CaCrFeedFormula Project Overview

project-overview

Background knowledge about CaCrFeedFormula project architecture, features, and context. Automatically loaded for AI reference, not directly user-invocable.

SKILL.md

Full skill instructions

CaCrFeedFormula Project Overview

Intelligent Feed Formula Optimization System built with Tauri + Rust + React TypeScript.

Project Context

CaCrFeedFormula is an industrial-grade desktop application for feed formula optimization, integrating AI-assisted optimization, linear programming (HiGHS solver), and comprehensive feed management capabilities.

Core Technology Stack

Backend (Rust 2021):

  • Framework: Tauri 2.9.0 + Tokio 1.37 (full async runtime)
  • Database: SQLite + SQLx 0.7 (compile-time type safety)
  • Optimization: HiGHS 1.12 (industrial-grade LP solver)
  • Caching: Moka 0.12 (high-performance concurrent cache)
  • Type Binding: specta 2.0 + tauri-specta 2.0 (auto TypeScript generation)
  • AI Integration: reqwest + eventsource-stream (streaming responses)
  • Parallel Compute: Rayon 1.8

Frontend (React 19.1 + TypeScript 5.8):

  • UI Framework: Ant Design 5.26 + Tailwind CSS 4.1
  • State Management: TanStack Query 5.17
  • Build Tool: Vite 7.0
  • Visualization: Recharts 2.15
  • Animation: Framer Motion 11

Project Structure

cacrfeedformula/
├── src/                          # Rust backend source
│   ├── ai/                       # AI service module
│   ├── database/                 # Database connection
│   ├── formula/                  # Formula optimization core
│   ├── material/                 # Material management
│   ├── species/                  # Species management
│   ├── factory/                  # Factory management
│   ├── premix/                   # Premix design
│   ├── profit/                   # Profit/​loss analysis
│   ├── prediction/               # Nutrition prediction
│   ├── production_batch/         # Production batch management
│   └── system/                   # System services
├── frontend/                     # React frontend source
│   └── src/
│       ├── components/           # React components
│       │   ├── AIChat/          # AI chat component
│       │   └── common/          # Common components
│       └── bindings.ts          # Auto-generated type bindings
├── migrations/                   # Database migrations
└── .claude/
    ├── skills/                   # Custom Claude Code skills
    └── rules/                    # Detailed development standards

Core Features

1. Formula Optimization System

  • Linear programming optimization (cost minimization)
  • Manual formula design
  • Premix reverse calculation design
  • Formula version management
  • Formula analysis and reporting
  • 167 Tauri commands for comprehensive formula operations

2. Data Management

  • Material management (built-in China Feed Composition & Nutrition Value Database)
  • Species management (multiple species, growth stages, nutrition standards)
  • Factory management (multi-factory data isolation)
  • Production batch management (batch lifecycle, material requirement calculation)
  • Inventory management (stock check, variance analysis, purchase planning)

3. Analysis & Decision Support

  • Profit/​loss analysis (comprehensive cost accounting, real-time P&L)
  • Nutrition prediction (NRC-based energy prediction)
  • Sensitivity analysis (shadow prices, bottleneck constraint identification)

4. AI Intelligent Assistant

  • Context-aware professional feed formula consultation
  • Streaming responses with typewriter effect
  • Multi-turn conversations
  • Supports OpenAI, DeepSeek, OpenRouter platforms

Project Characteristics

  1. Desktop Application: Not a web app; cross-platform desktop app built with Tauri
  2. High-Performance Computing: Rust backend ensures speed and stability
  3. Type Safety: specta auto-generates TypeScript types, ensuring frontend-backend type consistency
  4. Async-First: Comprehensive use of Tokio async runtime
  5. Industrial-Grade Optimization: HiGHS solver supports large-scale formula optimization
  6. AI Integration: Streaming AI responses with real-time typewriter effect

Development Workflow Context

Typical Development Scenarios:

  • Formula Engine: Implementing complex linear programming algorithms with HiGHS
  • Material Database: Managing large datasets with SQLite + SQLx
  • Desktop UI: Building responsive Ant Design interfaces with React 19
  • Tauri Commands: Creating type-safe Rust ↔ TypeScript communication
  • AI Features: Integrating streaming AI responses into desktop workflows
  • Batch Processing: Handling production batch calculations and scheduling

Key Integration Points:

  • Rust ↔ TypeScript: specta generates bindings.ts after every Rust change
  • Database ↔ Business Logic: SQLx macros provide compile-time SQL validation
  • Frontend ↔ Backend: TanStack Query manages server state via Tauri commands
  • AI ↔ User: Streaming SSE responses with real-time UI updates

Project Scale

  • 167 Tauri commands across 10 modules
  • Comprehensive feed database with 1000+ materials
  • Multi-tenancy support with factory-level data isolation
  • Complex optimization handling 100+ variables and 50+ constraints

Development Standards

The project follows strict development standards documented in .claude/​rules/:

  • Rust backend standards (02-rust-backend-standards.md)
  • React frontend standards (03-react-frontend-standards.md)
  • Database standards (04-database-standards.md)
  • LSP usage standards (05-lsp-usage-standards.md)

All these standards are enforced via automated hooks and skills.

When This Context Is Useful

This project overview is automatically loaded to help Claude understand:

  • Architecture decisions when proposing changes
  • Technology choices when solving problems
  • Integration patterns when adding features
  • Scale considerations when optimizing performance
  • Domain context (feed formulation, nutrition, optimization)

This knowledge enables Claude to make more informed, project-appropriate recommendations without requiring repeated explanations of the project's nature and structure.

More skills from diegosouzapw

accessibility logo
diegosouzapw/awesome-omni-skill

accessibility

Accessibility guidelines for VS Code features — covers accessibility help dialogs, accessible views, verbosity settings, accessibility signals, ARIA alerts/status announcements, keyboard navigation, and ARIA labels/roles. Applies to both new interactive UI surfaces and updates to existing feature...

62 1
View
mermaid-diagrams logo
diegosouzapw/awesome-omni-skill

mermaid-diagrams

Mermaid diagram creation for flowcharts, sequences, ERDs, and more. Generate diagrams from text in markdown files. Use for documentation, architecture diagrams, and visual representations. Triggers on mermaid, flowchart, sequence diagram, ERD, entity relationship, gantt chart, pie chart, class di...

62 1
View
tauri2-react-rust logo
diegosouzapw/awesome-omni-skill

tauri2-react-rust

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built...

62 1
View
fp-ts-errors logo
diegosouzapw/awesome-omni-skill

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

62 0
View
ring:pre-dev-research logo
diegosouzapw/awesome-omni-skill

ring:pre-dev-research

Gate 0 research phase for pre-dev workflow. Dispatches 3 parallel research agents to gather codebase patterns, external best practices, and framework documentation BEFORE creating PRD/TRD. Outputs research.md with file:line references.

62 0
View
create-assistant logo
diegosouzapw/awesome-omni-skill

create-assistant

Create and configure Vapi voice AI assistants with models, voices, transcribers, tools, hooks, and advanced settings. Use when building voice agents, phone bots, customer support assistants, or any conversational AI that handles phone or web calls.

62 0
View
codex-headless logo
diegosouzapw/awesome-omni-skill

codex-headless

Delegiere Aufgaben an OpenAI Codex CLI im Headless-Mode. Nutzt ChatGPT Subscription (KEIN API Key). Nur Workspace-Zugriff, KEIN System-Zugriff. Auto-Accept mit --full-auto. Web-Recherche mit --search.

62 0
View
social-media-scheduler logo
diegosouzapw/awesome-omni-skill

social-media-scheduler

Generate a full week of social media content for any topic. Outputs platform-optimized posts for Twitter/X, LinkedIn, and Instagram with hashtags and posting times.

62 0
View
Data Privacy Compliance logo
diegosouzapw/awesome-omni-skill

Data Privacy Compliance

Data privacy and regulatory compliance specialist for GDPR, CCPA, HIPAA, and international data protection laws. Use when implementing privacy controls, conducting data protection impact assessments, ensuring regulatory compliance, or managing data subject rights. Expert in consent management, da...

62 0
View
triple-review logo
diegosouzapw/awesome-omni-skill

triple-review

Reviews a task using the TRIPLE protocol, as the review agent.

62 0
View
Tech Stack & Architecture Decision logo
diegosouzapw/awesome-omni-skill

Tech Stack & Architecture Decision

Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies...

62 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View