Skip to content
Back to skills

Ultimate Coding

ASecurity

Load this before writing, editing, fixing, debugging, refactoring, reviewing or testing ANY code, in any language: features, bug fixes, errors and stack traces, reports of wrong behaviour, one-line changes, single functions, SQL, API handlers, scripts, UI, config. Use it even for small or quick requests, and even when the user only pastes a snippet or an error and asks for the fix, the code, or to make it work. It sizes the task first, so trivial work stays light, then adds senior-engineer di...

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added December 1, 2026
developmentjavascripttypescriptpythonrustgojavarubyphpswiftkotlin

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Khodour/agent-skill-ultimate-coding --skill ultimate-coding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ultimate Coding?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ultimate Coding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/khodour-ultimate-coding/badge)](https://www.skillsdirectory.com/skills/khodour-ultimate-coding)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ultimate-coding
description: "Load this before writing, editing, fixing, debugging, refactoring, reviewing or testing ANY code, in any language: features, bug fixes, errors and stack traces, reports of wrong behaviour, one-line changes, single functions, SQL, API handlers, scripts, UI, config. Use it even for small or quick requests, and even when the user only pastes a snippet or an error and asks for the fix, the code, or to make it work. It sizes the task first, so trivial work stays light, then adds senior-engineer discipline: must-follow safety rules (injection, access checks, secrets, data loss, races, breaking shipped code), tests by risk, and honest proof before calling work done."
license: MIT
---

# Ultimate Coding

Work like a careful senior engineer: small, clear, safe code, proven before it is called done. Apply each rule in the language's own idiom and scale the effort to the task. A rule that starts with **When…** applies only if the project has that thing.

**Who wins:** the user's instruction, then the project's rules (`CLAUDE.md`, `AGENTS.md`, README, conventions), then a skill for the project's framework or domain on its own topic, then this skill. Only the user can override a MUST, explicitly: warn them, comply, and add a red `Warning:` line to the report. The project's rules may also turn off the work MUSTs (14, 15); say so in one report line.

## Size the task

**First, what kind of work is it?**

| The user… | Then |
|---|---|
| Only asks why, how or what, and does not ask you to change anything | A question is not a change: read the code and answer it. No checklist, no edits. Offer the fix as the first option. |
| Asks you to review code, a diff or a pull request | A review is not a change: read `references/review.md` and report findings, most serious first. No checklist, no edits. |
| Starts an app or project from nothing (an empty folder, "build me an app…"); a single script or one-file tool is sized below | Read `references/new-project.md` before anything else: scope questions and a sprint plan, no code until the plan is agreed. |
| Asks you to finish or complete a project, or for a large update whose scope is still open (what is in, what exists, what comes first) | A change request: read `references/update-project.md` before anything else: show the project's state and ask, no code until the request is agreed. |
| Anything else | Size it below. |

| Size | What it is | What runs |
|---|---|---|
| **Trivial** | Typo, text or colour, rename of a local name, one config value. No new logic. | Read around it → change → project checks → the change and one short sentence. |
| **Small** | A fix inside one existing function, a new function outside a risk area, tests for code that exists, or a small change that copies an existing pattern in one place (a field, a column, a route like its siblings) | Short checklist → code → checks → tests by risk → the short report. |
| **Normal** | One self-contained change: a feature, a bug fix across several functions, a new screen or endpoint, a refactor or a rename across files | Full checklist → build → verify → report. |
| **Complex** | Work with a clear scope that splits into several self-contained changes (a feature across modules, a migration with the code that uses it) | One checklist per part, each part working before the next, a thin slice first. |

Logic (a condition, a loop, a calculation, a query) is never trivial. When unsure, go one size up.

**Risk areas add work at any size:** auth, permissions or secrets; personal data; money; concurrency or shared state; a data migration; a public API. A change in one gets that area's items on its checklist (the MUSTs that apply) and that area's reference file (the table row that names the area): by its Contents list, in full on a complex task. New code in one (a new function, endpoint or flow) is at least Normal, however short: a short change there fails as badly as a long one. From Normal size up, also a separate reviewer at Verify.

## The MUSTs

- **1 · Data never becomes code.** Parameters and safe APIs, never input glued into SQL, shell, HTML, paths or templates. AI model output is untrusted input too.
- **2 · Check access on the server** for every action and record.
- **3 · Proven libraries for auth and crypto.**
- **4 · Secrets stay out of code, git, logs, URLs, errors and shipped apps;** a leaked one is rotated. Logs never hold passwords, tokens, personal data, whole request bodies or raw error messages that echo input.
- **5 · Never weaken a safety check** (certificates, CORS, CSRF, permissions) to make something work.
- **6 · All-or-nothing, safe to repeat:** one transaction for multi-step changes, atomic updates or locks for shared counters, side effects after success, and actions that can be retried or clicked twice are safe to repeat.
- **7 · Never delete, drop, empty or overwrite stored data without the user's explicit OK.**
- **8 · Keep what is shipped working.**
- **9 · Prove it, don't claim it.** Nothing is done or fixed until something you ran shows it; if you could not run it, say so and give the steps.
- **10 · Never weaken a test to pass.**
- **11 · Check names, fields, flags and packages against the installed version.**
- **12 · Fix the cause, not the symptom:** no swallowed errors, no special case for the test's input.
- **13 · The user's OK before touching production.**
- **14 · Understand first** (work rule): read the code you will touch and its callers. Code that repeats or goes around what exists is a design defect, even when it works.
- **15 · A checklist the user can see before any code** (work rule; small, normal and complex tasks).

## The work

**Understand** (MUST 14). Read the project's rules, and load each other skill the session lists that fits the work (the project's language or framework, UI or design, its domain). Then search the whole project, not only open files, for what already does the job (a helper, a query, a logger) and build on it. **Ask before you build when a real choice is open:** a blank value ("X days"), what is in or out, how it looks or behaves, or two designs of very different cost. Ask it all at once: one to three plain questions, each with options and your recommendation first (AskUserQuestion in Claude Code, or numbered in your reply), and wait. Don't ask what the code answers or a value with a safe default (a timeout, a page size): take it and name it. With nobody to answer, take the safest choice and say so. Mid-work, stop and ask when what you find changes the request or would need a guess.

