Tier 1 of 4 · Prototype

Prototypes & landing pages

A light setup for work that may be thrown away. You get one file of project rules, a few basic checks, and a place to note decisions.

1 person · Weeks+ AI output reaches users

Paste into your coding agent
Set this repo up to ntent tier 1.

Fetch https://ntent.app/r/tier/1.json?with=ai and follow the plan in it exactly. Write every file verbatim, and check each file's sha256 against its step before you write it. It also carries steps that follow from what the product is: a model’s output reaches a user. Those are as required as the tier's own.

Skip any step whose "needs" this repo does not satisfy, and do not install a framework just to satisfy one. Run each step's verify line before you call it done, write the manifest the plan describes, then tell me what you installed and what you skipped.

Reads https://ntent.app/r/tier/1.json?with=ai

  • 3checks that block the commit
  • 2steps a person checks
  • 7files, notes and settings

The full plan12 steps

Your agent follows this, so you don’t need to read it. It includes 4 steps for what the product does. Open any step to see the file it writes and how to tell it works.

Tier 1

Prototypes & landing pages

8 steps · 01–08
  1. 01
    Shared project instructionsA person checks this

    Everyone inventing their own conventions, and every coding agent inventing a different set again. It also says in words what the gates assume: a failing test is a finding, and the test is not edited to get a commit through.

    Details

    writes AGENTS.md · point CLAUDE.md at it with a one-line @AGENTS.md import

    Edit it: It is a template. Replace every <angle bracket>, delete the sections marked for tiers above yours, and make exactly these other edits. Every command in it is the one a step installs, a file in scripts/ run with node. (1) Delete each table row, and each hard rule, whose command names a scripts/ file that is not on disk: the step was skipped or is not in this plan. Rule 1 goes with check-locale-keys.mjs, rules 5 and 6 with check-api-routes.mjs, rule 7 with check-env.mjs. (2) Rules 2, 3, 4 and 8 are enforced by `pnpm lint` through scripts/eslint-rules.mjs. Keep them only if that file is on disk and wired into the lint config, otherwise delete them. (3) Keep the `pnpm typecheck` and `pnpm lint` rows only if package.json defines those scripts, under the names it uses. Do not add a script to make a row true. (4) Renumber the rules that are left and change every "Rule N" cell in the table to match. (5) Delete the doctor line under "Running it" if scripts/doctor.sh is not on disk, and write the repo’s own install and dev commands in the two angle brackets there. (6) Where the template gives a path (src/env.ts, messages/, <lib dir>), write the repo’s own. Change no other prose.

    How to tell it works: Ask your agent "what are the rules in this repo" and it answers from the file.

  2. 02

    2 rule files that disagree, because one tool reads CLAUDE.md and another reads AGENTS.md.

    Details

    Skipped unless the repo has AGENTS.md.

    How to tell it works: Run it twice: the second run says there is nothing to do. Then start a session and ask your agent to name a rule that only exists in AGENTS.md. In Claude Code, /context lists CLAUDE.md under Memory files. Copy a line of AGENTS.md into CLAUDE.md and run it again: it names that line and leaves it where it is.

  3. 03
    Pre-commit checksBlocks the commit

    A mistake caught an hour later on the build server, after someone has already spent time reviewing it. This catches it on your machine, before the commit.

    Details

    writes scripts/git-hooks/pre-commit · make it executable

    How to tell it works: Stage a file that fails a check this tier installs and the commit is refused, naming the check and the fix. At tier 1 that is check-env: add a variable to the env schema and not to .env.example. The hardcoded-colour case needs the tier 2 lint rules. From tier 2, edit a test file a built journey cites in contract.json and stage only that file: the contract gate runs anyway and refuses the commit, naming the journey. Rename or delete it instead and the same happens. Accept the journey again in the same commit and it passes, with a notice under the passed line that the test and the record moved together. The notice can be avoided by spreading the change over several commits, and a merge or a rebase does not run this hook at all: CI is the check there.

  4. 04

    Git hooks that only exist on one person’s machine, so a teammate or a coding agent commits without the checks.

    Details

    merges into package.json · inside the "scripts" block

    Edit it: Say which of these this repo is, and do that one. (1) No package.json at the root (a Python, Go or Rust repo): add no prepare line. Run `git config core.hooksPath scripts/git-hooks` once and put that line in the setup step the repo already documents (README, Makefile, a bootstrap script), because the setting is local to a clone. (2) package.json already has a `prepare` script: merge, never replace. Keep the existing command first and append ours after a `;`, so `"prepare": "husky; <our line>"`. The line ends in `exit 0`, so it has to be last. (3) Husky (a .husky/ folder, or core.hooksPath pointing at .husky/_): leave the path alone and chain. Add one line to .husky/pre-commit, after the husky.sh line if the file has one: `bash scripts/git-hooks/pre-commit || exit 1`. It says bash, not sh, because the hook is a bash script and on Debian and Ubuntu `sh` is dash, which fails it on every commit. (4) A .githooks/ folder, or any other core.hooksPath: same chain, one line in that folder’s pre-commit, creating the file with a `#!/bin/sh` first line if there is none. (5) The Python pre-commit framework (.pre-commit-config.yaml): do not set core.hooksPath, because `pre-commit install` refuses to run once it is set. Add a local hook under `repos:` instead: `- repo: local`, `hooks:`, `- id: ntent`, `name: ntent checks`, `entry: scripts/git-hooks/pre-commit`, `language: system`, `always_run: true`, `pass_filenames: false`. In every case where you chained rather than set the path, the pre-commit step still goes to scripts/git-hooks/pre-commit. Then, whatever the case, run `git check-ignore -v scripts/ AGENTS.md scripts/git-hooks/pre-commit`. A line of output means .gitignore hides it and the install would never be committed: add a negation line for it (`!scripts/`, `!AGENTS.md`), run the command again until it prints nothing, and say what you changed.

    How to tell it works: Run the install, then `git config core.hooksPath` prints scripts/git-hooks. A fresh clone gets the same answer with no manual step. The line cannot fail an install: with no .git directory it prints nothing and exits 0, and where core.hooksPath already points somewhere else it prints one line to stderr and exits 0. Leave .git/hooks alone: it may hold hooks somebody else installed. Where the repo had hooks of its own (Husky, .githooks, a Python pre-commit config), do not trust the config to tell you they work. Stage a change that breaks a gate and commit it: the commit must be refused, naming the gate. Say which of the five cases in customise you took.

  5. 05

    A setting the app needs that is missing from .env.example, so someone who downloads the repo cannot start it and has no idea why. Also the reverse, and code that reads process.env directly instead of through the schema. And a secret that reaches the browser: a service-role key behind NEXT_PUBLIC_ or VITE_, or read in a client component.

    Details

    writes scripts/check-env.mjs

    Edit it: Point CONFIG.schemaFile at this repo’s env schema, CONFIG.exampleFile at its example file, and CONFIG.sourceDirs at the directories it keeps source in, if they are not src/env.ts, .env.example and src. The pre-commit hook reads those three back out of the file, so moving them keeps the gate wired.

    How to tell it works: Add a variable to the schema, do not add it to .env.example, and the check names it. Rename a key to NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY and the check names it as a secret in the client bundle.

  6. 06
    Credential scanBlocks the commit

    A real token pasted into a script, a doc or a fixture and committed. .gitignore only protects the paths it names, and a token that reaches history is in every clone and may already be in a model’s context.

    Details

    writes scripts/check-secrets.mjs

    Edit it: It needs the gitleaks binary (brew install gitleaks). Without it the hook warns and passes, and doctor names the gap. Add one CI step that runs `node scripts/check-secrets.mjs --all` after a full-history checkout (fetch-depth: 0), which fails if gitleaks is missing. Add a .gitleaks.toml only when the default rules read one of your own identifiers as a secret, and allowlist that exact shape, with a description.

    How to tell it works: Stage a file holding a token-shaped string and the commit is refused with the finding redacted, telling you to rotate the credential as well as delete the line. A finding means rotate it, not just remove it: a token that reached a diff may already be in a model context, a log or a clone. Unstage it and the commit goes through. On a machine without gitleaks the commit passes with a warning that the diff was not scanned; in CI the same run fails.

  7. 07

    Test that a missing gitleaks warns locally and fails in CI, and that a staged token is refused, so an edit to the checker cannot quietly stop it scanning.

    Details

    writes scripts/check-secrets.test.mjs

    Skipped unless the repo has check-secrets.mjs.

    How to tell it works: node --test passes with or without gitleaks installed: the cases that need the binary are skipped, with the reason printed. Stage an edit to check-secrets.mjs that drops --redact and the commit is refused, naming this file.

  8. 08
    Decision logA person checks this

    The same decision being re-made in month 6 because nobody remembers the reason for the first one.

    Details

    writes DECISIONS.md

    Edit it: The first entry is an example from a billing app: delete it. Then write the decisions this project has actually made, one entry each, and label any whose source is memory rather than a thread or a call as "(from memory)". A fresh project may have none yet, and a file with only the template entry in it is correct.

    How to tell it works: Every entry names a real decision, who agreed it and when. Nothing in the file is invented, and an entry reconstructed from memory says so.

