codebase-navigation
Use when starting work in this repository, tracing how a request flows from the Excel files to WhatsApp messages, or locating which module holds a given behavior. Trigger on questions like "where does X happen", "how does the data flow", or any task that touches more than one module.
- License 许可
- MIT
- 最近更新
- 2026-08-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- codebase-navigation
- license
- MIT
- sources
- [ "anthropics/skills", "obra/superpowers", "mattpocock/skills" ]
- version
- 1.0.0
- description
- Use when starting work in this repository, tracing how a request flows from the Excel files to WhatsApp messages, or locating which module holds a given behavior. Trigger on questions like "where does X happen", "how does the data flow", or any task that touches more than one module.
03 SKILL.md 正文
Codebase Navigation
Overview
WhatsApp MTD Sales Automation: reads a monthly sales dump + a party master, computes per-account achievement, builds WhatsApp messages, and sends them through a dispatcher. Everything central that can be configured lives in config.py.
Module map
| Module | Role |
|---|---|
main.py |
CLI entry: interactive menus (profile, brands, config), run_dispatch_engine, resolve_dispatcher() |
gui.py |
tkinter desktop app wrapping the same engine (Run / Profile / Brands tabs) |
pipeline.py |
Pure engine: load, brand map, casting, aggregation, filters, queue building |
dispatcher.py |
Windows desktop dispatcher (pyautogui, whatsapp:// URIs) |
dispatcher_web.py |
Linux WhatsApp Web dispatcher (Selenium + Chromium, DOM-level verification) |
config.py |
Default schema names, thresholds, timing, backend selection |
companies.py |
Per-company registry (profile, brands, party master, MTD prefix, schema) |
schema.py |
Auto-detects MTD/party Excel layout (sheet, header row, column roles) |
calculations.py |
Pure math: achievement %, status labels |
templates.py |
WhatsApp message builders + signature |
dashboard.py |
Territory dashboard export (leaderboards per brand) |
utils.py |
Logging setup |
tests/ |
pytest suite (122 tests) |
user_settings.json |
Brand portfolio + profile + filters (gitignored) |
Data flow
Excel files → pipeline.load_dataframes → build_brand_map (muted brands dropped) → cast columns → filter parties (depots / filter modes) → aggregate_actuals → build_regular_items / build_custom_item → templates.build_whatsapp_message → dispatcher (process_dispatch_queue*) → WhatsApp + audit log.
When NOT to use
Pure questions about a specific Excel file's contents (use excel-schema-and-mapping), message wording (templates.py alone), or how to run things (use running-tests / launching-the-gui).
Common mistakes
- Guessing where logic lives. Brand muting is the chokepoint
build_brand_map— not the GUI. - Hardcoding values instead of adding a
config.pyknob. - Editing
gui.pyandmain.pyseparately when the behavior lives inpipeline.py— both frontends call the same engine.
04 同仓库更多 Skills
vercel-react-view-transitions
Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.
vercel-react-native-skills
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
vercel-composition-patterns
React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.
supabase-postgres-best-practices
Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pg_cron, pgmq), vector/semantic search (pgvector), and restoring dumps (pg_restore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.
skill-installer
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).