agentleFS
AgriciDanielAgriciDaniel/linkedin-content-creator/CLAUDE.md

linkedin-content-creator

CLAUDE.md97 starsChanged 9 months agoMITView on GitHub

This file provides context for AI assistants working on this project. LinkedIn Content Creator is an AI-powered app for generating and scheduling LinkedIn posts. It uses Google's Gemini API for content generation and supports multiple post types (text, image, carousel). All data is stored in browser localStorage: - gemini_api_key - Gemini API key - linkedin_token - LinkedIn OAuth token (JSON) - linkedin_user_profile - User profile settings - scheduled_posts - Scheduled posts array - theme - UI theme preference E2E tests…

  • Reads credentials

The file

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

5 rules. About 0 are common, 1 is distinctive, and 4 are 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.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All data is stored in browser localStorage:

    line 52
  2. Very specific:

    Create component in components/

    line 99
  3. Very specific:

    Add service logic in services/ if needed

    line 100
  4. Very specific:

    Add E2E tests in e2e/

    line 101
  5. Very specific:

    Run npm run test:e2e to verify

    line 102

≈ “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 - AI Assistant Reference

This file provides context for AI assistants working on this project.

Project Overview

LinkedIn Content Creator is an AI-powered app for generating and scheduling LinkedIn posts. It uses Google's Gemini API for content generation and supports multiple post types (text, image, carousel).

Tech Stack

  • Frontend: React 18, TypeScript, Tailwind CSS
  • Build: Vite
  • Testing: Playwright
  • Backend: Express.js (OAuth proxy)

Key Directories

components/     # React UI components
services/       # Business logic and API services
e2e/           # Playwright E2E tests
server/        # OAuth proxy server for LinkedIn
types/         # TypeScript type definitions

Core Components

ComponentPurpose
App.tsxMain application entry point
AIPlannerChat.tsxAI-powered post planner wizard
ContentCalendar.tsxPost scheduling calendar
ResultDisplay.tsxGenerated content display
Settings.tsxAPI configuration and preferences
BatchGenerator.tsxMultiple post generation
CarouselPreview.tsxCarousel/document preview

Core Services

ServicePurpose
geminiService.tsGemini AI API integration
linkedinService.tsLinkedIn posting API
linkedinAuth.tsLinkedIn OAuth token management
schedulerService.tsPost scheduling logic
calendarStorage.tsCalendar data persistence
profileService.tsUser profile/brand settings
aiPlannerService.tsAI content planning logic

Data Storage

All data is stored in browser localStorage:

  • gemini_api_key - Gemini API key
  • linkedin_token - LinkedIn OAuth token (JSON)
  • linkedin_user_profile - User profile settings
  • scheduled_posts - Scheduled posts array
  • theme - UI theme preference

Common Commands

# Development
npm run dev              # Start dev server (port 5000)
npm run dev:full         # Start with OAuth proxy

# Testing
npm run test:e2e         # Run all Playwright tests
npx playwright test --headed  # Run with browser visible

# Build
npm run build           # Production build
npm run preview         # Preview production build

Testing

E2E tests are in e2e/ directory:

  • app.spec.ts - Core app functionality
  • settings.spec.ts - Settings and configuration
  • ai-planner.spec.ts - AI planner flow
  • content-generation.spec.ts - Content generation
  • calendar.spec.ts - Calendar functionality
  • scheduler.spec.ts - Scheduling logic
  • live-generation-test.spec.ts - Real API tests (requires keys)

Environment Variables

Required in .env:

  • LINKEDIN_CLIENT_ID - LinkedIn app client ID
  • LINKEDIN_CLIENT_SECRET - LinkedIn app client secret

Optional:

  • VITE_GEMINI_API_KEY - Gemini API key (can be set in UI)
  • VITE_FIRECRAWL_API_KEY - Firecrawl API for research

Common Tasks

Adding a New Feature

  1. Create component in components/
  2. Add service logic in services/ if needed
  3. Add E2E tests in e2e/
  4. Run npm run test:e2e to verify

Modifying AI Generation

  • Main logic: services/geminiService.ts
  • Planner: services/aiPlannerService.ts
  • Prompts are inline in service files

Updating LinkedIn Integration

  • OAuth: services/linkedinOAuth.ts
  • Token management: services/linkedinAuth.ts
  • Posting API: services/linkedinService.ts

Attribution

App created by Agrici Daniel

Community: AI Marketing Hub Pro

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.