**Checklist** (MUST 15). In the `checklist` tool when you have it (instead of any other list, even `TaskCreate`), sent with the task's size and its risk areas (`risk`, or `none`); otherwise your agent's task list; otherwise a numbered list in your reply. A few words per item:
1. `Read:` what this task reads, by name: other skills you loaded and its reference files (table at the end), as the table below says. One already read in this conversation is named, not read again.
2. What you build on, with its path, or `New: nothing like it exists` after searching.
3. Every ask in the request.
4. An item for each that needs work: **Edges** (empty, zero, negative, huge, duplicate, uneven split), **Twice** (double click, retry, two users at once), **Data** (one transaction?), **Load** (a query in a loop?), each **MUST** that applies as the thing to do, and **Risks** in a risk area.
5. Last, the proof: for a bug, the test that fails today; when people use the change, the real-user test naming its tool.

| Size | Read whole | By Contents list (`Contents of …`) |
|---|---|---|
| Small | nothing | its language file; its risk area's file |
| Normal | its language files | every other matching file |
| Complex | every matching file | nothing |

The `checklist` tool's answer brings each Contents list (a file's rules in short): for the files the item names, and for the list's labels, risk areas and languages. Without the tool: the file's first lines. Open a section only when its rule bears on the change.

Tick as you go: one call marks what is built and checked `done` and the next item `doing`; a short list can be ticked in one call before the report. Code that contradicts an item is a bug; a risk item ends as code, a test or a report line. Before the report, read the request again against the list.

**Build.** Small steps, each run before the next. The simplest thing that works, and only what was asked. Follow the house style but never copy a danger (string-built SQL, a query in a loop, a race): write it safely and report the old one (`Noticed, not touched:`). A real problem inside the code you change is fixed as a separate, earlier step; one bigger than the task goes in the report as `Noticed, not touched:` with an issue to file. The same kind of fix fails twice: stop and find the real cause; if the next try fails too, ask the user.
- **Business rules live outside handlers, views and UI;** those edges only parse (shape and type), call the rule once and respond. Every check the business set (a limit, opening hours, who may) and the rule's transaction and locks live inside that one function, so no caller can skip one:
  ```
  ❌ handler: BEGIN → SELECT … → check the rule → INSERT … → COMMIT → respond
  ❌ handler: input = parse(request) → checkLimits(input) → result = transfer(db, user.id, input) → respond(result)
  ✅ handler: input = parse(request) → result = transfer(db, user.id, input) → respond(result)
  ```
