makefile-scripting

makefile-scripting is a cursor rule for Cursor from madebyaris/poinf-of-sales. It costs 0 tokens per session (2,544 once invoked), scanned C, original, MIT.

A set of Makefile and shell-script patterns for a point-of-sale system. A Makefile is a file of short commands for common development and operations tasks.

In plain words
What is it for?
It is for structuring commands such as development and production startup, Docker operations, backups, database access, tests, linting, and formatting.
Why use it?
It keeps commands for starting services, managing databases, testing, formatting, and cleanup organised and consistent.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It is for structuring commands such as development and production startup, Docker operations, backups, database access, tests, linting, and formatting.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/madebyaris/poinf-of-sales/makefile-scripting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/madebyaris/poinf-of-sales

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for makefile-scripting

README.md
[![agentmods](https://agentmods.dev/badge/rules/madebyaris/poinf-of-sales/makefile-scripting/github.svg)](https://agentmods.dev/rules/madebyaris/poinf-of-sales/makefile-scripting)
Your own site
<a href="https://agentmods.dev/rules/madebyaris/poinf-of-sales/makefile-scripting"><img src="https://agentmods.dev/badge/rules/madebyaris/poinf-of-sales/makefile-scripting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for makefile-scripting

Your own site · 80×15
<a href="https://agentmods.dev/rules/madebyaris/poinf-of-sales/makefile-scripting"><img src="https://agentmods.dev/badge/rules/madebyaris/poinf-of-sales/makefile-scripting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,544 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02544
Opus 5 $0.00000 $0.01272
Sonnet 5 $0.00000 $0.00509
Haiku 4.5 $0.00000 $0.00254

Measured 11d ago against content hash 5d88f8b99496, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

makefile-scripting scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$TEMP_DIR"
.cursor/rules/makefile-scripting.mdc · 348 lines

How it starts

The opening of the file, as written. The whole thing — 348 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Makefile & Shell Scripting Guidelines

Makefile Structure

Main Makefile Organization

Follow the patterns established in Makefile:

Standard Makefile Headers

# POS System - Development Makefile
# Usage: make <command>

.PHONY: help dev prod up down build logs clean backup restore create-admin remove-data db-shell test lint format

# Default target
.DEFAULT_GOAL := help

# Colors for output
GREEN := \033[0;32m
YELLOW := \033[0;33m
RED := \033[0;31m
BLUE := \033[0;34m
NC := \033[0m # No Color

Command Categories

Organize commands into logical groups:

  1. Development Commands - dev, prod, up, down, restart, build
  2. Database Commands - create-admin, remove-data, backup, restore, db-shell, db-reset
  3. Utility Commands - logs, status, clean, test, lint, format
  4. Quick Shortcuts - start, stop, install

Help System Pattern

## Help - Display available commands
help:
	@echo "$(BLUE)POS System - Available Make Commands$(NC)"
	@echo ""
	@echo "$(GREEN)Development Commands:$(NC)"
	@echo "  make dev          - Start development environment with hot reloading"
	# ... more help text

Docker Integration

Docker Compose File Selection

# Docker compose files
COMPOSE_DEV := docker-compose.dev.yml
COMPOSE_PROD := docker-compose.yml

# Development environment
dev:
	@docker compose -f $(COMPOSE_DEV) up --build

# Production environment  
prod:
	@docker compose -f $(COMPOSE_PROD) up -d --build

Container Management

# Check container status before operations
up:
	@echo "$(GREEN)⬆️ Starting Docker containers...$(NC)"
	@docker compose -f $(COMPOSE_DEV) up -d
	@echo "$(GREEN)✅ Containers started in background$(NC)"

down:
	@echo "$(YELLOW)⬇️ Stopping Docker containers...$(NC)"
	@docker compose -f $(COMPOSE_DEV) down
	@docker compose -f $(COMPOSE_PROD) down 2>/dev/null || true
	@echo "$(GREEN)✅ Containers stopped$(NC)"

Shell Script Patterns

Script Structure

Follow the patterns from scripts/ directory:

Read the full file on GitHub · 348 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 348 lines · 0 tokens per session scan C 5d88f8b99496

Subscribe to this mod's changes

makefile-scripting is a cursor rule published in the GitHub repository madebyaris/poinf-of-sales (142 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,544 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.