agentleFS
Til0rTil0r/open-profiler/CLAUDE.md

open-profiler

CLAUDE.md2 starsChanged 10 days agoMITView on GitHub

Open Profiler is an open-source Angular 21+ portfolio/personal profile template (v1.3.1). It's a single-page application designed to be forked and customized via JSON configuration files. Users showcase their skills, experience, projects, and contact info without modifying code. Repository: https://github.com/Til0r/open-profiler All content comes from config/open-profiler.config.json implementing OpenProfilerModel:

  • In this repositoryOne other file it gives its agents.

The file

Show its rules and text

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

19 rules. About 0 are common, 8 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Standalone Components: All components use standalone: true — no NgModules

    line 37
  2. Distinctive:

    No Global State Management: No NgRx or other store — data flows from JSON config via signals

    line 39
  3. Very specific:

    Single Page: No routing (app.routes.ts is empty) — all sections render on one page

    line 41
  4. Very specific:

    Configuration-Driven: All portfolio content defined in config/open-profiler.config.json

    line 43
  5. Very specific:

    All content comes from config/open-profiler.config.json implementing OpenProfilerModel:

    line 80
  6. Distinctive:

    Every component must be atomic.

    line 122
  7. Distinctive:

    All styling must use TailwindCSS classes.

    line 130
  8. Very specific:

    Use enums, maps, or typed constants instead of raw strings.

    line 134
  9. Distinctive:

    Add TSDoc comments to all complex logic, non-obvious utilities, and public API surfaces of shared components.

    line 138
  10. Distinctive:

    Use Angular Signals for local component state.

    line 142
  11. Very specific:

    Use Moment.js for all date manipulation and formatting.

    line 146
  12. Distinctive:

    Do not overcomplicate. Keep the configuration-driven approach — content changes should happen in JSON config files, not in component code.

    line 150
  13. Distinctive:

    Never call functions or methods in templates to return or compute values.

    line 154
  14. Distinctive:

    Follow strict naming conventions:

    line 161
  15. Very specific:

    Every component must use ChangeDetectionStrategy.OnPush.

    line 170
  16. Very specific:

    Always provide a track expression in @for when iterating over lists.

    line 174
  17. Very specific:

    Never leave subscriptions open.

    line 184
  18. Very specific:

    Never mutate state directly.

    line 192
  19. Very specific:

    Every interactive element must be keyboard-accessible.

    line 196

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Open Profiler is an open-source Angular 21+ portfolio/personal profile template (v1.3.1). It's a single-page application designed to be forked and customized via JSON configuration files. Users showcase their skills, experience, projects, and contact info without modifying code.

Repository: https://github.com/Til0r/open-profiler

Build & Development Commands

# Start dev server
npm start

# Production build (output: dist/open-profiler/)
npm run build

# Watch mode for development
npm run watch

# Run tests (Jasmine + Karma)
npm test

# Lint code (ESLint with Angular rules)
npx ng lint

# Format code with Prettier
npx prettier --write "src/**/*.{ts,json,scss,md}"

Architecture

Core Patterns

  • Standalone Components: All components use standalone: true — no NgModules
  • Signals-based State: Uses Angular Signals (input(), signal(), computed()) for component state
  • No Global State Management: No NgRx or other store — data flows from JSON config via signals
  • OnPush Change Detection: Components use ChangeDetectionStrategy.OnPush
  • Single Page: No routing (app.routes.ts is empty) — all sections render on one page
  • Template Control Flow: Uses @if, @for, @else syntax (Angular 17+)
  • Configuration-Driven: All portfolio content defined in config/open-profiler.config.json

Directory Structure

src/app/
├── app.component.ts            # Root component — loads config, sets theme
├── app.config.ts               # Angular bootstrap configuration
├── app.routes.ts               # Empty (no routing)
├── shared/
│   ├── config/
│   │   └── open-profiler.config.ts   # Config loader service
│   ├── constants/
│   │   └── theme.constant.ts         # Theme CSS variable mappings
│   ├── directives/
│   │   └── image-error-handler.directive.ts  # Hides broken images
│   ├── elements/                     # Reusable UI components
│   │   ├── badges/                   # Skills badges with icons
│   │   ├── experience/               # Experience/education cards
│   │   └── socials/                  # Social link icons
│   ├── models/                       # TypeScript interfaces (10+)
│   │   ├── open-profiler.model.ts    # Root data model
│   │   ├── experience.model.ts
│   │   ├── project.model.ts
│   │   ├── badge.model.ts
│   │   └── ...
│   └── utils/
│       └── badges.util.ts            # Icon link mapper
├── environments/
│   └── environments.ts
config/                               # External config (project root)
├── open-profiler.config.json         # Main portfolio data
└── seo.config.json                   # SEO metadata

