agentleFS
nickustinovnickustinov/itsyconnect-macos/CLAUDE.md

itsyconnect-macos

CLAUDE.md125 starsChanged 9 months agoMITView on GitHub

Self-hosted App Store Connect dashboard. Next.js 16, TypeScript, Tailwind v4, shadcn/ui, SQLite. Before writing any code, read these docs:

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before writing any code, read these docs:

    line 7
  2. Very specific:

    When asked to bump: update src/lib/version.ts and package.json version.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Itsyconnect – LLM build guide

Self-hosted App Store Connect dashboard. Next.js 16, TypeScript, Tailwind v4, shadcn/ui, SQLite.

Required reading

Before writing any code, read these docs:

  • docs/UI.md – typography, icons, component patterns, form conventions, layout rules. All UI must follow these conventions exactly.
  • docs/BACKEND.md – architecture, security model, database schema, caching strategy, API conventions, testing. All server-side code must follow these conventions.
  • docs/DB.md – database migrations, how to add tables/columns, checklist. Must read before any schema changes.

Project rules

  1. shadcn/ui 100% – every UI element uses shadcn. No custom primitives.
  2. Phosphor icons only – @phosphor-icons/react. Never import from lucide-react.
  3. Geist font – sans (body) and mono (code/inputs). Set globally, never override.
  4. Custom CSS classes over inline Tailwind – reusable styles live in globals.css @layer components. Use .section-title for form headings, not ad-hoc utility classes. Add new classes there when a pattern repeats.
  5. Sosumi for Apple docs – always use the sosumi MCP server to search and fetch Apple developer documentation. Never guess at ASC API shapes, field names, or endpoint paths – look them up via sosumi first.

Core principles

  1. Security first – never expose API keys client-side. Use session tokens for browser auth, API keys server-side only. No security shortcuts.
  2. Test-driven – write tests before code. No untested code in production.
  3. No hacks – fix root causes, not symptoms. No "temporary" workarounds.
  4. No dead code – remove unused code immediately. Every line must serve a purpose.
  5. Refactor continuously – extract duplication, simplify complexity, rename for clarity. Not optional.
  6. No assumptions – ask if uncertain. Verify with tests. Facts over guesses.
  7. Research before guessing – web search for solutions before guessing at fixes, especially for platform-specific layout/rendering issues. Facts over trial-and-error.
  8. Revert failed changes – if a code change doesn't fix the problem, remove it completely before trying the next approach. Never leave dead or ineffective code behind.
  9. Clean up failed fixes immediately – if a code change aimed at fixing something has no effect, remove it completely before trying the next approach. Never accumulate layers of ineffective code.

Routing and request interception

  • src/proxy.ts handles all request interception (setup redirect, auth guards, etc.). This is Next.js 16's replacement for middleware.ts – never create a middleware.ts file.
  • The proxy checks /api/health on root (/) to determine if setup is needed, then redirects to /setup or /dashboard.
  • Electron loads / so the proxy can handle initial routing. Never hardcode /dashboard as the Electron entry URL.

Versioning

  • Single source of truth: src/lib/version.ts – exports APP_VERSION and BUILD_NUMBER.
  • package.json "version" must match APP_VERSION.
  • forge.config.ts imports BUILD_NUMBER for CFBundleVersion.
  • When asked to bump: update src/lib/version.ts and package.json version.

Style

  1. European-style titles – never use American Title Case.
  2. En dashes, not em dashes – use – not —.

Git

  1. No autonomous commits – never commit or push without explicit user instruction.
  2. No co-authorship – never add Co-Authored-By lines to commits.
  3. No git reverts without permission – never revert files using git checkout, git restore, or any git command without explicit user approval. Debug and fix issues instead.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.