Directory Submitter
FIRST — check what the user wants
| User says | Do this, then STOP |
|---|---|
| "set up [product]" / "new product" / shares a product URL | Read workflows/setup-product.md and follow it |
| "submit [product]" / "submit to directories" | Read workflows/submit-mode.md and follow it |
| "show progress" / "submission status" | Read and display tracking/{slug}.md |
| "add directory" / "new directory" | Open directories/DIRECTORIES.md and add entry with user |
If none match → show this menu and wait for user choice:
- Set up a product — create a profile from your product URL
- Submit to directories — fill and submit forms via browser
- Show progress — see submission status for a product
- Add a directory — add a new directory to the list
File reference timing
Don't read files in advance — only at the step that needs them.
| File | When |
|---|---|
| profiles/{slug}.md | When user mentions a product name |
| directories/DIRECTORIES.md | Start of submit-mode |
| tracking/{slug}.md | Start of submit-mode, and after each submission |
Browser automation
Tool priority: Chrome Extension → Playwright → manual paste
| Action | Chrome Extension | Playwright |
|---|---|---|
| Navigate | navigate | browser_navigate |
| Read page | read_page | browser_snapshot |
| Find element | find | (snapshot refs) |
| Click | computer (left_click) | browser_click |
| Type | form_input / computer (type) | browser_type |
| Screenshot | computer (screenshot) | browser_take_screenshot |
| Upload file | upload_image | browser_file_upload |
Chrome Extension setup: tabs_context_mcp → tabs_create_mcp → use tabId for all calls.
Minimize tokens: pass only concise instructions. Navigate directly to URLs, never click links.
Quick process overview
- Set up — visit product URL, extract info, ask clarifying questions, generate descriptions, save profile
- Submit — load profile + directory list, navigate to each directory, fill form, confirm with user, log result
- Track — persistent markdown file per product, updated after each submission
Scan to join WeChat group