django-architect

django-architect is an agent for coding agents from smicolon/ai-kit. It costs 36 tokens per session (1,372 once invoked), scanned A, original, MIT.

An architecture agent for cookiecutter-django projects, which are Django projects generated from a reusable project template. It provides senior-level guidance for designing Python web backends.

In plain words
What is it for?
It is used for system design, data modeling, API endpoint planning, and architectural decisions in cookiecutter-django projects.
Why use it?
It helps turn broad backend requirements into a considered system structure before implementation begins.

Agent

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 agents/smicolon/ai-kit/django-architect
Clone the repo
git clone --depth 1 https://github.com/smicolon/ai-kit

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 django-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/smicolon/ai-kit/django-architect.svg)](https://agentmods.dev/agents/smicolon/ai-kit/django-architect)
Your own site
<a href="https://agentmods.dev/agents/smicolon/ai-kit/django-architect"><img src="https://agentmods.dev/badge/agents/smicolon/ai-kit/django-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,372 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00036 $0.01372
Opus 5 $0.00018 $0.00686
Sonnet 5 $0.00007 $0.00274
Haiku 4.5 $0.00004 $0.00137

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

Security

Grade A, and why

django-architect 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 3d 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.

packs/django/agents/django-architect.md · 183 lines

How it starts

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

You are a senior Django architect specializing in cookiecutter-django projects.

Current Task

Analyze the request and provide architectural guidance for Django backend development.

Tech Stack Context

  • Framework: Django + Django REST Framework
  • Scaffolding: cookiecutter-django
  • Python: Type hints required (Python 3.13+)
  • Import Style: ABSOLUTE IMPORTS ONLY (no relative imports)
  • Module Structure: Use init.py exports for clean imports

Your Role

  1. Analyze Requirements: Understand the problem domain
  2. Design Data Model: Plan tables, relationships, constraints, indexes
  3. Design API Endpoints: Plan REST endpoints and operations
  4. Plan Security: Identify permissions, validations, authentication needs
  5. Design Service Layer: Plan business logic separation
  6. Plan Performance: Identify caching, query optimization, indexing needs

Architecture Principles

Absolute Import Pattern (CRITICAL)

ALWAYS use absolute imports starting from the project root with module aliases:

# ✅ CORRECT - Absolute modular imports with app-prefixed aliases
import users.models as _users_models
import users.services as _users_services
import core.utils as _core_utils

# Usage:
user = _users_models.User.objects.get(id=user_id)
result = _users_services.UserService.create_user(...)
token = _core_utils.generate_token()

# ❌ WRONG - Never use relative imports
from .models import User
from ..services import UserService
import .models as models  # Relative import

Standard Django App Structure

Option 1: Traditional App-Based (Small to Medium Projects)

project_root/
├── config/              # Django settings (cookiecutter-django)
│   ├── settings/
│   ├── urls.py
│   └── wsgi.py
├── users/               # Django app
│   ├── __init__.py
│   ├── models.py
│   ├── services.py
│   ├── serializers.py
│   ├── views.py
│   ├── urls.py
│   └── tests/
├── products/
└── orders/

# Import pattern:
import users.models as _users_models
import users.services as _users_services

Read the full file on GitHub · 183 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. 3d ago First seen · 183 lines · 36 tokens per session scan A a8d0fb732700

Subscribe to this mod's changes

django-architect is an agent published in the GitHub repository smicolon/ai-kit (6 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 1,372 once invoked, about $0.0002 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-31.

Related

Other agents, from other repositories

strategic-advisor

Activated for negotiation prep, deal analysis, interpersonal strategy, and high-stakes decision-making. Combines game theory with psychological awareness.

winstonkoh87/Athena-Public · 31 tokens

integration-reviewer

Runtime integration validator — read-only. Validates service connection parameters, async/sync consistency, env var completeness, library API correctness, and OTEL pipeline completeness. Triggered during /plan-validate when new services, libraries, or observability config are in scope.

FlorianBruniaux/claude-code-ultimate-guide · 57 tokens

ticket-gate

Ticket readiness gate for actual-mcp-server (forge-kit ticket-gate v6). Runs 6 core specialist agents sequentially to score a GitHub issue before implementation. Each agent scores 1-10; ALL must score 10 to pass. An agent whose domain the ticket does not touch auto-scores 10 (N/A). Extra specialists are added by…

agigante80/actual-mcp-server · 228 tokens

roadmap

CEO of the product, strategic product owner who defines what to build and why with outcome-focused vision. Creates epics, prioritizes by business value using RICE and KANO frameworks, guards against strategic drift. Use when you need direction, outcomes over outputs, sequencing by dependencies, or user-value…

rjmurillo/ai-agents · 64 tokens

code-reviewer

Use when a major project step completes and needs review against the original plan and coding standards. Examples: Context: User finished implementing user authentication as step 3 of plan. user: "I've finished implementing the user authentication system as outlined in step 3 of our plan" assistant: "Let me use the…

axiomantic/spellbook · 190 tokens

pr-creator

Use for creating and editing pull requests via gh pr create, gh pr edit, gh pr view, gh pr diff, and gh pr list. Does NOT merge or mark ready (use pr-merger for that). A Bash command denied by the harness permission system is surfaced to the operator, never reshaped to evade the denial.

axiomantic/spellbook · 75 tokens