moradin-close

A closing-stage security and audit workflow from the Forge process, used after a milestone ships or before a project phase ends.

In plain words
What is it for?
Use it to review a release, scan the full Git history for leaked keys, test logged-out access, verify database protections, and confirm a real backup restore.
Why use it?
It checks for exposed secrets, unauthorized access, database access rules, restorable backups, and spending controls so loose ends are found before the work is considered complete.

Skill for Claude CodeCodex

Part of the moradin plugin — 14 skills shipped together

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 skills/closetheloops/moradin/close
Any agent
npx skills add CloseTheLoops/moradin --skill close
Clone the repo
git clone --depth 1 https://github.com/CloseTheLoops/moradin

Made for: Claude Code, Codex.

Or install moradin, the plugin that ships this one along with the rest of its 14 skills.

Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 853 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00055 $0.00853
Opus 5 $0.00028 $0.00426
Sonnet 5 $0.00011 $0.00171
Haiku 4.5 $0.00006 $0.00085

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

Security

Grade A, and why

moradin-close scanned grade A 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. **Logged-out probe** — from outside the app (curl/incognito, no session): attempt to read and write every endpoint, table, and storage bucket. Expect denial everywhere. This one check would have prevented the era's wo
skills/close/SKILL.md · 39 lines

How it starts

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

moradin:close

Every item here traces to a documented disaster that hit builders exactly like this project's operator. The profile never shrinks this list — scoping keys to release significance: first public launch or personal data involved ⇒ Extended; otherwise Core.

When invoked

/moradin:close — after a milestone ships, before ending a project phase. Reads all of .forge/.

Core (every ship, 30–60 min, agent-driven)

  1. Secrets — scan the entire git history, not just HEAD. Any hit: rotate the key, never just delete the line (most keys leaked years ago are still live). Confirm nothing secret sits in client-delivered code.
  2. Logged-out probe — from outside the app (curl/incognito, no session): attempt to read and write every endpoint, table, and storage bucket. Expect denial everywhere. This one check would have prevented the era's worst vibe-coded breaches.
  3. Database rules — row-level security / access rules on every table, verified with the platform's own linter where one exists.
  4. A way back — automatic backup on, and one real restore performed into a scratch location. An untested backup is a hope, not a backup.
  5. Spend caps — billing alerts + hard caps on every metered API the project touches; note any service that cannot cap as a standing risk.
  6. Monitoring heartbeat — error tracker receives a deliberate test error; uptime check answers.
  7. Production smoke test — the golden path (arrive → core action → data persists), in production, as a stranger.
  8. Contact route — a working way for a user to reach the operator; doubles as the data-deletion request path.
  9. Personal data? — if the app stores any: privacy policy + terms generated and linked, deletion route actually works.
  10. Closed-loop audit — every plan item and backlog entry is done or deferred with a reason. Nothing dangles unlabeled.
  11. Converge — reconcile .forge/ files against the actual code, both directions: constants the build amended go into the plan; code that drifted from a decision gets flagged (supersede or fix).
  12. Retro, four questions — what shipped · what broke or surprised · what would we do differently · what's explicitly deferred.

Read the full file on GitHub · 39 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. 2d ago First seen · 39 lines · 55 tokens per session scan A e71fa40b0307

Subscribe to this mod's changes

moradin-close is a skill published in the GitHub repository CloseTheLoops/moradin (2 stars, last pushed 24d ago), licensed MIT. It adds 55 tokens to every session and 853 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

okf-harness-bootstrap

This unified entrypoint routes setup and workspace maintenance without making the user choose a mode.

pumblus/okf-harness · 0 tokens

okf-harness

One Door routes OKF Harness workspace requests to exactly one internal workflow at a time.

pumblus/okf-harness · 0 tokens

llm-wiki-faq

Explain LLM-Wiki adoption and answer stakeholder objections. Use when the user wants a concise FAQ response, evidence summary, ROI framing, migration answer, or plain-language rebuttal; route adversarial risk registers and bad-fit audits to llm-wiki-critique-audit.

po4yka/llm-wiki-skills · 63 tokens

llm-wiki-mcp-integration

Design or review MCP/API integration for an LLM-Wiki. Use when the user wants agents such as Claude Code, Codex, Cursor, ChatGPT, VS Code, GitHub Copilot, LangGraph or other MCP clients to search, read, lint, rescan, propose, review or export wiki knowledge through MCP or a local/remote API.

po4yka/llm-wiki-skills · 81 tokens

llm-wiki-retrieval-architect

Design the retrieval/indexing layer for an LLM-Wiki. Use for lexical/FTS search, BM25, hybrid retrieval, vector databases, rerankers, metadata filters, or GraphRAG, or when rg/index.md no longer retrieves enough context; route whole-stack local-first tooling choices to llm-wiki-local-first-stack.

po4yka/llm-wiki-skills · 82 tokens

llm-wiki-eval-tooling

Select evaluation tools and CI gates for LLM-Wiki measurement. Use when the user asks which eval framework, dataset format, scorecard file, red-team config, prompt regression test, hosted/self-hosted service, or human calibration workflow to use; route actual pilot runs to llm-wiki-eval.

po4yka/llm-wiki-skills · 71 tokens