ru-marketplace-mcp
AGENTS.md214 starsChanged 15 days agoMITView on GitHub
Read this before you change the repository. "The owner" is the repository owner, a person; everything else here applies to whoever does the work, agent or human. These rules win over older guidance in other files; report a conflict instead of reconciling it quietly. docs/ARCHITECTURE.md explains the layout; these rules govern new changes.
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 35,196 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 repository15 other files it gives its agents.
- llms.txtllms.txt
- aliexpress-connectorSkill
- avito-connectorSkill
- cian-connectorSkill
- citilink-connectorSkill
- compare-pricesSkill
- detmir-connectorSkill
- dns-connectorSkill
- lamoda-connectorSkill
- marketplaceSkill
- megamarket-connectorSkill
- ozon-connectorSkill
- taobao-connectorSkill
- wb-connectorSkill
- yandex-connectorSkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 3
Read this before you change the repository.
- Distinctive: line 10
No proxies, CAPTCHA solving, fingerprint spoofing or TLS impersonation.
- Distinctive: line 12
Read SECURITY.md before changing input, output or browser trust boundaries.
- Very specific: line 13
No daily or weekly live matrix, public status feed or scheduler: every tool call reports the truth at run time, and marketplace-mcp doctor …
- Distinctive: line 14
No outreach: no invitations, pinned discussions or new directory submissions.
- Distinctive: line 15
No text names the owner's network address or whereabouts.
- Distinctive: line 39
No new file over 1,200 lines and no new function over 150.
- Very specific: line 44
Run the gates in CONTRIBUTING.md and every lint and test step of ci.yml that runs locally.
- Very specific: line 52
Never auto-resolve a conflict: read the diff against MERGE_HEAD.
- Very specific: line 65
Always through scripts/live_check.py.
- Very specific: line 68
Before every call read the ledger.
- Distinctive: line 79
Every release-note claim is backed by a public-tool call on that source.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
Working on ru-marketplace-mcp
Read this before you change the repository. "The owner" is the repository owner, a person; everything else here applies to whoever does the work, agent or human.
Do not break
- Protect the public tool contract and data truth; REVIEW.md lists the invariants to check.
- The runtime stays read-only and keyless, with no model at runtime. Only the owner enters keys or passwords.
- No proxies, CAPTCHA solving, fingerprint spoofing or TLS impersonation; a human clears challenges.
- New sources are frozen. docs/ADDING_A_SOURCE.md is reference, not permission to add one.
- Read SECURITY.md before changing input, output or browser trust boundaries.
- No daily or weekly live matrix, public status feed or scheduler: every tool call reports the truth at run time, and
marketplace-mcp doctorchecks each user's own setup. - No outreach: no invitations, pinned discussions or new directory submissions. Replying to issues and reviewing PRs people open themselves is routine.
- No text names the owner's network address or whereabouts; write "the owner's machine".
These rules win over older guidance in other files; report a conflict instead of reconciling it quietly.
Repository map
packages/<source>-connector/src/<source>_connector/: one source's code; itstests/holds fixtures and tests.packages/mcp-core/src/mcp_core/: shared runtime;sources.pyis the source registry.packages/compare-connector/: cross-source comparison.packages/marketplace-connector/: the unified server and themarketplace-mcpCLI.packages/marketplace-connector/tests/conformance/: registry-driven tests of rules every source must follow.scripts/: operational checks and generators;.github/workflows/ci.yml: the CI gates.skills/: usage guides for agents (dsh/skills/is a byte-identical copy);docs/: architecture, setup, tools..grace/: requirements, module graph, verification index and evidence.- Public history:
CHANGELOG.md,docs/releases/,docs/archive/and git. Plans and raw live-run history stay in the owner's private notes.
Structure
docs/ARCHITECTURE.md explains the layout; these rules govern new changes.
- A connector imports itself and
mcp_core, never another connector;mcp_coreimports no connector. Only compare and marketplace load connectors, and only through the registry. - A rule that must hold for every source is written once (in
mcp_coreor as a registry field) and tested once, driven by the registry, in the conformance folder. No per-connector copies. - Parsing and deciding are pure functions tested on fixtures; a tool function keeps only the I/O around them. A test that needs a fake transport tests that shell and nothing else.
- Refactor and behaviour never share a PR. A move-only PR changes no test assertion; a behaviour PR moves no code.
- No new file over 1,200 lines and no new function over 150. Today's larger files and functions sit under caps that only go down.
scripts/check_arch.py(alintstep) enforces the import rules and the caps inscripts/arch_baseline.json; a cap more than 100 lines (file) or 20 lines (function) above the real size fails too, so a reduction lowers its cap in the same PR. A source fix of 48 hours or less that meets a cap merges under the labelarch-exempt, and the move is the next PR on that file.--reportprints the size numbers.
Work, review and merge
- Run the gates in CONTRIBUTING.md and every
lintandteststep ofci.ymlthat runs locally. - A new behaviour test must fail on the old code (copy the old module to a temp file and run the test against it). A change in live behaviour also needs one public-tool call per affected source through
scripts/live_check.py. - A move-only PR is checked differently: read every line
git diff --color-moved=zebradoes not mark as moved, confirm no assertion changed, run the gates. No new test, no old-code run. - GRACE: done means requirement → code → evidence from that exact code version; green tests alone prove nothing. Requirements and graph change in the same PR as the behaviour (CONTRIBUTING.md).
- Tests declare what they prove with
@pytest.mark.req("R-X");python scripts/grace_index.py --writeregenerates.grace/verification/index.xmland--checkfails on an untraced requirement or a stale index. Before a PR is done and before a release,--evidenceruns the local gates and writes.grace/evidence/latest.json, bound to the working tree by one digest;--check-evidencechecks it (not in CI). - A PR that changes
packages/addschanges/<PR>.md(fragment rule);scripts/build_changelog.pyfolds the fragments intoCHANGELOG.mdat release. - Worker agents: a brief quotes the requirement verbatim, names the files the job may touch (all inside its worktree), says "change nothing else, reword no docs", asks for a red test first and for a report listing every fake and why. The reviewer reruns every gate outside the worker's sandbox and reads every fake in the diff.
- At most three workers at once, each in its own worktree, only when their file sets do not overlap. Merge one PR at a time; rebase the others and rerun their gates before review. Remove a worktree after its merge.
- Never auto-resolve a conflict: read the diff against
MERGE_HEAD. Nogit stash(worktrees share it). ci.ymlis the one shared file: a new check is a step at the end oflintor a new non-required job, and that rebase is done by hand. The branch ruleset does not change.- A failed review gets one re-brief with the notes; a second failure splits the job in two.
- Reviewed PRs are squash-merged on green CI.
Private material
- Captures, raw recordings, run logs, the budget ledgers and
doctoroutput from the owner's machine are private: gitignored, never in a brief, issue or PR. Captures are read on the owner's machine only and go to no other model or service. - What may leave a live run: whitelisted matrix rows, recordings after the scrub (regions replaced by
R1,R2in order of appearance; no machine path, user name or profile directory) and an audit's summary numbers.
Live runs
- Only on the owner's machine with the owner's Chrome. There is no limit on runs a day: the budget below and each source's own answer protect the sites and the owner's browser. After
rate_limitedor a refusal page, call that source again only after itsretry_after_s;live_check.pykeeps that pause across commands and refuses an earlier request. - Always through
scripts/live_check.py. Its preflight checks writable temp space, the Playwright driver and a bare CDP connect, and on Windows moves TEMP into the repo or switches to system Node by itself; no manual workarounds. live_check.py preflightruns those setup checks alone (no request).live_check.py matrix [--only a,b] [--skip c]measures each source once (a fixed-query listing and its first card) and appends whitelisted rows to the gitignored.live-history.jsonl; it runs on demand only, never on a schedule.scripts/live_budget.pycounts outgoing marketplace requests, not tool calls: 40 per run, 8 per source, at least 3 s between requests to one source. Screenshot navigations are booked in the same ledger.- Before every call read the ledger. A call that would take the run past 36 requests or a source past 7 is skipped, recorded as
skipped: budgetand carried to the next run. Count each call at its measured cost (1 until measured; an Ozon search costs 3). - Set
CHROME_CHALLENGE_HANDOFF_S=0. On a challenge recordneeds_humanand move on: no retry of that source until the owner has passed the check, no window brought on-screen unless the owner asks.
Releases
docs/RELEASE_CHECKLIST.md has the commands; where it differs, these rules win.
mainis green.- A matrix run on the commit to be tagged (a patch: only the sources it changes).
healthyin the previous release's run anddriftnow blocks. refused,needs_humanorinconclusivenow → one rerun after the source'sretry_after_sor after the owner has passed the check. Still not healthy and the release changes that source → the same call on the previous tag: old passes and new fails blocks; both fail → release and name the source under known limits.scripts/bump_version.pyand the version gate pass; the version is not on PyPI yet.- Every release-note claim is backed by a public-tool call on that source.
- The release commit is made and tagged when 1-5 pass.
- A release that removes or renames a public tool or changes a default waits for the owner's yes.
- Release notes list user-visible changes only, never checks, tests, CI or reviews.
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.

