tlamatini-allowed-hosts-tighten

tlamatini-allowed-hosts-tighten is a skill for Claude Code, Codex from XAIHT/Tlamatini. It costs 36 tokens per session (570 once invoked), scanned A, original, MIT.

A Django security change that replaces the setting allowing requests from any website with a list of approved host names, while saving a backup of the settings file.

In plain words
What is it for?
Use it to set Django's ALLOWED_HOSTS to a specific whitelist and preserve the previous settings.py before editing.
Why use it?
It reduces the risk of forged-host attacks caused by an unrestricted host setting and keeps the original file available for rollback.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to set Django's ALLOWED_HOSTS to a specific whitelist and preserve the previous settings.py before editing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xaiht/tlamatini/tlamatini_allowed_hosts_tighten
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.

Any agent
npx skills add XAIHT/Tlamatini --skill tlamatini_allowed_hosts_tighten
Clone the repo
git clone --depth 1 https://github.com/XAIHT/Tlamatini

Made for: Claude Code, Codex.

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 tlamatini-allowed-hosts-tighten

README.md
[![agentmods](https://agentmods.dev/badge/skills/xaiht/tlamatini/tlamatini_allowed_hosts_tighten/github.svg)](https://agentmods.dev/skills/xaiht/tlamatini/tlamatini_allowed_hosts_tighten)
Your own site
<a href="https://agentmods.dev/skills/xaiht/tlamatini/tlamatini_allowed_hosts_tighten"><img src="https://agentmods.dev/badge/skills/xaiht/tlamatini/tlamatini_allowed_hosts_tighten/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 tlamatini-allowed-hosts-tighten

Your own site · 80×15
<a href="https://agentmods.dev/skills/xaiht/tlamatini/tlamatini_allowed_hosts_tighten"><img src="https://agentmods.dev/badge/skills/xaiht/tlamatini/tlamatini_allowed_hosts_tighten.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 570 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00036 $0.00570
Opus 5 $0.00018 $0.00285
Sonnet 5 $0.00007 $0.00114
Haiku 4.5 $0.00004 $0.00057

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

Security

Grade A, and why

tlamatini-allowed-hosts-tighten 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 12d 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.

Tlamatini/agent/skills_pkg/tlamatini_allowed_hosts_tighten/SKILL.md · 60 lines

What it actually says

Tighten ALLOWED_HOSTS

The Tlamatini security report flagged the default ALLOWED_HOSTS=['*'] in Tlamatini/tlamatini/settings.py as one of the Tlamatini-specific debts. This skill replaces it with a user-supplied whitelist and writes a .bak backup next to the file.

Procedure

  1. Read Tlamatini/tlamatini/settings.py.
  2. Locate the line ALLOWED_HOSTS = [...] (any list literal).
  3. Backup the current file as settings.py.bak.
  4. Rewrite ALLOWED_HOSTS with ${input.hosts} rendered as a Python list.
  5. Return {settings_path, backup_path, changed}.

Rollback

If the new list is incorrect, restore settings.py.bak over settings.py manually.

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. 12d ago First seen · 60 lines · 36 tokens per session scan A 5ff6c4aa77f4

Subscribe to this mod's changes

tlamatini-allowed-hosts-tighten is a skill published in the GitHub repository XAIHT/Tlamatini (16 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 570 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-30.

Related

Other skills, from other repositories

agentfield

Design and ship a multi-agent system on AgentField. Use when the user asks to build, scaffold, design, or run an agent, reasoner network, multi-agent backend, or 'an agent that does X' — whenever the work would otherwise be a single LLM call or a flat LangChain/CrewAI/AutoGen chain. The skill produces composite…

Agent-Field/agentfield · 127 tokens

bfl-api

BFL FLUX API integration guide covering endpoints, async polling patterns, rate limiting, error handling, webhooks, and regional endpoints with Python and TypeScript code examples.

calesthio/OpenMontage · 38 tokens

github-oauth-nango-integration

Use when implementing GitHub OAuth + GitHub App authentication with Nango - provides two-connection pattern for user login and repo access with webhook handling.

AgentWorkforce/relay · 37 tokens

vllm

Deploy and serve LLMs with vLLM behind an OpenAI-compatible endpoint, with tool calling enabled for agent workloads.

Prism-Shadow/penguin-harness · 29 tokens

data-fetching

Use when implementing or debugging ANY network request, API call, or data fetching. Covers fetch API, axios, React Query, SWR, error handling, caching strategies, offline support.

Intelligent-Internet/ii-agent · 41 tokens

django

Use when building, reviewing, securing, testing or shipping a Django app — models, migrations, QuerySets/managers, FBV/CBV views, forms, the admin, settings split, and Django REST Framework (serializers, ModelViewSet, permissions). NOT async FastAPI/Pydantic services (that is fastapi), NOT Postgres schema/index work…

ericrisco/rsc-harness · 84 tokens