completion-time-self-audit

completion-time-self-audit is a cursor rule for Cursor from AlphaBitCore/nexus-gateway. It costs 1,203 tokens per session, scanned A, original, Apache-2.0.

A two-round checklist for reviewing work before calling it complete. It checks for deferred tasks, follow-up work, unfinished mocks, and other gaps.

In plain words
What is it for?
Use it at the end of a coding task before reporting completion or asking someone else to commit the work.
Why use it?
It catches incomplete changes and verifies that issues found in the first review were actually fixed.

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/alphabitcore/nexus-gateway/completion-time-self-audit
Clone the repo
git clone --depth 1 https://github.com/AlphaBitCore/nexus-gateway

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 completion-time-self-audit

README.md
[![agentmods](https://agentmods.dev/badge/rules/alphabitcore/nexus-gateway/completion-time-self-audit.svg)](https://agentmods.dev/rules/alphabitcore/nexus-gateway/completion-time-self-audit)
Your own site
<a href="https://agentmods.dev/rules/alphabitcore/nexus-gateway/completion-time-self-audit"><img src="https://agentmods.dev/badge/rules/alphabitcore/nexus-gateway/completion-time-self-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,203 This file is loaded in full into every session.
When invoked 1,203 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.01203 $0.01203
Opus 5 $0.00602 $0.00602
Sonnet 5 $0.00241 $0.00241
Haiku 4.5 $0.00120 $0.00120

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

Security

Grade A, and why

completion-time-self-audit 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/completion-time-self-audit.mdc · 100 lines

How it starts

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

Completion-time self-audit — 2+ rounds (binding)

Before saying "done" / asking the user to commit / closing out a task, you MUST run a short self-audit and report the result back in the response. This rule is the safety net against silent "almost done" deliveries.

Minimum two rounds (per CLAUDE.md "Post-plan 2-round self-review"):

  1. Round 1 — run the 4-question audit. Surface every issue. For each issue: fix it now, OR capture as a follow-up todo with stated reason.
  2. Round 2 — re-run the same 4 questions. Verify each round-1 fix actually closed the gap. Check that nothing new appeared from the fixes.
  3. More rounds if round 2 finds new issues — keep iterating until TWO consecutive rounds are clean.

Catching issues is cheap; verifying you actually fixed them is what makes "done" real. A single audit that surfaces N issues and a quick "all fixed" claim is not enough — only the second clean round confirms the fixes stuck.

The 4-question self-audit

Answer all four with concrete evidence (file paths, grep output, test names):

1. Anything deferred?

Did I split scope and leave a part for "later"? Possible signals:

  • A todo I marked completed whose work was only partially done.
  • A spec section I implemented to "half" depth.
  • A subsystem I planned to touch but didn't.

If any item was deferred:

  • It must be a separate, explicit todo in the active list (not silently dropped).
  • The user must be told about it in the response.
  • It must NOT be marked complete.

2. Any TODO / FIXME / XXX left in production code?

git diff HEAD~1.. --stat                                   # files changed
git diff HEAD~1.. | grep -nE 'TODO|FIXME|XXX' | head -50   # new markers in changes

In production / runtime code paths these are forbidden as substitutes for real behaviour (binding in CLAUDE.md). Exceptions:

  • Test code (*_test.go, *.test.ts, *.spec.ts).
  • Truly auto-generated files marked with a header like Code generated by … DO NOT EDIT. (the repo currently has no active generator; packages/shared/schemas/configtypes/ is hand-maintained — the exception stands in case a future generator is added).
  • Pre-existing markers you didn't add this turn.

Read the full file on GitHub · 100 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 · 100 lines · 1,203 tokens per session scan A d491e0b15687

Subscribe to this mod's changes

completion-time-self-audit is a cursor rule published in the GitHub repository AlphaBitCore/nexus-gateway (23 stars, last pushed 3d ago), licensed Apache-2.0. It adds 1,203 tokens to every session, about $0.0060 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.