06-architecture-management

06-architecture-management is a cursor rule for Cursor from tecnomanu/agent-rules-kit. It costs 735 tokens per session, scanned A, original, ISC.

A set of project rules for organizing different software architectures for Laravel and Next.js applications, including MVC, Domain-Driven Design, Hexagonal, App Router, and Pages Router styles.

In plain words
What is it for?
Use it to structure an Agent Rules Kit, choose architecture rules for a stack, and install packages or run commands with pnpm.
Why use it?
It keeps shared, architecture-specific, and framework-version rules separated, so projects can use consistent guidance without mixing unrelated instructions.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/tecnomanu/agent-rules-kit/06-architecture-management
Clone the repo
git clone --depth 1 https://github.com/tecnomanu/agent-rules-kit

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 06-architecture-management

README.md
[![agentmods](https://agentmods.dev/badge/rules/tecnomanu/agent-rules-kit/06-architecture-management.svg)](https://agentmods.dev/rules/tecnomanu/agent-rules-kit/06-architecture-management)
Your own site
<a href="https://agentmods.dev/rules/tecnomanu/agent-rules-kit/06-architecture-management"><img src="https://agentmods.dev/badge/rules/tecnomanu/agent-rules-kit/06-architecture-management.svg" alt="Measured on agentmods" height="20"></a>
Per session 735 This file is loaded in full into every session.
When invoked 735 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00735 $0.00735
Opus 5 $0.00367 $0.00367
Sonnet 5 $0.00147 $0.00147
Haiku 4.5 $0.00073 $0.00073

Measured 5d ago against content hash 03481aa3bd23, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

06-architecture-management scanned grade A with 0 findings 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/06-architecture-management.mdc · 111 lines

How it starts

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

Architecture Management

This document explains how different architecture styles are managed for each stack in Agent Rules Kit.

Package Management

Always use pnpm to install new packages or to run commands.

Architecture Structure

Each stack can have multiple architecture styles organized in the following way:

templates/
└── stacks/
    ├── laravel/
    │   ├── base/              # Common rules for all Laravel projects
    │   ├── architectures/     # Architecture-specific rules
    │   │   ├── standard/      # Standard MVC architecture
    │   │   ├── ddd/           # Domain-Driven Design architecture
    │   │   └── hexagonal/     # Hexagonal (Ports & Adapters) architecture
    │   └── v10-11/            # Version-specific overlays
    │
    └── nextjs/
        ├── base/              # Common rules for all Next.js projects
        ├── architectures/     # Architecture-specific rules
        │   ├── app/           # App Router architecture (Next.js 13+)
        │   └── pages/         # Pages Router architecture
        └── v13/               # Version-specific overlays

Configuration

Architectures are configured in templates/kit-config.json:

{
  "[stack_name]": {
    "default_architecture": "standard",
    "version_ranges": {
      "8": {
        "name": "Laravel 8-9",
        "range_name": "v8-9"
      },
      "9": {
        "name": "Laravel 8-9",
        "range_name": "v8-9"
      },
      "10": {
        "name": "Laravel 10-11",
        "range_name": "v10-11"
      }
    },
    "globs": [
      "<root>/app/**/*.php",
      "<root>/routes/**/*.php"
    ],
    "architectures": {
      "standard": {
        "name": "Standard Architecture", 
        "globs": [...],
        "pattern_rules": {...}
      },
      "ddd": {
        "name": "Domain-Driven Design",
        "globs": [...],
        "pattern_rules": {...}
      }
    }
  }
}

Key configuration properties:

  • default_architecture: The default architecture to use if none is specified
  • version_ranges: Maps major versions to version range information
    • name: Human-readable name for the version range
    • range_name: Identifier used for version-specific directories
  • globs: File patterns to apply rules to
  • architectures: Available architecture styles for the stack
    • Each architecture can have its own globs and pattern_rules

Read the full file on GitHub · 111 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. 5d ago First seen · 111 lines · 735 tokens per session scan A 03481aa3bd23

Subscribe to this mod's changes

06-architecture-management is a cursor rule published in the GitHub repository tecnomanu/agent-rules-kit (35 stars, last pushed 11mo ago), licensed ISC. It adds 735 tokens to every session, about $0.0037 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.