livestock-tracker

Track individual animals, record health events, vaccinations, weights, and breeding events. Use when asked to add an animal to the herd, log a vaccination, record body weight, track a treatment, set up a breeding event, check overdue vaccinations, or view the animal timeline. Triggers include "add animal", "record vaccination", "log weight", "track treatment", "breeding event", "overdue vaccines", "animal health history", "herd overview", or any task involving individual animal management.

7 stars

Best use case

livestock-tracker is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Track individual animals, record health events, vaccinations, weights, and breeding events. Use when asked to add an animal to the herd, log a vaccination, record body weight, track a treatment, set up a breeding event, check overdue vaccinations, or view the animal timeline. Triggers include "add animal", "record vaccination", "log weight", "track treatment", "breeding event", "overdue vaccines", "animal health history", "herd overview", or any task involving individual animal management.

Teams using livestock-tracker should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/livestock-tracker/SKILL.md --create-dirs "https://raw.githubusercontent.com/heldernoid/agentic-build-templates/main/projects/agriculture-farming/livestock-tracker/skills/livestock-tracker/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/livestock-tracker/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How livestock-tracker Compares

Feature / Agentlivestock-trackerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Track individual animals, record health events, vaccinations, weights, and breeding events. Use when asked to add an animal to the herd, log a vaccination, record body weight, track a treatment, set up a breeding event, check overdue vaccinations, or view the animal timeline. Triggers include "add animal", "record vaccination", "log weight", "track treatment", "breeding event", "overdue vaccines", "animal health history", "herd overview", or any task involving individual animal management.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# livestock-tracker

Manage your herd's health records, vaccination schedules, weight trends, and breeding events from one self-hosted app.

## When to Use

- Registering a new animal to the herd
- Recording a vaccination and setting the next due date
- Logging body weights for one or multiple animals at once
- Adding a health event (treatment, vet visit, injury, observation)
- Recording a breeding event and tracking expected birth dates
- Checking which vaccinations are overdue or due within the next 7 days
- Viewing the full health timeline for a specific animal

## Key Concepts

### Animals

Each animal has a name, tag number, species, breed, sex, date of birth, and status. Status values are:

| Status | Meaning |
|---|---|
| active | Healthy and in the herd |
| treatment | Currently receiving medical treatment |
| quarantine | Isolated, under observation |
| sold | No longer on the farm |
| deceased | Died or euthanized |

### Health Events

Health events capture any veterinary activity: vaccinations, treatments, vet visits, injuries, or routine observations. Each event can have a follow-up date, which generates a reminder notification.

Vaccinations are stored in a separate `vaccinations` table with a `due_date` field for the next booster. The daily cron job uses this field to generate notifications.

### Weight Records

Weight records are stored per animal with a date. The animal detail page shows a Chart.js line chart of all weight records. Average daily gain (ADG) is calculated from the first and latest records.

### Breeding Events

A breeding event links a dam (mother) to a sire (father, either from the herd or external). Expected birth date is auto-calculated from the species gestation period if not provided manually:

| Species | Gestation (days) |
|---|---|
| Cattle | 283 |
| Sheep | 147 |
| Goat | 150 |
| Pig | 114 |

### Notifications

The daily cron job at 06:00 writes notifications for:
- Vaccinations due within the reminder window (default 7 days)
- Overdue vaccinations (past due date)
- Upcoming births (expected within 14 days, configurable)
- Health event follow-up dates

Notifications accumulate in the database until dismissed. They do not send email.

## API Quick Reference