Because

A model’s output reaches a user

4 steps · 09–12
  1. 09

    The pass mark for AI answers copied into 3 files, so raising it means hunting for every copy instead of changing one line.

    Details

    writes evals/types.mjs

    How to tell it works: Every threshold the suite uses is in this one file, and changing your bar is a reviewable diff. It also says which failures the pass rate is never allowed to absorb: critical cases, deterministic checks, and results the harness could not measure.

  2. 10

    One vague grading prompt that scores 5 different things at once, and tells you nothing useful about any of them.

    Details

    writes evals/judge.mjs

    How to tell it works: Each category reports its own score, and the summary breaks down by segment.

  3. 11

    A single pass rate that says something broke but not what. A grading result with no scores in it counting as a pass. One answer in 20 saying something it must never say, while the report still shows 95% and PASS.

    Details

    writes evals/report.mjs

    Skipped unless the repo has evals/types.mjs.

    How to tell it works: The report breaks down by segment and by category. Feed it a result whose gating dimensions are missing and the question fails rather than passes. Feed it 19 passes and one case marked critical that failed, and the suite fails at 95%.

  4. 12

    An AI feature that got worse and nobody noticed, because the only test was somebody trying it once.

    Details

    writes evals/eval.test.mjs

    Skipped unless the repo has an AI feature that reaches users, evals/judge.mjs, evals/report.mjs, evals/types.mjs.

    How to tell it works: node --test evals/eval.test.mjs passes. That is the harness proving ITSELF, on stubbed judge responses: it is what makes the scoring trustworthy, not a measurement of your feature. Running your own questions is the integration step, and it is yours to write: give judge() a judgeFn that calls your provider, feed it real responses with their retrieved sources, and put the summary somewhere you keep.