AGENT SKILL

running-tests

Use when verifying a change to this repository, running the test suite, or a test is failing. Also use before claiming work is done, fixed, or passing — evidence before claims.

License 许可
MIT
最近更新
2026-08-11
Stars
★ 0
Forks
0

01 前言 Front Matter

name
running-tests
license
MIT
sources
[ "obra/superpowers (verification-before-completion)", "google/skills" ]
version
1.0.0
description
Use when verifying a change to this repository, running the test suite, or a test is failing. Also use before claiming work is done, fixed, or passing — evidence before claims.

03 SKILL.md 正文

Running and Verifying Tests

The commands

cd ~/Projects/whatsapp-mtd-sales-automation
.venv/bin/python -m pytest                      # full suite (122 tests, ~2s)
.venv/bin/python -m pytest -k mute              # subset by keyword
.venv/bin/python -m pytest tests/test_pipeline.py -q
.venv/bin/python -m py_compile gui.py main.py   # syntax check after big edits

pytest.ini sets pythonpath = . and testpaths = tests, so plain pytest works from the venv too.

What the suite covers

  • test_calculations.py — achievement %, status labels
  • test_templates.py — message building, signature fallback
  • test_pipeline.py — brand map, casting, filters, column validation, muted brands
  • test_dispatcher_web.py — web dispatcher with a fake driver

The verification gate (from obra/superpowers)

Before claiming "done", "fixed", or "passing":

  1. Identify the command that proves the claim.
  2. Run it fresh, in this session.
  3. Read the full output — exit code and failure count.
  4. Only then state the claim, with the evidence.

Rationalizations that fail: "should pass", "the previous run passed", "I'm confident", "it's just a doc change". Any module or test edit warrants a fresh run.

Common mistakes

  • Running bare python and hitting the wrong interpreter (use .venv/bin/python).
  • Skipping the run because the edit was "small" — 122 tests run in about two seconds.
  • Trusting an agent's success report without independent output.

04 同仓库更多 Skills

BangerSoul
BangerSoul/whatsapp-mtd-sales-automation

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.

★ 0
BangerSoul
BangerSoul/whatsapp-mtd-sales-automation

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.

★ 0
BangerSoul
BangerSoul/whatsapp-mtd-sales-automation

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.

★ 0
BangerSoul
BangerSoul/whatsapp-mtd-sales-automation

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.

★ 0
BangerSoul
BangerSoul/whatsapp-mtd-sales-automation

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.

★ 0
BangerSoul
BangerSoul/whatsapp-mtd-sales-automation

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).

★ 0