simplicio-loop-marketing
AGENTS.md9 starsChanged 7 months agoApache-2.0View on GitHub
This repository is a Simplicio ecosystem product. For every non-trivial task: run simplicio runtime map --repo . --for-llm markdown, then simplicio memory "<task>", rank/load relevant skills, execute through the native simplicio CLI, validate, and record evidence. MCP is fallback transport only. Mutations use simplicio edit --plan or governed dev-cli; preserve simplicio.io/v1; validate with simplicio contracts smoke --json and real tests; report MEASURED| only from receipts, otherwise UNVERIFIED|. Never fabricate provider, test, savings or evidence output. Marketing Engine is a CLI…
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- wesleysimplicio/simplicio-loop-marketingword for word, first seen May 18, 2026
Other versions1 project uses a version of this.
Word for word · 1
- wesleysimplicio/simplicio-loop-marketing★ 9100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
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 33,398 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 repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- llms.txtllms.txt
- simplicio-autoresearchSkill
- simplicio-compressSkill
- simplicio-dev-cliSkill
- simplicio-learnSkill
- simplicio-loopSkill
- simplicio-mapperSkill
- simplicio-orientSkill
- simplicio-prismSkill
- simplicio-reviewSkill
- simplicio-tasksSkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 1 is common, 3 are distinctive, and 8 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use simplicio-mapper for bounded repository context, simplicio-fast for snapshots/PlanDAG, simplicio-dev-cli for deterministic …
- Distinctive: line 38
If you find yourself typing a provider name inside a skill body or agent prompt, stop and route through the matrix instead.
- Very specific: line 51
All credentials and feature flags live in .env (template: .env.example).
- Distinctive: line 55
Every piece execution MUST follow this sequence:
- Very specific: line 115
If rtk (https://github.com/rtk-ai/rtk) is on PATH, prefer it for shell-heavy and exploratory work — compact output, ~40-70% fewer tokens, …
- Very specific: line 129
Use rtk read|grep|find|git ...
- Very specific: line 130
Use rtk <command> on verbose validators where a summary is enough.
- Very specific: line 132
If rtk is not installed, fall back to plain commands — no hard dependency.
- Distinctive: line 142
Every agent registered in this repo SHOULD declare its capability with the following fields:
- Very specific: line 167
Before coding, read this file, PRD.md, PROGRESS.md when it exists, README.md, project manifests, tests, and the relevant source folders.
- Very specific: line 169
Stop only when the requested work is complete, validation is documented, and GOAL_RESULT.md reflects the outcome.
- Common: line 170
Do not rewrite unrelated architecture, fake successful validation, expose secrets, or push without explicit operator instruction for the …
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
Marketing Engine — Agent Charter
Simplicio Ecosystem Contract (canonical)
This repository is a Simplicio ecosystem product. For every non-trivial task: run simplicio runtime map --repo . --for-llm markdown, then simplicio memory "<task>", rank/load relevant skills, execute through the native simplicio CLI, validate, and record evidence. MCP is fallback transport only.
Integration boundaries
Use simplicio-mapper for bounded repository context, simplicio-fast for snapshots/PlanDAG, simplicio-dev-cli for deterministic implementation, simplicio-runtime for gates/contracts/receipts, simplicio-loop for convergence and close-gates, and simplicio-agent as control plane. Providers remain replaceable workers.
Mutations use simplicio edit --plan or governed dev-cli; preserve simplicio.io/v1; validate with simplicio contracts smoke --json and real tests; report MEASURED| only from receipts, otherwise UNVERIFIED|. Never fabricate provider, test, savings or evidence output.
Tool model
Marketing Engine is a CLI tool installed into a host project (npx marketing-engine init). It writes to .marketing-engine/ inside the host repo (clients, env, outputs, data, specs) and never assumes a specific business domain. All client-specific knowledge lives under .marketing-engine/clients/<slug>/. The engine itself is generic and public.
Mission
Marketing Engine is a provider-agnostic AI marketing motor that orchestrates the full content pipeline:
brief → script → creative → caption → compliance → publish → metrics → adsThe motor is generic; clients live under .marketing-engine/clients/<slug>/ (or .specs/clients/<slug>/ in the engine repo itself). A piece (a scheduled content item) is the smallest unit of work; each piece moves through the loop above and produces auditable artefacts under outputs/<client>/<date>/<piece-id>/.
The engine treats LLMs, image generators, video generators, publishing platforms, and ad platforms as interchangeable providers selected at runtime. Adding a new provider is a contract change, not a rewrite.
Core Principle: Provider-Agnostic
No skill or agent ever hardcodes a provider name.
- Provider selection lives in
.specs/architecture/PROVIDERS.md(routing matrix) and.env(active credentials and feature flags). - Skills accept
task_typeand letlib/router.tsresolve the actual provider. - Switching providers (e.g.
LLM_DEFAULT=claudetoLLM_DEFAULT=deepseek) must require zero code changes inside skills. - A piece may override the default with
provider_override: { llm_text, image, video }in its frontmatter; overrides win. - Primary failure triggers automatic fallback (per
PROVIDERS.md); both events logged todata/llm-usage.jsonl.
If you find yourself typing a provider name inside a skill body or agent prompt, stop and route through the matrix instead.
Stack (configurable)
| Layer | Providers (default first) | Selection mechanism |
| LLM | claude, codex, deepseek (cheap), copilot, ollama (fallback) | lib/router.ts + PROVIDERS.md |
| Image | gpt-image, higgsfield, topview, wavespeed | lib/providers/image.ts |
| Video | higgsfield (Soul/DoP/Seedance), topview, wavespeed | lib/providers/video.ts |
| Publishing | adaptlypost (MCP, 9 platforms) | lib/publish/adaptlypost.ts |
| Ads | meta-ads (MCP active) | lib/publish/meta-ads.ts |
| Calendar | Notion (database NOTION_CALENDAR_DB_ID) | env-driven |
All credentials and feature flags live in .env (template: .env.example). Production runs default to DRY_RUN=true until a piece is explicitly promoted.
Mandatory Loop per Piece
Every piece execution MUST follow this sequence:
- Read piece.md — load frontmatter (client, channel, format, brief, provider overrides, compliance flags).
- llm-router — resolve LLM for the piece task type (script, caption, compliance) via PROVIDERS.md + .env + overrides.
- Generate copy — call resolved LLM through
lib/providers/llm.ts; emit script.md and caption variants. - Generate creative — pick image/video provider via routing matrix; produce assets in
outputs/<client>/<date>/<piece-id>/. - Critic skills — run brand-voice, humanizer, and platform critic skills; iterate until acceptance bar.
- Compliance — run the active client's compliance skill (
compliance-<active client>) orcompliance-generic; output JSON{pass, violations, suggestions}. Block ifpass=false. - Publish — call
adaptlypostwith the 4-platform caption set. DefaultDRY_RUN=true; flip via env only after human review. - Metrics — schedule a metrics pull via the metrics skill (later loop).
- Ads — for promoted pieces, hand off to
meta-adsagent with brief + creative IDs.
A piece is only complete when all gates above pass and Playwright evidence is recorded.
Definition of Done (per piece)
- Compliance JSON returns
pass: true(or human override logged). - Tech specs pass (
qa-tech-specsskill: aspect ratio, duration, file size, safe areas). - 4-platform caption set generated (Instagram, TikTok, LinkedIn, X) with platform-specific length and CTA.
- Playwright evidence: at least one E2E spec exercises the piece pipeline end-to-end against mocks (
e2e/). - Run logged to
data/llm-usage.jsonlanddata/runs.jsonl(timestamp, providers used, cost estimate). - Outputs stored under
outputs/<client>/<date>/<piece-id>/withmanifest.json.
How to Add a New Provider
Three steps. No skill rewrite.
- Add provider module — create
lib/providers/<layer>/<name>.tsimplementing the layer interface (LlmProvider,ImageProvider, orVideoProvider). Include at least one mock for tests. - Update PROVIDERS.md — add the provider as a row in the relevant routing matrix (LLM/Image/Video) with the task types it serves and the rationale.
- Update
.env.example— add the provider's API key var (e.g.NEW_PROVIDER_API_KEY=) with a comment describing how to obtain it.
The router picks it up automatically. Existing skills do not change.
Skills Available
revisao-humanizada— strips AI-writing tells from generated copy.higgsfield-prompt-builder— converts brief into Higgsfield-ready prompts (Soul, DoP, Seedance).video-prompt-builder— generic motion/shot/composition prompt skeleton, provider-neutral.copywriter-curto— short-form copy (hooks, captions, CTAs).caption-multi-platform— fans one caption into IG/TikTok/LinkedIn/X variants with length and tone deltas.compliance-<active client>— per-client compliance skill (substitute the active client slug); audits pieces against forbidden claims and brand rules.compliance-generic— generic compliance audit (default fallback when no client-specific skill exists).qa-tech-specs— validates aspect ratio, duration, file size, safe areas per platform.gpt-image-prompt-builder— typography-precise prompts for GPT-Image (quote cards, carousels).topview-prompt-builder— UGC/avatar prompts for TopView.wavespeed-batch— batch A/B prompt expansion for Wavespeed.llm-router— selects and calls an LLM provider based ontask_type, PROVIDERS.md, and overrides.
Forbidden
- Hardcoding a provider name inside a skill or agent body.
- Using mocks in production paths (mocks belong under
lib/providers/__mocks__/and tests). - Pushing direct to
main(PR + DoD gate required). - Committing
.env, real API keys, or any client PII into the repo. - Running real provider calls during bootstrap or CI without explicit
DRY_RUN=falseand a credentialed environment. - Touching the read-only reference tree at
~/Projetos/novos/agentic-starter(inspiration only).
<!-- rtk-cli:start -->Shell token-smart (RTK CLI, optional)
If rtk (https://github.com/rtk-ai/rtk) is on PATH, prefer it for shell-heavy and exploratory work — compact output, ~40-70% fewer tokens, same signal.
rtk read AGENTS.md
rtk grep "pattern" src/
rtk find "*.js" .
rtk git status
rtk git diff
rtk git log -n 10
rtk npm testRules:
- Use
rtk read|grep|find|git ...as first choice for textual inspection. - Use
rtk <command>on verbose validators where a summary is enough. - Do not route through RTK: interactive prompts, streaming, evidence-bearing output.
- If
rtkis not installed, fall back to plain commands — no hard dependency.
See .skills/rtk-cli/SKILL.md for the full skill manifest.
<!-- rtk-cli:end --><!-- yool-tuple-hamt:start -->yool / tuple / HAMT (capability addressing)
Spec: https://github.com/wesleysimplicio/yool-tuple-hamt (v0.2).
Every agent registered in this repo SHOULD declare its capability with the following fields:
### My Agent
- yool_id: `agent.dev.python`
- authority: dev | ops | review | audit
- lane: fast | slow | background
- agent_terms:
cpu_quota_pct: 60 # MANDATORY guardrail (spec §11.1)
disk_quota_mb: 100 # MANDATORY guardrail (spec §11.2)
timeout_s: 300Guardrails are MANDATORY per Victor Genaro's review: "precisa de guardrail pra não fritar o processador. Você precisa de garbage collector também pra não encher 100% do disco." See spec §11.
<!-- yool-tuple-hamt:end --><!-- codex-long-running-agent-overlay:start -->Universal Long-Running Agent Overlay
This section complements the repository-specific guidance already in this file. If anything here conflicts with the repo-specific rules above, the repo-specific rules win.
PRD.mdis the task source of truth for long-running sessions.PROGRESS.mdis the persistent checkpoint log.GOAL_RESULT.mdis the final execution report.- Before coding, read this file,
PRD.md,PROGRESS.mdwhen it exists,README.md, project manifests, tests, and the relevant source folders. - Work in small checkpoints, run the smallest relevant validation after each meaningful change, update
PROGRESS.md, and continue until complete or genuinely blocked. - Stop only when the requested work is complete, validation is documented, and
GOAL_RESULT.mdreflects the outcome. - Do not rewrite unrelated architecture, fake successful validation, expose secrets, or push without explicit operator instruction for the active session.
<!-- codex-long-running-agent-overlay:end --><!-- simplicio-global-llm-architecture-rules:start -->Regras arquiteturais obrigatórias para qualquer LLM
Estas regras valem para análise, planejamento, implementação, revisão, testes, release e documentação neste ecossistema. O agente deve lê-las antes de agir:
- Não mantenha compatibilidade retroativa. O que está obsoleto deve ser deletado diretamente. Não adicione camadas de compatibilidade, migrações ou fallbacks.
- Escolha a implementação mais simples que atende à necessidade atual. Não crie abstrações preventivas nem camadas de configuração desnecessárias.
- Divida o sistema em camadas longas. Faça primeiro uma versão mínima end-to-end funcionando; depois adicione capacidades por cima. Não desmonte algo que funciona por complexidades inacabadas.
- Mantenha os componentes modulares, com responsabilidades claramente separadas e limites explícitos.
- Priorize bibliotecas maduras e mantidas. Não reescreva do zero sem motivo técnico explícito e registrado.
- Inspecione primeiro as dependências existentes. Antes de adicionar um pacote ou escrever uma solução própria, verifique o que o projeto já possui.
- Decida a arquitetura pensando no longo prazo. Não aceite soluções temporárias com a intenção de mudar depois.
- Use padrões de produtos maduros. Pesquise como soluções consolidadas resolvem o mesmo problema e reutilize padrões validados; não reinvente a roda.
<!-- simplicio-global-llm-architecture-rules:end -->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.

