agentleFS
tech-systemstech-systems/panes/CLAUDE.md

panes

CLAUDE.md729 starsChanged 6 years agoMITView on GitHub

Cupertino Panes is a TypeScript library that creates multi-functional modals, cards, and panes with touch technologies. It provides native iOS-style behaviors and animations for web applications. Each module can be enabled/disabled through the modules configuration option.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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. Very specific:

    Use npm run serve to test changes in the /playground directory

    line 18
  2. Distinctive:

    Follow existing TypeScript patterns and interfaces

    line 67
  3. Distinctive:

    Test changes using the playground environment

    line 68
  4. Distinctive:

    Consider cross-platform compatibility (specified in browserslist)

    line 70
  5. Distinctive:

    Use the modular architecture for new features

    line 71

≈ “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

CLAUDE.md

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

Project Overview

Cupertino Panes is a TypeScript library that creates multi-functional modals, cards, and panes with touch technologies. It provides native iOS-style behaviors and animations for web applications.

Development Commands

Build and Development

  • npm run build - Production build (creates minified bundles in /dist)
  • npm run serve - Development server with live reload on port 3000
  • npm run tslint - Run TSLint for code quality checks
  • npm run changelog - Generate changelog using conventional commits

Testing Environment

  • Use npm run serve to test changes in the /playground directory
  • Visit http://localhost:3000/playground/ to view examples
  • Multiple demo pages available in /playground for testing different features

Code Architecture

Core Structure

  • Main Class: CupertinoPane in /src/cupertino-pane.ts - Primary API class
  • Settings: Configuration managed through /src/settings.ts with TypeScript interfaces in /src/models.ts
  • Module System: Modular architecture with feature modules in /src/modules/

Key Components

  • Breakpoints: /src/breakpoints.ts - Manages pane positioning and snapping points
  • Transitions: /src/transitions.ts - Handles animations and state transitions
  • Events: /src/events/ - Touch events, keyboard events, and resize handling
  • Device Detection: /src/device.ts - Platform-specific optimizations
  • Support Detection: /src/support.ts - Feature detection utilities

Module System

Available modules (all in /src/modules/):

  • backdrop.ts - Backdrop overlay functionality
  • fit-height.ts - Auto-height calculation
  • follower.ts - Element following behavior
  • horizontal.ts - Horizontal pane orientation
  • inverse.ts - Inverse animation direction
  • modal.ts - Modal-specific features
  • z-stack.ts - Stacking multiple panes

Each module can be enabled/disabled through the modules configuration option.

Build System

  • Uses Gulp for build orchestration (/gulp/gulpfile.js)
  • TypeScript compilation with Rollup bundling
  • Outputs multiple formats: UMD, ESM, and TypeScript declarations
  • Development server with live reload capability

Configuration

  • tsconfig.json: TypeScript compilation targets ES2015 with ES2020 modules
  • tslint.json: Strict linting rules following Airbnb-style conventions
  • package.json: Defines browser support (Android 7+, iOS 11+, Safari 11+)

Key Files to Understand

  • /src/cupertino-pane.ts - Main API implementation
  • /src/settings.ts - Default configuration
  • /src/models.ts - TypeScript interfaces and type definitions
  • /src/events/events.ts - Core touch and gesture handling
  • /playground/ - Example implementations for testing

Development Guidelines

  • Follow existing TypeScript patterns and interfaces
  • Test changes using the playground environment
  • Maintain iOS-native behavior patterns
  • Consider cross-platform compatibility (specified in browserslist)
  • Use the modular architecture for new features

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.