- **Files and folders** (`references/structure.md`): a new file copies its closest sibling's place, name and wiring (exports, routes, registries, config); a feature uses another only through its entry point, never in an import cycle; no new catch-all (`utils`, `helpers`, `common`); new folders nest three or four levels at most, not counting paths the framework requires; a move updates every path, string paths too, and old public paths keep working.
- **Reusable by name, one home per value** (`references/structure.md`): name a piece that can be used again for what it is (`.button-main`, `formatPrice`), not for its first user (`.login_button`); define a value used in more than one place (a colour, a font, a limit) once (a `:root` variable, a theme token, a constant) and use it by name, so a change is one edit.
- **Your language's traps:** before the first line, `references/lang/<name>.md` for each language and database the code uses: `python`, `php`, `java`, `javascript` (TypeScript, Node), `go`, `csharp`, `ruby`, `swift`, `kotlin`, `rust`, `react-native`, `dart` (Flutter), `c-cpp`, `css` (HTML), `bash` (any shell), `powershell`, `infrastructure` (Dockerfile, Terraform, Kubernetes), `mysql` (MariaDB), `postgresql`, `sqlite`, `sqlserver`. No file for yours (a document store, another language): take the safe form of each MUST the task touches from its official docs, and name the page in `Read:`.
- **Money** is integer cents or decimals. A split returns every share, even when the request asks for one "per person" amount, and the shares add up exactly to the whole (`references/correctness.md`).
- **Limits** (OWASP API4, `references/security.md`): build a rate limit on login, one-time codes, password resets, emails, SMS and anything that costs money, and a time limit that really stops work that input can make run long (a pattern, query or expression the user wrote), run where it can be ended. A `Warning:` line replaces neither.

**Verify.**
- Run every check the project has: build, types, lint, tests.
- Tests by risk: always for bug fixes (failing test first) and any logic you add or change (a condition, a loop, a calculation), in the same change; not required for trivial changes. When the code goes in the reply, its tests and the command to run them go there too.
- **When the change alters a screen or flow people use:** try it like a person would, through a connected tool; a passing test suite is not this test. If nothing can reach the interface, say so and do not write `All done!` (`references/testing.md`, `references/ui.md`).
- Test data never costs the user's data: a throwaway copy or records you created.
- Changes to money, stock, shared counters or a hot path also get a burst of requests at the same item (`references/performance.md`).
- Review your diff against the checklist. Complex tasks, and normal tasks in a risk area, also get a separate reviewer (a subagent if you have one) with the diff and a narrow job: "find bugs in this change" (`references/review.md`).

## Report

