Skip to content

Latest commit

 

History

History
85 lines (58 loc) · 5.82 KB

AGENTS.md

File metadata and controls

85 lines (58 loc) · 5.82 KB

Skill Loading

Use the repository’s installed Intent. If it is unavailable, report the missing dependency instead of downloading a replacement. Before editing files for a substantial task:

  • Run pnpm exec intent list from the workspace root to see available local skills.
  • If a listed skill matches the task, run pnpm exec intent load <package>#<skill> before changing files.
  • Use the loaded SKILL.md guidance while making the change.
  • Monorepos: when working across packages, run the skill check from the workspace root and prefer the local skill for the package being changed.
  • Multiple matches: prefer the most specific local skill for the package or concern you are changing; load additional skills only when the task spans multiple packages or concerns.

Petit Meme

A video meme library, live with real accounts, subscriptions and invoices, and no staging: main deploys to production once its checks pass. Victor, the Creator, is its only developer. The site is small, so a breaking change is cheap and the clean fix beats the compatible one.

Before the first edit

Every session, whatever the task, before any file changes:

  1. Read every file in knowledge/.

  2. Load with the Skill tool each skill whose trigger the task meets:

    • Anything a browser runs (HTML, CSS, client JS, a component): modern-web-guidance:modern-web-guidance.
    • A screen created or reshaped: frontend-design:frontend-design.
    • Motion: emil:animate, plus emil:animation-performance for a dropped frame or the choice of a property.
    • Phone layout, touch, a PWA: emil:mobile-native.
    • A drag, a swipe, a sheet: emil:gestures.

    Pass the task as args: without one, the design skills answer with a greeting.

Done when your first reply names the skills loaded, or says none applies.

Product

knowledge/ is Victor's product brain: the vision, the audiences, the offer, the words.

Raw video URLs stay out of the DOM, the sitemap, the structured data and every API response.

Cost

Before anything that runs on a schedule, holds a connection or calls a paid API on a hot path, answer out loud: does the database still sleep, and how many calls a month does it cost. Cache before paying per call.

Each route ships the least JS and CSS it can. A budget in bundle-budget.json rises by 0.5 kB at most when the change earns it, named in the pull request; a bigger rise waits for Victor's word.

Environments

  • A UI change is done once you have seen it render and it holds up. Serve the app, reusing the port when a server already runs, and audit the pages you touched with the chrome-devtools MCP at phone and desktop widths: console, accessibility, Core Web Vitals. A visual effect is also checked in WebKit. You own what the audit finds: fix it in the same task, until the audit comes back clean.
  • Victor's phone is his. Never connect to it on your own. When only a real phone can settle a check (software keyboard, viewport, touch, PWA), recommend that Victor runs /phone.
  • Use the CLIs and MCPs yourself before handing Victor a command or a dashboard step.
  • Read production freely, write it only when Victor asks. Production migrations stay Victor's. Before a write, say which environment the command hits: database tooling aims at production by default.
  • The repository is public. Issues, PRs and commits carry no account ID, key or threshold.
  • pnpm build validates the production env, which lives on Vercel only. Build locally with pnpm build:e2e.

Hit every surface

The most common defect here is a change that works on the tested path and is missing everywhere else. Before calling a change done, say which of these applied:

  • Both locales: strings, plurals, emails, metadata, legal pages, the URL with and without /en/.
  • Every audience: Visitor, User, Premium, and Victor in the administration. A gate for one needs a state for the others.
  • Both directions: a way in comes with the way out. A dialog that opens meets one already open.
  • Server and client: the same route renders on the server and hydrates on the client.
  • Phone and desktop: layout, touch targets, native share, the video player.
  • Discoverability: a new public route needs its sitemap entry, metadata, structured data and OG image.
  • Pictures of Petit Meme: the OG images, the phones on /app and the home, the install dialog screenshots and the Studio demo all show the site. A page whose look changes gets every picture of it matched to production, in both locales: redrawn in code (OG images with OG_VERSION bumped), or recaptured with pnpm screens once the change is live.
  • Emails: a flow that changes an account state usually sends one.

Scope and Git

  • Asked for the avatar feature, deliver the avatar feature. List what you saw along the way once, ranked, and let Victor pick. A "fais tout" covers everything listed, and nothing past it.
  • Plans live in the conversation and in GitHub issues. Research reports stay out of the repository.
  • Commit and push on Victor's word only. "push" sends one commit straight to main. "go pr" opens a pull request, assigned to Victor, with the labels of the issue it closes. Victor merges it, in rebase mode.

Docs

  • knowledge/ changes only with a product decision, written the way knowledge/AGENTS.md says.
  • Agent docs (AGENTS.md files, project skills) change only when Victor asks. A skill reads the live setup instead of holding IDs or values, and its description triggers it on its own.

Taste

Victor likes simple systems and code that looks obvious. Find the real constraint, then write the smallest thing that makes the correct behaviour unsurprising.

Reporting back

  • After a dependency bump or a refactor, name the risk and what to test.
  • A task is finished when nothing is left that only Victor can run. List what is left, in order.