Agent skill
code-change-verification
Run lint, type-check, and build verification for changed services after code modifications are complete. Trigger after any code change to repos/*/ — auto-detects which services were touched via git diff and runs the appropriate static checks (mypy/flake8 for Python, type-check/lint/build for TypeScript, go vet for Go).
Install this agent skill to your Project
npx add-skill https://github.com/tgoai/tgo/tree/main/.skills/code-change-verification
SKILL.md
code-change-verification
Purpose
Auto-detect which services were changed and run their lint/type-check/build verification.
Trigger
After any code modification is complete.
What it does
- Reads
git diff --name-onlyto identify changed service directories - Runs the appropriate verification command per service:
- Python services →
poetry run mypy app && poetry run flake8 app - tgo-web →
yarn type-check && yarn lint && yarn build - tgo-widget-js →
npm run build - tgo-device-agent →
go vet ./...
- Python services →
- Outputs pass/fail per service
Usage
bash .skills/code-change-verification/scripts/verify.sh
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
implementation-strategy
Analyze change impact across services before starting implementation. Trigger before modifying runtime, API, or cross-service code — maps changed files to service ownership, outputs the dependency graph between affected services, and lists upstream/downstream sync points that may need coordinated updates.
functional-verification
Use tgo-cli (staff) and tgo-widget-cli (visitor) to verify API and service changes at runtime, beyond static lint/build checks. Trigger after modifying backend API endpoints, service logic, chat flow, agent config, knowledge/RAG, workflow, or platform integration — requires local services to be running. Auto-detects changed services from git diff and runs the corresponding CLI smoke tests (system info, CRUD listing, chat e2e).
db-migration-check
Verify that SQLAlchemy model changes have corresponding Alembic migration files. Trigger when any file under models/*.py or models/**/*.py is modified — checks git diff for model changes and confirms matching alembic/versions/*.py files exist, failing if a service has model changes without a migration.
local-services
Start, stop, and check local development services with intelligent minimum-set management. Trigger when services need to be running for functional verification or manual testing — starts the minimum required set (infrastructure + tgo-api + tgo-ai) by default, with optional extras auto-detected from git diff or specified manually. Includes status checking and graceful shutdown.
streaming-protocol-check
Check streaming protocol consistency across all producer and consumer services. Trigger when modifying code related to streaming, SSE, WuKongIM, json-render, or MixedStreamParser — lists all files in tgo-ai (producer), tgo-api (relay), tgo-web, tgo-widget-js, and tgo-widget-miniprogram (consumers) that handle the same protocol and may need coordinated updates.
pr-draft-summary
Generate a PR change summary grouped by service after work is finished. Trigger when wrapping up a task and ready to commit or create a pull request — reads git diff and git log, groups changed files by service directory, and outputs a markdown-formatted summary with file lists, commit history, and diff stats.
Didn't find tool you were looking for?