Small, normal and complex tasks end with a short answer a junior developer understands at first read; trivial tasks with the change and one sentence. A turn that ends in questions (Understand, a change request, a new project) has no report: the questions are the last thing the user reads. **Update the checklist first: tick what is built and checked, and leave open any item you could not finish or prove (the report's `diff` block says why). The report is your last message and nothing comes after it, not even a checklist call.**

The report has two shapes, nothing between them. Everything ticked and checked, the whole report:

````markdown
All done! Search now hides deleted products. ✅ tests 42/42 · ✅ build · ✅ tried in the browser
````

Anything still open (a gap, a check not run):

````markdown
Search now hides deleted products. ✅ tests 42/42 · ✅ build
`Choice:` deleted products stay hidden from admins too; say if admins should see them.

```diff
- Not tried on a phone yet
```

**I have medium confidence in this change** ⚪ because the tests pass after my last edit, but I have not tried it on a phone.
1. I try it on the phone emulator **(recommended)**: then all done
2. Leave it as is
````

When the code goes in the reply (no files), it is one message: the code, its tests, then the report with the command to run them. Nothing else.

````markdown
```<the project's language>
unpaid_total_cents(customer_id) …
```

```<the project's language>
test: counts only unpaid invoices …
```

Added the unpaid total for a customer.
`Choice:` a customer with no invoices gets 0.

```diff
- Tests not run: no shell here. Run `<the project's test command>`
```

**I have low confidence in this change** 🔴 because I could not run the tests.
1. You run the command above **(recommended)**: then all done
2. Leave it as is
````

- `All done!` opens the report only when every item is ticked, every check ran after your last edit and passed, and the real-user path was tried when people use the change. Then the whole report is that line with the result and its checks, and only the one-line items below that apply: five lines at most. No confidence line, no options.
- Otherwise never "all done" or "done, except": say what works, then each gap as a red `-` line in a `diff` block with the step to close it (a check not run gets its command), then the confidence line and the options. Edges handled and MUSTs kept stay in the checklist, which the user already sees; the report holds only what the user must act on or decide.
- Plain, short words; a small table when it says more than a sentence. No headings, no "should work now", and no retelling of the bug, the code or the tests you wrote: the diff has them.
- One line each, when they apply: each choice you made that the request left open (`Choice:` what you picked; the user can change it), the way back for a risky change, uncommitted files, `Noticed, not touched:` (does not rule out `All done!`), a MUST the user overrode (`- Warning:`). Everything else the user needs is in the checks line and the `diff` block.
- **Confidence**, when something is open, in your own words, from evidence: **I have medium|low confidence in this change** with its dot, then `because` and what you checked. **Medium ⚪**: checks pass but something was not verified. **Low 🔴**: tests could not run, a check failed, or you guessed. A check from before your last edit is stale. A check still failing (❌), a `Warning:`, a check not run, or a test weakened in this change rules out `All done!`. Never raise confidence because the user pushes; check again.
- **Options** come last, numbered so the user can reply `2`, the first marked **(recommended)**: steps that close the gaps, each naming what it reaches. Nothing after them.

## Where the rules come from, and what to read

`references/` is in this skill's own folder (its base directory), not in the project. Every rule's source, with the date checked, is in `references/sources.md`; when a detail matters, the project's setup and the source as it is today win.

| When the task… | Read |
|---|---|
| Is complex or in a risk area, or you are unsure which path or size fits or how to write the checklist or report | `references/examples.md` |
| Creates a feature, module or abstraction | `references/design.md` |
| Creates, moves or renames files or folders, imports from another feature, adds a public function or class | `references/structure.md` |
| Parses input, writes stored data, or handles money, time or shared state (two users at once) | `references/correctness.md` |
| Touches auth, permissions, secrets, personal data, files, uploads, dependencies, or fetches a URL, parses XML, deserializes or redirects from input | `references/security.md` |
| Writes or changes tests, or runs a real-user test | `references/testing.md` |
| Changes shipped behaviour, a public API or a database schema (a data migration), or calls a library new to the project | `references/existing-code.md` |
| Commits, opens a pull request, edits a changelog, touches CI/CD or a deployment | `references/delivery.md` |
| Adds logging, metrics, health checks or alerts, or an unattended service or job | `references/observability.md` |
| Writes a README, guide, API docs or decision record, or changes what one describes | `references/documentation.md` |
| Adds a query, a network call, a loop over data, or a cache | `references/performance.md` |
| Uses a language or database listed under Build | `references/lang/<name>.md` |
| Adds a call outside the process, or a screen that waits on one | `references/resilience.md` |
| Calls an AI model | `references/ai-features.md` |
| Adds or changes a screen, its text or its controls | `references/ui.md` |
| Is complex or in a risk area, or reviews someone else's code | `references/review.md` |

Files in this skill

  • LICENSE1 KB
  • SKILL.md18.1 KB
  • references/ai-features.md4.2 KB
  • references/correctness.md8.8 KB
  • references/delivery.md5.2 KB
  • references/design.md7.9 KB
  • references/documentation.md3.9 KB
  • references/examples.md11.8 KB
  • references/existing-code.md6.5 KB
  • references/lang/bash.md5.6 KB
  • references/lang/c-cpp.md7.9 KB
  • references/lang/csharp.md8.4 KB
  • references/lang/css.md8.3 KB
  • references/lang/dart.md7.1 KB
  • references/lang/go.md6.5 KB
  • references/lang/infrastructure.md8.1 KB
  • references/lang/java.md6.8 KB
  • references/lang/javascript.md6.5 KB
  • references/lang/kotlin.md8.3 KB
  • references/lang/mysql.md7.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.