```bash
# List all animals (with herd stats)
curl http://localhost:3002/api/animals

# Add an animal
curl -X POST http://localhost:3002/api/animals \
  -H "Content-Type: application/json" \
  -d '{"name":"Hazel","tag_number":"A149","species":"cattle","breed":"Hereford","sex":"female","date_of_birth":"2023-03-15"}'

# Get animal with latest weight and next vaccination
curl http://localhost:3002/api/animals/{id}

# Get animal's full event timeline
curl http://localhost:3002/api/animals/{id}/timeline

# Record a vaccination
curl -X POST http://localhost:3002/api/vaccinations \
  -H "Content-Type: application/json" \
  -d '{"animal_id":"...","vaccine_name":"IBR/BVD Combo","administered_date":"2025-04-18","due_date":"2026-04-18","batch_number":"IBR-2025-04"}'

# List overdue vaccinations
curl "http://localhost:3002/api/vaccinations?overdue=1"

# List upcoming vaccinations (within reminder window)
curl http://localhost:3002/api/vaccinations/upcoming

# Record a weight
curl -X POST http://localhost:3002/api/weights \
  -H "Content-Type: application/json" \
  -d '{"animal_id":"...","weight_kg":285,"recorded_date":"2025-04-18"}'

# Add a health event
curl -X POST http://localhost:3002/api/health-events \
  -H "Content-Type: application/json" \
  -d '{"animal_id":"...","event_type":"treatment","event_date":"2025-04-18","title":"Foot bath treatment","cost_usd":24.00,"follow_up_date":"2025-04-25"}'

# Record a breeding event
curl -X POST http://localhost:3002/api/breeding \
  -H "Content-Type: application/json" \
  -d '{"dam_id":"...","sire_id":"...","bred_date":"2024-10-15"}'

# List active notifications
curl http://localhost:3002/api/notifications

# Dismiss a notification
curl -X PUT http://localhost:3002/api/notifications/{id}/dismiss
```

## Environment Variables

| Variable | Description | Default |
|---|---|---|
| PORT | HTTP port | 3002 |
| DATA_DIR | SQLite directory | ./data |
| AUTH_PASSWORD | Optional login password | (empty) |
| NODE_ENV | development or production | development |
| SESSION_SECRET | Required in production | (required) |
| REMINDER_DAYS_AHEAD | Days before due date to generate reminder | 7 |
| DEFAULT_TIMEZONE | Initial timezone for settings | America/Chicago |

## Troubleshooting

### Overdue vaccinations not appearing in notifications

1. Verify the cron job is running: check server logs for `vaccination-check` output at 06:00
2. Confirm the vaccination has a `due_date` set: `GET /api/vaccinations/{id}`
3. Check `dismissed` is `0` on the notification: dismissed notifications do not appear in active list
4. Run a manual check by triggering the job endpoint if available in development mode

### Expected birth date not calculating

The auto-calculation requires `species` to be set on the dam's animal record. If `bred_date` is set but `expected_birth_date` is null, check the species value with `GET /api/animals/{dam_id}`.

### Weight chart not showing

Flow: weight records must be present for the animal. Check `GET /api/weights?animal_id={id}` returns records sorted by `recorded_date` asc.

Related Skills

habit-tracker

7
from heldernoid/agentic-build-templates

Self-hosted daily habit check-in app with streaks, calendar heatmap, and weekly email reports. Use when you need to record a habit check-in, query streak data, create or update habits, review weekly progress, or manage categories. Triggers include "log habit", "check in", "mark done", "streak", "habit progress", "weekly report", or any task involving personal habit tracking.

sleep-tracker

7
from heldernoid/agentic-build-templates

No description provided.

nutrition-tracker

7
from heldernoid/agentic-build-templates

No description provided.

medication-tracker

7
from heldernoid/agentic-build-templates

Track medications with dosage schedules, log doses taken or skipped, monitor adherence rates, manage refill reminders, and check basic drug interactions. Use when a user needs to manage their medication schedule, log dose history, or review adherence.

deployment-tracker

7
from heldernoid/agentic-build-templates

Track every deployment event via CLI or REST API. Searchable web dashboard with service timelines, rollback tracking, and per-service deploy tokens.

terminal-time-tracker

7
from heldernoid/agentic-build-templates

Track time spent on projects from the terminal. Use when starting/stopping timers, logging time, viewing daily or weekly reports, or exporting time data. Triggers include "track time", "time tracker", "ttm", "log hours", "time report", "how much time", "start timer".

soil-test-tracker

7
from heldernoid/agentic-build-templates

Record soil test results, track nutrient levels over time, and log soil amendments. Use when asked to add a soil test, check which nutrients are deficient, view field nutrient history, record a lime or fertilizer application, or compare field health across tests. Triggers include "soil test", "soil pH", "nutrient deficiency", "add lime", "compost application", "phosphorus low", "organic matter", "amendment record", or any task involving soil chemistry tracking.

Skill: germination-tracker

7
from heldernoid/agentic-build-templates

## Purpose

SKILL.md - market-sales-tracker

7
from heldernoid/agentic-build-templates

## Overview

Skill: Uptime Monitoring

7
from heldernoid/agentic-build-templates

## Overview

Skill: Status Page

7
from heldernoid/agentic-build-templates

## Overview

Skill: unit-conversion

7
from heldernoid/agentic-build-templates

## Overview