Common tasks

From trezor/trezor-suite · View interactive version

Common tasks is an AI agent skill from the GitHub repository trezor/trezor-suite. Dependency management, package creation, and troubleshooting commands for the Trezor Suite monorepo. Use when managing dependencies or debugging build issues.

How to use this skill

Skill file

Common Tasks

Managing npm dependencies via yarn

Prefer existing dependencies. Add a new npm dependency only when no suitable dependency is already available in the repo.

yarn workspace @trezor/package-name add dependency-name

After adding or updating a dependency, run:

yarn dedupe
yarn requirements:verify

Review all changes made by yarn dedupe before keeping them.

Do not bypass .yarnrc.yml npmMinimalAgeGate.

If a blocked version is required to fix a bug, add a targeted exception to npmPreapprovedPackages.

Keep Nix pins in sync in the same PR:

Monorepo Package Management

yarn generate-package      # Create new package
yarn update-submodules     # Update trezor-common submodule (see git-and-commit-guidelines)

Troubleshooting

# Reset environment if builds fail
rm -rf node_modules .yarn/cache
yarn --mode=skip-build
yarn build:essential

# Clear NX cache
yarn nx reset

# Restart development server
pkill -f "webpack-dev-server"
yarn suite:dev
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.