Skip to content
Nihar Rajhans
Open to senior rolesContact

How I work · This site · 2026

I set the rules, the AI writes the code

This site is built with Claude Code. I write the rules it works from, make the design calls it can't, and scripted checks guard what ships. This page shows how, using the site you're reading as the example.

Role
Designer and director
Tools
Claude Code · React · Playwright
Example
This site
Timeline
July 2026, ongoing

01

The rules

The AI reads the rules before it writes a line.

Every session starts from three files. DESIGN.md holds the colours, type and spacing. COPY.md holds every word on the site. CLAUDE.md says how to use the other two.

Its one rule is about borrowed components. Anything pasted in from a library keeps its structure and gives up everything else: its copy, its colours and its stock images.

When a correction should outlast the conversation, it becomes a standing rule. Three of them shape every case study here: no client names, no whole client screens, no invented numbers.

Fig. 01CLAUDE.md, as it is checked in.

02

The calls

The AI proposes. I decide.

The trail on the homepage first ran in straight lines with hard corners, along the edge of each picture. I asked for it to pass behind the picture. The AI did that, and also smoothed the whole path into one gentle curve.

“Keep the winding path. The only problem was the sharp turn where it ran alongside the picture.”

I asked for the trail to pass behind the picture at that point, and for the picture to glow while the trail is under it, not just change its border. That is how it works now.

The first build moved at its own pace, so the footprints fell behind the scroll and then caught up, which pulled attention away from the content.

I set the brief: tie the movement to the scroll, keep it slow, and let footprints appear and fade at points along the way. I asked for options before any code, and picked from them.

People told me they didn't understand the light switch. One proposal was the usual sun and moon. I turned it down and asked for a better drawing of the lighter, clear enough to read on its own.

Fig. 02The homepage trail, three times. A diagram.

03

The checks

Checks catch what a glance misses.

On the case studies, pictures kept getting cut off at some window sizes, and I flagged it more than once. Now a script opens every case study at five window sizes and measures every pinned figure. It runs after any change to those pages.

Another reads every page for accessibility problems, in the dark theme and again in the light one. A third looks for errors, sideways scroll and anything left hidden, on a phone, a tablet and a laptop.

The rest follow every link, play the page transition, time the load on a slow phone, and search the build for client names that must never appear.

Fig. 05The checks, with what each reported on its last run.

04

What it adds up to

The judgement stays with me.

  • 3files the AI reads before it writes
  • 5window sizes every figure has to fit
  • 10scripted checks behind a deploy

The AI writes the code, runs the checks and fixes what they find. I set the rules, choose between its options, and look at each change in the browser before it goes live.

The same method ran on client work: I directed Claude Code through the migration behind the AI console design system.

Rules first, then calls, then checks.

I can show this working live on a call: a rule, a change, and the checks.

Book a walkthrough

Résumé (PDF)

Have a role in mind,
or just want to say hello?

nihar.rajhans1912@gmail.com

Open to senior product design and design-systems roles · Remote · Pune, UTC+5:30