AutonomousMarketing
AGENTS.md1 starsChanged 8 days agoMITView on GitHub
This document defines how autonomous agents and pair-programmers interact with the AutoMarket Studio codebase, execute tooling, leverage agent skills, and maintain architectural and visual integrity.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,843 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository18 other files it gives its agents.
- .agents/skills/apple-design-hig/AGENTS.mdAGENTS.md
- animate-expoSkill
- animateSkill
- animation-performanceSkill
- animation-vocabularySkill
- apple-design-higSkill
- apple-designSkill
- ask-sonnerSkill
- break-uiSkill
- emil-design-engSkill
- find-animation-opportunitiesSkill
- improve-animationsSkill
- mobile-nativeSkill
- pick-ui-librarySkill
- prototypeSkill
- remove-animationsSkill
- review-animationsSkill
- write-swiftSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 8 are distinctive, and 7 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.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Never Add Login Forms or Auth: Do NOT create login screens, sign-up flows, auth tokens, JWT handlers, or "Sign Out" actions.
- Very specific: line 12
Local Storage Mental Model: All data (leads, CRM pipeline, drafts, settings) resides strictly on the local machine (e.g.
- Distinctive: line 15
All copy must read like natural human business English for non-technical clients and solo founders.
- Very specific: line 26
No Decorative Fake Green Dots: Never prepend decorative colored dots before plain descriptive text (• Plain English Voice).
- Very specific: line 34
Absolute Floor: No font size below 12px (text-xs) is permitted anywhere in the app.
- Very specific: line 47
Tactile Feedback: Every interactive surface must feature whileHover={{ scale: 1.03 }} and whileTap={{ scale: 0.95 }} micro-interactions.
- Very specific: line 61
Before touching systems, agents use macro navigation (graphify query, graphify explain, or reading Obsidian community hubs) to trace …
- Distinctive: line 68
After completing refactors or code additions, agents run:
- Very specific: line 75
All shell commands must be prefixed with zap or zap proxy (e.g., zap proxy npx playwright test, zap proxy npx vite build).
- Very specific: line 101
All interactive controls inside the titlebar must specify style={{ WebkitAppRegion: 'no-drag' }} and e.stopPropagation() to prevent Windows …
- Distinctive: line 113
All 11 desktop screens and window interactions are covered by automated Playwright E2E tests:
- Distinctive: line 128
After any UI mutation, agents run:
- Distinctive: line 138
When the user gives the instruction to connect real live data:
- Distinctive: line 148
All records remain strictly on the user's local disk with zero external tracking or cloud lock-in.
- Distinctive: line 214
Strict Anti-Jargon Guardrail: All AI generation adheres to plain business English standards, omitting buzzwords and AI sales clichés.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.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
AutoMarket Studio — Agent Architecture & Engineering Operations Guide
This document defines how autonomous agents and pair-programmers interact with the AutoMarket Studio codebase, execute tooling, leverage agent skills, and maintain architectural and visual integrity.
1. Operating Rules & Core Constraints
1.1 Strictly Self-Hosted Architecture (NO CLOUD / NO USER LOGIN)
- Zero Cloud Authentication: The app is 100% self-hosted, offline-first, and local to the user's machine.
- Never Add Login Forms or Auth: Do NOT create login screens, sign-up flows, auth tokens, JWT handlers, or "Sign Out" actions.
- Local Storage Mental Model: All data (leads, CRM pipeline, drafts, settings) resides strictly on the local machine (e.g.
leads/leads.json). The bottom dock avatar (AM) opens the Local Studio Workspace & Offline Storage Inspector, never an account or session manager.
1.2 Plain Business English (Strictly Anti-Jargon)
- All copy must read like natural human business English for non-technical clients and solo founders.
- Prohibited Words & Mandatory Replacements:
dispatch/automated cross-dispatch➔ publish / schedule / post / sendengine/synthesizer➔ studio / system / tool / workspacefluff-free tone➔ direct & natural tone / clear tonedispatched audits➔ audits sent / performance reports sentpre-compute➔ prepare / readyteardown➔ review / summary / breakdownoutreach pitch/pitch➔ suggested message / client message
- Zero AI Gimmicks:
- No Stars / Sparkles (
✨,Sparkles): Strictly banned. - No Decorative Fake Green Dots: Never prepend decorative colored dots before plain descriptive text (
• Plain English Voice). Colored badges are reserved solely for actual live system states (e.g. active network connections).
- No Stars / Sparkles (
1.3 Native Desktop Window Controls & Keyboard Shortcuts
EscapeKey: Exclusively dismisses open popovers, sheets, and modals.EscapeMUST NEVER exit or toggle window maximization.- Window Minimize: Minimizes the window to the OS taskbar/dock. Never show a toast notification when the user minimizes the window.
- Window Maximize: Toggles native window maximize. Never call HTML5 browser fullscreen (
requestFullscreen).
1.3 Desktop Typography Scale (Minimum 12px)
- Absolute Floor: No font size below 12px (
text-xs) is permitted anywhere in the app. - Strictly Banned Classes:
text-[9px],text-[10px],text-[11px]. - Approved Scale:
- Captions, column headers, metadata tags:
text-xs font-semibold(12px) - Body text, post copy, paragraphs:
text-sm leading-relaxed(14px) - Subheadings & card titles:
text-[17px] font-boldortext-[18px] font-bold - Screen titles:
text-2xl font-bold tracking-tight(24px)
- Captions, column headers, metadata tags:
1.4 The Two Primary Design Skills
Whenever authoring, reviewing, or enhancing UI/UX across this desktop application, agents must consult and strictly adhere to two core skills:
apple-design(.agents/skills/apple-design/):- WWDC Fluid Interfaces: Physical spring curves (
stiffness,damping,mass), velocity handoff, and immediate interruptibility. - Tactile Feedback: Every interactive surface must feature
whileHover={{ scale: 1.03 }}andwhileTap={{ scale: 0.95 }}micro-interactions. - Restraint: Zero artificial embellishments (no glitter stars, neon gradients, or tech jargon).
- WWDC Fluid Interfaces: Physical spring curves (
apple-design-hig(.agents/skills/apple-design-hig/):- Desktop Architecture: Frameless window management, keyboard navigation (
Escape,Cmd/Ctrl+K, numeric keys1-7), clear visual hierarchies, and accessible touch/click boundaries. - Modality & Sheets: Semi-modal sheets with frosted glass depth (
backdrop-blur-2xl), dismiss on backdrop click orEscape.
- Desktop Architecture: Frameless window management, keyboard navigation (
2. Context Optimization & Progressive Disclosure
To maintain model intelligence without context degradation:
2.1 Tier 1 — Macro Navigation via Graphify
- The project knowledge graph is indexed in
graphify-out/obsidian/(over 4,900 nodes and 6,960 edges). - Before touching systems, agents use macro navigation (
graphify query,graphify explain, or reading Obsidian community hubs) to trace architecture and dependencies rather than blindly reading dozens of full source files.
2.2 Tier 2 — Surgical Code Inspection
- The graph is a map, not the source. Before editing code, agents must inspect the actual target source files for exact line numbers and contexts using
read_file. - Agents never guess or author code based solely on AST summaries.
2.3 Continuous Graph Synchronization
- After completing refactors or code additions, agents run:
to keep the Obsidian vault and knowledge graph synchronized at zero API cost.zap graphify update .
2.4 Token-Optimized CLI via ZAP
- All shell commands must be prefixed with
zaporzap proxy(e.g.,zap proxy npx playwright test,zap proxy npx vite build).
3. Electron Desktop Architecture & Native Windowing
3.1 Preload Bundling Protocol (Critical)
- Problem: Electron's Chromium sandbox cannot execute native ES Module imports inside preload scripts.
- Protocol:
electron/preload.tsmust be compiled as CommonJS (.cjsformat) invite.config.ts:lib: { entry: 'electron/preload.ts', formats: ['cjs'] }, rollupOptions: { external: ['electron'], output: { format: 'cjs', entryFileNames: '[name].cjs' } } electron/main.tsresolvespreload.cjswithsandbox: falseto guaranteewindow.electronAPIis exposed in the renderer context.
3.2 Native Windows Controls & Drag Regions
- Frameless titlebars use
-webkit-app-region: drag(.app-drag). - All interactive controls inside the titlebar must specify
style={{ WebkitAppRegion: 'no-drag' }}ande.stopPropagation()to prevent Windows from treating button clicks as window dragging. - IPC handlers in
electron/main.tsmust dynamically resolve the target window using:const win = BrowserWindow.fromWebContents(event.sender) || mainWindow; win?.minimize();
4. Visual Verification & E2E Testing Protocol
4.1 Playwright E2E Suite (tests/app.spec.ts)
- All 11 desktop screens and window interactions are covered by automated Playwright E2E tests:
01_studio_hub— Studio Hub (Spline, Calendar, Focus Gauge, Campaigns)02_content_studio— Content Studio & Queue03_lead_radar— Lead Radar & CRM Prospects Table04_social_stream— Social Intent Stream & Proof Assets05_growth_analytics— Growth & Revenue Attribution06_studio_settings— Studio Settings & Spring Toggles07_daily_sprint— Daily 15-Minute Marketing Sprint08_client_audit— Modernization Audit Report09_modal_new_post— Create New Post Composer Modal10_modal_proposal— Send Client Proposal Modal11_micro_components— Local Workspace Popover & Toast Container- Window Controls Verification — Native Minimize, Maximize, and Close Dialogs
4.2 Squint Test & Optical Alignment Rule
- After any UI mutation, agents run:
zap proxy npx playwright test - Agents inspect the resulting screenshots in
./screenshots/(or the configuredSCREENSHOT_DIR) to verify optical centering, padding, and zero text truncation.
5. Preparing for Real Data Integration
When the user gives the instruction to connect real live data:
- Lead Radar & Prospect Store:
- Primary data file:
leads/leads.json(git-ignored, strictly private to user's machine; falls back toleads/leads.example.jsonif absent). Accessible viawindow.electronAPI.getLeads(). - Schema:
Lead(src/types.ts) (id,name,domain,category,healthScore,healthStatus,vulnerability,monthlyVisitors,opportunityValue).
- Primary data file:
- Social Stream & Inquiries:
- Schema:
SocialIntent(src/types.ts) (authorName,authorHandle,platform,content,matchScore,estimatedBudget).
- Schema:
- Queue & Draft Persistence:
- Schema:
QueuedPost(src/types.ts) (title,channel,scheduledTime,charCount,status,content).
- Schema:
- Local-First Storage Guarantee:
- All records remain strictly on the user's local disk with zero external tracking or cloud lock-in.
6. AI Engine Architecture & Model Context Protocol (MCP) Server
AutoMarket Studio features an open, multi-agent AI architecture:
6.1 Native MCP Server (mcp/server.js)
- Standard Model Context Protocol (MCP) server running on
stdiotransport. - Accessible by Claude Desktop, Cursor IDE, Google Antigravity, Ollama, OpenClaw, OpenCode, and Codex.
- Run command:
npm run mcp - 11 Native Tools:
list_leads(status, search, limit, offset)— Query local targets, digital health scores, and flaws.get_lead_audit(leadIdOrDomain)— Comprehensive performance breakdown, contact details, and revenue friction.update_lead(leadId, status, notes)— Update prospect CRM status (New,Audited,Proposal Sent,Closed).get_content_queue(status)— List queued case studies and drafts.schedule_post(title, content, channel, scheduledTime, isDraft)— Add educational posts to the publishing queue.publish_post(postIdOrTitle)— Publish a queued update and advance Daily Sprint Step 1.get_client_opportunities(minScore)— List matched buyer signals and pain points.get_daily_sprint()— Read the 4-step daily marketing sprint status.complete_sprint_step(stepNumber)— Mark a daily routine step as complete.generate_client_proposal(leadIdOrDomain, packageType)— Craft tailored, plain English outreach proposals.export_leads_csv()— Trigger local offline CSV backup toleads/leads_backup.csv.
6.2 Agent MCP Client Configurations
- Claude Desktop (
claude_desktop_config.json):{ "mcpServers": { "automarket-studio": { "command": "node", "args": ["<project-path>/mcp/server.js"] } } } - Cursor IDE (
.cursor/mcp.json):{ "mcpServers": { "automarket": { "command": "node", "args": ["<project-path>/mcp/server.js"] } } } - Google Antigravity (
mcp_servers.json):{ "mcp_servers": { "automarket": { "command": "node", "args": ["<project-path>/mcp/server.js"] } } }
6.3 In-App AI Engines (Ollama, Claude, Antigravity, OpenAI)
- Users can switch their active AI engine in Studio Preferences or at the task level (when writing a post or drafting a proposal).
- Ollama: 100% private and offline on
http://localhost:11434(zero telemetry, zero cloud calls). - Strict Anti-Jargon Guardrail: All AI generation adheres to plain business English standards, omitting buzzwords and AI sales clichés.
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.