Data Model

All content comes from config/open-profiler.config.json implementing OpenProfilerModel:

FieldTypePurpose
aboutstringHTML-formatted bio
bannerBannerModelName, role, city, avatar, socials
badgesBadgesModelSkills organized by category
contactContactModelEmail and contact info
projectsProjectModel[]Portfolio project cards
colorColorModelPrimary, dark/light theme colors
educationExperienceModel[]Education entries (sorted by date)
experiencesExperienceModel[]Work experience (nested children OK)

Naming Conventions

  • Component selectors: open-profiler-* prefix (kebab-case) — e.g., <open-profiler-badges>
  • Directive selectors: camelCase attribute — e.g., imageErrorHandler
  • Path aliases (tsconfig.json):
    • @open-profiler/models/*, @open-profiler/config/*, @open-profiler/constants/*
    • @open-profiler/utils/*, @open-profiler/directives/*, @open-profiler/elements/*
    • @open-profiler/env/*, @open-profiler/outer-config/*

Styling

  • Tailwind CSS v4 + SCSS for component styles
  • CSS custom properties for runtime theming (dark/light mode)
  • Dark mode toggle persisted in localStorage
  • Responsive design via Tailwind breakpoints

Key Features

  • Banner, About, Education, Skills, Experience, Projects, Contact sections
  • Dark/Light theme toggle with localStorage persistence
  • Simple Icons integration (fetches SVGs from simpleicons.org)
  • Image error handler directive (hides broken images)
  • Chronological sorting via lodash orderBy
  • Nested experience support (sub-roles within a position)

Base Rules

1. Atomic Components

Every component must be atomic. Before creating a new component, check if one already exists in the project. If not, create it as a shared, reusable unit (component, utility, or shared class).

2. Reuse First

Templates and widgets must reuse components from the shared elements. Never duplicate logic or UI that already exists.

3. Styling

All styling must use TailwindCSS classes. No inline styles or custom CSS unless strictly necessary.

4. Type Safety

Use enums, maps, or typed constants instead of raw strings. Never pass magic strings as props, action types, or identifiers. Never use any — always create proper interfaces, types, or generics.

5. Documentation

Add TSDoc comments to all complex logic, non-obvious utilities, and public API surfaces of shared components.

6. Angular Code Flow

Use Angular Signals for local component state. Follow standard Angular patterns (standalone components, dependency injection, lifecycle hooks).

7. Date Handling

Use Moment.js for all date manipulation and formatting.

8. Simplicity Principle

Do not overcomplicate. Keep the configuration-driven approach — content changes should happen in JSON config files, not in component code.

9. No Methods in Templates for Data Binding

Never call functions or methods in templates to return or compute values. Use instead: Signals, computed signals, pure Pipes, or Directives. The only acceptable methods in templates are:

  • Event handlers ((click), (submit), (change), etc.)
  • Memoized functions (functions whose output is cached and only recalculated when inputs change)

10. Naming Conventions & Typing

Follow strict naming conventions:

  • Interfaces — Prefix with I: IUser, IOrderDetail
  • Enums — Prefix with E: EOrderStatus, EPaymentMethod
  • Generics — Use typed generics (T, K, V) instead of any
  • Never use any — If the type is unknown, use unknown and narrow it.

11. OnPush Change Detection

Every component must use ChangeDetectionStrategy.OnPush.

12. TrackBy in Loops

Always provide a track expression in @for when iterating over lists. Use a unique ID.

@for (item of items; track item.id) {
<div>{{ item.name }}</div>
}

13. Subscription Management

Never leave subscriptions open. Use takeUntilDestroyed() from @angular/core/rxjs-interop or the | async pipe which auto-unsubscribes.

14. Single Responsibility

Each file should do one thing. One component, one service, one pipe, one directive per file.

15. Immutability

Never mutate state directly. Always create new references using spread operators, map(), filter(), or structuredClone.

16. Accessibility (a11y)

Every interactive element must be keyboard-accessible. Use semantic HTML. Add aria-label where visual context is missing. Never use <div> as a clickable element without a role.

17. Constants Over Magic Values

Extract all hardcoded values into typed constants files.

Code Standards

  • TypeScript strict mode enabled
  • ESLint with angular-eslint rules
  • Prettier formatting (100 char width, single quotes, 2-space indent)
  • Husky + lint-staged pre-commit hooks (prettier + eslint + updatemetatag)

CI/CD

GitHub Actions workflow (.github/workflows/release.yml) creates releases on git tag push — builds the project, creates a tar archive, and uploads to GitHub Releases.

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.