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
- Distinctive: line 52
All data is stored in browser localStorage:
- Very specific: line 99
Create component in components/
- Very specific: line 100
Add service logic in services/ if needed
- Very specific: line 101
Add E2E tests in e2e/
- Very specific: line 102
Run npm run test:e2e to verify
≈ “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.
Files
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 definitionsCore Components
| Component | Purpose |
App.tsx | Main application entry point |
AIPlannerChat.tsx | AI-powered post planner wizard |
ContentCalendar.tsx | Post scheduling calendar |
ResultDisplay.tsx | Generated content display |
Settings.tsx | API configuration and preferences |
BatchGenerator.tsx | Multiple post generation |
CarouselPreview.tsx | Carousel/document preview |
Core Services
| Service | Purpose |
geminiService.ts | Gemini AI API integration |
linkedinService.ts | LinkedIn posting API |
linkedinAuth.ts | LinkedIn OAuth token management |
schedulerService.ts | Post scheduling logic |
calendarStorage.ts | Calendar data persistence |
profileService.ts | User profile/brand settings |
aiPlannerService.ts | AI content planning logic |
Data Storage
All data is stored in browser localStorage:
gemini_api_key- Gemini API keylinkedin_token- LinkedIn OAuth token (JSON)linkedin_user_profile- User profile settingsscheduled_posts- Scheduled posts arraytheme- 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 buildTesting
E2E tests are in e2e/ directory:
app.spec.ts- Core app functionalitysettings.spec.ts- Settings and configurationai-planner.spec.ts- AI planner flowcontent-generation.spec.ts- Content generationcalendar.spec.ts- Calendar functionalityscheduler.spec.ts- Scheduling logiclive-generation-test.spec.ts- Real API tests (requires keys)
Environment Variables
Required in .env:
LINKEDIN_CLIENT_ID- LinkedIn app client IDLINKEDIN_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
- Create component in
components/ - Add service logic in
services/if needed - Add E2E tests in
e2e/ - Run
npm run test:e2eto 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
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
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.

